/* Farhan Akhter — Premium Personal Brand Styles */

:root {
    --bg-primary: #050816;
    --bg-card: #0B1020;
    --color-primary: #6C63FF;
    --color-secondary: #00D4FF;
    --color-accent: #7C3AED;
    --text-primary: #FFFFFF;
    --text-secondary: #BFC8D6;
    --text-muted: #6B7280;
    --glass-bg: rgba(11, 16, 32, 0.72);
    --glass-border: rgba(108, 99, 255, 0.18);
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #7C3AED 50%, #00D4FF 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --section-padding: clamp(5rem, 12vh, 8rem);
    --header-height: 72px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body.luxury-dark {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--color-primary);
    color: var(--text-primary);
}

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

a { color: var(--color-secondary); text-decoration: none; transition: color 0.3s var(--transition-smooth); }
a:hover { color: var(--color-primary); }

.skip-link:focus {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: var(--radius-md);
}

/* GSAP safety — content visible until JS animates */
[data-aos] { opacity: 1 !important; transform: none !important; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding { padding: var(--section-padding) 0; }

/* Pull anchor targets slightly higher on scroll */
section[id] {
    scroll-margin-top: -2.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: transform 0.4s var(--transition-smooth), border-color 0.4s, box-shadow 0.4s;
}

.glass-card:hover {
    border-color: rgba(108, 99, 255, 0.35);
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.12);
}

body.luxury-dark.has-rail {
    padding-left: 72px;
}

@media (max-width: 991.98px) {
    body.luxury-dark.has-rail { padding-left: 0; }
}

/* Header / Rail Nav */
.site-header {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    width: 72px;
    pointer-events: none;
}

.hero-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 72px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 8, 22, 0.92);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.rail-logo {
    color: var(--text-primary);
    text-decoration: none;
}

.rail-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    transition: border-color 0.3s, color 0.3s;
}

.rail-logo:hover .rail-logo-mark {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.rail-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.rail-nav-link {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: capitalize;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s;
    pointer-events: auto;
}

.rail-nav-link:hover,
.rail-nav-link.active {
    color: var(--color-secondary);
}

.rail-footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.rail-footer a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    transition: color 0.3s;
}

.rail-footer a:hover { color: var(--color-secondary); }

.hero-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem 1.25rem;
    z-index: 1025;
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .hero-topbar {
        padding: 0.85rem 1rem;
        padding-top: max(0.85rem, env(safe-area-inset-top));
    }
}

@media (min-width: 992px) {
    .hero-topbar {
        left: 72px;
    }
}

.hero-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
}

.mobile-brand { color: var(--text-primary); pointer-events: auto; }

.lang-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, color 0.3s;
}

.lang-toggle:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.mobile-menu-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin-left: auto;
}

.site-offcanvas {
    background: var(--bg-card);
    border-left: 1px solid var(--glass-border);
}

.mobile-nav { display: flex; flex-direction: column; gap: 0.25rem; }

.mobile-nav-link {
    color: var(--text-secondary);
    padding: 0.75rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link:hover { color: var(--color-secondary); }

.mobile-langs-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.dropdown-menu-dark {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.dropdown-item { border-radius: 8px; font-size: 0.875rem; }
.dropdown-item.active, .dropdown-item:active { background: var(--color-primary); }

/* Hero Banner — Amara-inspired */
.hero-banner {
    position: relative;
    background: var(--bg-primary);
}

.hero-scroll-container {
    height: 100vh;
    height: 100dvh;
    position: relative;
}

.hero-sticky-panel {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse 55% 45% at 78% 42%, rgba(0, 229, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 40% 35% at 15% 80%, rgba(108, 99, 255, 0.06) 0%, transparent 50%),
        #0a0a0a;
}

.hero-banner-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-banner-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 2rem;
    }
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 5rem;
}

@media (min-width: 992px) {
    .hero-copy { padding-top: 0; padding-bottom: 0; }

    /* Laptop: above-line text + cyan box sizing */
    .hero-headline {
        font-size: 2.95em;
    }

    .hero-cyan-box {
        padding: 0 0.18em 0.08em;
        font-size: 0.95em;
    }
}

.hero-eyebrow {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: clamp(1.25rem, 3.5vh, 2rem);
}

.hero-headline {
    font-family: var(--font-sans);
    font-size: clamp(2.05rem, 5.2vw, 3.65rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--text-primary);
}

.hero-line {
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-line-1 {
    margin-bottom: 0.2em;
    overflow: hidden;
}

.hero-role-fixed {
    display: inline-block;
    white-space: nowrap;
    will-change: opacity, transform;
}

.hero-line-2 {
    align-items: center;
    overflow: visible;
}

.hero-cyan-box {
    display: inline-block;
    vertical-align: baseline;
    background: #00E5FF;
    color: #0a0a0a;
    padding: 0 0.3em 0.02em;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1;
    min-width: 1.2em;
}

.hero-typewriter {
    position: relative;
    display: inline-block;
    white-space: nowrap;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: -0.03em;
    line-height: 1.25;
    height: 1.25em;
    color: #0a0a0a;
}

.hero-typewriter-text {
    display: inline;
}

.hero-typewriter-cursor {
    display: inline-block;
    margin-left: 0.02em;
    font-weight: 600;
    color: #0a0a0a;
    animation: heroCursorBlink 0.85s steps(1, end) infinite;
}

.hero-role-sizer {
    position: absolute;
    left: -9999px;
    top: 0;
    display: inline-block;
    visibility: hidden;
    white-space: nowrap;
    font-weight: 600;
    font-family: var(--font-sans);
    letter-spacing: -0.03em;
    font-size: inherit;
    line-height: 1.25;
    pointer-events: none;
}

@keyframes heroCursorBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-typewriter-cursor { animation: none; }
}

.hero-line-rule {
    flex: 1;
    height: 1px;
    min-width: 40px;
    margin-left: 1rem;
    background: rgba(255, 255, 255, 0.35);
    transform-origin: left center;
}

.hero-tagline {
    max-width: 460px;
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.hero-cta-row {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 991.98px) {
    .hero-cta-row { margin-top: 1.5rem; }
}

.hero-cta-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.25rem;
    transition: color 0.3s, border-color 0.3s;
}

.hero-cta-link:hover {
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Hero interactive skills orbit — image-matched layout */
.hero-visual {
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 560px;
    perspective: 1100px;
}

@media (min-width: 992px) {
    .hero-visual { display: flex; }
}

.hero-orbit {
    --orbit-size: min(620px, 48vw);
    --orbit-radius: 34%;
    position: relative;
    width: var(--orbit-size);
    height: var(--orbit-size);
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-orbit-aura {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 32%, rgba(0, 229, 255, 0.2), transparent 40%),
        radial-gradient(circle at 68% 68%, rgba(168, 85, 247, 0.18), transparent 46%);
    filter: blur(12px);
    pointer-events: none;
    animation: orbitAuraPulse 8s ease-in-out infinite;
}

.hero-orbit-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px dotted rgba(0, 229, 255, 0.28);
}

.hero-orbit-ring.ring-outer {
    inset: 10%;
    border-color: rgba(0, 229, 255, 0.18);
}

.hero-orbit-ring.ring-mid {
    inset: 24%;
    border-style: dashed;
    border-color: rgba(168, 85, 247, 0.28);
}

.hero-orbit-ring.ring-inner {
    inset: 34%;
    border-color: rgba(0, 229, 255, 0.22);
}

.hero-orbit-particles {
    position: absolute;
    inset: 30%;
    border-radius: 50%;
    pointer-events: none;
    background:
        conic-gradient(from 0deg,
            rgba(0, 229, 255, 0) 0deg,
            rgba(0, 229, 255, 0.85) 40deg,
            rgba(168, 85, 247, 0.9) 80deg,
            rgba(0, 229, 255, 0) 120deg,
            rgba(168, 85, 247, 0.75) 200deg,
            rgba(0, 229, 255, 0.7) 260deg,
            rgba(0, 229, 255, 0) 360deg);
    mask-image: radial-gradient(circle, transparent 64%, #000 68%, #000 72%, transparent 76%);
    -webkit-mask-image: radial-gradient(circle, transparent 64%, #000 68%, #000 72%, transparent 76%);
    filter: blur(1.5px);
    opacity: 0.85;
    animation: orbitParticlesSpin 14s linear infinite;
}

.hero-orbit-core {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 36%;
    text-align: center;
    z-index: 5;
    pointer-events: none;
}

.hero-orbit-core-copy {
    transition: opacity 0.28s, transform 0.28s;
}

.hero-orbit.is-xp .hero-orbit-core-copy {
    opacity: 0;
    transform: scale(0.92);
}

.hero-orbit-name {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-sans);
    font-size: clamp(1.15rem, 2vw, 1.75rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00E5FF 0%, #38BDF8 22%, #3B82F6 48%, #6366F1 72%, #A855F7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-orbit-name span {
    display: block;
}

.hero-orbit-divider {
    display: block;
    width: 72%;
    max-width: 140px;
    height: 1px;
    margin: 0.7rem auto 0.65rem;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 229, 255, 0.15) 30%, #00E5FF 50%, rgba(168, 85, 247, 0.2) 70%, transparent 100%);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.55);
}

.hero-orbit-role {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(0.62rem, 0.95vw, 0.78rem);
    font-weight: 500;
    letter-spacing: 0.32em;
    line-height: 1.35;
    text-transform: uppercase;
    color: #FFFFFF;
}

.hero-orbit-role span {
    display: block;
}

.hero-orbit-xp {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.94);
    width: 36%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-orbit.is-xp .hero-orbit-xp {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hero-orbit-xp-years {
    font-size: clamp(1.9rem, 3.4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #22D3EE, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-orbit-xp-label {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.hero-orbit-xp-skill {
    margin-top: 0.4rem;
    font-size: clamp(0.8rem, 1.2vw, 0.98rem);
    font-weight: 700;
    color: #fff;
}

.hero-orbit-xp-detail {
    font-size: 0.65rem;
    color: rgba(191, 200, 214, 0.85);
    max-width: 20ch;
    line-height: 1.4;
}

.hero-orbit-wheel {
    position: absolute;
    inset: 0;
    animation: orbitSpin 55s linear infinite;
    transform-origin: center center;
}

.hero-orbit.is-paused .hero-orbit-wheel {
    animation-play-state: paused;
}

.hero-orbit-slot {
    --i: 0;
    --count: 8;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: rotate(calc(360deg / var(--count) * var(--i) - 90deg));
}

.hero-orbit-spoke {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--orbit-radius);
    height: 0;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    transform-origin: left center;
    pointer-events: none;
}

/* Shared skill card chrome */
.hero-orbit-node {
    --accent: #00E5FF;
    border: none;
    padding: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    z-index: 2;
}

.hero-orbit-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    text-align: center;
    width: 118px;
    pointer-events: none;
}

/* Desktop circular nodes only */
.hero-orbit-wheel .hero-orbit-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 118px;
    transform: translate(-50%, -50%) translateX(calc(var(--orbit-size) * 0.34)) rotate(calc(90deg - 360deg / var(--count) * var(--i)));
    animation: orbitCounter 55s linear infinite;
}

.hero-orbit.is-paused .hero-orbit-wheel .hero-orbit-node {
    animation-play-state: paused;
}

/* Mobile strip nodes — never absolute / never orbit animation */
.hero-orbit-node--strip {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    animation: none !important;
    width: 118px;
    flex: 0 0 auto;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0, 229, 255, 0.2);
}

.hero-orbit-node--strip .hero-orbit-card {
    width: 118px;
    padding: 0.55rem 0.4rem 0.65rem;
    border-radius: 14px;
    background: rgba(10, 14, 26, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0.35rem;
}

.hero-orbit-title {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    max-width: 12ch;
}

.hero-orbit-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(10, 14, 26, 0.96);
    border: 1.5px solid color-mix(in srgb, var(--accent) 75%, transparent);
    box-shadow:
        0 0 16px color-mix(in srgb, var(--accent) 35%, transparent),
        0 8px 22px rgba(0, 0, 0, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-orbit-brand {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
    pointer-events: none;
}

.hero-orbit-keywords {
    font-size: 0.52rem;
    line-height: 1.35;
    color: rgba(191, 200, 214, 0.78);
    max-width: 15ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-orbit-years {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.hero-orbit-node:hover .hero-orbit-badge,
.hero-orbit-node:focus-visible .hero-orbit-badge,
.hero-orbit-node.is-active .hero-orbit-badge {
    transform: scale(1.08);
    border-color: var(--accent);
    box-shadow:
        0 0 0 2px color-mix(in srgb, var(--accent) 65%, transparent),
        0 0 28px color-mix(in srgb, var(--accent) 55%, transparent),
        0 12px 28px rgba(0, 0, 0, 0.5);
}

.hero-orbit-node:hover,
.hero-orbit-node:focus-visible,
.hero-orbit-node.is-active {
    outline: none;
    z-index: 8;
}

.hero-orbit-node:hover .hero-orbit-title,
.hero-orbit-node.is-active .hero-orbit-title {
    color: var(--accent);
}

/* Desktop-only decorations + wheel; mobile-only strip */
.hero-orbit-aura,
.hero-orbit-ring,
.hero-orbit-particles,
.hero-orbit-wheel {
    display: none;
}

.hero-orbit-strip {
    display: block;
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
    padding: 0.35rem 0;
    touch-action: manipulation;
    z-index: 2;
}

.hero-orbit-strip::-webkit-scrollbar {
    display: none;
}

.hero-orbit-strip-track {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    width: max-content;
    padding: 0 1rem;
    transform: none;
    animation: none;
}

@media (min-width: 992px) {
    .hero-orbit-aura,
    .hero-orbit-ring,
    .hero-orbit-particles {
        display: block;
    }

    .hero-orbit-wheel {
        display: block;
    }

    .hero-orbit-strip {
        display: none !important;
    }
}

@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitCounter {
    from { transform: translate(-50%, -50%) translateX(calc(var(--orbit-size) * 0.34)) rotate(calc(90deg - 360deg / var(--count) * var(--i))) rotate(0deg); }
    to { transform: translate(-50%, -50%) translateX(calc(var(--orbit-size) * 0.34)) rotate(calc(90deg - 360deg / var(--count) * var(--i))) rotate(-360deg); }
}

@keyframes orbitParticlesSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitAuraPulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

@keyframes orbitRingPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.75; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* Scroll mouse indicator */
.hero-mouse-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    z-index: 3;
    transition: color 0.3s;
}

.hero-mouse-scroll:hover { color: var(--color-secondary); }

.hero-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero-mouse-wheel {
    width: 3px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    animation: mouseWheel 2s ease-in-out infinite;
}

.hero-mouse-label {
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@keyframes mouseWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
}

@media (max-width: 1199.98px) {
    .hero-orbit { --orbit-size: min(540px, 52vw); }
    .hero-orbit-node,
    .hero-orbit-card { width: 104px; }
    .hero-orbit-badge { width: 50px; height: 50px; }
    .hero-orbit-brand { width: 24px; height: 24px; }
}

@media (max-width: 991.98px) {
    .hero-scroll-container {
        height: auto;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .hero-sticky-panel {
        height: auto;
        min-height: 100svh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: visible;
        align-items: flex-start;
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    .hero-banner-grid {
        min-height: auto;
        padding-top: calc(5.75rem + env(safe-area-inset-top, 0px));
        padding-bottom: 1rem;
        gap: 1.25rem;
        align-items: start;
    }

    .hero-copy {
        padding-top: 0;
        padding-bottom: 0;
    }

    .hero-eyebrow {
        margin-top: 0.15rem;
    }

    .hero-line-rule { min-width: 24px; margin-left: 0.5rem; }
    .hero-cyan-box { padding: 0 0.28em; max-width: 100%; }

    /* Mobile visual: name top → LTR skills → XP below */
    .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        min-height: 0;
        margin-top: 0.5rem;
        margin-bottom: 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow: visible;
        perspective: none;
    }

    .hero-orbit {
        --orbit-size: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        height: auto;
        max-width: 100%;
        transform: none !important;
        transform-style: flat;
        will-change: auto;
        gap: 1rem;
    }

    .hero-orbit-core {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        z-index: 1;
        order: 1;
        pointer-events: none;
        text-align: center;
    }

    .hero-orbit.is-xp .hero-orbit-core-copy {
        opacity: 1;
        transform: none;
    }

    .hero-orbit-name {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35em;
        font-size: clamp(1.55rem, 7vw, 2.15rem);
        line-height: 1;
    }

    .hero-orbit-name span {
        display: inline;
    }

    .hero-orbit-divider {
        margin: 0.55rem auto 0.5rem;
        max-width: 160px;
    }

    .hero-orbit-role {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4em;
        padding: 0.45rem 1.1rem;
        border-radius: 999px;
        background: rgba(12, 16, 28, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 0.62rem;
        letter-spacing: 0.28em;
        line-height: 1.2;
    }

    .hero-orbit-role span {
        display: inline;
    }

    .hero-orbit-strip {
        order: 2;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }

    .hero-orbit-node--strip .hero-orbit-title {
        font-size: 0.55rem;
        order: 0;
    }

    .hero-orbit-node--strip .hero-orbit-badge {
        width: 48px;
        height: 48px;
        order: 1;
    }

    .hero-orbit-node--strip .hero-orbit-brand {
        width: 24px;
        height: 24px;
    }

    .hero-orbit-node--strip .hero-orbit-keywords {
        display: -webkit-box;
        font-size: 0.48rem;
        -webkit-line-clamp: 2;
        order: 2;
        max-width: 14ch;
    }

    .hero-orbit-node--strip .hero-orbit-years {
        font-size: 0.58rem;
        order: 3;
    }

    .hero-orbit-xp {
        order: 3;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "years skill"
            "label detail";
        column-gap: 1rem;
        row-gap: 0.15rem;
        align-items: center;
        justify-items: start;
        text-align: left;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        background: rgba(10, 14, 26, 0.72);
        border: 1px solid rgba(0, 229, 255, 0.12);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        margin: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.35s ease, visibility 0.3s;
    }

    .hero-orbit.is-xp .hero-orbit-xp {
        opacity: 1;
        visibility: visible;
        max-height: 140px;
        transform: none;
    }

    .hero-orbit-xp-years {
        grid-area: years;
        font-size: clamp(1.75rem, 8vw, 2.35rem);
        line-height: 1;
    }

    .hero-orbit-xp-label {
        grid-area: label;
        font-size: 0.55rem;
        letter-spacing: 0.16em;
        align-self: start;
    }

    .hero-orbit-xp-skill {
        grid-area: skill;
        margin-top: 0;
        font-size: 0.95rem;
        justify-self: start;
    }

    .hero-orbit-xp-detail {
        grid-area: detail;
        font-size: 0.68rem;
        max-width: none;
        justify-self: start;
    }

    .hero-mouse-scroll {
        bottom: max(1rem, env(safe-area-inset-bottom, 0px));
        z-index: 4;
    }
}

@media (max-width: 767.98px) {
    .hero-headline {
        font-size: clamp(1.65rem, 7.5vw, 2.35rem);
        line-height: 1.18;
    }

    .hero-eyebrow {
        letter-spacing: 0.18em;
        font-size: 0.72rem;
        margin-bottom: 1rem;
    }

    .hero-line-1 {
        flex-wrap: wrap;
        row-gap: 0.15em;
    }

    .hero-line-2 {
        flex-wrap: wrap;
        align-items: flex-start;
        margin-top: 0.15em;
    }

    .hero-role-fixed {
        white-space: normal;
    }

    .hero-line-rule {
        flex: 1 1 40px;
        min-width: 32px;
        margin-left: 0.65rem;
        align-self: center;
    }

    .hero-cyan-box {
        max-width: 100%;
        word-break: break-word;
    }

    .hero-typewriter {
        white-space: normal;
        height: auto;
        min-height: 1.2em;
        line-height: 1.2;
    }

    .hero-banner-grid {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: calc(5.5rem + env(safe-area-inset-top, 0px));
    }

    .hero-orbit-node--strip,
    .hero-orbit-node--strip .hero-orbit-card {
        width: 108px;
    }
}

@media (max-width: 575.98px) {
    .hero-headline {
        font-size: clamp(1.45rem, 8.2vw, 1.95rem);
    }

    .hero-eyebrow {
        letter-spacing: 0.12em;
        font-size: 0.65rem;
        max-width: calc(100% - 0.25rem);
    }

    .hero-line-rule {
        display: none;
    }

    .hero-banner-grid {
        padding-top: calc(5.25rem + env(safe-area-inset-top, 0px));
        gap: 1rem;
    }

    .hero-orbit {
        gap: 0.85rem;
    }

    .hero-orbit-name {
        font-size: clamp(1.35rem, 7.5vw, 1.85rem);
    }

    .hero-orbit-role {
        font-size: 0.55rem;
        letter-spacing: 0.2em;
        padding: 0.4rem 0.95rem;
    }

    .hero-orbit-node--strip,
    .hero-orbit-node--strip .hero-orbit-card {
        width: 100px;
    }

    .hero-orbit-node--strip .hero-orbit-badge {
        width: 44px;
        height: 44px;
    }

    .hero-orbit-node--strip .hero-orbit-brand {
        width: 22px;
        height: 22px;
    }

    .hero-mouse-label { display: none; }

    .hero-sticky-panel {
        padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .hero-visual {
        margin-bottom: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orbit-wheel,
    .hero-orbit-node,
    .hero-orbit-aura,
    .hero-orbit-particles,
    .hero-orbit-strip-track,
    .hero-mouse-wheel,
    .hero-typewriter-cursor { animation: none; }
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 0.75rem 1.75rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(108, 99, 255, 0.35);
    background: var(--gradient-primary);
}

.btn-glow { box-shadow: 0 8px 32px rgba(108, 99, 255, 0.25); }

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.btn-outline-light {
    border-radius: var(--radius-md);
    font-weight: 600;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #fff;
}

/* About */
.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-text { color: var(--text-secondary); margin-bottom: 1rem; }

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.stat-card { text-align: center; padding: 1.75rem 1rem; }

.stat-number, .achievement-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-plus, .achievement-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.stat-label, .achievement-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Timeline */
.section-experience { background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(11, 16, 32, 0.5) 50%, var(--bg-primary) 100%); }

.timeline-wrapper { position: relative; max-width: 900px; margin: 0 auto; padding: 2rem 0; }

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--color-primary), var(--color-secondary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 2rem 3rem;
}

.timeline-left { left: 0; text-align: right; padding-right: 3rem; }
.timeline-right { left: 50%; padding-left: 3rem; }

.timeline-dot {
    position: absolute;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
    z-index: 2;
}

.timeline-left .timeline-dot { right: -8px; }
.timeline-right .timeline-dot { left: -8px; }

.timeline-meta { margin-bottom: 0.75rem; }

.timeline-company {
    display: block;
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 0.9375rem;
}

.timeline-date { font-size: 0.8125rem; color: var(--text-muted); }

.timeline-role { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }

.timeline-desc { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 1rem; }

.timeline-achievements { list-style: none; padding: 0; margin: 0; text-align: left; }

.timeline-left .timeline-achievements { text-align: right; }

.timeline-achievements li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.timeline-achievements li i { color: var(--color-primary); margin-right: 0.5rem; font-size: 0.75rem; }
.timeline-left .timeline-achievements li i { margin-right: 0; margin-left: 0.5rem; }

/* Leadership */
.leadership-card { padding: 2rem; }
.leadership-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(108, 99, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    color: var(--color-primary);
}
.leadership-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.leadership-desc { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }

/* Projects Showcase */
.section-projects { position: relative; }

.project-panel {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.project-panel-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
}

.project-panel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 8, 22, 0.95) 0%, rgba(5, 8, 22, 0.7) 100%);
}

.project-panel-content { position: relative; z-index: 2; }

.project-index {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    opacity: 0.08;
    display: block;
    margin-bottom: -1.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-tagline {
    font-size: 1.125rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 520px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.tech-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 50px;
    color: var(--text-primary);
}

.project-cta { border-radius: var(--radius-md); font-weight: 600; }
.project-cta-disabled { opacity: 0.6; pointer-events: none; }

.project-mockup {
    padding: 0;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto;
}

.mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
}

.mockup-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mockup-content {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.mockup-icon { font-size: 4rem; color: rgba(255, 255, 255, 0.3); }

/* Skills */
.skills-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skills-category-header i { color: var(--color-primary); font-size: 1.25rem; }
.skills-category-header h3 { font-size: 1.25rem; font-weight: 700; margin: 0; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.skill-card {
    padding: 1.25rem;
    text-align: center;
    cursor: default;
}

.skill-icon { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 0.75rem; }
.skill-name { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.75rem; }

.skill-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1.2s var(--transition-smooth);
}

/* Achievements */
.section-achievements { position: relative; overflow: hidden; }

.achievements-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
}

.achievement-card { padding: 2.5rem 1.5rem; }

/* Testimonials */
.testimonial-card { padding: 1.75rem; }

.testimonial-stars { color: #FBBF24; font-size: 0.875rem; margin-bottom: 1rem; }

.testimonial-quote {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.quote-icon { color: var(--color-primary); opacity: 0.4; margin-right: 0.5rem; font-size: 0.75rem; }

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.author-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

.testimonial-author strong { display: block; font-size: 0.9375rem; }
.testimonial-author span { font-size: 0.8125rem; color: var(--text-muted); }

/* Community */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.community-card { padding: 2rem; }

.community-icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--color-secondary);
    margin-bottom: 1.25rem;
}

.community-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 0.75rem; }
.community-card p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }

/* Contact */
.section-contact {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(11, 16, 32, 0.8) 100%);
}

.contact-subtitle { color: var(--text-secondary); font-size: 1.0625rem; line-height: 1.8; }

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    transition: color 0.3s;
}

.contact-info-item:hover { color: var(--color-secondary); }
.contact-info-item i { color: var(--color-primary); width: 20px; }

.contact-form { padding: 2.5rem; }

.contact-form .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    color: var(--text-primary);
}

.contact-form .form-control::placeholder { color: var(--text-muted); }

/* Footer */
.site-footer {
    position: relative;
    background: var(--bg-card);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: var(--gradient-primary);
    opacity: 0.5;
}

.footer-name { font-size: 1.25rem; font-weight: 700; margin: 0.5rem 0 0; }

.footer-tagline { color: var(--text-secondary); font-size: 0.9375rem; max-width: 280px; }

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9375rem; }
.footer-links a:hover { color: var(--color-secondary); }

.footer-langs { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.footer-lang-btn {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.footer-lang-btn:hover, .footer-lang-btn.active {
    background: rgba(108, 99, 255, 0.2);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-built { color: var(--text-muted); }

/* Responsive */
@media (max-width: 991.98px) {
    :root {
        --section-padding: clamp(3.5rem, 10vh, 5.5rem);
    }

    .timeline-line { left: 20px; }
    .timeline-item { width: 100%; left: 0 !important; padding-left: 3rem !important; padding-right: 0 !important; text-align: left !important; }
    .timeline-dot { left: 12px !important; right: auto !important; }
    .timeline-left .timeline-achievements { text-align: left; }
    .timeline-left .timeline-achievements li i { margin-right: 0.5rem; margin-left: 0; }
    .project-panel { min-height: auto; }
    .project-panel .row.min-vh-100 { min-height: auto !important; }
    .project-index { font-size: 3rem; }
    .project-title { font-size: clamp(1.65rem, 6vw, 2.5rem); }
    .project-desc { font-size: 1rem; }
    .glass-card { padding: 1.5rem; }
    .contact-form { padding: 1.5rem; }
    .section-subtitle { font-size: 1rem; padding: 0 0.5rem; }
    .community-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: clamp(3rem, 8vh, 4.5rem);
    }

    .about-stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1.25rem 0.75rem; }
    .section-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .about-lead { font-size: 1.1rem; }
    .leadership-card { padding: 1.5rem; }
    .achievement-card { padding: 1.75rem 1.25rem; }
    .testimonial-card { padding: 1.35rem; }
    .community-card { padding: 1.5rem; }
    .footer-social { flex-wrap: wrap; }
    .project-panel-content .py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .project-mockup { max-width: 100%; }
    .project-cta,
    .project-cta-disabled { width: auto; display: inline-flex; }
}

@media (max-width: 575.98px) {
    .about-stats-grid { grid-template-columns: 1fr; }
    .stat-number, .achievement-number { font-size: clamp(2rem, 10vw, 2.75rem); }
    .contact-info-item { font-size: 0.875rem; }
    .footer-bottom { text-align: center; }
    .footer-bottom .row > div { text-align: center !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
