/* ==========================================================================
   Design Tokens & CSS Variables
   ========================================================================== */
:root {
    /* Color System (Modern Cosmic Purple Gradient Theme) */
    --bg-primary: #05020c;         /* Very dark purple-black */
    --bg-secondary: #090514;       /* Deep cosmic violet */
    --bg-tertiary: #120a28;        /* Deep violet container */
    
    --color-primary: #7c3aed;       /* Vibrant Purple Core */
    --color-primary-rgb: 124, 58, 237;
    --color-secondary: #a855f7;     /* Bright Purple Light */
    --color-secondary-rgb: 168, 85, 247;
    --color-accent: #c084fc;        /* Elegant Purple Glow */
    --color-accent-rgb: 192, 132, 252;
    
    --text-primary: #f8fafc;        /* Slate 50 */
    --text-muted: #94a3b8;         /* Slate 400 (High contrast readability) */
    --text-dark: #0f172a;          /* Slate 900 */
    
    /* Layout Details */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(99, 102, 241, 0.2);
    --bg-glass: rgba(255, 255, 255, 0.02);
    --bg-glass-hover: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.7);
    --glow-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Rhythmic Spacing */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 2rem;     /* 32px */
    --space-lg: 4rem;     /* 64px */
    --space-xl: 6rem;     /* 96px */
    --space-xxl: 8rem;    /* 128px */
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Defaults
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: radial-gradient(circle at 50% 0%, #1c0f3a 0%, #070311 60%, #030107 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom premium cursor */
}

a, button, input, textarea, select {
    cursor: none !important; /* Force custom cursor */
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.8rem); }
h3 { font-size: clamp(1.6rem, 2.5vw, 2rem); }
p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Selection */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* ==========================================================================
   Global Utilities & Layout Layouts
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
    position: relative;
    z-index: 2;
}

/* Asymmetric Grid Spacing & Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.bento-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    box-shadow: var(--card-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(168, 85, 247, 0.35);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(168, 85, 247, 0.2);
}

/* Clean Separator Overlay */
.section-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    z-index: 10;
}

.section-divider-top { top: 0; }
.section-divider-bottom { bottom: 0; }

/* Section Title Refinement */
.section-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
    letter-spacing: -0.04em;
    line-height: 1.0;
}

.section-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title span.title-main {
    background: linear-gradient(135deg, #fff 20%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

/* Magnetic Element & Glowing Utility */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   Navigation (Glass Pill Header)
   ========================================================================== */
.header-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: max-content;
    max-width: 95%;
    background: rgba(3, 0, 8, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 40px;
    padding: 8px 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    transition: var(--transition-smooth);
}

.header-nav.scrolled {
    top: 15px;
    background: rgba(3, 0, 8, 0.85);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 15px 40px -15px rgba(99, 102, 241, 0.25);
    padding: 6px 18px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body); /* Changed from mono */
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
    padding: 6px 12px;
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.nav-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-primary);
    opacity: 0.85;
    transition: var(--transition-fast);
}

.nav-links li a:hover .nav-num,
.nav-links li a.active .nav-num {
    color: var(--color-accent);
    opacity: 1;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 12px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.nav-links li a.active::after {
    transform: translateX(-50%) scaleX(1);
    box-shadow: 0 0 8px var(--color-primary);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-md);
    align-items: center;
}

.hero-info {
    z-index: 2;
}

.hero-salutation {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.hero-name {
    font-size: clamp(2.2rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 0.92;
    margin-bottom: var(--space-md);
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero-name-first {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.85);
    display: block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.hero-name-last {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.35));
}

.hero-role-wrapper {
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background-color: var(--color-secondary);
    animation: blinkCursor 0.8s infinite;
}

.hero-bio {
    max-width: 580px;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Premium Buttons */
.btn {
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body); /* Changed from mono */
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: #fff;
    border: 1px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.03);
    transform: translateY(-2px);
}

/* Hero Picture Frame (3D Interactive Tilt) */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Creative Spinning Concentric HUD Rings */
.avatar-hud-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 430px;
    height: 430px;
    border: 1.5px dashed rgba(168, 85, 247, 0.22);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: rotateClockwise 35s linear infinite;
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.04);
}

.avatar-hud-ring::before {
    content: '';
    position: absolute;
    top: 30px; left: 30px; right: 30px; bottom: 30px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 50%;
    border-top: 1.5px solid var(--color-accent);
    border-bottom: 1.5px solid var(--color-primary);
    animation: rotateCounter 20s linear infinite;
}

.avatar-hud-ring::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--color-accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--color-accent), 0 0 25px var(--color-accent);
}

@keyframes rotateClockwise {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounter {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@media (max-width: 480px) {
    .avatar-hud-ring {
        width: 320px;
        height: 320px;
    }
}

.avatar-wrapper {
    width: 320px;
    height: 400px;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.avatar-3d-card {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    position: relative;
    transform-style: preserve-3d;
    overflow: hidden;
}

.avatar-3d-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-lg);
    pointer-events: none;
    z-index: 2;
}

.avatar-glow {
    position: absolute;
    top: -50px; left: -50px; right: -50px; bottom: -50px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translateZ(-20px);
}

/* Scroll indicator animation */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: var(--font-body); /* Changed from mono to professional body font */
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em; /* Premium spaced typography */
    text-decoration: none;
    transition: var(--transition-fast);
}

.scroll-indicator:hover {
    color: var(--text-primary);
}

.mouse-scroller {
    width: 20px;
    height: 35px;
    border: 2px solid var(--border-glass);
    border-radius: 10px;
    position: relative;
}

.mouse-scroller::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 2px;
    animation: scrollMouse 1.5s infinite;
}

/* ==========================================================================
   About Me (Asymmetrical Bento Grid)
   ========================================================================== */
.about-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-sm);
}

.bento-about-text {
    grid-column: span 8;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-about-text p {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.bento-about-image {
    grid-column: span 4;
    padding: 0;
    min-height: 300px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.bento-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.bento-about-image:hover img {
    transform: scale(1.05) rotate(1deg);
}

.stats-grid {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.stat-item {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 5px;
}

.stat-name {
    font-family: var(--font-body); /* Changed from mono */
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.skills-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    border-left: 3px solid var(--color-primary);
    padding-left: 12px;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Cosmic Skill Level Badge */
.skill-badge {
    font-size: 0.62rem;
    background: rgba(124, 58, 237, 0.12);
    color: var(--color-accent);
    padding: 1px 6px;
    border-radius: 8px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.15);
}

.skill-pill img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.skill-pill i {
    font-size: 18px;
}

.skill-pill:hover {
    color: var(--text-primary);
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

/* ==========================================================================
   Infinite Marquees (Design & Photo)
   ========================================================================== */
.marquee-container {
    overflow: hidden;
    padding: var(--space-sm) 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.marquee-gradient-left,
.marquee-gradient-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15vw;
    z-index: 5;
    pointer-events: none;
}
.marquee-gradient-left {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}
.marquee-gradient-right {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: loopMarquee 40s linear infinite;
    will-change: transform;
}

.marquee-track-reverse {
    animation: loopMarqueeReverse 50s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    width: 320px;
    height: 220px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
    cursor: none;
    position: relative;
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.marquee-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.marquee-item:hover img {
    transform: scale(1.06);
}

.marquee-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: var(--space-sm);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    opacity: 0;
    transition: var(--transition-fast);
}

.marquee-item:hover .marquee-overlay {
    opacity: 1;
}

.marquee-overlay p {
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* ==========================================================================
   Videography Cards
   ========================================================================== */
.vids-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.vid-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.vid-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.vid-player-box {
    position: relative;
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
}

.vid-player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.vid-play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    opacity: 1;
    transition: var(--transition-fast);
}

.vid-card:hover .vid-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--color-primary);
}

.vid-details {
    padding: var(--space-sm);
    flex-grow: 1;
}

.vid-details h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.vid-details p {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
}

/* ==========================================================================
   Academic Bento Grid
   ========================================================================== */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-sm);
}

.academic-card-small {
    grid-column: span 4;
}

.academic-card-large {
    grid-column: span 6;
}

.academic-card-wide {
    grid-column: span 8;
}

.academic-card h3 {
    font-size: 1.25rem;
    margin: 15px 0 8px;
}

.academic-icon {
    font-size: 2.2rem;
    color: var(--color-secondary);
    text-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* ==========================================================================
   Milestones & Roadmap Timeline
   ========================================================================== */
.roadmap-container {
    position: relative;
    max-width: 850px;
    margin: var(--space-md) auto 0;
}

.roadmap-backbone {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
}

.roadmap-backbone-fill {
    position: absolute;
    top: 0; left: 50%;
    width: 2px;
    height: 0%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transform: translateX(-50%);
    transition: height 0.5s ease-out;
}

.roadmap-node {
    display: flex;
    margin-bottom: var(--space-lg);
    position: relative;
}

.roadmap-node-left { justify-content: flex-start; text-align: right; }
.roadmap-node-right { justify-content: flex-end; }

.roadmap-marker {
    position: absolute;
    top: 25px; left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--border-glass);
    z-index: 10;
    transition: var(--transition-fast);
}

.roadmap-node.passed .roadmap-marker {
    border-color: var(--color-primary);
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

.roadmap-content {
    width: 45%;
    padding: var(--space-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(12px);
    position: relative;
    transition: var(--transition-smooth);
}

.roadmap-content:hover {
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.roadmap-node-left .roadmap-content {
    margin-right: 5%;
}

.roadmap-node-right .roadmap-content {
    margin-left: 5%;
}

.roadmap-tag {
    font-family: var(--font-body); /* Changed from mono */
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 5px;
}

.roadmap-title {
    font-size: 1.35rem;
    margin-bottom: 5px;
}

.roadmap-subtitle {
    color: var(--color-accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.roadmap-media {
    width: 100%;
    height: 180px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid var(--border-glass);
}

/* ==========================================================================
   Project Cards & Gallery Showcase
   ========================================================================== */
.projects-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
    transform: translateY(-5px);
}

.project-media-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.project-media-box img,
.project-media-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-media-box img {
    transform: scale(1.05);
}

.project-details {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
}

.project-details p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

/* ==========================================================================
   Experience Split Grid & Clubs Dock
   ========================================================================== */
.exp-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-lg);
    align-items: center;
}

.exp-photo-box {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
}

.exp-photo-box img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.exp-photo-box:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.exp-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.exp-card-detail {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-md);
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    transition: var(--transition-smooth);
    position: relative;
}

.exp-card-detail:hover {
    border-left-color: var(--color-secondary);
    background: var(--bg-glass-hover);
    transform: translateX(5px);
}

.exp-card-year {
    position: absolute;
    top: 20px; right: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-secondary);
    background: rgba(6, 182, 212, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
}

.exp-card-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: var(--space-sm);
    display: block;
}

.exp-card-detail h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.exp-card-detail p {
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.clubs-dock-modern {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}

.club-dock-item {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    position: relative;
}

.club-dock-item img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-fast);
}

.club-dock-item:hover {
    border-color: var(--color-primary);
    transform: scale(1.15) translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.club-dock-item:hover img {
    filter: grayscale(0%) opacity(1);
}

.club-tip {
    position: absolute;
    top: -45px;
    background: rgba(8, 5, 18, 0.95);
    border: 1px solid var(--border-glass);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-fast);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.club-dock-item:hover .club-tip {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Credentials (Certificates)
   ========================================================================== */
.certifs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.cert-bento {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.cert-bento:hover {
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.cert-pic {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #000;
}

.cert-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.cert-bento:hover .cert-pic img {
    transform: scale(1.04);
}

.cert-info {
    padding: var(--space-md);
    border-top: 1px solid var(--border-glass);
}

.cert-info h3 {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.cert-info p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.contact-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-avatar-box {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.contact-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-brand-title {
    font-size: clamp(1.8rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 30%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-directory {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card-link {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1rem;
    padding: 16px 20px;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-fast);
}

.contact-card-link i {
    font-size: 1.5rem;
    color: var(--color-secondary);
    transition: var(--transition-fast);
}

.contact-card-link:hover {
    color: var(--text-primary);
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(5px);
}

.contact-card-link:hover i {
    color: var(--color-accent);
}

/* Form inputs styling */
.contact-form {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: var(--space-md);
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
}

.input-container {
    position: relative;
    margin-bottom: 35px;
}

.input-container input,
.input-container textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
    padding: 10px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-container label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    pointer-events: none;
}

.input-container input:focus ~ label,
.input-container input:valid ~ label,
.input-container textarea:focus ~ label,
.input-container textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--color-secondary);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: var(--transition-fast);
}

.input-container input:focus ~ .input-underline,
.input-container textarea:focus ~ .input-underline {
    width: 100%;
}

.btn-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    width: 100%;
    padding: 16px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    background: var(--color-accent);
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.4);
    transform: translateY(-2px);
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   Interactive Background Canvas, Custom Cursor, & Scanlines
   ========================================================================== */
#space-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -100;
    pointer-events: none;
    opacity: 0.85;
}

#custom-cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s, background-color 0.15s, border-radius 0.15s;
    mix-blend-mode: difference;
}

#custom-cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s;
    will-change: transform;
}

#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    width: 0%;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.cyber-scanline {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 4px;
    background: rgba(99, 102, 241, 0.05);
    opacity: 0.3;
    z-index: 9999;
    pointer-events: none;
    animation: sweepScan 6s linear infinite;
}

/* ==========================================================================
   Project Dashboard Hub (Bento Modular Modal)
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(3, 0, 8, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.hub-container {
    width: 95%;
    max-width: 1100px;
    height: 85vh;
    margin: 7vh auto;
    background: rgba(8, 5, 18, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), var(--glow-shadow);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .hub-container {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    cursor: none;
    z-index: 100;
}

.close-modal:hover {
    color: var(--color-accent);
}

.hub-layout {
    display: flex;
    flex: 1;
    gap: var(--space-md);
    overflow: hidden;
    margin-top: var(--space-sm);
}

.hub-sidebar {
    width: 240px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: 1px solid var(--border-glass);
    padding-right: var(--space-sm);
}

.hub-tab-btn {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    text-align: left;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--color-primary);
    background: rgba(99, 102, 241, 0.05);
}

.hub-tab-btn.active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.hub-content {
    flex: 1;
    overflow-y: auto;
    padding-left: 5px;
}

.hub-pane {
    display: none;
    height: 100%;
}

.hub-pane.active {
    display: flex;
    flex-direction: column;
}

/* Media Gallery Tab inside Hub */
.hub-media-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.hub-media-display {
    flex: 1;
    background: #000;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hub-media-display img,
.hub-media-display video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hub-media-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-bottom: 10px;
}

.hub-counter {
    font-family: var(--font-mono);
    color: var(--color-secondary);
}

/* PDF Rapport Tab inside Hub */
.hub-doc-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    gap: 20px;
}

.doc-cover-mockup {
    background: rgba(239, 68, 68, 0.05);
    border: 2px dashed rgba(239, 68, 68, 0.2);
    padding: var(--space-lg);
    border-radius: var(--border-radius-md);
    max-width: 500px;
}

.doc-large-icon {
    font-size: 5rem;
    color: #ef4444;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3));
}

.doc-cover-mockup h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Git Code Source tab inside Hub */
.terminal-mockup {
    background: #020104;
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.term-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 10px;
}

.terminal-body {
    padding: var(--space-md);
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.9rem;
}

.term-prompt { color: var(--color-primary); }
.term-line { margin-bottom: 8px; }
.term-line.success { color: #22c55e; }

/* Interactive Lightbox CSS */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 110000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(3, 0, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.lightbox-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    width: 90%;
    height: 85%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    object-fit: contain;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: var(--transition-fast);
    z-index: 10;
}

.lightbox-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-shadow);
}

.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

.lightbox-caption {
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
    font-family: var(--font-mono);
    color: var(--color-secondary);
}

/* ==========================================================================
   Animations & Transition Effects
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes sweepScan {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(200vh); }
}

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

@keyframes scrollMouse {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 15px); }
}

@keyframes loopMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 10px), 0, 0); }
}

@keyframes loopMarqueeReverse {
    0% { transform: translate3d(calc(-50% - 10px), 0, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

footer {
    padding: var(--space-md) 0;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    background: rgba(3, 0, 8, 0.5);
}

footer p {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    body, a, button, input, textarea, select {
        cursor: auto !important; /* Restore cursor on tablets/mobiles */
    }
    #custom-cursor, #custom-cursor-ring {
        display: none !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-lg);
    }
    
    .hero-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .avatar-wrapper {
        width: 280px;
        height: 350px;
    }
    
    .about-bento {
        grid-template-columns: 1fr;
    }
    
    .bento-about-text {
        grid-column: auto !important;
    }
    
    .bento-about-image {
        grid-column: auto !important;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-column: auto !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-card {
        grid-column: auto !important;
    }
    
    .vids-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .academic-grid {
        grid-template-columns: 1fr;
    }
    
    .academic-card-small, .academic-card-large, .academic-card-wide, .academic-card {
        grid-column: auto !important;
    }
    
    .projects-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .exp-grid {
        grid-template-columns: 1fr;
    }
    
    .exp-photo-box {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .certifs-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .contact-form {
        padding: var(--space-md);
    }

    .hero-name {
        line-height: 1.1;
    }
    
    .hero-role-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-grid {
        gap: var(--space-md);
    }

    section {
        padding: var(--space-md) 0;
    }
    
    .header-nav {
        width: max-content;
        max-width: 90vw;
        padding: 6px 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-radius: 40px;
    }
    
    .header-nav::-webkit-scrollbar {
        display: none;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-links {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: nowrap;
        width: max-content;
        padding-right: 8px;
    }
    
    .nav-links li a {
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .roadmap-backbone {
        left: 20px;
    }
    
    .roadmap-backbone-fill {
        left: 20px;
    }
    
    .roadmap-node {
        flex-direction: column;
        padding-left: 45px;
    }
    
    .roadmap-marker {
        left: 20px;
    }
    
    .roadmap-content {
        width: 100%;
    }
    
    .roadmap-node-left .roadmap-content,
    .roadmap-node-right .roadmap-content {
        margin-left: 0;
        margin-right: 0;
    }
    
    .projects-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .vids-grid {
        grid-template-columns: 1fr;
    }
    
    .hub-layout {
        flex-direction: column;
    }
    
    .hub-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding-right: 0;
        padding-bottom: 10px;
    }
    
    .hub-tab-btn {
        white-space: nowrap;
        padding: 10px 14px;
    }
    
    .hub-media-display {
        height: 240px;
    }

    /* Avatar & HUD Ring Mobile Optimization */
    .avatar-wrapper {
        width: 240px !important;
        height: 240px !important;
        border-radius: 50% !important;
        margin: 0 auto;
    }
    
    .avatar-3d-card {
        border-radius: 50% !important;
    }
    
    .avatar-3d-card::before {
        border-radius: 50% !important;
    }
    
    .avatar-hud-ring {
        width: 285px !important;
        height: 285px !important;
    }
    
    /* Project Hub Mobile Optimization */
    .hub-container {
        padding: var(--space-sm) !important;
        height: 90vh !important;
        margin: 5vh auto !important;
    }
    
    .terminal-body {
        padding: var(--space-sm) !important;
        font-size: 0.8rem !important;
    }
    
    .doc-cover-mockup {
        padding: var(--space-md) !important;
    }
    
    .close-modal {
        top: 15px !important;
        right: 15px !important;
        font-size: 1.5rem !important;
    }
    
    /* Lightbox Mobile Optimization */
    .lightbox-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    .lightbox-arrow.prev { left: 10px !important; }
    .lightbox-arrow.next { right: 10px !important; }
}

/* ==========================================================================
   Awwwards Creative Refinements (Hover Glows, Reveal Masks, Scrambles)
   ========================================================================== */

/* Scramble typography highlights */
.scramble-char {
    color: var(--color-secondary);
    font-family: var(--font-mono);
    font-weight: 700;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.7);
}


/* Dynamic Card Borders Mouse Hover Glow */
.bento-card, .vid-card, .cert-bento, .project-card, .contact-form, .roadmap-content {
    position: relative;
    z-index: 1;
}

.bento-card::after, .vid-card::after, .cert-bento::after, .project-card::after, .contact-form::after, .roadmap-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(
        300px circle at var(--mouse-x, 0px) var(--mouse-y, 0px),
        rgba(99, 102, 241, 0.45) 0%,
        rgba(6, 182, 212, 0.25) 30%,
        transparent 70%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.bento-card:hover::after, .vid-card:hover::after, .cert-bento:hover::after, .project-card:hover::after, .contact-form:hover::after, .roadmap-content:hover::after {
    opacity: 1;
}

/* Magnetic Element Smoothing wrapper */
.magnetic-item {
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Section Title and Typography Enhancements */
.section-num {
    font-weight: 500;
    color: var(--color-accent);
}

.hero-name {
    text-transform: uppercase;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.section-title span.title-main {
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

/* Scroll Progress Ring on Custom Cursor Ring */
#custom-cursor-ring {
    border-width: 1px;
}
