/* ============================================
   @zonaryx — ELITE PORTFOLIO v2.0
   Engineered by aryan — Zero lag, Cinema grade
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
    --bg-primary: #06060b;
    --bg-secondary: #0b0b14;
    --bg-tertiary: #10101c;
    --bg-glass: rgba(12, 12, 20, 0.65);
    --bg-glass-light: rgba(255, 255, 255, 0.025);
    --bg-glass-hover: rgba(255, 255, 255, 0.05);

    --text-primary: #eeeef3;
    --text-secondary: #7e7e95;
    --text-muted: #44445a;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.35);
    --accent-subtle: rgba(99, 102, 241, 0.08);

    --nestly: #10b981;
    --nestly-glow: rgba(16, 185, 129, 0.3);
    --neetpulse: #f59e0b;
    --neetpulse-glow: rgba(245, 158, 11, 0.3);
    --hitshelf: #ec4899;
    --hitshelf-glow: rgba(236, 72, 153, 0.3);

    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(99, 102, 241, 0.25);

    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --section-pad: clamp(80px, 12vw, 160px);
    --container-max: 1340px;
    --container-pad: clamp(20px, 4vw, 48px);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Enable custom cursor only on capable devices */
@media (hover: hover) and (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, select { cursor: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ---------- CURSOR (GPU accelerated, zero lag) ---------- */
.cursor {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    top: -5px; left: -5px;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    will-change: transform;
    transition: width 0.2s, height 0.2s, top 0.2s, left 0.2s;
}

.cursor-ring {
    position: fixed;
    top: -22px; left: -22px;
    width: 44px; height: 44px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    will-change: transform;
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s, border-color 0.3s;
}

.cursor-trail {
    position: fixed;
    top: -3px; left: -3px;
    width: 6px; height: 6px;
    background: rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    will-change: transform;
    filter: blur(2px);
}

.cursor.hovering .cursor-dot {
    width: 20px; height: 20px;
    top: -10px; left: -10px;
    background: var(--accent);
}

.cursor.hovering .cursor-ring {
    width: 60px; height: 60px;
    top: -30px; left: -30px;
    border-color: var(--accent);
    opacity: 0.4;
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .cursor { display: none !important; }
}

/* ---------- PARTICLE CANVAS ---------- */
#particleCanvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* ---------- NOISE OVERLAY ---------- */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ---------- AMBIENT BLOBS ---------- */
.ambient-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0;
    animation: blob-appear 2s ease-out forwards;
}

.blob-1 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -15%; right: -10%;
    opacity: 0.07;
    animation: blob-float-1 25s ease-in-out infinite;
}

.blob-2 {
    width: 400px; height: 400px;
    background: var(--hitshelf);
    bottom: 10%; left: -8%;
    opacity: 0.05;
    animation: blob-float-2 30s ease-in-out infinite;
}

.blob-3 {
    width: 350px; height: 350px;
    background: var(--nestly);
    top: 40%; right: 20%;
    opacity: 0.04;
    animation: blob-float-3 20s ease-in-out infinite;
}

.blob-4 {
    width: 300px; height: 300px;
    background: var(--neetpulse);
    top: 60%; left: 30%;
    opacity: 0.03;
    animation: blob-float-1 35s ease-in-out infinite reverse;
}

@keyframes blob-appear { to { opacity: 1; } }
@keyframes blob-float-1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,-50px)} 66%{transform:translate(-20px,30px)} }
@keyframes blob-float-2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-40px,30px)} 66%{transform:translate(20px,-40px)} }
@keyframes blob-float-3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(50px,50px)} }

/* ---------- GRID LINES ---------- */
.grid-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    display: flex;
    justify-content: space-evenly;
    padding: 0 var(--container-pad);
}

.grid-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preloader-inner { text-align: center; position: relative; z-index: 2; }

.preloader-glitch {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    position: relative;
    animation: glitch-text 3s ease-in-out infinite;
}

.preloader-glitch::before,
.preloader-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.preloader-glitch::before {
    color: var(--accent);
    animation: glitch-1 2s infinite linear alternate-reverse;
    clip-path: inset(20% 0 40% 0);
}

.preloader-glitch::after {
    color: var(--hitshelf);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: inset(60% 0 10% 0);
}

@keyframes glitch-1 {
    0%{transform:translate(0)} 20%{transform:translate(-3px,2px)} 40%{transform:translate(3px,-1px)} 60%{transform:translate(-1px,2px)} 80%{transform:translate(2px,-2px)} 100%{transform:translate(0)}
}

@keyframes glitch-2 {
    0%{transform:translate(0)} 20%{transform:translate(2px,-2px)} 40%{transform:translate(-2px,1px)} 60%{transform:translate(1px,-1px)} 80%{transform:translate(-3px,2px)} 100%{transform:translate(0)}
}

.preloader-subtitle {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.1em;
    animation: blink-text 1s ease-in-out infinite;
}

@keyframes blink-text { 0%,100%{opacity:1} 50%{opacity:0.3} }

.preloader-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    justify-content: center;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--hitshelf));
    border-radius: 2px;
    box-shadow: 0 0 20px var(--accent-glow);
}

.preloader-percentage {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-light);
    letter-spacing: 0.05em;
    min-width: 36px;
    text-align: left;
}

.preloader-modules {
    margin-top: 20px;
    height: 20px;
    overflow: hidden;
}

.module-text {
    display: none;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.module-text.active { display: inline; }

.preloader-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.01) 2px,
        rgba(255,255,255,0.01) 4px
    );
    pointer-events: none;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    padding: 14px 0;
    background: rgba(6, 6, 11, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    position: relative;
}

.nav-logo-symbol {
    color: var(--accent);
    font-size: 0.75rem;
}

.nav-logo-pulse {
    position: absolute;
    right: -12px; top: 50%;
    transform: translateY(-50%);
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%,100%{box-shadow:0 0 0 0 var(--accent-glow); opacity:1}
    50%{box-shadow:0 0 0 8px transparent; opacity:0.6}
}

.nav-links { display: flex; gap: 36px; }

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    letter-spacing: 0.01em;
    transition: color 0.3s;
    padding: 4px 0;
}

.nav-link::before {
    content: attr(data-index);
    position: absolute;
    top: -12px; left: 0;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--accent);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.3s var(--ease-out);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::before { opacity: 1; transform: translateY(0); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out);
}

.nav-link:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.status-dot {
    width: 6px; height: 6px;
    background: var(--nestly);
    border-radius: 50%;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%,100%{box-shadow:0 0 0 0 rgba(16,185,129,0.4)} 50%{box-shadow:0 0 0 6px transparent}
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    z-index: 1001;
}

.nav-menu-btn span {
    width: 24px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}

.nav-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out);
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 11, 0.96);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu-inner { text-align: center; position: relative; z-index: 2; }

.mobile-menu-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    padding: 10px 0;
    letter-spacing: -0.02em;
    transition: color 0.3s, transform 0.3s;
    transform: translateY(40px);
    opacity: 0;
}

.mobile-menu.active .mobile-menu-link {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.mobile-menu.active .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-menu-link:hover { color: var(--accent); }

.mobile-menu-link::before {
    content: attr(data-index);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-right: 12px;
    vertical-align: super;
}

.mobile-menu-footer {
    margin-top: 48px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s var(--ease-out) 0.35s;
}

.mobile-menu.active .mobile-menu-footer { opacity: 1; transform: translateY(0); }

.mobile-menu-line {
    width: 40px; height: 1px;
    background: var(--border-light);
    margin: 0 auto 16px;
}

.mobile-menu-footer p { font-size: 0.875rem; color: var(--text-muted); }
.mobile-menu-sub { font-size: 0.75rem !important; margin-top: 4px; }

/* ---------- HERO SECTION ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-elements { position: absolute; inset: 0; pointer-events: none; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.hero-orb-1 {
    width: 600px; height: 600px;
    background: var(--accent);
    top: -200px; right: -100px;
    opacity: 0.12;
}

.hero-orb-2 {
    width: 400px; height: 400px;
    background: var(--hitshelf);
    bottom: -100px; left: -100px;
    opacity: 0.08;
}

.hero-orb-3 {
    width: 300px; height: 300px;
    background: var(--nestly);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

.hero-radial-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 0%, var(--bg-primary) 70%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

.hero-content { position: relative; z-index: 2; }

.hero-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-tag-line { width: 36px; height: 1px; background: var(--accent); }

.hero-tag-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-tag-blink {
    color: var(--accent);
    animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 56px;
}

.hero-title-line { display: block; overflow: hidden; }

.hero-title-word {
    display: inline-block;
    font-size: clamp(3.2rem, 9vw, 7.5rem);
    margin-right: 0.2em;
}

.hero-title-accent {
    color: var(--accent);
    position: relative;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 0.05em; left: 0;
    width: 100%; height: 0.06em;
    background: var(--accent);
    opacity: 0.3;
    border-radius: 4px;
}

.hero-title-period { color: var(--accent); }

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 60px;
}

.hero-description { max-width: 440px; }

.hero-description p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.hero-stats { display: flex; gap: 44px; }

.hero-stat { text-align: center; }

.hero-stat-number {
    display: inline;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.hero-stat-plus, .hero-stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 6px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-scroll-mouse {
    width: 22px; height: 34px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    position: relative;
}

.hero-scroll-wheel {
    width: 3px; height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%{transform:translateX(-50%) translateY(0); opacity:1}
    100%{transform:translateX(-50%) translateY(12px); opacity:0}
}

.hero-scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Floating code snippets */
.hero-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-code {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    opacity: 0.15;
    white-space: nowrap;
}

.floating-code-1 { top: 20%; right: 8%; animation: float-drift 8s ease-in-out infinite; }
.floating-code-2 { bottom: 25%; left: 5%; animation: float-drift 10s ease-in-out infinite 2s; }
.floating-code-3 { top: 60%; right: 15%; animation: float-drift 12s ease-in-out infinite 4s; }

@keyframes float-drift {
    0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-15px) rotate(1deg)}
}

/* ---------- SECTIONS COMMON ---------- */
.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-bg-accent {
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.03;
    pointer-events: none;
}

.section-header { margin-bottom: 72px; }
.section-header-center { text-align: center; }

.section-index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 14px;
}

.section-title-wrapper { overflow: hidden; }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-title-line {
    display: block;
    font-size: clamp(2.25rem, 5.5vw, 4.5rem);
    line-height: 1.1;
}

.section-title-outline {
    -webkit-text-stroke: 1.5px var(--text-primary);
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-top: 18px;
    line-height: 1.7;
}

.section-header-center .section-subtitle { margin-left: auto; margin-right: auto; }

.section-header-line {
    width: 60px; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 20px;
}

.section-header-center .section-header-line { margin: 20px auto 0; }

/* ---------- GLASS ---------- */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.glass-card-pulse {
    position: absolute;
    top: 8px; right: 8px;
    width: 4px; height: 4px;
    background: var(--nestly);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}

.about-visual { position: relative; padding: 40px; }

.about-image-frame {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: visible;
}

.about-image-glass {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.about-image-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.about-avatar { position: relative; }

.about-avatar-inner {
    width: 140px; height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.about-avatar-letter {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.about-avatar-ring {
    position: absolute;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    animation: ring-spin 20s linear infinite;
}

.about-avatar-ring:nth-child(2) { inset: -20px; }
.about-avatar-ring-2 { inset: -40px !important; border-color: var(--border-subtle) !important; animation-direction: reverse !important; animation-duration: 30s !important; }
.about-avatar-ring-3 { inset: -60px !important; border-style: dashed !important; border-color: rgba(255,255,255,0.03) !important; animation-duration: 40s !important; }

@keyframes ring-spin { to { transform: rotate(360deg); } }

.about-image-scanline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scanline 5s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes scanline { 0%,100%{top:0} 50%{top:100%} }

.about-frame-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--accent-glow), transparent, var(--hitshelf-glow));
    z-index: -1;
    filter: blur(20px);
    opacity: 0.3;
}

.about-image-corner {
    position: absolute;
    width: 18px; height: 18px;
    border-color: var(--accent);
    border-style: solid;
    border-width: 0;
    z-index: 3;
}

.about-image-corner-tl { top:-2px; left:-2px; border-top-width:2px; border-left-width:2px; }
.about-image-corner-tr { top:-2px; right:-2px; border-top-width:2px; border-right-width:2px; }
.about-image-corner-bl { bottom:-2px; left:-2px; border-bottom-width:2px; border-left-width:2px; }
.about-image-corner-br { bottom:-2px; right:-2px; border-bottom-width:2px; border-right-width:2px; }

.about-floating-card { position: absolute; z-index: 5; }
.about-card-1 { top: 8%; right: -20px; animation: float-y 6s ease-in-out infinite; }
.about-card-2 { bottom: 18%; left: -16px; animation: float-y 6s ease-in-out infinite 2s; }
.about-card-3 { bottom: 5%; right: 10%; animation: float-y 6s ease-in-out infinite 4s; }

@keyframes float-y { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

.about-content { padding-top: 16px; }

.about-intro {
    padding: 28px 32px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}

.about-intro-accent {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--hitshelf));
    border-radius: 3px;
}

.about-intro-text {
    font-size: 1.1875rem;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 12px;
}

.about-intro-text strong { color: var(--text-primary); font-weight: 600; }
.about-intro-text em { color: var(--accent-light); font-style: normal; font-weight: 600; }

.about-details { display: grid; gap: 28px; margin-bottom: 36px; }

.about-detail-block { position: relative; padding-left: 44px; }

.about-detail-icon {
    position: absolute;
    left: 0; top: 2px;
    width: 28px; height: 28px;
    color: var(--accent);
}

.about-detail-icon svg { width: 100%; height: 100%; }

.about-detail-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 10px;
}

.about-detail-block p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tech-tag {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    padding: 6px 14px;
    background: var(--bg-glass-light);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.tech-tag:hover {
    background: var(--accent-subtle);
    border-color: var(--border-accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* ---------- EXPERTISE ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.expertise-card {
    padding: 36px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
}

.expertise-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-subtle), transparent 40%);
}

.expertise-card:hover .expertise-card-bg { opacity: 1; }

.expertise-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.expertise-card-glow {
    position: absolute;
    bottom: -50px; left: 50%;
    transform: translateX(-50%);
    width: 200px; height: 100px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
}

.expertise-card:hover .expertise-card-glow { opacity: 0.08; }

.expertise-card-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.expertise-card-icon {
    width: 44px; height: 44px;
    color: var(--accent);
    margin-bottom: 20px;
}

.expertise-card-icon svg { width: 100%; height: 100%; }

.expertise-card-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.expertise-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.expertise-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.expertise-card-tags span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    padding: 3px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expertise-card-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.5s var(--ease-out);
}

.expertise-card:hover .expertise-card-line { width: 100%; }

/* ---------- PORTFOLIO ---------- */
.project-showcase { margin-bottom: 100px; position: relative; }
.project-showcase:last-child { margin-bottom: 0; }

.project-showcase-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 36px;
}

.project-number-wrapper { display: flex; align-items: center; gap: 12px; }

.project-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
}

.project-number-line {
    width: 40px; height: 1px;
    background: var(--border-light);
}

.project-category {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.project-year {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.project-showcase-main {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}

.project-showcase-main.project-reverse { grid-template-columns: 1fr 1.1fr; }

.project-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin-top: 80px;
}

.project-mockup { position: relative; overflow: hidden; border-radius: var(--radius-xl); }

.project-screen-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0,0,0,0.35);
}

.screen-dots { display: flex; gap: 6px; }
.screen-dots span { width: 10px; height: 10px; border-radius: 50%; }
.screen-dots span:nth-child(1) { background: #ff5f57; }
.screen-dots span:nth-child(2) { background: #febc2e; }
.screen-dots span:nth-child(3) { background: #28c840; }

.screen-url {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    padding: 4px 14px;
    border-radius: 100px;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.screen-lock { font-size: 0.5rem; }

.project-screen-content { padding: 20px; min-height: 300px; }

.project-mockup-glow {
    position: absolute;
    width: 200px; height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.nestly-glow { background: var(--nestly); }
.neetpulse-glow { background: var(--neetpulse); }
.hitshelf-glow { background: var(--hitshelf); }

/* Mock UIs - Nestly */
.nestly-nav-mock { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.nestly-logo-mock { font-family:var(--font-display); font-size:1.125rem; font-weight:700; color:var(--nestly); }
.nestly-nav-items { display:flex; gap:10px; }
.nestly-nav-items span { width:36px; height:3px; background:var(--border-light); border-radius:2px; }
.nestly-content-mock { text-align:center; padding:16px 0; margin-bottom:20px; }
.nestly-tagline { font-family:var(--font-display); font-size:1.375rem; font-weight:700; margin-bottom:6px; }
.nestly-subtitle { font-size:0.75rem; color:var(--text-muted); margin-bottom:14px; }
.nestly-cta-mock { display:inline-block; padding:7px 20px; background:var(--nestly); color:#000; border-radius:100px; font-size:0.6875rem; font-weight:600; }
.nestly-products-mock { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.nestly-product-card { background:rgba(255,255,255,0.025); border-radius:var(--radius-sm); overflow:hidden; border:1px solid var(--border-subtle); transition:transform 0.3s; }
.nestly-product-card:hover { transform:translateY(-2px); }
.nestly-product-img { height:55px; background:linear-gradient(135deg,rgba(16,185,129,0.1),rgba(16,185,129,0.03)); display:flex; align-items:center; justify-content:center; font-size:1.25rem; }
.nestly-product-info { padding:8px; }
.nestly-product-name { display:block; font-size:0.5625rem; color:var(--text-secondary); margin-bottom:3px; }
.nestly-product-price { font-family:var(--font-mono); font-size:0.625rem; color:var(--nestly); font-weight:600; }

/* Mock UIs - NeetPulse */
.neetpulse-mock { display:flex; gap:14px; }
.neetpulse-sidebar { width:56px; background:rgba(255,255,255,0.025); border-radius:var(--radius-md); padding:14px 8px; display:flex; flex-direction:column; align-items:center; gap:14px; flex-shrink:0; }
.np-logo { font-family:var(--font-display); font-size:0.625rem; font-weight:700; color:var(--neetpulse); }
.np-menu-items { display:flex; flex-direction:column; gap:7px; }
.np-menu-item { width:30px; height:30px; border-radius:8px; background:var(--border-subtle); }
.np-menu-item.active { background:rgba(245,158,11,0.15); border:1px solid rgba(245,158,11,0.25); }
.neetpulse-main { flex:1; }
.np-header-mock { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; font-family:var(--font-display); font-size:0.875rem; font-weight:600; }
.np-avatar { width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,var(--neetpulse),rgba(245,158,11,0.5)); }
.np-stats-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px; }
.np-stat-card { background:rgba(255,255,255,0.025); border:1px solid var(--border-subtle); border-radius:var(--radius-sm); padding:10px; text-align:center; }
.np-stat-icon { font-size:0.875rem; margin-bottom:4px; }
.np-stat-value { font-family:var(--font-display); font-size:1rem; font-weight:700; color:var(--neetpulse); }
.np-stat-label { font-size:0.5625rem; color:var(--text-muted); }
.np-chart-mock { display:flex; align-items:flex-end; gap:5px; height:70px; background:rgba(255,255,255,0.015); border-radius:var(--radius-sm); padding:10px; }
.np-chart-bar { flex:1; background:linear-gradient(to top,var(--neetpulse),rgba(245,158,11,0.2)); border-radius:3px 3px 0 0; min-height:6px; height:var(--h); }

/* Mock UIs - Hitshelf */
.hitshelf-header-mock { display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.hs-logo { font-family:var(--font-display); font-size:1rem; font-weight:700; color:var(--hitshelf); }
.hs-tabs { display:flex; gap:8px; }
.hs-tab { font-size:0.5625rem; color:var(--text-muted); padding:3px 10px; border-radius:100px; }
.hs-tab.active { background:rgba(236,72,153,0.12); color:var(--hitshelf); border:1px solid rgba(236,72,153,0.2); }
.hs-featured { background:linear-gradient(135deg,rgba(236,72,153,0.06),rgba(236,72,153,0.02)); border:1px solid rgba(236,72,153,0.12); border-radius:var(--radius-md); padding:18px; margin-bottom:14px; }
.hs-featured-badge { font-family:var(--font-mono); font-size:0.5625rem; color:var(--hitshelf); text-transform:uppercase; letter-spacing:0.1em; margin-bottom:6px; }
.hs-featured-title { font-family:var(--font-display); font-size:1rem; font-weight:700; margin-bottom:6px; }
.hs-featured-meta { display:flex; gap:6px; font-size:0.625rem; color:var(--text-muted); }
.hs-grid-mock { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.hs-card-mock { background:rgba(255,255,255,0.025); border:1px solid var(--border-subtle); border-radius:var(--radius-sm); overflow:hidden; }
.hs-card-img { height:44px; background:linear-gradient(135deg,rgba(236,72,153,0.06),rgba(99,102,241,0.06)); }
.hs-card-body { padding:8px; }
.hs-card-title { width:75%; height:5px; background:var(--border-light); border-radius:3px; margin-bottom:6px; }
.hs-card-badge { font-family:var(--font-mono); font-size:0.5rem; color:var(--text-muted); background:var(--bg-glass-light); border-radius:4px; padding:2px 6px; display:inline-block; }

/* Project Info */
.project-info { padding-top: 4px; }

.project-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

[data-project="nestly"] .project-title { color: var(--nestly); }
[data-project="neetpulse"] .project-title { color: var(--neetpulse); }
[data-project="hitshelf"] .project-title { color: var(--hitshelf); }

.project-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.project-description strong { color: var(--text-primary); font-weight: 600; }

.project-features { margin-bottom: 24px; }

.project-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.project-feature-icon { color: var(--accent); font-size: 0.4375rem; }

.project-tech { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px; }

.project-metrics { display: flex; gap: 24px; }

.project-metric {
    flex: 1;
    position: relative;
    padding-top: 12px;
}

.project-metric-bar {
    position: absolute;
    top: 0; left: 0;
    height: 2px;
    width: var(--metric-width, 0%);
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.4;
}

.project-metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.project-metric-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.project-sub-brands { display: grid; gap: 12px; margin-bottom: 24px; }

.sub-brand { padding: 20px; }

.sub-brand-name {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.sub-brand-icon { color: var(--hitshelf); }

.sub-brand-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- CONTACT ---------- */
.contact-bg-glow {
    position: absolute;
    top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.04;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 56px;
    align-items: start;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    margin-bottom: 14px;
    transition: all 0.3s var(--ease-out);
}

.contact-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-glass-hover);
    transform: translateX(4px);
}

.contact-card-icon { width: 40px; height: 40px; flex-shrink: 0; color: var(--accent); }
.contact-card-icon svg { width: 100%; height: 100%; }

.contact-card-content h4 {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-card-content a, .contact-card-content p {
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: color 0.3s;
}

.contact-card-content a:hover { color: var(--accent-light); }

.contact-socials { display: flex; gap: 10px; margin-top: 20px; }

.social-link {
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.social-link svg { width: 18px; height: 18px; }

.social-link:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-subtle);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form { padding: 36px; position: relative; }

.form-status {
    margin-bottom: 16px;
    padding: 0;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    display: none;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.form-status.show {
    display: flex;
    padding: 14px 18px;
}

.form-status.success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: var(--nestly);
}

.form-status.error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
}

.form-status.fallback {
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.2);
    color: var(--neetpulse);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 10px 0;
    font-size: 0.9375rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s;
    appearance: none;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent); }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2344445a' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.form-select option { background: var(--bg-secondary); color: var(--text-primary); }

.form-textarea {
    resize: vertical;
    min-height: 100px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px;
    background: var(--bg-glass-light);
}

.form-textarea:focus { border-color: var(--accent); }

.form-input-line {
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transition: width 0.4s var(--ease-out);
}

.form-input:focus ~ .form-input-line { width: 100%; }

.form-input-glow {
    position: absolute;
    bottom: -1px; left: 0;
    width: 0; height: 8px;
    background: var(--accent);
    filter: blur(8px);
    opacity: 0;
    transition: all 0.4s var(--ease-out);
}

.form-input:focus ~ .form-input-glow { width: 100%; opacity: 0.15; }

.form-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border-radius: 100px;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    width: 100%;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.form-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.form-submit:hover::before { opacity: 1; }

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.form-submit-text, .form-submit-icon { position: relative; z-index: 2; }

.form-submit-icon svg {
    width: 16px; height: 16px;
    transition: transform 0.3s var(--ease-out);
}

.form-submit:hover .form-submit-icon svg { transform: translateX(4px); }

.form-submit-loader {
    display: none;
    gap: 4px;
    position: relative;
    z-index: 2;
}

.form-submit.loading .form-submit-text { display: none; }
.form-submit.loading .form-submit-icon { display: none; }
.form-submit.loading .form-submit-loader { display: flex; }

.loader-dot {
    width: 6px; height: 6px;
    background: white;
    border-radius: 50%;
    animation: loader-bounce 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.16s; }
.loader-dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes loader-bounce {
    0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)}
}

.form-fallback-note {
    margin-top: 14px;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.fallback-icon { font-size: 0.75rem; }

/* ---------- FOOTER ---------- */
.footer {
    padding: 56px 0 36px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    bottom: -100px; left: 50%;
    transform: translateX(-50%);
    width: 400px; height: 200px;
    background: var(--accent);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.04;
}

.footer-inner { text-align: center; position: relative; z-index: 2; }

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-tagline { font-size: 0.8125rem; color: var(--text-muted); margin-top: 6px; }

.footer-divider { width: 50px; height: 1px; background: var(--border-light); margin: 28px auto; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; }

.footer-copy { font-size: 0.75rem; color: var(--text-muted); }
.footer-copy strong { color: var(--accent-light); }

.footer-credit {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .about-visual { max-width: 380px; margin: 0 auto; }
    .expertise-grid { grid-template-columns: 1fr; }
    .project-showcase-main, .project-showcase-main.project-reverse { grid-template-columns: 1fr; gap: 36px; }
    .project-showcase-main.project-reverse .project-info { order: 2; }
    .project-showcase-main.project-reverse .project-visual { order: 1; }
    .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-status { display: none; }
    .nav-menu-btn { display: flex; }
    .hero { padding: 100px 0 60px; }
    .hero-bottom { flex-direction: column; align-items: flex-start; gap: 36px; }
    .hero-stats { gap: 28px; }
    .hero-scroll-indicator { display: none; }
    .hero-floating-elements { display: none; }
    .section-header { margin-bottom: 44px; }
    .expertise-card { padding: 24px; }
    .project-showcase { margin-bottom: 64px; }
    .project-metrics { gap: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .nestly-products-mock { grid-template-columns: repeat(2,1fr); }
    .nestly-products-mock .nestly-product-card:last-child { display: none; }
    .hs-grid-mock { grid-template-columns: repeat(2,1fr); }
    .hs-grid-mock .hs-card-mock:last-child { display: none; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat { text-align: left; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
    .hero-stat-label { margin-top: 0; }
    .project-metrics { flex-wrap: wrap; }
    .np-stats-row { grid-template-columns: repeat(2,1fr); }
    .np-stats-row .np-stat-card:last-child { display: none; }
}