:root {
    --bg-void: #010105;
    --bg-surface: #060610;
    --bg-card: #0a0a16;
    --border-hairline: rgba(255, 255, 255, 0.04);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(0, 212, 255, 0.28);
    --accent: #00c8e8;
    --accent-secondary: #14b8a6;
    --accent-deep: #0078a0;
    --accent-glow: rgba(0, 200, 232, 0.16);
    --text-primary: #f2f2f7;
    --text-secondary: rgba(242, 242, 247, 0.68);
    --text-muted: rgba(242, 242, 247, 0.34);
    --glass: rgba(255, 255, 255, 0.022);
    --glass-border: rgba(255, 255, 255, 0.055);
    --font-heading: 'PeydaWeb', 'IRANSansX', system-ui, sans-serif;
    --font-body: 'IRANSansX', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --container: 72rem;
    --section-py: clamp(5rem, 10vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    background: var(--bg-void);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.85;
    letter-spacing: 0.01em;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

h1, h2, h3, h4, .heading {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

main { position: relative; z-index: 2; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.container--narrow { max-width: 48rem; }
.container--medium { max-width: 64rem; }

.section { padding-block: var(--section-py); position: relative; }

.section-label {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: rgba(0, 200, 232, 0.55);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: #fff;
    line-height: 1.2;
}

.section-header { text-align: center; margin-bottom: 3.5rem; }

.sec-accent {
    width: 40px;
    height: 2px;
    background: linear-gradient(270deg, var(--accent), var(--accent-secondary));
    border-radius: 1px;
    opacity: 0.45;
    margin: 1rem auto 0;
}

/* Ambient */
.bg-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black 20%, transparent 68%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 30%, black 20%, transparent 68%);
}

.bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 55% 18%, rgba(0, 190, 230, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 35% 50%, rgba(20, 184, 166, 0.025) 0%, transparent 50%);
}

.scroll-indicator {
    position: fixed;
    top: 0;
    right: 0;
    height: 2.5px;
    z-index: 100;
    background: linear-gradient(270deg, var(--accent), var(--accent-secondary), var(--accent));
    width: 0%;
    border-radius: 1px 0 0 1px;
    box-shadow: 0 0 12px rgba(0, 200, 232, 0.35);
}

.cursor-aura {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 232, 0.05) 0%, rgba(20, 184, 166, 0.02) 40%, transparent 72%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: left, top;
}

.cursor-aura.active { opacity: 1; }

/* Nav */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    isolation: isolate;
    transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(5, 5, 16, 0.82);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom-color: var(--border-hairline);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-block: 0.9rem;
}

.nav-primary {
    flex: 1 1 auto;
    min-width: 0;
}

@media (min-width: 640px) {
    .nav-inner {
        justify-content: center;
    }

    .nav-primary {
        width: 100%;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(0.75rem, 2vw, 1.75rem);
    }
}

.nav-links {
    display: none;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.35rem;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

/* Off-canvas mobile menu */
.nav-offcanvas {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    width: min(20rem, 88vw);
    max-width: 100%;
    height: 100dvh;
    height: 100svh;
    z-index: 90;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(165deg, rgba(0, 214, 246, 0.06) 0%, transparent 42%),
        linear-gradient(180deg, #080812 0%, #040408 100%);
    border-inline-start: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

html[dir="ltr"] .nav-offcanvas {
    inset-inline-end: auto;
    inset-inline-start: 0;
    box-shadow: 24px 0 80px rgba(0, 0, 0, 0.55);
    transform: translate3d(-100%, 0, 0);
}

.nav-offcanvas.is-open,
html[dir="ltr"] .nav-offcanvas.is-open,
html[dir="rtl"] .nav-offcanvas.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
}

@media (max-width: 639px) {
    .nav-offcanvas {
        width: 100%;
        max-width: 100%;
        border-inline-start: none;
        box-shadow: none;
    }

    html[dir="ltr"] .nav-offcanvas {
        box-shadow: none;
    }
}

.nav-offcanvas__head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: max(1.1rem, calc(0.65rem + env(safe-area-inset-top, 0px))) 1.25rem 1.1rem;
    border-bottom: 1px solid var(--border-hairline);
    flex-shrink: 0;
}

.nav-offcanvas__close {
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-offcanvas__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1rem;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
}

.nav-offcanvas__close span:first-child {
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-offcanvas__close span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-offcanvas__body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.85rem;
    -webkit-overflow-scrolling: touch;
}

.nav-offcanvas__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    width: 100%;
}

.nav-offcanvas__links li {
    width: 100%;
}

.nav-offcanvas__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    text-align: start;
}

.nav-offcanvas__item:hover,
.nav-offcanvas__item:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.nav-offcanvas__item--cta {
    margin-top: 0.35rem;
    color: #001014;
    background: linear-gradient(135deg, #b7fff4, #00d6f6);
    border-color: transparent;
    font-weight: 700;
    justify-content: center;
}

.nav-offcanvas__item--cta:hover {
    color: #001014;
    background: linear-gradient(135deg, #fff3cf, #65f4ff);
}

.nav-offcanvas__footer {
    flex-shrink: 0;
    padding: 1rem 1.25rem 1.35rem;
    border-top: 1px solid var(--border-hairline);
    background: rgba(0, 0, 0, 0.2);
}

.nav-offcanvas__lang-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.nav-offcanvas__footer .drawer-lang-row {
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 0;
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.nav-offcanvas__footer .drawer-lang-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    text-align: center;
    justify-content: center;
}

.nav-item {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}

.nav-item:hover { color: #fff; }

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    inset-inline-start: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.nav-item:hover::after { width: 100%; }

@media (min-width: 640px) {
    .nav-links { display: flex; }
    .nav-toggle { display: none; }
    .nav-offcanvas,
    .nav-backdrop { display: none !important; }
}

/* Splash */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(1, 1, 5, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: opacity 0.4s ease-out;
}

.splash-overlay.fade-out { opacity: 0; pointer-events: none; }
.splash-overlay.is-hidden { display: none; }

.splash-skip {
    position: absolute;
    top: 1.25rem;
    inset-inline-start: 1.25rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.splash-skip:hover,
.splash-skip:focus-visible {
    color: var(--text-secondary);
    border-color: var(--border-glow);
    outline: none;
}

.splash-card {
    text-align: center;
    padding: 2rem 2.5rem;
    max-width: min(480px, 90vw);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 200, 232, 0.06);
}

.splash-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.splash-eyebrow.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.splash-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.splash-name.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.splash-role {
    font-family: var(--font-body);
    font-size: clamp(0.82rem, 2.5vw, 0.95rem);
    color: var(--text-secondary);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.splash-role.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.splash-role--mobile { display: none; }

@media (max-width: 768px) {
    .splash-role--desktop { display: none; }
    .splash-role--mobile { display: block; }
}

.splash-progress {
    margin-top: 1.25rem;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.splash-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-deep), var(--accent));
    border-radius: 2px;
    animation: splashProgress 0.8s ease-out forwards;
}

@keyframes splashProgress {
    to { width: 100%; }
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 4.5rem;
    position: relative;
}

.hero-content {
    transform: translateY(0);
    transition: transform 0.7s cubic-bezier(0.2, 0.08, 0.2, 1);
}

.hero-content.is-visible {
    transform: translateY(0);
}

.hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.hero-text { text-align: start; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(0, 200, 232, 0.75);
    margin-bottom: 1rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 200, 232, 0.15);
    background: rgba(0, 200, 232, 0.04);
}

.hero-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.5);
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 6px rgba(40, 200, 64, 0.4); }
    50% { box-shadow: 0 0 16px rgba(40, 200, 64, 0.7); }
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.65rem;
    text-shadow: 0 0 55px rgba(0, 200, 232, 0.22), 0 0 120px rgba(0, 200, 232, 0.06);
}

.hero-role {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.5rem;
}

.hero-desc {
    font-size: clamp(0.9rem, 1.8vw, 1.02rem);
    color: rgba(255, 255, 255, 0.38);
    max-width: 32rem;
    margin-bottom: 1.25rem;
    line-height: 1.9;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    color: rgba(0, 212, 255, 0.75);
    background: rgba(0, 200, 232, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.12);
    direction: ltr;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem 2rem;
    margin-bottom: 1.75rem;
}

.metric-item { text-align: center; }

.metric-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 800;
    color: #fff;
    direction: ltr;
    font-feature-settings: 'tnum';
}

.metric-label {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.15rem;
}

.hero-proof {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 1.25rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--bg-void), transparent);
    pointer-events: none;
}

/* Portrait */
.hero-portrait-wrap {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-portrait-wrap { justify-content: flex-start; }
}

.portrait-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3/4;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(ellipse at 45% 30%, rgba(0, 180, 220, 0.06) 0%, transparent 60%), #040410;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 1px rgba(0, 200, 232, 0.06) inset,
        0 0 70px rgba(0, 180, 220, 0.05),
        0 30px 80px rgba(0, 0, 0, 0.6);
}

.portrait-frame::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) contrast(1.05);
    transition: filter 0.5s ease;
}

.portrait-frame:hover img {
    filter: grayscale(5%) contrast(1.08);
}

.portrait-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(1, 1, 5, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.portrait-glow-line {
    position: absolute;
    top: 18%;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    z-index: 3;
    pointer-events: none;
    animation: glowShift 4s ease-in-out infinite;
}

.portrait-glow-line.bottom {
    top: auto;
    bottom: 22%;
    opacity: 0.45;
    animation-delay: 1.5s;
}

@keyframes glowShift {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.6; }
}

.portrait-status {
    position: absolute;
    bottom: 12px;
    right: 12px;
    left: 12px;
    z-index: 4;
}

.sys-panel {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 9px 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 8px rgba(40, 200, 64, 0.5);
    animation: livePulse 2s ease-in-out infinite;
}

/* Cards */
.premium-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 1px;
    background: linear-gradient(270deg, rgba(0, 200, 232, 0.25), transparent);
    opacity: 0.6;
}

.premium-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    background: rgba(0, 190, 230, 0.015);
}

.premium-card.featured {
    border-color: rgba(0, 212, 255, 0.12);
    background: rgba(0, 190, 230, 0.012);
}

.premium-card__inner { position: relative; z-index: 1; padding: 1.5rem; }

@media (min-width: 640px) {
    .premium-card__inner { padding: 2rem; }
}

/* About */
.about-lead {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.25;
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.42);
    max-width: 36rem;
    margin-inline: auto;
    line-height: 1.95;
}

.value-grid {
    display: grid;
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .value-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card { text-align: center; padding: 1.25rem; }

.value-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto 0.65rem;
    color: var(--accent);
}

.value-card h4 {
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.value-card p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.75;
}

/* Projects */
.project-list { display: flex; flex-direction: column; gap: 1.5rem; }

.project-card { display: grid; gap: 1.25rem; }

@media (min-width: 768px) {
    .project-card { grid-template-columns: 280px 1fr; align-items: start; }
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    background: rgba(255, 255, 255, 0.015);
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(1, 1, 5, 0.65) 0%, transparent 50%);
    pointer-events: none;
}

.project-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-title {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: #fff;
    margin-bottom: 0.25rem;
}

.project-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

.project-badge {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.project-badge--cyan { color: #67e8f9; background: rgba(34, 211, 238, 0.08); }
.project-badge--blue { color: #93c5fd; background: rgba(96, 165, 250, 0.08); }
.project-badge--amber { color: #fcd34d; background: rgba(251, 191, 36, 0.08); }
.project-badge--green { color: #6ee7b7; background: rgba(52, 211, 153, 0.08); }

.project-visit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.project-visit:hover {
    color: #a5f3fc;
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.35);
}

.case-grid {
    display: grid;
    gap: 1rem;
    font-size: 0.9rem;
}

@media (min-width: 640px) {
    .case-grid { grid-template-columns: 1fr 1fr; }
}

.case-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.35rem;
}

.case-text { color: rgba(255, 255, 255, 0.58); line-height: 1.8; }

.case-result { color: rgba(110, 231, 183, 0.8); font-weight: 500; }

.case-tech {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    direction: ltr;
    text-align: left;
}

.case-expand {
    display: none;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    padding: 0;
}

@media (max-width: 639px) {
    .case-expand { display: inline-block; }
    .case-grid.is-collapsed .case-item:nth-child(n+3) { display: none; }
}

/* Expertise */
.exp-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .exp-grid { grid-template-columns: 1fr 1fr; }
}

.exp-block {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1.1rem;
    transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.exp-block:hover {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(0, 190, 230, 0.018);
    transform: translateY(-2px);
}

.exp-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
}

.exp-icon { width: 1.35rem; height: 1.35rem; color: var(--accent); flex-shrink: 0; }

.exp-block h3 { font-size: 1.05rem; color: #fff; }

.exp-block p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.85;
}

.exp-tech {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 0.75rem;
    direction: ltr;
    text-align: left;
}

.exp-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
    padding: 0;
}

.exp-tags li {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 9px;
    background: rgba(0, 200, 232, 0.07);
    border: 1px solid rgba(0, 200, 232, 0.18);
    border-radius: 20px;
    color: var(--accent);
}

/* Trust */
.trust-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.trust-metric { text-align: center; }

.trust-metric-inner {
    padding: 1.25rem 0.75rem;
}

.achievements-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .achievements-grid { grid-template-columns: repeat(2, 1fr); }
}

.achievement-item { display: block; }

.achievement-inner {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.1rem;
}

.achievement-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 232, 0.08);
    color: var(--accent);
    flex-shrink: 0;
}

.achievement-item h4 {
    font-size: 0.88rem;
    color: #fff;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.achievement-item p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.38);
    line-height: 1.75;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 40rem;
    margin-inline: auto;
    text-align: right;
}

.faq-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.15rem;
    cursor: pointer;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    padding: 0 1.15rem 1rem;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.85;
}

/* Contact */
.contact-section { padding-block: clamp(6rem, 12vw, 10rem); }

.contact-panel {
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(180deg, rgba(0, 200, 232, 0.03) 0%, var(--glass) 100%);
    backdrop-filter: blur(8px);
}

.contact-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.contact-desc {
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.75rem;
}

.copy-feedback {
    font-size: 0.75rem;
    color: rgba(110, 231, 183, 0.85);
    margin-top: -0.75rem;
    margin-bottom: 1rem;
}

.copy-feedback[hidden] { display: none; }

.contact-phone {
    font-family: var(--font-mono);
}

.contact-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

@media (min-width: 520px) {
    .contact-ctas {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-link-item:hover { color: rgba(255, 255, 255, 0.8); }

.contact-link-item svg { width: 1rem; height: 1rem; opacity: 0.7; }

.social-row {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.social-row a {
    color: rgba(255, 255, 255, 0.22);
    transition: color 0.25s ease;
}

.social-row a:hover { color: rgba(255, 255, 255, 0.7); }

.social-row svg { width: 1.25rem; height: 1.25rem; }

/* Buttons */
.btn-primary,
.btn-ghost,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.btn-primary {
    background: rgba(0, 200, 232, 0.1);
    border-color: rgba(0, 212, 255, 0.28);
    color: #d0eef6;
}

.btn-primary:hover {
    background: rgba(0, 200, 232, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 40px rgba(0, 200, 232, 0.15);
    transform: translateY(-2px);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.16);
    color: #d8d8e2;
    font-weight: 500;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.025);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(20, 184, 166, 0.08);
    border-color: rgba(20, 184, 166, 0.25);
    color: #a7f3d0;
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(20, 184, 166, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

.btn-sm { padding: 0.65rem 1.35rem; font-size: 0.82rem; }

.magnetic { display: inline-block; transition: transform 0.12s ease-out; }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.08, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.08, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }
.reveal-d4 { transition-delay: 0.24s; }

/* Footer */
.site-footer {
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.14);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.28);
    text-decoration: none;
}

.site-footer a:hover { color: rgba(255, 255, 255, 0.5); }

.footer-email { margin-top: 0.35rem; }

/* Utilities */
.text-center { text-align: center; }
.font-mono { font-family: var(--font-mono); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Reduced motion & mobile perf */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .splash-overlay { display: none !important; }
    .splash-progress-bar { animation: none; width: 100%; }
    .live-dot, .portrait-glow-line { animation: none; }
    .cursor-aura { display: none !important; }
}

@media (max-width: 768px) {
    .cursor-aura { display: none !important; }
    .magnetic { pointer-events: auto; }
    .portrait-frame { aspect-ratio: 4/3; max-height: 320px; }
    .tech-tags { justify-content: flex-start; }
}

@media (max-width: 480px) {
    .btn-primary, .btn-ghost, .btn-secondary { padding: 0.65rem 1.25rem; font-size: 0.78rem; }
    .portrait-frame { aspect-ratio: 1/1; max-height: 240px; }
    .trust-metrics { gap: 0.5rem; }
    .trust-metric { padding: 1rem 0.35rem; }
}

@media (min-width: 769px) {
  .no-desktop-magnetic .magnetic { transform: none !important; }
}

/* Premium Persian redesign */
:root {
    --bg-void: #020207;
    --bg-surface: #070711;
    --bg-card: #0b0b17;
    --accent: #00d6f6;
    --accent-secondary: #b7fff4;
    --accent-warm: #d6b77a;
    --accent-glow: rgba(0, 214, 246, 0.16);
    --text-primary: #f7f8ff;
    --text-secondary: rgba(247, 248, 255, 0.72);
    --text-muted: rgba(247, 248, 255, 0.42);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.075);
    --font-heading: 'PeydaWeb', 'IRANSansX', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    --font-body: 'IRANSansX', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

body {
    background:
        radial-gradient(circle at 76% 10%, rgba(0, 214, 246, 0.08), transparent 28rem),
        radial-gradient(circle at 12% 28%, rgba(214, 183, 122, 0.055), transparent 24rem),
        linear-gradient(180deg, #020207 0%, #03030a 45%, #010105 100%);
    color: var(--text-primary);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 78px 78px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.bg-grid {
    background-image:
        radial-gradient(circle at 70% 24%, rgba(0, 214, 246, 0.055), transparent 24rem),
        radial-gradient(circle at 22% 64%, rgba(20, 184, 166, 0.04), transparent 28rem);
    background-size: auto;
    mask-image: none;
    -webkit-mask-image: none;
}

.container { max-width: 76rem; }
.container--medium { max-width: 68rem; }

.section-label {
    font-family: var(--font-mono);
    letter-spacing: 0.08em;
    color: rgba(183, 255, 244, 0.62);
}

.section-title {
    max-width: 48rem;
    margin-inline: auto;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.22;
}

.section-intro {
    max-width: 42rem;
    margin: 1rem auto 0;
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.95;
}

.site-header.is-scrolled {
    background: rgba(3, 3, 12, 0.78);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.nav-item--cta {
    padding: 0.45rem 0.95rem;
    border: 1px solid rgba(0, 214, 246, 0.2);
    border-radius: 999px;
    background: rgba(0, 214, 246, 0.055);
    color: rgba(255, 255, 255, 0.88);
}

.nav-item--cta::after { display: none; }

.terminal-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(5, 5, 14, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.085);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.48),
        0 0 70px rgba(0, 214, 246, 0.08) inset;
}

.terminal-bar {
    display: flex;
    gap: 0.42rem;
    margin-bottom: 1.2rem;
    direction: ltr;
}

.terminal-bar span {
    width: 0.56rem;
    height: 0.56rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.terminal-bar span:nth-child(1) { background: rgba(255, 95, 86, 0.75); }
.terminal-bar span:nth-child(2) { background: rgba(255, 189, 46, 0.75); }
.terminal-bar span:nth-child(3) { background: rgba(39, 201, 63, 0.75); }

.terminal-line,
.hero-terminal p {
    font-family: var(--font-mono);
    direction: ltr;
    text-align: left;
}

.terminal-prompt { color: var(--accent); }

.terminal-muted {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.72rem;
}

.splash-card {
    width: min(92vw, 520px);
    text-align: right;
    padding: 1.4rem;
    border-radius: 22px;
}

.splash-name {
    font-size: clamp(2rem, 6vw, 3.4rem);
    letter-spacing: -0.045em;
}

.splash-role {
    color: rgba(255, 255, 255, 0.58);
}

.hero {
    min-height: 100svh;
    padding-top: 5.5rem;
}

.hero-grid {
    gap: clamp(2rem, 7vw, 5rem);
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    }
}

.hero-eyebrow {
    color: rgba(183, 255, 244, 0.86);
    border-color: rgba(183, 255, 244, 0.14);
    background: linear-gradient(90deg, rgba(0, 214, 246, 0.08), rgba(214, 183, 122, 0.035));
}

.hero-name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow:
        0 0 44px rgba(0, 214, 246, 0.26),
        0 22px 80px rgba(0, 0, 0, 0.55);
}

.hero-role {
    max-width: 42rem;
    font-size: clamp(1.05rem, 2.6vw, 1.55rem);
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.hero-desc {
    max-width: 41rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: clamp(1rem, 2vw, 1.18rem);
    margin-bottom: 0.7rem;
}

.hero-note {
    max-width: 39rem;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.95rem;
    line-height: 1.95;
    margin-bottom: 1.65rem;
}

.hero-ctas {
    margin-bottom: 1.65rem;
}

.hero-metrics {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
}

.metric-item {
    min-width: 8rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
}

.metric-value {
    font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.metric-label {
    color: rgba(255, 255, 255, 0.48);
}

.hero-portrait-wrap {
    position: relative;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .hero-portrait-wrap {
        align-items: flex-start;
        transform: translateY(1rem);
    }
}

.portrait-frame {
    width: min(100%, 360px);
    max-width: 360px;
    border-radius: 30px;
    border-color: rgba(255, 255, 255, 0.105);
    background:
        linear-gradient(135deg, rgba(0, 214, 246, 0.1), rgba(214, 183, 122, 0.06)),
        #060611;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.035) inset,
        0 36px 100px rgba(0, 0, 0, 0.68),
        0 0 110px rgba(0, 214, 246, 0.12);
}

.portrait-frame::before {
    inset: 12px;
    border-radius: 22px;
    border-color: rgba(255, 255, 255, 0.085);
}

.portrait-frame img {
    object-position: 50% 18%;
    filter: grayscale(82%) contrast(1.12) brightness(0.86);
    transform: scale(1.02);
}

.portrait-frame:hover img {
    filter: grayscale(35%) contrast(1.12) brightness(0.92);
}

.portrait-vignette {
    background:
        linear-gradient(to top, rgba(1, 1, 5, 0.64), transparent 40%),
        radial-gradient(ellipse at 50% 18%, transparent 38%, rgba(1, 1, 5, 0.5) 100%);
}

.portrait-glow-line {
    background: linear-gradient(90deg, transparent, rgba(214, 183, 122, 0.42), rgba(0, 214, 246, 0.34), transparent);
}

.sys-panel {
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    background: rgba(1, 1, 7, 0.54);
}

.hero-terminal {
    width: min(100%, 390px);
    padding: 1rem 1.1rem;
    border-radius: 18px;
}

.premium-card,
.exp-block,
.faq-item,
.contact-panel {
    border-color: rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(7, 7, 17, 0.64);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
}

.premium-card:hover,
.exp-block:hover {
    border-color: rgba(0, 214, 246, 0.24);
    background:
        linear-gradient(180deg, rgba(0, 214, 246, 0.045), rgba(255, 255, 255, 0.018)),
        rgba(7, 7, 17, 0.78);
}

.about-lead {
    font-size: clamp(1.75rem, 4.3vw, 3.15rem);
    line-height: 1.28;
}

.about-text {
    max-width: 43rem;
    color: rgba(255, 255, 255, 0.56);
}

.value-card {
    text-align: right;
}

.value-number,
.exp-index,
.achievement-mark,
.project-kicker {
    font-family: var(--font-mono);
    color: rgba(183, 255, 244, 0.58);
}

.value-number {
    display: block;
    margin-bottom: 1.1rem;
    font-size: 0.72rem;
}

.value-card h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.project-list {
    gap: 1.2rem;
}

.project-card {
    gap: 1.45rem;
}

@media (min-width: 768px) {
    .project-card {
        grid-template-columns: minmax(240px, 310px) 1fr;
    }
}

.project-thumb {
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 214, 246, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.018);
}

.project-thumb img {
    filter: saturate(0.86) contrast(1.08);
}

.project-kicker {
    font-size: 0.62rem;
    margin-bottom: 0.35rem;
    direction: rtl;
    text-align: right;
}

.project-title {
    font-size: clamp(1.18rem, 2.4vw, 1.55rem);
    line-height: 1.35;
}

.project-badge {
    border: 1px solid rgba(255, 255, 255, 0.075);
}

.case-grid {
    gap: 1.05rem 1.2rem;
}

.case-item {
    padding: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.052);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.018);
}

.case-label {
    font-family: var(--font-mono);
    color: rgba(214, 183, 122, 0.72);
}

.case-text {
    color: rgba(255, 255, 255, 0.64);
}

.case-result {
    color: rgba(183, 255, 244, 0.82);
}

.exp-grid {
    gap: 1rem;
}

.exp-block {
    position: relative;
    min-height: 15rem;
    padding: 1.45rem;
    overflow: hidden;
}

.exp-block::after {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    background: rgba(0, 214, 246, 0.055);
    filter: blur(24px);
    pointer-events: none;
}

.exp-index {
    display: block;
    margin-bottom: 2.4rem;
    font-size: 0.72rem;
}

.exp-block h3 {
    margin-bottom: 0.65rem;
    font-size: 1.18rem;
}

.trust-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-metric-inner {
    padding: 1.35rem 0.9rem;
}

.achievement-inner {
    align-items: flex-start;
}

.achievement-mark {
    display: inline-flex;
    min-width: 3.2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(183, 255, 244, 0.12);
    background: rgba(183, 255, 244, 0.045);
    font-size: 0.68rem;
    flex-shrink: 0;
}

.achievement-item h3 {
    font-size: 0.98rem;
    color: #fff;
    margin-bottom: 0.35rem;
}

.contact-panel {
    max-width: 46rem;
    padding: clamp(2rem, 6vw, 3.5rem);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 214, 246, 0.12), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
        rgba(7, 7, 17, 0.72);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.035) inset;
}

.contact-title {
    font-size: clamp(1.9rem, 4.6vw, 3.2rem);
    line-height: 1.24;
}

.contact-desc {
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.95;
}

.contact-links {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.contact-link-item {
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.018);
}

.contact-link-item--muted {
    color: rgba(255, 255, 255, 0.28);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    min-height: 2.9rem;
    font-weight: 700;
}

.btn-primary {
    color: #001014;
    background: linear-gradient(135deg, #b7fff4, #00d6f6);
    border-color: transparent;
    box-shadow: 0 16px 45px rgba(0, 214, 246, 0.18);
}

.btn-primary:hover {
    color: #001014;
    background: linear-gradient(135deg, #fff3cf, #65f4ff);
}

.btn-secondary {
    color: rgba(255, 255, 255, 0.88);
    background: rgba(214, 183, 122, 0.11);
    border-color: rgba(214, 183, 122, 0.28);
}

.btn-secondary:hover {
    background: rgba(214, 183, 122, 0.17);
    border-color: rgba(214, 183, 122, 0.42);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 768px) {
    :root { --section-py: clamp(4.25rem, 16vw, 6rem); }

    .hero {
        min-height: auto;
        padding-top: clamp(5rem, 12vw, 6.5rem);
    }

    .hero-text,
    .project-kicker {
        text-align: start;
    }

    .hero-name {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-metrics {
        justify-content: stretch;
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .metric-item {
        text-align: start;
    }

    .portrait-frame {
        aspect-ratio: 3/4;
        width: min(100%, 330px);
        max-width: 330px;
        max-height: none;
    }

    .tech-tags,
    .hero-ctas {
        justify-content: flex-start;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-ctas .btn-primary,
    .hero-ctas .btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .trust-metrics {
        grid-template-columns: 1fr;
    }

    .contact-ctas,
    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link-item,
    .contact-ctas a,
    .contact-ctas button {
        width: 100%;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .hero-metrics {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-portrait-wrap {
        order: 2;
    }

    .hero-text {
        order: 1;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2.4rem;
    }

    .premium-card__inner {
        padding: 1.15rem;
    }

    .case-item {
        padding: 0.85rem;
    }

    .portrait-frame {
        width: min(100%, 280px);
        max-width: 280px;
        aspect-ratio: 3/4;
        max-height: none;
    }

    .container {
        padding-inline: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portrait-frame img,
    .premium-card,
    .exp-block,
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════
   Services section
══════════════════════════════════════════════════════════ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.svc-card .premium-card__inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.svc-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: rgba(0, 200, 232, 0.45);
    font-weight: 500;
}

.svc-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
}

.svc-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.svc-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.svc-tags li {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 3px 9px;
    background: rgba(0, 200, 232, 0.07);
    border: 1px solid rgba(0, 200, 232, 0.18);
    border-radius: 20px;
    color: var(--accent);
}

.svc-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 2.5rem;
    max-width: 480px;
    margin-inline: auto;
}

.section-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-inline: auto;
    margin-top: 0.6rem;
    line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════
   Contact Form
══════════════════════════════════════════════════════════ */
.contact-form {
    display: grid;
    gap: 1.1rem;
    margin-block: 2rem 1.5rem;
    text-align: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.req-star { color: var(--accent); }

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 0.65rem 0.9rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    direction: inherit;
    text-align: start;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    color-scheme: dark;
    background-color: rgba(10, 10, 22, 0.95);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d6f6' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    padding-inline-start: 0.9rem;
    padding-inline-end: 2rem;
}

html[dir="ltr"] .form-group select {
    background-position: right 0.75rem center;
}

.form-group select option,
.form-group select optgroup {
    background-color: #0b0b17;
    color: #f2f2f7;
}

.form-group select option:checked,
.form-group select option:hover {
    background-color: #122a32;
    color: #b7fff4;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 200, 232, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-submit-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.cf-feedback {
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    line-height: 1.5;
    flex: 1;
}

.cf-feedback--ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.cf-feedback--err {
    background: rgba(255, 79, 79, 0.1);
    border: 1px solid rgba(255, 79, 79, 0.25);
    color: #f87171;
}

/* Contact divider */
.contact-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-block: 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.contact-divider::before,
.contact-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* ══════════════════════════════════════════════════════════
   Footer (enhanced)
══════════════════════════════════════════════════════════ */
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1.25rem 2rem;
    align-items: center;
}

.footer-tagline {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
    grid-column: 1;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: end;
}

.footer-nav a {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--accent); text-decoration: none; }

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    grid-column: 1 / -1;
}

.footer-contact a {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    transition: color 0.2s;
}

.footer-contact a:hover { color: var(--accent); text-decoration: none; }

.footer-copy {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-hairline);
    padding-top: 1rem;
}

@media (max-width: 639px) {
    .form-row { grid-template-columns: 1fr; }
    .form-submit-row { flex-direction: column; align-items: stretch; }
    .cf-feedback { text-align: center; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-nav { justify-content: flex-start; }
    .services-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   Language Switcher
══════════════════════════════════════════════════════════ */
.lang-switch {
    position: relative;
    list-style: none;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    white-space: nowrap;
}

.lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 200, 232, 0.06);
}

.lang-flag { font-size: 0.72rem; }

.lang-chevron {
    font-size: 0.55rem;
    opacity: 0.6;
    transition: transform 0.2s;
    display: inline-block;
}

.lang-switch.is-open .lang-chevron { transform: rotate(180deg); }
.lang-switch.is-open .lang-btn {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-list {
    position: absolute;
    top: calc(100% + 0.5rem);
    inset-inline-end: 0;
    inset-inline-start: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    list-style: none;
    min-width: 128px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[dir="ltr"] .lang-list {
    inset-inline-end: auto;
    inset-inline-start: 0;
}

.lang-switch.is-open .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-list li a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.lang-list li a:hover {
    background: rgba(0, 200, 232, 0.07);
    color: var(--accent);
}

.lang-list li[aria-selected="true"] a {
    color: var(--accent);
    font-weight: 600;
}

.lang-list li[aria-selected="true"] a::before {
    content: '✓';
    margin-inline-end: 0.5rem;
    font-size: 0.7rem;
}

/* Mobile drawer language row */
.drawer-lang-row {
    padding: 0.85rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
}

.drawer-lang-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}

.drawer-lang-btn.active,
.drawer-lang-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* ─── LTR / RTL polish ─────────────────────────────────── */
html[dir="ltr"] {
    --font-heading: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-body: system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html[dir="ltr"] .hero-desc,
html[dir="ltr"] .hero-note,
html[dir="ltr"] .section-intro,
html[dir="ltr"] .about-text {
    line-height: 1.7;
}

html[dir="ltr"] .hero-role {
    line-height: 1.5;
}

@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-portrait-wrap {
        margin-inline: auto;
    }
}

/* ─── Custom select dropdown ───────────────────────────── */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.custom-select__trigger {
    width: 100%;
    min-height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-align: start;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.custom-select__trigger:hover {
    border-color: rgba(0, 214, 246, 0.22);
}

.custom-select.is-open .custom-select__trigger,
.custom-select__trigger:focus-visible {
    outline: none;
    border-color: var(--accent);
    background: rgba(0, 214, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(0, 214, 246, 0.1);
}

.custom-select__value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__value.is-placeholder {
    color: var(--text-muted);
}

.custom-select__chevron {
    width: 0.65rem;
    height: 0.65rem;
    border-inline-end: 1.5px solid var(--accent);
    border-block-end: 1.5px solid var(--accent);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.is-open .custom-select__chevron {
    transform: rotate(-135deg) translateY(2px);
}

.custom-select__list {
    position: absolute;
    top: calc(100% + 0.4rem);
    inset-inline: 0;
    z-index: 40;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    background: #0b0b17;
    border: 1px solid rgba(0, 214, 246, 0.2);
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    max-height: min(16rem, 50vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.custom-select.is-open .custom-select__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select__option {
    padding: 0.6rem 0.75rem;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.custom-select__option:hover,
.custom-select__option.is-selected {
    background: rgba(0, 214, 246, 0.12);
    color: #b7fff4;
}

.custom-select__option.is-selected {
    font-weight: 600;
}

/* ─── Contact action buttons ───────────────────────────── */
.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-contact--tg {
    color: #001014;
    background: linear-gradient(135deg, #b7fff4, #00d6f6);
    box-shadow: 0 10px 28px rgba(0, 214, 246, 0.16);
}

.btn-contact--tg:hover {
    color: #001014;
    background: linear-gradient(135deg, #fff3cf, #65f4ff);
    transform: translateY(-1px);
}

.btn-contact--wa {
    color: #e8fff4;
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
}

.btn-contact--wa:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.55);
    color: #fff;
}

.btn-contact--phone {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.btn-contact--phone:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-form .form-submit-row {
    flex-direction: column;
    align-items: stretch;
}

.contact-form .form-submit-row .btn-primary {
    width: 100%;
    min-height: 3rem;
    border-radius: 10px;
    font-size: 0.92rem;
}

.contact-form .cf-feedback {
    width: 100%;
    text-align: center;
}

@media (max-width: 639px) {
    .contact-panel {
        padding: 1.35rem 1rem;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .contact-ctas {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .contact-link-item {
        justify-content: center;
        padding: 0.55rem 0.75rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-toggle {
        width: 2.65rem;
        height: 2.65rem;
    }
}
