/* ==========================================================================
   EbrahimiX — site.css
   Extracted verbatim from the original inline <style> blocks of index.html
   so that the homepage, blog and admin panel share one stylesheet.
   ========================================================================== */

/**
 * Minimal preflight
 * The page used the Tailwind Play CDN for exactly one utility class
 * (lg:hidden). Dropping that 450 KB runtime means the small set of
 * browser-default normalisations it provided must live here instead.
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -moz-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul, menu { padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
button, input, optgroup, select, textarea {
    font: inherit; color: inherit; margin: 0; padding: 0;
}
button, [type='button'], [type='submit'], [type='reset'] {
    -webkit-appearance: button; background-color: transparent; background-image: none;
    border: 0; cursor: pointer; text-transform: none;
}
textarea { resize: vertical; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
table { border-collapse: collapse; border-color: inherit; text-indent: 0; }
hr { height: 0; color: inherit; border-top-width: 1px; }

[hidden] { display: none !important; }

/* Replaces the single Tailwind utility that was in use: class="... lg:hidden" */
.menu-toggle-btn { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle-btn { display: none; } }

/* ===== captured from index.html ===== */

        * {
            box-sizing: border-box;
            scrollbar-width: thin;
            scrollbar-color: rgba(0,255,157,.35) rgba(28,45,31,.5);
        }

        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: rgba(28,45,31,.5); }
        ::-webkit-scrollbar-thumb {
            background: rgba(0,255,157,.3);
            border-radius: 99px;
        }
        ::-webkit-scrollbar-thumb:hover { background: rgba(0,255,157,.5); }

        html {
            scroll-behavior: smooth;
        }

        html, body {
            margin: 0;
            width: 100%;
            min-height: 100%;
            background: #000;
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            overflow-x: hidden;
        }

        button, a { -webkit-tap-highlight-color: transparent; }

        ::selection {
            background: rgba(0,255,157,.25);
            color: #fff;
        }

        /* ============================================================
           GLASS SYSTEM — شیشه‌ای مات با حاشیه طلایی
        ============================================================ */

        .glass {
            background: linear-gradient(
                145deg,
                rgba(28,45,31,.55) 0%,
                rgba(10,18,12,.65) 100%
            );
            backdrop-filter: blur(18px);
            -webkit-backdrop-filter: blur(18px);
            border: 1px solid rgba(212,185,106,.28);
            box-shadow:
                0 8px 32px rgba(0,0,0,.45),
                inset 0 1px 0 rgba(243,230,184,.08);
        }

        .glass:hover {
            border-color: rgba(212,185,106,.55);
        }

        .glass-soft {
            background: rgba(28,45,31,.38);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(212,185,106,.18);
        }

        .gold-text {
            background: linear-gradient(120deg, #f3e6b8, #d4b96a 45%, #b3954d);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        /* Section shell */
        .section {
            position: relative;
            width: min(1200px, 100%);
            margin: auto;
            padding: clamp(70px, 10vh, 120px) clamp(20px, 5vw, 48px);
            z-index: 20;
        }

        .section-head { margin-bottom: clamp(40px, 6vh, 64px); }

        .section-tag {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 7px 16px;
            border-radius: 999px;
            background: rgba(28,45,31,.6);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(0,255,157,.35);
            color: #00ff9d;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: .04em;
        }

        .section-title {
            margin: 20px 0 0;
            color: #fff;
            font-size: clamp(30px, 4.5vw, 52px);
            font-weight: 900;
            line-height: 1.25;
        }

        .section-title .gold-text {
            font-family: 'Syne', 'Vazirmatn', sans-serif;
        }

        .section-sub {
            max-width: 640px;
            margin-top: 14px;
            color: #9fb3a5;
            font-size: clamp(14px, 1.6vw, 17px);
            line-height: 1.9;
            font-weight: 300;
        }

        /* Neon divider between sections */
        .neon-divider {
            width: min(1200px, calc(100% - 40px));
            height: 1px;
            margin: auto;
            background: linear-gradient(
                90deg,
                transparent,
                rgba(0,255,157,.5),
                rgba(212,185,106,.4),
                rgba(0,255,157,.5),
                transparent
            );
            box-shadow: 0 0 18px rgba(0,255,157,.25);
        }

        /* ============================================================
           GLOBAL CYBER GRID (page-wide, behind content)
        ============================================================ */

        .page-grid {
            position: fixed;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(78,101,76,.09) 1px, transparent 1px),
                linear-gradient(90deg, rgba(78,101,76,.09) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: linear-gradient(to bottom, black 60%, transparent);
            -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent);
        }

        /* ============================================================
           HERO (base structure preserved from Index2.html)
        ============================================================ */

        .hero {
            position: relative;
            width: 100vw;
            min-height: 650px;
            height: 100dvh;
            overflow: hidden;
            background: #000;
        }

        .statue-stage {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
        }

        .statue {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 20% center;
            user-select: none;
            -webkit-user-drag: none;
        }

        .base-statue { z-index: 1; }

        .hover-statue {
            z-index: 2;
            opacity: 1;
            mask-image: radial-gradient(
                circle 140px at 35vw 50vh,
                black 0%, rgba(0,0,0,.85) 45%,
                rgba(0,0,0,.3) 70%, transparent 100%
            );
            -webkit-mask-image: radial-gradient(
                circle 140px at 35vw 50vh,
                black 0%, rgba(0,0,0,.85) 45%,
                rgba(0,0,0,.3) 70%, transparent 100%
            );
        }

        .stage-overlay {
            position: absolute;
            inset: 0;
            z-index: 3;
            pointer-events: none;
            background: linear-gradient(
                90deg,
                rgba(0,0,0,.05) 0%,
                rgba(0,0,0,.12) 35%,
                rgba(0,0,0,.75) 72%,
                rgba(0,0,0,.97) 100%
            );
        }

        .hero .cyber-grid {
            position: absolute;
            inset: 0;
            z-index: 4;
            pointer-events: none;
            background-image:
                linear-gradient(rgba(16,185,129,.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(16,185,129,.03) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: linear-gradient(to bottom, black, transparent 95%);
            -webkit-mask-image: linear-gradient(to bottom, black, transparent 95%);
        }

        .spotlight-halo {
            position: absolute;
            z-index: 8;
            width: 280px;
            height: 280px;
            transform: translate(-50%, -50%);
            border-radius: 9999px;
            border: 1px solid rgba(0,255,157,.5);
            box-shadow:
                0 0 20px rgba(0,255,157,.15),
                inset 0 0 30px rgba(0,255,157,.04);
            pointer-events: none;
        }

        .spotlight-halo::before {
            content: "";
            position: absolute;
            inset: 8px;
            border-radius: inherit;
            border: 1px solid rgba(0,255,157,.12);
            box-shadow: 0 0 40px rgba(0,255,157,.08);
        }

        .spotlight-halo::after {
            content: "";
            position: absolute;
            left: 50%; top: 50%;
            width: 6px; height: 6px;
            transform: translate(-50%, -50%);
            background: #00ff9d;
            border-radius: 50%;
            box-shadow: 0 0 10px #00ff9d, 0 0 25px #00ff9d;
        }

        /* Canvas سراسری: ذرات در کل صفحه شناورند تا
           در هاور کارت‌های پروژه به سمت‌شان جذب شوند */
        #particleCanvas {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 5;
            pointer-events: none;
        }

        /* ============================================================
           HEADER + NAV (base preserved, anchors wired to sections)
        ============================================================ */

        .header {
            position: absolute;
            top: 0; left: 0; right: 0;
            z-index: 30;
            padding: max(20px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 0;
            pointer-events: none;
        }

        .header-inner {
            width: min(1500px, 100%);
            margin: auto;
            padding: 0 clamp(16px, 3vw, 42px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            pointer-events: none;
        }

        .header-inner > * { pointer-events: auto; }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            color: white;
            text-decoration: none;
        }

        .logo-symbol {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: rgba(0,0,0,.8);
            border: 1px solid rgba(212,185,106,.45);
            box-shadow: 0 0 15px rgba(0,255,157,.2);
        }

        .logo-symbol svg {
            width: 24px;
            height: 24px;
            color: #d4b96a;
        }

        .logo-text {
            display: flex;
            align-items: baseline;
            gap: 8px;
            font-weight: 900;
            font-size: clamp(18px, 2vw, 25px);
        }

        .logo-text span:last-child {
            font-family: Syne, sans-serif;
            font-size: .65em;
            letter-spacing: .08em;
            opacity: .7;
        }

        .nav-capsule {
            display: flex;
            align-items: center;
            gap: 4px;
            padding: 6px;
            border-radius: 9999px;
            background: rgba(8,16,12,.85);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(212,185,106,.3);
        }

        .nav-link {
            position: relative;
            padding: 8px 16px;
            color: #cbd5e1;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            border-radius: 999px;
            transition: color .25s ease, background .25s ease;
        }

        .nav-link:hover, .nav-link.active {
            color: #fff;
            background: rgba(0,255,157,.06);
        }

        .nav-link.active::after {
            content: "";
            position: absolute;
            bottom: 2px;
            left: 50%;
            width: 18px;
            height: 2px;
            transform: translateX(-50%);
            background: #00ff9d;
            border-radius: 10px;
            box-shadow: 0 0 8px #00ff9d;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .glass-btn {
            width: 42px;
            height: 42px;
            display: grid;
            place-items: center;
            color: white;
            border-radius: 50%;
            background: rgba(0,0,0,.65);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid rgba(255,255,255,.15);
            cursor: pointer;
            transition: .25s ease;
        }

        .glass-btn:hover {
            border-color: rgba(212,185,106,.6);
            color: #e6d492;
            transform: translateY(-2px);
        }

        .portal-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 999px;
            background: rgba(212,185,106,.9);
            color: #0b0f0c;
            font-size: 13px;
            font-weight: 800;
            text-decoration: none;
            box-shadow: 0 0 20px rgba(212,185,106,.3);
            transition: .25s ease;
        }

        .portal-btn:hover {
            background: #f3e6b8;
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(212,185,106,.45);
        }

        /* آواتار هدر — در سایز کوچک، تصویر خودم در سمت چپ هدر نمایش داده می‌شود */
        .header-avatar {
            display: none; /* دسکتاپ: مخفی — آنجا لوگو و منو کافی است */
            width: 42px;
            height: 42px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            background: rgba(0,0,0,.6);
            border: 1px solid rgba(212,185,106,.5);
            box-shadow:
                0 0 15px rgba(0,255,157,.18),
                inset 0 0 12px rgba(0,0,0,.4);
            transition: .25s ease;
        }

        .header-avatar img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 22% 18%; /* فوکوس روی چهره */
            user-select: none;
            -webkit-user-drag: none;
        }

        .header-avatar:active {
            transform: scale(.94);
            border-color: rgba(0,255,157,.55);
        }

        /* ============================================================
           HERO CONTENT
        ============================================================ */

        .hero-content {
            position: relative;
            z-index: 20;
            width: min(1500px, 100%);
            min-height: 100dvh;
            margin: auto;
            padding: clamp(130px, 20vh, 220px) clamp(24px, 7vw, 110px) 120px;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            pointer-events: none;
        }

        .copy {
            width: min(650px, 100%);
            text-align: right;
            pointer-events: auto;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            padding: 7px 14px;
            border-radius: 999px;
            background: rgba(0,0,0,.85);
            border: 1px solid rgba(212,185,106,.45);
            color: #00ff9d;
            font-size: 12px;
            font-weight: 700;
            margin-bottom: 24px;
        }

        .badge-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: #00ff9d;
            box-shadow: 0 0 8px #00ff9d;
            animation: pulse 1.8s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: .45; transform: scale(.7); }
        }

        .headline {
            margin: 0;
            color: white;
            font-size: clamp(44px, 7vw, 105px);
            line-height: .95;
            font-weight: 900;
            letter-spacing: -.04em;
            text-shadow: 0 4px 20px rgba(0,0,0,.9), 0 0 45px rgba(0,255,157,.08);
        }

        .headline .accent {
            color: #d4b96a;
            text-shadow: 0 0 25px rgba(212,185,106,.4);
        }

        .subheadline {
            max-width: 620px;
            margin-top: 24px;
            color: #cbd5e1;
            font-size: clamp(16px, 2vw, 24px);
            line-height: 1.8;
            font-weight: 300;
            letter-spacing: .02em;
        }

        .hero-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-top: 32px;
        }

        /* Glass resume download buttons — دکمه‌های شیشه‌ای رزومه */
        .resume-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 22px;
            color: #fff;
            border-radius: 999px;
            background: linear-gradient(
                145deg,
                rgba(28,45,31,.55),
                rgba(10,18,12,.7)
            );
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            border: 1px solid rgba(212,185,106,.35);
            font-size: 13px;
            font-weight: 700;
            text-decoration: none;
            box-shadow: 0 8px 24px rgba(0,0,0,.4);
            transition: .3s ease;
        }

        .resume-btn:hover {
            border-color: rgba(212,185,106,.7);
            transform: translateY(-2px);
            box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 24px rgba(212,185,106,.15);
        }

        .resume-btn svg {
            width: 16px;
            height: 16px;
            color: #d4b96a;
        }

        .resume-btn.en { color: #00ff9d; border-color: rgba(0,255,157,.35); }
        .resume-btn.en svg { color: #00ff9d; }
        .resume-btn.en:hover { border-color: rgba(0,255,157,.6); }

        /* ============================================================
           FOOTER (hero)
        ============================================================ */

        .footer {
            position: absolute;
            bottom: 0; left: 0; right: 0;
            z-index: 30;
            padding: 0 clamp(16px, 4vw, 48px) max(20px, env(safe-area-inset-bottom));
            pointer-events: none;
        }

        .footer-inner {
            max-width: 1500px;
            margin: auto;
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            padding: 0 clamp(16px, 3vw, 42px);
        }

        .socials {
            display: flex;
            align-items: center;
            gap: 7px;
            justify-self: start;
            direction: ltr;
            pointer-events: auto;
        }

        .social {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            color: #94a3b8;
            background: rgba(0,0,0,.55);
            border: 1px solid rgba(255,255,255,.1);
            transition: .25s ease;
        }

        .social:hover {
            color: #00ff9d;
            border-color: rgba(0,255,157,.4);
        }

        .scroll-indicator {
            justify-self: center;
            width: 22px;
            height: 36px;
            border: 1px solid rgba(255,255,255,.35);
            border-radius: 999px;
            display: flex;
            justify-content: center;
            padding-top: 7px;
        }

        .scroll-wheel {
            width: 3px;
            height: 7px;
            border-radius: 999px;
            background: #00ff9d;
            box-shadow: 0 0 8px #00ff9d;
            animation: scrollWheel 2s infinite;
        }

        @keyframes scrollWheel {
            0% { opacity: 0; transform: translateY(0); }
            30% { opacity: 1; }
            70% { opacity: 1; }
            100% { opacity: 0; transform: translateY(12px); }
        }

        .status {
            justify-self: end;
            display: flex;
            align-items: center;
            gap: 7px;
            color: #94a3b8;
            font-family: monospace;
            font-size: 11px;
            pointer-events: auto;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #00ff9d;
            box-shadow: 0 0 8px #00ff9d;
        }
    

        /* ============================================================
           MOBILE DRAWER (base preserved)
        ============================================================ */

        .mobile-menu {
            position: fixed;
            top: 0; right: 0;
            width: min(360px, 88vw);
            height: 100dvh;
            z-index: 90;
            padding: 100px 28px 40px;
            background: rgba(4,10,7,.94);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-left: 1px solid rgba(212,185,106,.3);
            transform: translateX(100%);
            transition: transform .4s cubic-bezier(.22,1,.36,1);
        }

        .mobile-menu.open { transform: translateX(0); }

        .mobile-menu-links {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .mobile-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px;
            color: #cbd5e1;
            text-decoration: none;
            border-radius: 14px;
            font-size: 16px;
            font-weight: 600;
            transition: .25s ease;
        }

        .mobile-link:hover {
            color: #00ff9d;
            background: rgba(0,255,157,.06);
        }

        .mobile-close {
            position: absolute;
            top: 28px;
            left: 28px;
        }

        .menu-backdrop {
            position: fixed;
            inset: 0;
            z-index: 85;
            background: rgba(0,0,0,.6);
            opacity: 0;
            pointer-events: none;
            transition: .3s ease;
        }

        .menu-backdrop.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* ============================================================
           ABOUT SECTION
        ============================================================ */

        .about-grid {
            display: grid;
            grid-template-columns: 1.1fr .9fr;
            gap: clamp(24px, 4vw, 48px);
            align-items: stretch;
        }

        .about-card {
            border-radius: 24px;
            padding: clamp(24px, 3.5vw, 40px);
        }

        .about-lead {
            color: #e8f0ea;
            font-size: clamp(16px, 2vw, 20px);
            line-height: 2;
            font-weight: 500;
            margin: 0 0 16px;
        }

        .about-text {
            color: #9fb3a5;
            font-size: 15px;
            line-height: 2.1;
            font-weight: 300;
            margin: 0;
        }

        .stat-tiles {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 14px;
            height: 100%;
            align-content: stretch;
        }

        .stat-tile {
            border-radius: 20px;
            padding: 22px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 6px;
            transition: .3s ease;
        }

        .stat-tile:hover {
            transform: translateY(-4px);
            border-color: rgba(212,185,106,.5);
        }

        .stat-num {
            font-family: 'Syne', sans-serif;
            font-size: clamp(26px, 3vw, 38px);
            font-weight: 800;
            color: #00ff9d;
            text-shadow: 0 0 18px rgba(0,255,157,.35);
            direction: ltr;
            text-align: right;
        }

        .stat-label {
            color: #9fb3a5;
            font-size: 13px;
            font-weight: 500;
        }

        .stat-icon {
            width: 38px;
            height: 38px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: rgba(0,255,157,.07);
            border: 1px solid rgba(0,255,157,.25);
            color: #00ff9d;
            margin-bottom: 4px;
        }

        .stat-icon svg { width: 18px; height: 18px; }

        /* ============================================================
           SKILLS — TERMINAL UI (Ubuntu style + typing effect)
        ============================================================ */

        .terminal-window {
            border-radius: 14px;
            overflow: hidden;
            background: #1e1e1e;
            background: linear-gradient(180deg, rgba(38,64,42,.35), rgba(20,32,22,.55));
            background-color: #141d16;
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(212,185,106,.3);
            box-shadow:
                0 30px 80px rgba(0,0,0,.6),
                0 0 0 1px rgba(0,255,157,.04),
                0 0 60px rgba(0,255,157,.05);
            font-family: 'Vazirmatn', monospace;
        }

        .terminal-titlebar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 16px;
            background: linear-gradient(180deg, #2b2b2b, #262626);
            background: rgba(28,45,31,.85);
            border-bottom: 1px solid rgba(212,185,106,.2);
        }

        .terminal-dots {
            display: flex;
            gap: 8px;
            direction: ltr;
        }

        .terminal-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
        }

        .terminal-dot.red { background: #ff5f57; }
        .terminal-dot.yellow { background: #febc2e; }
        .terminal-dot.green { background: #28c840; }

        .terminal-title {
            flex: 1;
            text-align: center;
            color: #9fb3a5;
            font-size: 12px;
            font-weight: 500;
            font-family: 'Vazirmatn', monospace;
            opacity: .9;
        }

        .terminal-title-ltr {
            direction: ltr;
            font-family: monospace;
        }

        .terminal-body {
            padding: clamp(18px, 2.5vw, 28px);
            min-height: 380px;
            direction: ltr;
            text-align: left;
            font-family: 'Ubuntu Mono', 'Courier New', monospace;
            font-size: clamp(12.5px, 1.4vw, 14.5px);
            line-height: 1.75;
            color: #d8e4da;
        }

        .term-line { white-space: pre-wrap; word-break: break-word; }

        .term-prompt-user { color: #00ff9d; font-weight: 700; }
        .term-prompt-path { color: #7dd3fc; }
        .term-cmd { color: #e8f0ea; }
        .term-ok { color: #00ff9d; }

        .skill-group-title {
            color: #d4b96a;
            font-weight: 700;
            margin-top: 10px;
        }

        .skill-bars { direction: ltr; margin: 12px 0 20px; }

        .skill-row {
            display: grid;
            grid-template-columns: 170px 1fr 46px;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }

        .skill-name {
            color: #e8f0ea;
            font-size: 13px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .skill-track {
            height: 7px;
            border-radius: 99px;
            background: rgba(255,255,255,.07);
            overflow: hidden;
            border: 1px solid rgba(255,255,255,.05);
        }

        .skill-fill {
            height: 100%;
            width: 0;
            border-radius: 99px;
            background: linear-gradient(90deg, #26402a, #4E654C 60%, #00ff9d);
            box-shadow: 0 0 12px rgba(0,255,157,.45);
            transition: width 1.2s cubic-bezier(.22,1,.36,1);
        }

        .skill-pct {
            color: #00ff9d;
            font-size: 11.5px;
            text-align: right;
            opacity: 0;
            transition: opacity .6s ease;
        }

        .term-caret {
            display: inline-block;
            width: 9px;
            height: 17px;
            margin-left: 2px;
            vertical-align: -3px;
            background: #00ff9d;
            box-shadow: 0 0 8px rgba(0,255,157,.8);
            animation: caretBlink 1s steps(1) infinite;
        }

        @keyframes caretBlink {
            0%, 49% { opacity: 1; }
            50%, 100% { opacity: 0; }
        }

        .terminal-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 6px;
        }

        .term-tag {
            padding: 3px 10px;
            border-radius: 6px;
            border: 1px solid rgba(0,255,157,.3);
            background: rgba(0,255,157,.05);
            color: #00ff9d;
            font-size: 11.5px;
            font-weight: 600;
            opacity: 0;
            transform: translateY(4px);
            transition: .4s ease;
        }

        .term-tag.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* ============================================================
           TIMELINE — خط زمان نئونی
        ============================================================ */

        .timeline {
            position: relative;
            max-width: 860px;
            margin: auto;
            padding: 10px 0;
        }

        .timeline-line {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 19px;
            width: 2px;
            background: linear-gradient(
                180deg,
                rgba(0,255,157,.7),
                rgba(212,185,106,.6),
                rgba(0,255,157,.7)
            );
            box-shadow: 0 0 14px rgba(0,255,157,.45), 0 0 30px rgba(0,255,157,.15);
            border-radius: 99px;
        }

        .timeline-item {
            position: relative;
            padding: 0 56px 44px 0;
        }

        .timeline-item:last-child { padding-bottom: 6px; }

        .timeline-node {
            position: absolute;
            right: 11px;
            top: 6px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #0b120d;
            border: 2px solid #00ff9d;
            box-shadow: 0 0 12px rgba(0,255,157,.75), 0 0 30px rgba(0,255,157,.25);
            z-index: 2;
        }

        .timeline-node::after {
            content: "";
            position: absolute;
            inset: 4px;
            border-radius: 50%;
            background: #00ff9d;
            box-shadow: 0 0 8px #00ff9d;
        }

        .timeline-card {
            border-radius: 18px;
            padding: 20px 24px;
            transition: .35s ease;
        }

        .timeline-card:hover {
            transform: translateY(-4px);
            border-color: rgba(0,255,157,.45);
            box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(0,255,157,.07);
        }

        .timeline-date {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11.5px;
            font-weight: 700;
            color: #d4b96a;
            letter-spacing: .02em;
            margin-bottom: 8px;
        }

        .timeline-date svg { width: 13px; height: 13px; }

        .timeline-role {
            margin: 0 0 4px;
            color: #fff;
            font-size: clamp(17px, 2vw, 20px);
            font-weight: 800;
        }

        .timeline-org {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #00ff9d;
            font-size: 13.5px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .timeline-org svg { width: 14px; height: 14px; }

        .timeline-desc {
            margin: 0;
            color: #9fb3a5;
            font-size: 13.5px;
            line-height: 2;
            font-weight: 300;
        }

        .timeline-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
            margin-top: 12px;
        }

        .timeline-chip {
            padding: 3px 11px;
            border-radius: 99px;
            font-size: 11px;
            font-weight: 600;
            color: #cfe0d4;
            background: rgba(78,101,76,.25);
            border: 1px solid rgba(78,101,76,.5);
        }

        /* ============================================================
           PROJECTS — کارت‌های شیشه‌ای + جذب ذرات
        ============================================================ */

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .project-card {
            position: relative;
            border-radius: 22px;
            padding: 26px;
            overflow: hidden;
            transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease;
        }

        .project-card:hover {
            transform: translateY(-8px);
            border-color: rgba(0,255,157,.55);
            box-shadow:
                0 24px 60px rgba(0,0,0,.55),
                0 0 40px rgba(0,255,157,.12),
                inset 0 1px 0 rgba(243,230,184,.12);
        }

        .project-card .project-halo {
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            pointer-events: none;
            opacity: 0;
            background: radial-gradient(
                420px circle at var(--mx, 50%) var(--my, 50%),
                rgba(0,255,157,.09),
                transparent 55%
            );
            transition: opacity .35s ease;
        }

        .project-card:hover .project-halo { opacity: 1; }

        .project-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .project-icon {
            width: 46px;
            height: 46px;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(0,255,157,.06);
            border: 1px solid rgba(0,255,157,.3);
            color: #00ff9d;
            box-shadow: 0 0 18px rgba(0,255,157,.12);
        }

        .project-icon svg { width: 21px; height: 21px; }

        .project-visibility {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 4px 11px;
            border-radius: 99px;
            font-size: 10.5px;
            font-weight: 700;
            color: #9fb3a5;
            background: rgba(255,255,255,.04);
            border: 1px solid rgba(255,255,255,.1);
        }

        .project-visibility svg { width: 12px; height: 12px; }

        .project-name {
            margin: 0 0 4px;
            color: #fff;
            font-family: 'Syne', 'Vazirmatn', sans-serif;
            font-size: 21px;
            font-weight: 800;
            letter-spacing: .01em;
            direction: ltr;
            text-align: right;
        }

        .project-tagline {
            margin: 0 0 14px;
            color: #d4b96a;
            font-size: 12.5px;
            font-weight: 600;
        }

        .project-desc {
            margin: 0 0 18px;
            color: #9fb3a5;
            font-size: 13.5px;
            line-height: 2;
            font-weight: 300;
        }

        .project-stack {
            display: flex;
            flex-wrap: wrap;
            gap: 7px;
        }

        .project-stack span {
            direction: ltr;
            padding: 3px 11px;
            border-radius: 99px;
            font-size: 11px;
            font-weight: 600;
            font-family: monospace;
            color: #00ff9d;
            background: rgba(0,255,157,.05);
            border: 1px solid rgba(0,255,157,.22);
        }

        /* ============================================================
           STARTUPS — استارتاپ‌ها
        ============================================================ */

        .startups-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .startup-card {
            position: relative;
            border-radius: 24px;
            padding: 30px 26px;
            overflow: hidden;
            transition: transform .4s cubic-bezier(.22,1,.36,1), border-color .35s ease, box-shadow .35s ease;
        }

        .startup-card:hover {
            transform: translateY(-8px);
            border-color: rgba(212,185,106,.65);
            box-shadow:
                0 24px 60px rgba(0,0,0,.55),
                0 0 44px rgba(212,185,106,.1);
        }

        .startup-card::before {
            content: "";
            position: absolute;
            top: 0; right: 0; left: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(212,185,106,.7), transparent);
        }

        .startup-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }

        .startup-glyph {
            width: 52px;
            height: 52px;
            display: grid;
            place-items: center;
            border-radius: 16px;
            background: linear-gradient(145deg, rgba(212,185,106,.12), rgba(212,185,106,.03));
            border: 1px solid rgba(212,185,106,.4);
            color: #e6d492;
            box-shadow: 0 0 22px rgba(212,185,106,.1);
        }

        .startup-glyph svg { width: 24px; height: 24px; }

        .startup-stage {
            padding: 4px 12px;
            border-radius: 99px;
            font-size: 10.5px;
            font-weight: 800;
            letter-spacing: .03em;
            color: #00ff9d;
            background: rgba(0,255,157,.06);
            border: 1px solid rgba(0,255,157,.3);
        }

        .startup-name {
            margin: 0 0 4px;
            color: #fff;
            font-family: 'Syne', 'Vazirmatn', sans-serif;
            font-size: 24px;
            font-weight: 800;
            direction: ltr;
            text-align: right;
        }

        .startup-name-fa {
            color: #d4b96a;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 14px;
            display: block;
        }

        .startup-desc {
            margin: 0 0 18px;
            color: #9fb3a5;
            font-size: 13.5px;
            line-height: 2;
            font-weight: 300;
        }

        .startup-features {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .startup-features li {
            display: flex;
            align-items: center;
            gap: 9px;
            color: #cfe0d4;
            font-size: 12.5px;
            font-weight: 500;
            list-style: none;
        }

        .startup-features svg {
            width: 14px;
            height: 14px;
            color: #00ff9d;
            flex-shrink: 0;
        }

        /* ============================================================
           HOUShrai + PATENTS
        ============================================================ */

        .houshrai-grid {
            display: grid;
            grid-template-columns: 1.15fr .85fr;
            gap: 20px;
        }

        .houshrai-card {
            border-radius: 24px;
            padding: clamp(26px, 3.5vw, 38px);
            position: relative;
            overflow: hidden;
        }

        .houshrai-card::after {
            content: "";
            position: absolute;
            width: 300px;
            height: 300px;
            border-radius: 50%;
            top: -140px;
            left: -120px;
            background: radial-gradient(circle, rgba(0,255,157,.1), transparent 70%);
            pointer-events: none;
        }

        .houshrai-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 14px;
            border-radius: 99px;
            background: rgba(0,255,157,.07);
            border: 1px solid rgba(0,255,157,.35);
            color: #00ff9d;
            font-size: 11.5px;
            font-weight: 800;
            margin-bottom: 16px;
        }

        .houshrai-badge svg { width: 13px; height: 13px; }

        .houshrai-title {
            margin: 0 0 4px;
            color: #fff;
            font-family: 'Syne', 'Vazirmatn', sans-serif;
            font-size: clamp(24px, 3vw, 32px);
            font-weight: 800;
            direction: ltr;
            text-align: right;
        }

        .houshrai-sub {
            display: block;
            color: #d4b96a;
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 16px;
        }

        .houshrai-desc {
            margin: 0 0 22px;
            color: #9fb3a5;
            font-size: 14px;
            line-height: 2.1;
            font-weight: 300;
        }

        .houshrai-structure {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            direction: ltr;
        }

        .houshrai-node {
            border-radius: 16px;
            padding: 16px 14px;
            background: rgba(28,45,31,.5);
            border: 1px solid rgba(0,255,157,.22);
            text-align: center;
            transition: .3s ease;
        }

        .houshrai-node:hover {
            border-color: rgba(0,255,157,.5);
            transform: translateY(-3px);
        }

        .houshrai-node .hn-icon {
            width: 34px;
            height: 34px;
            margin: 0 auto 10px;
            display: grid;
            place-items: center;
            border-radius: 10px;
            background: rgba(0,255,157,.07);
            border: 1px solid rgba(0,255,157,.3);
            color: #00ff9d;
        }

        .houshrai-node .hn-icon svg { width: 16px; height: 16px; }

        .houshrai-node .hn-title {
            color: #fff;
            font-size: 13px;
            font-weight: 800;
            margin-bottom: 3px;
        }

        .houshrai-node .hn-desc {
            color: #9fb3a5;
            font-size: 10.5px;
            line-height: 1.7;
        }

        .houshrai-layers {
            display: flex;
            flex-direction: column;
            gap: 9px;
            margin-top: 18px;
            direction: rtl;
        }

        .houshrai-layer {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            border-radius: 12px;
            background: rgba(28,45,31,.4);
            border: 1px solid rgba(212,185,106,.16);
            color: #cfe0d4;
            font-size: 12px;
            font-weight: 500;
        }

        .houshrai-layer svg {
            width: 14px;
            height: 14px;
            color: #d4b96a;
            flex-shrink: 0;
        }

        .patents-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            height: 100%;
        }

        .patent-card {
            border-radius: 24px;
            padding: 28px;
            position: relative;
            overflow: hidden;
            transition: .35s ease;
        }

        .patent-card:hover {
            transform: translateY(-5px);
            border-color: rgba(212,185,106,.6);
        }

        .patent-ribbon {
            position: absolute;
            top: 18px;
            left: 18px;
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: linear-gradient(145deg, rgba(212,185,106,.15), rgba(212,185,106,.04));
            border: 1px solid rgba(212,185,106,.45);
            color: #e6d492;
        }

        .patent-ribbon svg { width: 19px; height: 19px; }

        .patent-kicker {
            color: #d4b96a;
            font-size: 11.5px;
            font-weight: 800;
            letter-spacing: .05em;
            margin-bottom: 8px;
        }

        .patent-title {
            margin: 0 0 10px;
            color: #fff;
            font-size: 17px;
            font-weight: 800;
            line-height: 1.7;
        }

        .patent-desc {
            margin: 0 0 16px;
            color: #9fb3a5;
            font-size: 13px;
            line-height: 2;
            font-weight: 300;
        }

        .patent-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #00ff9d;
            font-size: 11.5px;
            font-weight: 700;
            font-family: monospace;
        }

        .patent-meta svg { width: 13px; height: 13px; }

        /* ============================================================
           HONORS GALLERY — گالری افتخارات
        ============================================================ */

        .honors-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .honor-card {
            position: relative;
            border-radius: 20px;
            padding: 10px;
            cursor: pointer;
            overflow: hidden;
            transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease;
        }

        .honor-card:hover {
            transform: translateY(-6px);
            border-color: rgba(0,255,157,.5);
            box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 34px rgba(0,255,157,.09);
        }

        .honor-thumb {
            position: relative;
            border-radius: 13px;
            overflow: hidden;
            aspect-ratio: 16/11;
            background:
                radial-gradient(circle at 70% 20%, rgba(78,101,76,.4), transparent 60%),
                linear-gradient(150deg, #26402a 0%, #1C2D1F 55%, #0a120c 100%);
            display: grid;
            place-items: center;
        }

        .honor-thumb img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity .5s ease, transform .6s ease;
        }

        .honor-card.loaded .honor-thumb img { opacity: .92; }
        .honor-card:hover .honor-thumb img { transform: scale(1.05); }

        .honor-fallback {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
            padding: 20px;
            text-align: center;
        }

        .honor-fallback svg {
            width: 40px;
            height: 40px;
            color: #d4b96a;
            opacity: .9;
            filter: drop-shadow(0 0 14px rgba(212,185,106,.35));
        }

        .honor-fallback .hf-title {
            color: #fff;
            font-size: 15px;
            font-weight: 800;
        }

        .honor-fallback .hf-sub {
            color: #9fb3a5;
            font-size: 11.5px;
            font-weight: 400;
        }

        .honor-overlay {
            position: absolute;
            inset: auto 0 0 0;
            padding: 30px 16px 12px;
            background: linear-gradient(to top, rgba(6,12,8,.92), transparent);
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            gap: 10px;
        }

        .honor-overlay .ho-title {
            color: #fff;
            font-size: 13.5px;
            font-weight: 800;
            line-height: 1.7;
        }

        .honor-overlay .ho-org {
            color: #d4b96a;
            font-size: 11px;
            font-weight: 600;
        }

        .honor-zoom {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: rgba(0,255,157,.1);
            border: 1px solid rgba(0,255,157,.4);
            color: #00ff9d;
        }

        .honor-zoom svg { width: 15px; height: 15px; }

        /* Dual-profile poster card (Elecomp) — دو پروفایل دقیق و هم‌تراز */
        .honor-people {
            display: flex;
            align-items: stretch;
            justify-content: center;
            gap: 0;
            padding: 16px 12px;
        }

        .honor-person {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            width: 118px;
            height: 128px;
        }

        .honor-avatar {
            width: 62px;
            height: 62px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            background:
                linear-gradient(145deg, rgba(212,185,106,.25), rgba(0,255,157,.08));
            border: 1.5px solid rgba(212,185,106,.55);
            box-shadow: 0 0 18px rgba(212,185,106,.2);
            overflow: hidden;
        }

        .honor-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .honor-initials {
            color: #f3e6b8;
            font-weight: 800;
            font-size: 20px;
            font-family: 'Vazirmatn', sans-serif;
        }

        .honor-person .hp-name {
            color: #fff;
            font-size: 11.5px;
            font-weight: 700;
            text-align: center;
            line-height: 1.7;
        }

        .honor-person .hp-role {
            color: #00ff9d;
            font-size: 9.5px;
            font-weight: 600;
            text-align: center;
        }

        .honor-people-divider {
            align-self: stretch;
            display: flex;
            align-items: center;
            padding: 0 10px;
        }

        .honor-people-divider::before {
            content: "";
            display: block;
            width: 1px;
            height: 70%;
            background: linear-gradient(180deg, transparent, rgba(212,185,106,.6), transparent);
        }

        /* ============================================================
           MODAL — مودال شناور
        ============================================================ */

        .honor-modal {
            position: fixed;
            inset: 0;
            z-index: 100;
            display: grid;
            place-items: center;
            padding: 24px;
            opacity: 0;
            pointer-events: none;
            transition: opacity .3s ease;
        }

        .honor-modal.open {
            opacity: 1;
            pointer-events: auto;
        }

        /* پس‌زمینه بلور #1C2D1F */
        .honor-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(28,45,31,.72);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
        }

        .honor-modal-body {
            position: relative;
            z-index: 2;
            width: min(880px, 100%);
            max-height: 90dvh;
            border-radius: 22px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: translateY(16px) scale(.97);
            transition: transform .35s cubic-bezier(.22,1,.36,1);
            box-shadow:
                0 40px 120px rgba(0,0,0,.7),
                0 0 80px rgba(0,255,157,.06);
        }

        .honor-modal.open .honor-modal-body {
            transform: translateY(0) scale(1);
        }

        .honor-modal-media {
            flex: 1;
            min-height: 0;
            background:
                radial-gradient(circle at 70% 15%, rgba(78,101,76,.35), transparent 60%),
                linear-gradient(150deg, #26402a 0%, #1C2D1F 55%, #0a120c 100%);
            display: grid;
            place-items: center;
            overflow: auto;
            padding: 18px;
        }

        .honor-modal-media img {
            max-width: 100%;
            max-height: 100%;
            border-radius: 12px;
            border: 1px solid rgba(212,185,106,.25);
            box-shadow: 0 20px 60px rgba(0,0,0,.5);
        }

        .honor-modal-media .hmm-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
            color: #cfe0d4;
            text-align: center;
            padding: 30px;
        }

        .honor-modal-media .hmm-empty svg {
            width: 52px;
            height: 52px;
            color: #d4b96a;
        }

        .honor-modal-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 16px 22px;
            background: rgba(10,18,12,.75);
            border-top: 1px solid rgba(212,185,106,.22);
        }

        .honor-modal-caption {
            color: #fff;
            font-size: 14.5px;
            font-weight: 800;
        }

        .honor-modal-org {
            display: block;
            color: #d4b96a;
            font-size: 12px;
            font-weight: 600;
            margin-top: 2px;
        }

        .honor-modal-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-shrink: 0;
        }

        .modal-close-btn {
            width: 40px;
            height: 40px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            background: rgba(0,0,0,.4);
            border: 1px solid rgba(212,185,106,.35);
            color: #fff;
            cursor: pointer;
            transition: .25s ease;
        }

        .modal-close-btn:hover {
            color: #00ff9d;
            border-color: rgba(0,255,157,.5);
            transform: rotate(90deg);
        }

        /* ============================================================
           CONTACT — فرم خط فرمان (CLI)
        ============================================================ */

        .contact-grid {
            display: grid;
            grid-template-columns: 1.05fr .95fr;
            gap: clamp(24px, 4vw, 44px);
            align-items: start;
        }

        .cli-window {
            border-radius: 14px;
            overflow: hidden;
            background-color: #121a14;
            background: linear-gradient(180deg, rgba(38,64,42,.32), rgba(16,26,18,.6));
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(212,185,106,.3);
            box-shadow: 0 30px 80px rgba(0,0,0,.6);
        }

        .cli-titlebar {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 11px 16px;
            background: rgba(28,45,31,.85);
            border-bottom: 1px solid rgba(212,185,106,.2);
        }

        .cli-title {
            flex: 1;
            text-align: center;
            color: #9fb3a5;
            font-size: 12px;
            font-family: monospace;
            direction: ltr;
        }

        .cli-body {
            padding: clamp(20px, 3vw, 30px);
            direction: ltr;
            text-align: left;
            font-family: 'Ubuntu Mono', 'Courier New', monospace;
            font-size: 13.5px;
        }

        .cli-banner {
            color: #00ff9d;
            font-size: 11px;
            line-height: 1.8;
            opacity: .85;
            margin-bottom: 18px;
            white-space: pre;
            overflow-x: auto;
        }

        .cli-fields {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .cli-field {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: center;
            gap: 10px;
        }

        .cli-label {
            color: #00ff9d;
            font-weight: 700;
            white-space: nowrap;
            font-size: 13px;
        }

        .cli-label .opt { color: #7a8f80; font-weight: 400; }

        .cli-input {
            width: 100%;
            background: transparent;
            border: none;
            border-bottom: 1px dashed rgba(0,255,157,.3);
            outline: none;
            color: #e8f0ea;
            font-family: inherit;
            font-size: 13.5px;
            padding: 7px 4px;
            transition: border-color .25s ease, background .25s ease;
            caret-color: #00ff9d;
        }

        .cli-input:focus {
            border-bottom-color: #00ff9d;
            background: rgba(0,255,157,.04);
        }

        .cli-input::placeholder { color: #55685c; }

        textarea.cli-input {
            resize: vertical;
            min-height: 84px;
            line-height: 1.8;
            border: 1px dashed rgba(0,255,157,.25);
            border-radius: 8px;
            padding: 10px 12px;
            margin-top: 4px;
        }

        textarea.cli-input:focus {
            border: 1px solid rgba(0,255,157,.6);
        }

        .cli-submit {
            margin-top: 6px;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 11px 26px;
            border-radius: 9px;
            border: 1px solid rgba(0,255,157,.45);
            background: rgba(0,255,157,.07);
            color: #00ff9d;
            font-family: inherit;
            font-size: 13.5px;
            font-weight: 700;
            cursor: pointer;
            transition: .25s ease;
        }

        .cli-submit:hover {
            background: rgba(0,255,157,.16);
            box-shadow: 0 0 24px rgba(0,255,157,.25);
            transform: translateY(-2px);
        }

        .cli-submit svg { width: 15px; height: 15px; }

        .cli-output {
            margin-top: 16px;
            min-height: 22px;
            color: #d4b96a;
            font-size: 12.5px;
            line-height: 1.9;
        }

        .cli-output .ok { color: #00ff9d; }
        .cli-output .err { color: #ff6b6b; }

        .cli-note {
            margin-top: 14px;
            padding-top: 14px;
            border-top: 1px dashed rgba(0,255,157,.15);
            color: #55685c;
            font-size: 10.5px;
            line-height: 1.8;
            direction: rtl;
            text-align: right;
            font-family: 'Vazirmatn', monospace;
        }

        .contact-side { display: flex; flex-direction: column; gap: 14px; }

        .contact-channel {
            display: flex;
            align-items: center;
            gap: 14px;
            border-radius: 16px;
            padding: 16px 18px;
            text-decoration: none;
            transition: .3s ease;
        }

        .contact-channel:hover {
            transform: translateY(-3px);
            border-color: rgba(0,255,157,.45);
        }

        .contact-channel .cc-icon {
            width: 42px;
            height: 42px;
            flex-shrink: 0;
            display: grid;
            place-items: center;
            border-radius: 12px;
            background: rgba(0,255,157,.06);
            border: 1px solid rgba(0,255,157,.28);
            color: #00ff9d;
        }

        .contact-channel .cc-icon svg { width: 19px; height: 19px; }

        .contact-channel .cc-title {
            color: #fff;
            font-size: 14px;
            font-weight: 700;
        }

        .contact-channel .cc-sub {
            color: #9fb3a5;
            font-size: 12px;
            font-weight: 400;
            direction: ltr;
            text-align: right;
            font-family: monospace;
        }

        /* ============================================================
           MAIN FOOTER
        ============================================================ */

        .main-footer {
            position: relative;
            z-index: 20;
            border-top: 1px solid rgba(212,185,106,.14);
            background: linear-gradient(180deg, transparent, rgba(10,18,12,.8));
        }

        .main-footer-inner {
            width: min(1200px, 100%);
            margin: auto;
            padding: 34px clamp(20px, 5vw, 48px);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
        }

        .main-footer .mf-brand {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #fff;
            font-weight: 800;
            font-size: 15px;
        }

        .main-footer .mf-brand svg {
            width: 18px;
            height: 18px;
            color: #d4b96a;
        }

        .main-footer .mf-note {
            color: #7a8f80;
            font-size: 12px;
            font-weight: 300;
        }

        .main-footer .mf-links {
            display: flex;
            gap: 10px;
            direction: ltr;
        }

        .main-footer .mf-links a {
            width: 34px;
            height: 34px;
            display: grid;
            place-items: center;
            border-radius: 50%;
            color: #94a3b8;
            border: 1px solid rgba(255,255,255,.1);
            background: rgba(0,0,0,.4);
            transition: .25s ease;
        }

        .main-footer .mf-links a:hover {
            color: #00ff9d;
            border-color: rgba(0,255,157,.4);
        }

        .main-footer .mf-links svg { width: 15px; height: 15px; }

        /* Scroll reveal */
        .reveal {
            opacity: 0;
            transform: translateY(26px);
            transition: opacity .8s ease, transform .8s cubic-bezier(.22,1,.36,1);
        }

        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* ============================================================
           RESPONSIVE
        ============================================================ */

        @media (max-width: 1023px) {
            .nav-capsule { display: none; }
            .portal-btn { display: none; }
            .statue { object-position: 15% center; }
            .hero-content { padding-right: 6vw; padding-left: 6vw; }
            .headline { font-size: clamp(55px, 9vw, 78px); }
            .about-grid { grid-template-columns: 1fr; }
            .projects-grid { grid-template-columns: repeat(2, 1fr); }
            .startups-grid { grid-template-columns: repeat(2, 1fr); }
            .houshrai-grid { grid-template-columns: 1fr; }
            .patents-grid { grid-template-columns: repeat(2, 1fr); }
            .honors-grid { grid-template-columns: repeat(2, 1fr); }
            .contact-grid { grid-template-columns: 1fr; }
        }

        @media (max-width: 767px) {
            .hero { min-height: 650px; }
            .header { padding-top: max(16px, env(safe-area-inset-top)); }
            .logo-text span:last-child { display: none; }
            .logo-symbol { width: 38px; height: 38px; }
            .header-actions { gap: 6px; }
            .glass-btn { width: 38px; height: 38px; }

            /* نمایش آواتار در موبایل — گوشه‌ی چپ هدر */
            .header-avatar {
                display: block;
                width: 38px;
                height: 38px;
            }
            /* موبایل: نمایش گوشه‌ی تصویر (سمت راست عکس که خودم هستم)
               به‌جای وسط تصویر */
            .statue {
                object-position: 20% center;
                opacity: .82;
            }
            .stage-overlay {
                background: linear-gradient(
                    to bottom,
                    rgba(0,0,0,.15) 0%,
                    rgba(0,0,0,.2) 30%,
                    rgba(0,0,0,.65) 58%,
                    rgba(0,0,0,.98) 100%
                );
            }
            .hero-content {
                min-height: 100dvh;
                align-items: flex-end;
                padding: 120px 20px 115px;
            }
            .copy { width: 100%; text-align: center; }
            .badge { margin-bottom: 18px; }
            .headline { font-size: clamp(46px, 15vw, 72px); }
            .subheadline { margin: 18px auto 0; max-width: 430px; font-size: 16px; line-height: 1.8; }
            .hero-actions { justify-content: center; flex-wrap: wrap; margin-top: 25px; }
            .footer-inner { grid-template-columns: 1fr auto 1fr; }
            .social { width: 31px; height: 31px; }
            .status { font-size: 9px; }
            .spotlight-halo { opacity: .65; }

            .projects-grid { grid-template-columns: 1fr; }
            .startups-grid { grid-template-columns: 1fr; }
            .patents-grid { grid-template-columns: 1fr; }
            .honors-grid { grid-template-columns: 1fr; }
            .houshrai-structure { grid-template-columns: 1fr 1fr; }
            .stat-tiles { grid-template-columns: repeat(2, 1fr); }
            .skill-row { grid-template-columns: 110px 1fr 40px; }
            .timeline-item { padding: 0 44px 36px 0; }
            .timeline-line { right: 13px; }
            .timeline-node { right: 5px; }
            .timeline-card { padding: 16px 18px; }
            .honor-person { width: 104px; height: 128px; }
            .honor-avatar { width: 54px; height: 54px; }
            .main-footer-inner { flex-direction: column; text-align: center; }
        }

        @media (max-width: 430px) {
            .logo-text { font-size: 18px; }
            .headline { font-size: 45px; }
            .subheadline { font-size: 15px; }
            .resume-btn { font-size: 12px; padding: 10px 16px; }
            .status { display: none; }
            .footer-inner { grid-template-columns: 1fr auto 1fr; }
            .socials { gap: 3px; }
            .skill-row { grid-template-columns: 92px 1fr 38px; }
            .stat-tiles { grid-template-columns: 1fr 1fr; }
            .honor-people { flex-direction: row; }
            .honor-person { width: 96px; height: 128px; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .01ms !important;
            }
        }
    


/* ============================================================
   Contact form honeypot (bots fill it, humans never see it)
============================================================ */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}
