/* ============================================================
   SRABON BAPARI — EXTREME WORLD-CLASS PORTFOLIO
   Every pixel moves. Every interaction responds.
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg-void: #05100a;
    --bg-deep: #071a12;
    --bg-navy: #081710;
    --bg-teal: #071a12;
    --bg-purple: #0a1a14;

    --gradient-primary: linear-gradient(135deg, #10B981, #059669);
    --gradient-accent: linear-gradient(135deg, #34D399, #06B6D4);
    --gradient-warm: linear-gradient(135deg, #F59E0B, #EF4444);
    --gradient-cool: linear-gradient(135deg, #06B6D4, #10B981);
    --gradient-rainbow: linear-gradient(135deg, #10B981, #06B6D4, #3B82F6);
    --gradient-text: linear-gradient(135deg, #10B981 0%, #34D399 40%, #06B6D4 100%);

    --neon-purple: #10B981;
    --neon-blue: #06B6D4;
    --neon-pink: #34D399;
    --neon-cyan: #06B6D4;
    --neon-green: #10B981;

    --text-bright: #F8FAFC;
    --text-normal: #E2E8F0;
    --text-muted: #64748B;
    --text-dim: #334155;

    --glass-bg: rgba(255,255,255,0.03);
    --glass-bg-strong: rgba(255,255,255,0.06);
    --glass-border: rgba(255,255,255,0.08);
    --glass-border-strong: rgba(255,255,255,0.15);
    --glass-glow: rgba(16,185,129,0.15);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-speed: 0.4s;
}

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

html {
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-normal);
    overflow-x: hidden;
}

body.cursor-ready {
    cursor: none;
}

::selection {
    background: rgba(16, 185, 129, 0.4);
    color: var(--text-bright);
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #10B981, #059669);
    border-radius: 2px;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input, textarea {
    font-family: inherit;
    cursor: text;
}

body.cursor-ready button,
body.cursor-ready input,
body.cursor-ready textarea {
    cursor: none;
}

canvas {
    display: block;
}

/* ==================== NOISE OVERLAY ==================== */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9990;
    pointer-events: none;
    opacity: 0.02;
    will-change: transform;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    animation: noiseShift 0.5s steps(10) infinite;
}

@keyframes noiseShift {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
    100% { transform: translate(0, 0); }
}

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-primary);
    z-index: 10001;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5), 0 0 30px rgba(16, 185, 129, 0.3);
    transition: none;
}

/* ==================== CUSTOM CURSOR ==================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--text-bright);
    border-radius: 50%;
    pointer-events: none;
    z-index: 200000;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo),
                background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-dot.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cursor-dot.cursor-text {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    mix-blend-mode: normal;
}

.cursor-dot.cursor-view::after {
    content: 'VIEW';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-bright);
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 199999;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out-expo),
                height 0.4s var(--ease-out-expo),
                border-color 0.3s ease,
                opacity 0.3s ease;
}

.cursor-ring.cursor-hover {
    width: 70px;
    height: 70px;
    border-color: var(--neon-purple);
    opacity: 0.5;
}

.cursor-ring.cursor-text {
    width: 90px;
    height: 90px;
    border-color: var(--neon-blue);
    opacity: 0.3;
}

.cursor-ring.cursor-hidden {
    width: 0;
    height: 0;
    opacity: 0;
}

.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 199998;
}

.trail-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-purple);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
}

/* ==================== PRELOADER ==================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Safety: if JS fails, preloader fades after 8s */
    animation: preloaderSafety 0.8s ease 8s forwards;
}

@keyframes preloaderSafety {
    to { opacity: 0; pointer-events: none; visibility: hidden; }
}

#preloaderCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.preloader-content {
    position: relative;
    z-index: 5;
    text-align: center;
}

.preloader-counter {
    font-family: var(--font-display);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.preloader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
    transition: width 0.1s linear;
}

.preloader-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.preloader-curtain-left,
.preloader-curtain-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--bg-void);
    z-index: 4;
    transform-origin: center;
    pointer-events: none;
    /* Start hidden - only visible during exit animation */
    opacity: 0;
}

.preloader-curtain-left {
    left: 0;
}

.preloader-curtain-right {
    right: 0;
}

/* ==================== NAVIGATION ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 1rem 2rem;
    transition: transform 0.5s var(--ease-out-expo), background 0.3s ease;
    transform: translateY(-100%);
}

.nav.nav-visible {
    transform: translateY(0);
}

.nav.nav-scrolled {
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    perspective: 600px;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.6s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.nav-logo:hover .nav-logo-text {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s var(--ease-out-expo);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--text-bright);
}

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

.nav-link.active {
    color: var(--text-bright);
}

.nav-scrollspy-dot {
    position: absolute;
    bottom: -4px;
    width: 6px;
    height: 6px;
    background: var(--neon-purple);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-purple), 0 0 20px rgba(16, 185, 129, 0.3);
    transition: left 0.5s var(--spring);
    pointer-events: none;
    opacity: 0;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 10002;
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--text-bright);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.active .hamburger-line-1 {
    transform: rotateZ(45deg) rotateX(360deg) translateY(8px);
}

.nav-hamburger.active .hamburger-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active .hamburger-line-3 {
    transform: rotateZ(-45deg) rotateX(360deg) translateY(-8px);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    perspective: 1000px;
}

.mobile-menu.active {
    pointer-events: auto;
}

.mobile-menu-bg {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-menu.active .mobile-menu-bg {
    opacity: 1;
}

.mobile-menu-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.mobile-menu-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-bright);
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateX(60px) rotateY(-15deg);
    transition: opacity 0.4s ease, transform 0.6s var(--ease-out-expo), color 0.3s ease;
}

.mobile-menu.active .mobile-menu-link {
    opacity: 1;
    transform: translateX(0) rotateY(0);
}

.mobile-menu-link:hover {
    color: var(--neon-purple);
}

/* ==================== SECTIONS BASE ==================== */
.section {
    position: relative;
    overflow: clip;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-align: left;
    margin-bottom: 2.5rem;
    color: var(--text-bright);
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 3.5rem;
}

.section-title::before {
    content: attr(data-index);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--neon-green);
    letter-spacing: 1px;
    opacity: 0.7;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
    margin-top: 0.5rem;
    border-radius: 1px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-void);
    position: relative;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orbFloat 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108,99,255,0.4), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(236,72,153,0.3), transparent 70%);
    top: 50%;
    right: -15%;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
    bottom: -10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* Floating 3D Shapes */
.hero-floating-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    animation: shapeFloat 15s ease-in-out infinite;
}

.shape-cube {
    top: 15%;
    right: 15%;
    animation-delay: -3s;
    perspective: 200px;
}

.cube {
    width: 60px;
    height: 60px;
    transform-style: preserve-3d;
    animation: cubeRotate 20s linear infinite;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.03);
    backdrop-filter: blur(2px);
}

.cube-front  { transform: rotateY(0deg) translateZ(30px); }
.cube-back   { transform: rotateY(180deg) translateZ(30px); }
.cube-right  { transform: rotateY(90deg) translateZ(30px); }
.cube-left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-top    { transform: rotateX(90deg) translateZ(30px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(30px); }

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.shape-torus {
    bottom: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(52, 211, 153, 0.15);
    border-radius: 50%;
    animation-delay: -8s;
    box-shadow: inset 0 0 20px rgba(52, 211, 153, 0.05);
}

.shape-torus::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1.5px solid rgba(52, 211, 153, 0.1);
    border-radius: 50%;
}

.shape-octahedron {
    top: 60%;
    right: 20%;
    animation-delay: -5s;
    perspective: 200px;
}

.octahedron {
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: cubeRotate 25s linear infinite reverse;
}

.oct-face {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 40px solid rgba(6, 182, 212, 0.08);
}

.oct-1 { transform: rotateX(30deg) rotateY(0deg) translateZ(15px); }
.oct-2 { transform: rotateX(30deg) rotateY(90deg) translateZ(15px); }
.oct-3 { transform: rotateX(30deg) rotateY(180deg) translateZ(15px); }
.oct-4 { transform: rotateX(30deg) rotateY(270deg) translateZ(15px); }

@keyframes shapeFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(10px) rotate(-3deg); }
    75% { transform: translateY(-15px) rotate(2deg); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 2rem;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    margin-bottom: 1.25rem;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.hero-badge-ring {
    position: absolute;
    inset: -1px;
    border-radius: 100px;
    background: conic-gradient(from 0deg, transparent, var(--neon-purple), transparent);
    animation: badgeRingSpin 3s linear infinite;
    opacity: 0.5;
}

.hero-badge-ring::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 100px;
    background: var(--bg-void);
}

@keyframes badgeRingSpin {
    to { transform: rotate(360deg); }
}

.hero-badge-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-name .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(-80px) rotateX(-90deg) translateZ(50px);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.3));
}

.hero-name .word {
    display: inline-block;
    margin: 0 0.15em;
}

.hero-name .name-first {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-name .name-last {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 1rem;
    min-height: 1.5em;
    opacity: 0;
    transform: translateY(20px);
}

.hero-role-prefix {
    color: var(--text-dim);
}

.hero-role-text {
    color: var(--neon-purple);
    font-weight: 600;
}

.hero-role-cursor {
    color: var(--neon-purple);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-motto {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 450px;
    margin: 0 auto 1.5rem;
    font-style: italic;
    opacity: 0;
    transform: translateY(20px);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s ease;
    transform-style: preserve-3d;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3),
                0 0 40px rgba(16, 185, 129, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(10px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4),
                0 0 60px rgba(16, 185, 129, 0.2);
}

.btn-primary:active {
    transform: translateY(1px) translateZ(-5px);
}

.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 1.5px solid var(--glass-border-strong);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px) translateZ(10px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.btn-icon {
    display: flex;
    transition: transform 0.4s var(--ease-out-expo);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-liquid {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s var(--ease-out-expo), height 0.6s var(--ease-out-expo);
}

.btn:hover .btn-liquid {
    width: 400px;
    height: 400px;
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* ==================== SCROLL INDICATOR ==================== */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    opacity: 0;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--neon-purple);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--neon-purple), transparent);
    animation: scrollLineGrow 2s ease-in-out infinite;
}

@keyframes scrollLineGrow {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==================== MARQUEE ==================== */
.marquee-section {
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    perspective: 800px;
    background: var(--bg-void);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.marquee-track {
    display: flex;
    width: max-content;
    transform: rotateX(2deg);
}

.marquee-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

.marquee-content-clone {
    animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.marquee-word {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 4rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-dim);
    padding: 0 0.75rem;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
    cursor: default;
}

.marquee-word:hover {
    color: var(--neon-purple);
    -webkit-text-stroke: 1px var(--neon-purple);
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--bg-teal);
    min-height: auto;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
}

/* Section Label */
.about-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.about-label-text {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--neon-purple);
    text-transform: uppercase;
}

.about-label-line {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-purple));
}

.about-label-line:last-child {
    background: linear-gradient(90deg, var(--neon-purple), transparent);
}

/* Main Grid */
.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Avatar */
.about-avatar {
    width: 160px;
    height: 160px;
    position: relative;
    margin: 0 auto;
}

.about-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.about-avatar-initials {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.2);
}

.about-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 24px;
    padding: 4px;
    background: conic-gradient(from 0deg, var(--neon-purple), var(--neon-blue), var(--neon-pink), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: badgeRingSpin 6s linear infinite;
    z-index: 1;
}

.about-avatar-glow {
    position: absolute;
    inset: -20px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
    z-index: 0;
}

/* Quick Info */
.about-quick-info {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-quick-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.about-quick-item svg {
    color: var(--neon-purple);
    flex-shrink: 0;
}

/* Bio Text */
.about-bio {
    font-size: 0.88rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-bio .word {
    display: inline;
    transition: color 0.3s ease;
}

.about-bio .word.highlighted {
    color: var(--text-bright);
}

.about-quote {
    font-size: 0.8rem;
    color: var(--neon-purple);
    font-style: italic;
    padding-left: 1rem;
    border-left: 2px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Stats Row */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.25rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.2);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    background: #0a1a14;
    position: relative;
    overflow: visible;
}

#skillsCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Skills Orbit */
.skills-orbit-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    margin: 0 auto 2.5rem;
    position: relative;
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.orbit-core-text {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-bright);
    position: relative;
    z-index: 2;
}

.orbit-core-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent 70%);
    animation: coreGlow 3s ease-in-out infinite alternate;
}

@keyframes coreGlow {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Decorative orbit rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.08);
    pointer-events: none;
}

.orbit-ring-1 {
    width: 35%;
    height: 35%;
    transform: translate(-50%, -50%);
    animation: ringSpin 30s linear infinite;
}

.orbit-ring-2 {
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    animation: ringSpin 45s linear infinite reverse;
}

.orbit-ring-3 {
    width: 85%;
    height: 85%;
    transform: translate(-50%, -50%);
    animation: ringSpin 60s linear infinite;
}

@keyframes ringSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Items container */
.orbit-items {
    position: absolute;
    inset: 0;
}

/* Individual orbit item */
.orbit-item {
    position: absolute;
    padding: 0.35rem 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: default;
    transition: background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
    transform: translate(-50%, -50%);
}

.orbit-item:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: var(--neon-purple);
    color: var(--text-bright);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.15);
}

/* Skills Categories */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.skill-category-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, transform 0.4s var(--ease-out-expo);
}

.skill-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15);
}

.skill-category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-category-card:hover::before {
    opacity: 1;
}

.skill-category-card:hover {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.1);
}

.skill-card-gradient-border {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    padding: 1px;
    background: conic-gradient(from var(--border-angle, 0deg), var(--neon-purple), var(--neon-blue), var(--neon-pink), var(--neon-purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: badgeRingSpin 3s linear infinite;
    opacity: 0.4;
}

.skill-category-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.skill-category-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.skill-items-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    background: rgba(16, 185, 129, 0.05);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-chip:hover {
    border-color: var(--neon-green);
    color: var(--text-bright);
    background: rgba(16, 185, 129, 0.12);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Size varies by skill level */
.skill-chip[data-level="high"] {
    font-size: 0.8rem;
    padding: 0.35rem 0.85rem;
    color: var(--text-normal);
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
}

.skill-chip[data-level="mid"] {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
}

.skill-chip[data-level="low"] {
    font-size: 0.65rem;
    padding: 0.25rem 0.55rem;
    opacity: 0.7;
}

/* Skills Marquee */
.skills-marquee {
    overflow: hidden;
    padding: 2rem 0;
    perspective: 600px;
}

.skills-marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 40s linear infinite;
    transform: rotateX(3deg);
}

.skills-marquee-item {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-dim);
    padding: 0 1.5rem;
    white-space: nowrap;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
    cursor: default;
}

.skills-marquee-item:hover {
    -webkit-text-stroke: 1px var(--neon-purple);
    color: rgba(16, 185, 129, 0.15);
}

/* ==================== EXPERIENCE TIMELINE ==================== */
.experience {
    background: var(--bg-navy);
    position: relative;
}

#experienceCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
}

.timeline-svg {
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
}

.timeline-path {
    stroke: var(--neon-purple);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
}

.timeline-energy {
    position: absolute;
    left: -3px;
    top: 0;
    width: 8px;
    height: 30px;
    background: linear-gradient(to bottom, var(--neon-purple), transparent);
    border-radius: 4px;
    filter: blur(2px);
    opacity: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -49px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-navy);
    border: 2px solid var(--neon-purple);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    transition: transform 0.4s var(--spring), box-shadow 0.4s ease;
}

.timeline-item.visible .timeline-dot {
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.2), 0 0 20px rgba(16, 185, 129, 0.3); }
}

.timeline-dot.current {
    background: var(--neon-purple);
    border-color: var(--neon-purple);
}

.timeline-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease, border-color 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.1);
    border-color: var(--glass-border-strong);
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.timeline-card:hover::before {
    opacity: 1;
}

.timeline-company {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-size: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tech-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    color: var(--neon-purple);
    font-weight: 500;
}

.timeline-current-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-green);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.timeline-current-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: breatheDot 2s ease-in-out infinite;
}

@keyframes breatheDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: var(--bg-purple);
    position: relative;
}

#projectsCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 100px;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
    position: relative;
    z-index: 2;
}

.filter-btn:hover {
    color: var(--text-bright);
}

.filter-btn.active {
    color: var(--text-bright);
}

.filter-highlight {
    position: absolute;
    height: 38px;
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    transition: all 0.4s var(--spring);
    z-index: 1;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-card.featured {
    grid-column: span 2;
}

/* Unique gradient per card */
.project-card:nth-child(1) .project-card-image { background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(6,182,212,0.15)); }
.project-card:nth-child(2) .project-card-image { background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(52,211,153,0.15)); }
.project-card:nth-child(3) .project-card-image { background: linear-gradient(135deg, rgba(52,211,153,0.2), rgba(16,185,129,0.1)); }
.project-card:nth-child(4) .project-card-image { background: linear-gradient(135deg, rgba(5,150,105,0.25), rgba(6,182,212,0.1)); }
.project-card:nth-child(5) .project-card-image { background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(16,185,129,0.1)); }
.project-card:nth-child(6) .project-card-image { background: linear-gradient(135deg, rgba(52,211,153,0.25), rgba(5,150,105,0.15)); }
.project-card:nth-child(7) .project-card-image { background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(52,211,153,0.2)); }
.project-card:nth-child(8) .project-card-image { background: linear-gradient(135deg, rgba(5,150,105,0.2), rgba(6,182,212,0.2)); }

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: none;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(16, 185, 129, 0.1);
    border-color: var(--glass-border-strong);
}

.project-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
    position: relative;
    overflow: hidden;
}

.project-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(52, 211, 153, 0.1));
    transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-card-image-placeholder {
    transform: scale(1.1);
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 5, 16, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.project-card-overlay-text {
    color: var(--text-bright);
    font-size: 0.85rem;
    font-weight: 500;
}

.project-card-body {
    padding: 1.5rem;
}

.project-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.project-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.6rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 4px;
    color: var(--neon-purple);
    font-weight: 500;
}

.codecanyon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, #82B541, #4B8F29);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(130, 181, 65, 0.3);
    overflow: hidden;
}

.codecanyon-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: sparkle 3s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(-100%) rotate(45deg); }
    to { transform: translateX(100%) rotate(45deg); }
}

.project-card-price {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.7rem;
    background: var(--gradient-accent);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

/* ==================== PROJECT MODAL ==================== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    pointer-events: auto;
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-modal.active .modal-backdrop {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.5s var(--ease-out-expo);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.project-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content::-webkit-scrollbar {
    width: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 2px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-normal);
    z-index: 3;
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    border-color: var(--neon-purple);
}

.modal-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.15));
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 0.25rem;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.modal-description {
    font-size: 0.95rem;
    color: var(--text-normal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 6px;
    color: var(--neon-purple);
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
}

.project-modal.active .modal-tag {
    opacity: 1;
    transform: translateY(0);
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-normal);
    transition: all 0.3s var(--ease-out-expo);
}

.modal-link:hover {
    border-color: var(--neon-purple);
    color: var(--text-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.modal-link svg {
    width: 16px;
    height: 16px;
}

.modal-codecanyon-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(130, 181, 65, 0.08);
    border: 1px solid rgba(130, 181, 65, 0.2);
    border-radius: 12px;
    display: none;
}

.modal-codecanyon-info.visible {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.codecanyon-stat {
    text-align: center;
}

.codecanyon-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #82B541;
}

.codecanyon-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==================== EDUCATION SECTION ==================== */
.education {
    background: var(--bg-teal);
    position: relative;
    overflow: hidden;
}

.aurora-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.3;
}

.aurora-layer {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    border-radius: 40%;
}

.aurora-1 {
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15), transparent 50%);
    animation: auroraFloat 20s ease-in-out infinite;
}

.aurora-2 {
    background: radial-gradient(ellipse, rgba(6, 182, 212, 0.1), transparent 50%);
    animation: auroraFloat 25s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.aurora-3 {
    background: radial-gradient(ellipse, rgba(52, 211, 153, 0.08), transparent 50%);
    animation: auroraFloat 30s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10%, -10%) rotate(90deg); }
    50% { transform: translate(-5%, 5%) rotate(180deg); }
    75% { transform: translate(5%, -5%) rotate(270deg); }
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.education-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s ease, border-color 0.3s ease;
}

.education-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--glass-border-strong);
}

/* Holographic effect */
.education-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        var(--holo-angle, 135deg),
        transparent 0%,
        rgba(16, 185, 129, 0.05) 20%,
        rgba(52, 211, 153, 0.05) 40%,
        rgba(6, 182, 212, 0.05) 60%,
        rgba(245, 158, 11, 0.05) 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.education-card:hover::before {
    opacity: 1;
}

.education-card-institution {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.education-card-degree {
    font-size: 0.95rem;
    color: var(--text-normal);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.education-card-period {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.education-card-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.education-gpa {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.gpa-ring {
    width: 60px;
    height: 60px;
    position: relative;
}

.gpa-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.gpa-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 4;
}

.gpa-ring-fill {
    fill: none;
    stroke: var(--neon-purple);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    transition: stroke-dashoffset 1.5s var(--ease-out-expo);
}

.gpa-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-bright);
}

.gpa-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.learning-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.learning-dots {
    display: flex;
    gap: 3px;
}

.learning-dots span {
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    animation: learningBounce 1.4s ease-in-out infinite;
}

.learning-dots span:nth-child(2) { animation-delay: 0.2s; }
.learning-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes learningBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--bg-void);
    position: relative;
}

#contactCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.contact-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-title-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Contact Cards */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(16, 185, 129, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-card-icon svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.contact-card-info {
    position: relative;
    z-index: 1;
}

.contact-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.contact-card-value {
    font-size: 0.95rem;
    color: var(--text-bright);
    font-weight: 500;
}

.contact-card-copy {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-card-copy {
    opacity: 1;
}

/* Contact Social */
.contact-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.social-link:hover {
    color: var(--text-bright);
    border-color: var(--neon-purple);
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.1);
}

.social-link svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    color: var(--text-bright);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-group textarea {
    resize: none;
    min-height: 90px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--neon-green);
    background: rgba(16,185,129,0.03);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.08);
}

.form-label {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s var(--ease-out-expo);
    background: transparent;
    padding: 0 0.25rem;
}

.form-group input:focus ~ .form-label,
.form-group input:valid ~ .form-label,
.form-group textarea:focus ~ .form-label,
.form-group textarea:valid ~ .form-label {
    top: -0.5rem;
    font-size: 0.65rem;
    color: var(--neon-green);
    letter-spacing: 1px;
    background: var(--bg-deep);
}

.form-line {
    display: none;
}

.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border-radius: 14px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-void);
    padding: 2.5rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Large faded name behind footer */
.footer::before {
    content: 'SRABON BAPARI';
    position: absolute;
    bottom: -0.2em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(16,185,129,0.05);
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.footer-gradient-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-green), transparent);
    margin-bottom: 1.5rem;
    opacity: 0.4;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

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

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s var(--ease-out-expo);
}

.footer-social-link:hover {
    color: var(--text-bright);
    border-color: var(--neon-purple);
    transform: translateY(-3px);
}

.footer-social-link svg {
    width: 16px;
    height: 16px;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-typewriter {
    border-right: 2px solid var(--neon-purple);
    padding-right: 2px;
    animation: blink 1s step-end infinite;
}

.back-to-top {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.4s var(--ease-out-expo);
}

.back-to-top:hover {
    color: var(--text-bright);
    border-color: var(--neon-purple);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background: rgba(10, 26, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-bright);
    z-index: 200001;
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(16, 185, 129, 0.08);
    overflow: hidden;
    max-width: 360px;
}

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

/* Icon wrap */
.toast-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon {
    display: none;
}

/* Success state (default) */
.toast.toast-success .toast-icon-wrap {
    background: rgba(16, 185, 129, 0.15);
}
.toast.toast-success .toast-icon-success {
    display: block;
    stroke: #10B981;
}
.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.25);
}

/* Error state */
.toast.toast-error .toast-icon-wrap {
    background: rgba(239, 68, 68, 0.15);
}
.toast.toast-error .toast-icon-error {
    display: block;
    stroke: #EF4444;
}
.toast.toast-error {
    border-color: rgba(239, 68, 68, 0.25);
}

/* Info state */
.toast.toast-info .toast-icon-wrap {
    background: rgba(6, 182, 212, 0.15);
}
.toast.toast-info .toast-icon-info {
    display: block;
    stroke: #06B6D4;
}
.toast.toast-info {
    border-color: rgba(6, 182, 212, 0.25);
}

.toast-text {
    line-height: 1.3;
}

/* Progress bar at bottom */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--neon-green);
    transform-origin: left;
    transform: scaleX(1);
    opacity: 0.5;
    border-radius: 0 0 14px 14px;
}

.toast.visible .toast-progress {
    animation: toastCountdown 2.8s linear forwards;
}

@keyframes toastCountdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* Mobile toast */
@media (max-width: 768px) {
    .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
        font-size: 0.78rem;
    }
}

/* ==================== RESPONSIVE ==================== */
/* ==================== TABLET (max-width: 1024px) ==================== */
@media (max-width: 1024px) {
    .section-container {
        padding: 6rem 2rem;
    }

    .section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* About */
    .about-grid {
        grid-template-columns: 180px 1fr;
        gap: 2.5rem;
    }

    .about-avatar {
        width: 140px;
        height: 140px;
    }

    .about-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    /* Skills */
    .skills-orbit-container {
        max-width: 380px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

/* ==================== MOBILE (max-width: 768px) ==================== */
@media (max-width: 768px) {
    /* Cursor — hide on touch */
    body, body.cursor-ready {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring,
    .cursor-trail {
        display: none !important;
    }

    /* Navigation */
    .nav {
        padding: 0.75rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-scrollspy-dot {
        display: none;
    }

    /* Hero */
    .hero-name {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-role {
        font-size: 0.9rem;
    }

    .hero-motto {
        font-size: 0.85rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-floating-shapes {
        opacity: 0.3;
    }

    /* Marquee */
    .marquee-word {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }

    .marquee-section {
        padding: 1rem 0;
    }

    /* About */
    .about-container {
        padding: 4rem 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .about-avatar {
        width: 110px;
        height: 110px;
    }

    .about-avatar-initials {
        font-size: 2.5rem;
    }

    .about-quick-info {
        align-items: center;
    }

    .about-bio {
        font-size: 0.82rem;
        text-align: left;
    }

    .about-quote {
        font-size: 0.75rem;
        text-align: left;
    }

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

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    /* Section containers */
    .section-container {
        padding: 3rem 1.25rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 1.5rem;
    }

    /* Skills */
    .skills-orbit-container {
        max-width: 300px;
        margin-bottom: 2.5rem;
    }

    .orbit-item {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .skill-category-card {
        padding: 1.5rem;
    }

    .skill-category-name {
        font-size: 1rem;
    }

    .skill-chip {
        font-size: 0.65rem;
    }

    .skills-marquee-item {
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }

    /* Experience */
    .timeline {
        padding-left: 35px;
    }

    .timeline-line {
        left: 10px;
    }

    .timeline-dot {
        left: -25px;
        width: 12px;
        height: 12px;
    }

    .timeline-card {
        padding: 1.25rem;
    }

    .timeline-company {
        font-size: 1.1rem;
    }

    .timeline-role {
        font-size: 0.85rem;
    }

    .timeline-description {
        font-size: 0.8rem;
    }

    .timeline-tech-tag {
        font-size: 0.6rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .section-title {
        padding-left: 2.5rem;
        font-size: clamp(1.3rem, 4vw, 1.8rem);
    }

    .section-title::before {
        font-size: 0.6rem;
    }

    .projects-filter {
        gap: 0.25rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 0.45rem 1rem;
        font-size: 0.75rem;
    }

    .project-card-body {
        padding: 1.25rem;
    }

    .project-card-title {
        font-size: 1rem;
    }

    .project-card-subtitle {
        font-size: 0.75rem;
    }

    .project-tag {
        font-size: 0.55rem;
    }

    .project-card-image {
        height: 160px;
    }

    /* Education */
    .education-cards {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .education-card {
        padding: 1.5rem;
    }

    .education-card-institution {
        font-size: 1rem;
    }

    .education-card-degree {
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-title-line {
        font-size: clamp(2rem, 8vw, 3rem);
    }

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

    .contact-form-wrapper {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .contact-card {
        padding: 1rem;
    }

    .contact-card-value {
        font-size: 0.85rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    /* Footer */
    .footer {
        padding: 2rem 1.25rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-text {
        font-size: 0.7rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 16px;
    }

    .modal-image {
        height: 180px;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }
}

/* ==================== SMALL MOBILE (max-width: 480px) ==================== */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

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

    .hero-badge {
        padding: 0.3rem 0.8rem;
    }

    .hero-badge-text {
        font-size: 0.7rem;
    }

    .hero-role {
        font-size: 0.8rem;
    }

    .hero-motto {
        font-size: 0.75rem;
    }

    .marquee-word {
        font-size: 0.9rem;
        padding: 0 0.4rem;
    }

    .about-container {
        padding: 3rem 1rem;
    }

    .about-label-text {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }

    .about-bio {
        font-size: 0.78rem;
    }

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

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.55rem;
    }

    .skills-orbit-container {
        max-width: 240px;
    }

    .orbit-item {
        font-size: 0.5rem;
        padding: 0.2rem 0.35rem;
    }

    .orbit-core-text {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .skills-marquee-item {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
    }

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

    .section-container {
        padding: 3.5rem 1rem;
    }

    .modal-content {
        width: 98%;
        border-radius: 12px;
    }
}

/* ==================== SCRAMBLE TEXT ==================== */
.scramble-char {
    color: var(--neon-purple);
    opacity: 0.6;
}

/* GPU Performance Hints */
.hero-content,
.cursor-dot,
.cursor-ring,
.marquee-content,
.orbit-ring,
.floating-shape,
.gradient-orb {
    will-change: transform;
}
