/* ============================================================
   TMN — AI Developer Portfolio
   Design System: Neo-Noir Cyberpunk × Luxury Tech
   Fonts: Syne (display) · Outfit (body) · Fira Code (mono)
   Palette: #06060e base · #00f0ff cyan · #ff00aa magenta
   ============================================================ */

/* -------------------- CUSTOM PROPERTIES -------------------- */
:root {
    /* Backgrounds */
    --bg-primary:    #06060e;
    --bg-secondary:  #0b0b18;
    --bg-tertiary:   #10102a;
    --bg-card:       rgba(11, 11, 24, 0.65);

    /* Accents */
    --accent-cyan:    #00f0ff;
    --accent-magenta: #ff00aa;
    --accent-amber:   #f0a000;

    /* Text */
    --text-primary:   #e8eaf6;
    --text-secondary: #7b82a8;
    --text-muted:     #4a5078;

    /* Borders */
    --border-subtle:  rgba(0, 240, 255, 0.07);
    --border-hover:   rgba(0, 240, 255, 0.25);

    /* Glows */
    --glow-cyan:    0 0 40px rgba(0, 240, 255, 0.12);
    --glow-magenta: 0 0 40px rgba(255, 0, 170, 0.12);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    /* Layout */
    --container-max: 1200px;
    --section-pad: clamp(5rem, 12vh, 9rem);

    /* Z layers */
    --z-grain:     9000;
    --z-cursor:    8000;
    --z-preloader: 7000;
    --z-mobile-menu: 6000;
    --z-nav:       5000;
}

/* -------------------- RESET & BASE -------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.65;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: rgba(0, 240, 255, 0.25);
    color: #fff;
}

::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-cyan); border-radius: 3px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

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

/* -------------------- UTILITY -------------------- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -------------------- GRAIN OVERLAY -------------------- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-grain);
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
}
.grain-overlay::before {
    content: '';
    position: fixed;
    inset: -200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    animation: grainShift 0.4s steps(1) infinite;
}
@keyframes grainShift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-5%, -5%); }
    50%  { transform: translate(5%, 0); }
    75%  { transform: translate(-2%, 5%); }
    100% { transform: translate(0, 0); }
}

/* -------------------- CUSTOM CURSOR -------------------- */
.cursor-dot {
    position: fixed;
    top: -20px; left: -20px;
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
    box-shadow: 0 0 12px var(--accent-cyan);
}
.cursor-ring {
    position: fixed;
    top: -60px; left: -60px;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(0, 240, 255, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.35s var(--ease-out-expo),
                height 0.35s var(--ease-out-expo),
                border-color 0.25s;
}
.cursor-hover .cursor-dot {
    width: 14px; height: 14px;
    background: var(--accent-magenta);
    box-shadow: 0 0 20px var(--accent-magenta);
}
.cursor-hover .cursor-ring {
    width: 60px; height: 60px;
    border-color: rgba(255, 0, 170, 0.3);
}

/* -------------------- PRELOADER -------------------- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: var(--z-preloader);
    display: flex;
    align-items: center;
    justify-content: center;
}
.preloader-inner { text-align: center; }
.preloader-logo {
    font-family: 'Fira Code', monospace;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: 0.1em;
}
.pl-bracket { color: var(--accent-cyan); }
.pl-text    { color: var(--text-primary); }
.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
}
.preloader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 2px;
    transition: width 0.1s linear;
}
.preloader-counter {
    font-family: 'Fira Code', monospace;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}
.counter-symbol {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    vertical-align: super;
    margin-left: 0.15em;
}
.preloader-tagline {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.35em;
    margin-top: 2rem;
    text-transform: uppercase;
}

/* -------------------- NAVBAR -------------------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: var(--z-nav);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem clamp(1.5rem, 4vw, 3rem);
    transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
    overflow: hidden;
}
.navbar.scrolled {
    background: rgba(6, 6, 14, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
}
.nav-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    display: flex;
    gap: 0.1em;
    transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.7; }
.bracket { color: var(--accent-cyan); }
.logo-letters { color: var(--text-primary); }

.nav-links {
    display: flex;
    gap: 2.5rem;
}
.nav-links a {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.3s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent-cyan);
    transition: width 0.3s var(--ease-out-expo);
}
.nav-links a:hover {
    color: var(--accent-cyan);
}
.nav-links a:hover::after { width: 100%; }

.nav-scroll-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 1px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    transition: width 0.05s linear;
}

/* Mobile menu button */
.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    z-index: calc(var(--z-mobile-menu) + 1);
}
.nav-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-btn.active span:nth-child(2) { opacity: 0; }
.nav-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 14, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: var(--z-mobile-menu);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
.mobile-menu-links a {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s;
}
.mobile-menu-links a:hover { color: var(--accent-cyan); }

/* -------------------- HERO -------------------- */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-canvas canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom,
        transparent 0%,
        transparent 60%,
        var(--bg-primary) 100%
    );
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 clamp(2rem, 8vw, 8rem);
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.hero-content .hero-actions {
    justify-content: center;
}
.hero-content .hero-description {
    margin-left: auto;
    margin-right: auto;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
    opacity: 0;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease infinite;
    box-shadow: 0 0 8px var(--accent-cyan);
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2.8rem, 6.5vw, 5.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.title-line {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}
.title-line .reveal-text {
    display: block;
    transform: translateY(115%);
}

.hero-description {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.75;
    margin-bottom: 2.5rem;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.95rem 2rem;
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-radius: 4px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}
.btn-primary svg {
    transition: transform 0.3s var(--ease-out-expo);
}
.btn-primary:hover svg {
    transform: translate(3px, -3px);
}
.btn-ghost {
    display: inline-flex;
    align-items: center;
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    padding: 0.95rem 2rem;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-primary);
    border-radius: 4px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
}
.btn-ghost:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
}
.hero-scroll-indicator span {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-cyan), transparent);
    animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%      { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
}

/* Side text */
.hero-side-text {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
    z-index: 3;
    opacity: 0;
}
.hero-side-text span {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--text-muted);
    white-space: nowrap;
}

/* -------------------- ABOUT SECTION PORTRAIT BACKGROUND -------------------- */
.about-portrait-section {
    position: relative;
    overflow: hidden;
}
.about-portrait-bg {
    position: absolute;
    top: 0;
    right: -5%;
    width: clamp(500px, 55vw, 900px);
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.about-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: saturate(1.2) contrast(1.1) brightness(0.7);
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.4) 100%),
        linear-gradient(to top,   transparent 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,1) 40%),
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,1) 40%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 15%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0.4) 100%),
        linear-gradient(to top,   transparent 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,1) 40%),
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,1) 40%);
    mask-composite: intersect;
}
.about-portrait-section .container {
    position: relative;
    z-index: 2;
}

/* Scanline overlay on portrait */
.portrait-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 240, 255, 0.02) 2px,
        rgba(0, 240, 255, 0.02) 4px
    );
}
.portrait-scanline::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.12), transparent);
    animation: scanMove 4s linear infinite;
}
@keyframes scanMove {
    0%   { top: -8px; }
    100% { top: 100%; }
}

/* -------------------- SECTION HEADERS -------------------- */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}
.section-number {
    font-family: 'Fira Code', monospace;
    font-size: 0.82rem;
    color: var(--accent-cyan);
    opacity: 0.6;
}
.section-line {
    width: 50px;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.25;
}
.section-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    text-transform: uppercase;
}
.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

/* -------------------- ABOUT -------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 4rem;
    align-items: start;
}
.about-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    letter-spacing: -0.015em;
}
.about-paragraphs p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
}
.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    transition: all 0.5s var(--ease-out-expo);
}
.stat-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}
.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.1em;
    margin-bottom: 0.5rem;
}
.stat-number {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-cyan);
    line-height: 1;
}
.stat-suffix {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-magenta);
}
.stat-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* -------------------- MARQUEE -------------------- */
.marquee-section {
    padding: 1.75rem 0;
    overflow: hidden;
    background: var(--bg-secondary);
}
.marquee-track { width: max-content; }
.marquee-content {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    animation: marquee 35s linear infinite;
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.08);
    text-transform: uppercase;
    white-space: nowrap;
}
.marquee-sep {
    color: var(--accent-cyan);
    opacity: 0.2;
    font-size: 0.5rem;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* -------------------- EXPERTISE -------------------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2.25rem 2rem;
    transition: all 0.5s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    opacity: 0;
    transition: opacity 0.4s;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-cyan), 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(-4px);
}
.skill-icon {
    width: 44px;
    height: 44px;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}
.skill-icon svg {
    width: 100%;
    height: 100%;
}
.skill-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.skill-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.skill-tags span {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 100px;
    color: var(--accent-cyan);
    letter-spacing: 0.05em;
}

/* -------------------- PROJECTS -------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}
.project-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.06), 0 20px 60px rgba(0,0,0,0.35);
    transform: translateY(-4px);
}
.project-number {
    font-family: 'Syne', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(0, 240, 255, 0.03);
    position: absolute;
    top: -8px;
    right: 20px;
    pointer-events: none;
    transition: color 0.5s;
}
.project-card:hover .project-number {
    color: rgba(0, 240, 255, 0.07);
}
.project-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
    top: -125px;
    right: -125px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s;
}
.project-card:hover .project-glow { opacity: 1; }

.project-content { position: relative; z-index: 1; }
.project-content h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}
.project-type {
    display: inline-block;
    font-family: 'Fira Code', monospace;
    font-size: 0.72rem;
    color: var(--accent-magenta);
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.project-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.project-tech span {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 0, 170, 0.05);
    border: 1px solid rgba(255, 0, 170, 0.12);
    border-radius: 100px;
    color: var(--accent-magenta);
    letter-spacing: 0.04em;
}

/* -------------------- VISION -------------------- */
.vision-content {
    max-width: 760px;
}
.vision-quote {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
    border-left: 3px solid var(--accent-cyan);
    margin-bottom: 0.75rem;
}
.vision-author {
    font-family: 'Fira Code', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
}
.vision-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.vision-text em {
    color: var(--text-primary);
    font-style: italic;
}

/* -------------------- CONTACT -------------------- */
.contact-content {
    max-width: 700px;
}
.contact-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
}
.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 3rem;
}
.contact-links {
    display: flex;
    flex-direction: column;
}
.contact-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s var(--ease-out-expo);
}
.contact-link:first-child {
    border-top: 1px solid rgba(255,255,255,0.05);
}
.contact-link:hover {
    padding-left: 1rem;
}
.contact-link-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.contact-link-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.contact-link-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    transition: color 0.3s;
}
.contact-link:hover .contact-link-value {
    color: var(--accent-cyan);
}
.contact-link svg {
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}
.contact-link:hover svg {
    color: var(--accent-cyan);
    transform: translate(4px, -4px);
}

/* -------------------- FOOTER -------------------- */
.footer {
    padding: 3.5rem 0;
}
.footer-inner {
    text-align: center;
}
.footer-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.footer-copy {
    font-family: 'Fira Code', monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    opacity: 0.6;
}

/* -------------------- TRON GRID FLOOR (Hero) -------------------- */
.tron-grid-floor {
    position: absolute;
    bottom: 0;
    left: -20%;
    width: 140%;
    height: 55%;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 240, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(400px) rotateX(60deg);
    transform-origin: center bottom;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 75%);
    mask-image: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 75%);
    animation: gridScroll 6s linear infinite;
}
@keyframes gridScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* -------------------- TRON EDGE GLOW LINES -------------------- */
.tron-edge-glow {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    z-index: 1;
    pointer-events: none;
}
.tron-edge-left {
    left: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 240, 255, 0.15) 20%, rgba(0, 240, 255, 0.06) 50%, rgba(255, 0, 170, 0.1) 80%, transparent 100%);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08), 0 0 30px rgba(0, 240, 255, 0.04);
}
.tron-edge-right {
    right: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 0, 170, 0.1) 20%, rgba(0, 240, 255, 0.06) 50%, rgba(0, 240, 255, 0.15) 80%, transparent 100%);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.08), 0 0 30px rgba(0, 240, 255, 0.04);
}

/* -------------------- TRON SECTION DIVIDERS -------------------- */
.tron-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.5rem 0;
    position: relative;
    height: auto;
    overflow: visible;
}
.tron-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, 0.3) 15%, rgba(0, 240, 255, 0.25) 50%, rgba(255, 0, 170, 0.2) 85%, transparent 100%);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
}
.tron-divider-pulse {
    width: 12px;
    height: 12px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.7), 0 0 40px rgba(0, 240, 255, 0.3), 0 0 60px rgba(0, 240, 255, 0.1);
    animation: dividerPulse 3s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dividerPulse {
    0%, 100% { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 15px rgba(0, 240, 255, 0.4), 0 0 30px rgba(0, 240, 255, 0.15); }
    50%      { opacity: 1; transform: scale(1.3); box-shadow: 0 0 25px rgba(0, 240, 255, 0.8), 0 0 50px rgba(0, 240, 255, 0.3), 0 0 80px rgba(0, 240, 255, 0.1); }
}

/* -------------------- TRON SECTION BACKGROUNDS -------------------- */
.tron-section {
    position: relative;
    overflow: hidden;
}
.tron-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    -webkit-mask-image:
        radial-gradient(ellipse at 20% 50%, rgba(0,0,0,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.3) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15) 100%);
    -webkit-mask-composite: source-over;
    mask-image:
        radial-gradient(ellipse at 20% 50%, rgba(0,0,0,0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(0,0,0,0.3) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15) 100%);
    mask-composite: add;
    animation: gridScroll 12s linear infinite;
}
/* Horizontal light trail that sweeps across each section */
.tron-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25), rgba(255, 0, 170, 0.15), transparent);
    z-index: 0;
    pointer-events: none;
    animation: sectionTrail 10s linear infinite;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}
@keyframes sectionTrail {
    0%   { left: -40%; top: 20%; }
    50%  { top: 80%; }
    100% { left: 140%; top: 20%; }
}

/* -------------------- ENHANCED CARD GLOW EFFECTS -------------------- */
.skill-card {
    position: relative;
    overflow: hidden;
}
.skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0) 0%, rgba(0, 240, 255, 0) 35%, rgba(0, 240, 255, 0.25) 50%, rgba(255, 0, 170, 0.15) 65%, rgba(0, 240, 255, 0) 100%);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderShimmer 5s ease-in-out infinite;
    opacity: 0.3;
    transition: opacity 0.5s;
}
.skill-card:hover::after {
    opacity: 1;
}
@keyframes borderShimmer {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* Project card enhanced glow */
.project-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);
    opacity: 0.2;
    transition: opacity 0.5s;
}
.project-card:hover::after {
    opacity: 0.8;
}

/* -------------------- AMBIENT LIGHT TRAILS -------------------- */
#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);
    z-index: 3;
    animation: lightTrailTop 6s linear infinite;
    opacity: 0.5;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}
@keyframes lightTrailTop {
    0%   { left: -60%; }
    100% { left: 160%; }
}

/* -------------------- ENHANCED HERO BACKGROUND -------------------- */
#hero {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(0, 240, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 40%, rgba(0, 240, 255, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(255, 0, 170, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
        var(--bg-primary);
}

/* -------------------- STAT CARD TRON ENHANCEMENTS -------------------- */
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    animation: statTrail 4s linear infinite;
}
@keyframes statTrail {
    0%   { left: -100%; }
    100% { left: 200%; }
}

/* -------------------- MARQUEE TRON ENHANCEMENT -------------------- */
.marquee-section {
    position: relative;
    border-top: 1px solid rgba(0, 240, 255, 0.12);
    border-bottom: 1px solid rgba(0, 240, 255, 0.12);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.03) inset;
}
.marquee-content {
    color: rgba(0, 240, 255, 0.12);
}

/* -------------------- VISION SECTION TRON -------------------- */
.section-vision {
    background:
        linear-gradient(135deg, rgba(0, 240, 255, 0.02) 0%, transparent 50%),
        linear-gradient(225deg, rgba(255, 0, 170, 0.02) 0%, transparent 50%),
        var(--bg-secondary);
}
.vision-quote {
    border-left: 3px solid var(--accent-cyan);
    filter: drop-shadow(-3px 0 8px rgba(0, 240, 255, 0.15));
}

/* -------------------- CONTACT TRON GLOW -------------------- */
.contact-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    transition: width 0.6s var(--ease-out-expo);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
.contact-link {
    position: relative;
}
.contact-link:hover::before {
    width: 100%;
}

/* -------------------- FOOTER TRON -------------------- */
.footer {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    background:
        linear-gradient(to top, rgba(0, 240, 255, 0.02) 0%, transparent 50%),
        var(--bg-primary);
}

/* -------------------- GLOBAL TRON GRID (Full page) -------------------- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(0, 240, 255, 0.012) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 240, 255, 0.012) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.6;
}

/* -------------------- REVEAL ANIMATION BASE -------------------- */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 1024px) {
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }

    .nav-links { display: none; }
    .nav-menu-btn { display: flex; }

    .hero-content {
        padding: 0 1.5rem;
    }
    .tron-grid-floor { height: 35%; }
    .hero-side-text { display: none; }

    .hero-title {
        font-size: clamp(2rem, 8.5vw, 3rem);
    }

    .about-portrait-bg {
        position: absolute;
        top: 0;
        bottom: auto;
        right: 0;
        width: 100%;
        height: 65%;
        opacity: 0.6;
    }
    .about-portrait-img {
        object-position: center 15%;
        filter: saturate(1.1) contrast(1.05) brightness(0.75);
        -webkit-mask-image:
            linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 90%);
        -webkit-mask-composite: source-over;
        mask-image:
            linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 90%);
        mask-composite: add;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card { padding: 2rem; }

    .contact-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.6rem, 7.5vw, 2.5rem);
    }
    .stat-card { padding: 1.25rem; }
    .stat-number { font-size: 2rem; }
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
}

/* -------------------- REDUCED MOTION -------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-up {
        opacity: 1;
        transform: none;
    }
    .title-line .reveal-text {
        transform: none;
    }
    .hero-badge, .hero-description,
    .btn-primary, .btn-ghost,
    .hero-scroll-indicator, .hero-side-text {
        opacity: 1;
    }
}
