/* ============================================
   Portfolio — Design System & Styles
   Role: Computer Graphics Engineer & Technical Artist
   Theme: High-Tech Dark Mode (Awwwards/FWA Standard)
   ============================================ */

/* ---------- CSS Custom Properties & Design Tokens ---------- */
:root {
    /* Backgrounds & Surface Depth (Obsidian Tech - Blueprint §2.4) */
    --bg-primary:     #0A0A0C;       /* Main canvas (near black, cool undertone) */
    --bg-secondary:   #121216;       /* Elevated cards & bento boxes */
    --bg-tertiary:    #181820;       /* Surface layers & modals */
    --bg-card:        rgba(18, 18, 22, 0.72);
    --bg-card-hover:  rgba(26, 26, 34, 0.88);
    --bg-glass:       rgba(18, 18, 22, 0.75);
    
    /* Typography Colors */
    --text-primary:   #F4F4F6;       /* Off-white, eliminates harsh glare */
    --text-secondary: #8E8E93;       /* Balanced slate grey for body */
    --text-muted:     #5A5A64;       /* Deep slate grey for labels & metatags */
    
    /* Tech Brand Accent Colors */
    --accent-primary:   #E2FF32;     /* Acid Lime (High-tech contrast accent) */
    --accent-secondary: #00A8FF;     /* Tech Electric Blue */
    --accent-glow:      #EEFF66;
    --accent-subtle:    rgba(226, 255, 50, 0.10);
    
    /* Borders & Dividers */
    --border-color:     rgba(255, 255, 255, 0.08);
    --border-subtle:    rgba(255, 255, 255, 0.06);
    --border-hover:     rgba(255, 255, 255, 0.22);
    --border-highlight: rgba(226, 255, 50, 0.35);
    
    /* Gradients */
    --gradient-hero:    radial-gradient(circle at 50% 20%, rgba(26, 28, 38, 0.75) 0%, #0A0A0C 80%);
    --gradient-card:    linear-gradient(135deg, rgba(22, 22, 28, 0.75) 0%, rgba(14, 14, 18, 0.85) 100%);
    --gradient-accent:  linear-gradient(135deg, #E2FF32 0%, #B8DC14 100%);
    --gradient-glow:    radial-gradient(circle, rgba(226, 255, 50, 0.12) 0%, transparent 70%);
    
    /* Platform Color Identities */
    --color-blender:         #f5792a;
    --color-blender-glow:    rgba(245, 121, 42, 0.35);
    --color-blender-subtle:  rgba(245, 121, 42, 0.12);
    
    --color-unreal:          #00a8ff;
    --color-unreal-glow:     rgba(0, 168, 255, 0.35);
    --color-unreal-subtle:   rgba(0, 168, 255, 0.12);
    
    --color-opengl:          #00e5a3;
    --color-opengl-glow:     rgba(0, 229, 163, 0.35);
    --color-opengl-subtle:   rgba(0, 229, 163, 0.12);
    
    --color-cuda:            #76b900;
    --color-cuda-glow:       rgba(118, 185, 0, 0.35);
    --color-cuda-subtle:     rgba(118, 185, 0, 0.12);
    
    --color-embedded:        #ff4757;
    --color-embedded-glow:   rgba(255, 71, 87, 0.35);
    --color-embedded-subtle: rgba(255, 71, 87, 0.12);
    
    --color-qa:              #00b4d8;
    --color-qa-glow:         rgba(0, 180, 216, 0.35);
    --color-qa-subtle:       rgba(0, 180, 216, 0.12);
    
    /* Shadows & Depths */
    --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md:  0 6px 20px rgba(0, 0, 0, 0.55);
    --shadow-lg:  0 14px 45px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 25px rgba(226, 255, 50, 0.2);
    
    /* Typography */
    --font-heading: 'Space Grotesk', 'Syne', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: clamp(5rem, 10vw, 8.5rem);
    --container-max: 1240px;
    --container-padding: clamp(1.25rem, 5vw, 2.5rem);
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 180ms var(--ease-out-expo);
    --transition-base: 360ms var(--ease-out-expo);
    --transition-slow: 600ms var(--ease-out-expo);
    
    /* Border Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: #25263a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

::selection {
    background: var(--accent-primary);
    color: #ffffff;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-glow);
}

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

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

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-glow);
    outline-offset: 3px;
}

/* ---------- Top Reading Progress Bar ---------- */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-primary), #00a8ff, #00e5a3);
    z-index: 9999;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.7);
    transition: width 0.1s ease-out;
}

/* ---------- Ambient Background Aura ---------- */
.ambient-mesh-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.12) 0%, rgba(7, 7, 12, 0) 70%);
    transition: background 0.8s ease;
}

/* ---------- Layout & Utility ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 2;
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-number {
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 500;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 680px;
    line-height: 1.7;
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out-expo), 
                transform 0.75s var(--ease-out-expo);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   NAVIGATION — FLOATING GLASS PILL (Blueprint §4.2)
   ============================================ */
.navbar {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 2.5rem), var(--container-max));
    z-index: 1000;
    padding: 0.55rem 1.25rem;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(14, 14, 18, 0.90);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
    padding: 0.45rem 1.25rem;
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    color: var(--text-primary);
    transform: scale(1.02);
}

.logo-bracket {
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), 
                opacity var(--transition-fast);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile-Native Component Defaults (Hidden on Desktop) */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-mobile-copy-btn {
    display: none;
}

.skills-mobile-filter {
    display: none;
}

.workflow-stage-stepper {
    display: none;
}

.mobile-bottom-dock {
    display: none;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    opacity: 0.85;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--container-padding);
    max-width: 920px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Status Pill */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 1.15rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #34d399;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.12);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: statusPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-greeting {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-glow);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.greeting-line {
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--accent-primary);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8.5vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.15rem;
    color: #ffffff;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.7vw, 1.65rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.15rem;
    letter-spacing: -0.015em;
    line-height: 1.35;
    max-width: 780px;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 680px;
    line-height: 1.65;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.7s forwards;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 1s forwards;
}

/* Telemetry Strip */
.hero-telemetry-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 3.5rem;
    padding: 0.85rem 1.85rem;
    background: rgba(18, 19, 32, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.telemetry-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.telemetry-val {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.telemetry-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.75rem;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(24px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: #0A0A0C;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(226, 255, 50, 0.3);
}

.btn-primary:hover {
    background: var(--accent-glow);
    color: #0A0A0C;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(226, 255, 50, 0.45);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn--copied {
    background: #10B981 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-outline {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Scroll Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInUp 0.8s var(--ease-out-expo) 1.4s forwards;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(10px); opacity: 0; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4.5rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

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

.about-highlights {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.highlight-item {
    text-align: left;
}

.highlight-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.1;
    background: linear-gradient(135deg, #a78bfa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-mono);
}

.about-image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.about-image-frame img {
    width: 100%;
    border-radius: var(--radius-lg);
    transition: transform 0.8s var(--ease-out-expo);
}

.about-image-frame:hover img {
    transform: scale(1.04);
}

.image-frame-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: box-shadow var(--transition-base);
}

.about-image-frame:hover .image-frame-border {
    box-shadow: inset 0 0 0 1.5px var(--accent-glow);
}

/* About Profile Card & Avatar Showcase */
.about-profile-card {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

/* Ambient glow backdrop behind the profile card */
.about-profile-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.3) 0%, rgba(109, 40, 217, 0.12) 45%, transparent 70%);
    border-radius: 40px;
    z-index: 0;
    filter: blur(24px);
    pointer-events: none;
    transition: opacity var(--transition-base), background var(--transition-base);
}

.about-profile-card:hover::before {
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.45) 0%, rgba(0, 168, 255, 0.25) 50%, transparent 70%);
}

.about-image-frame--profile {
    position: relative;
    z-index: 1;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(25, 27, 44, 0.8) 0%, rgba(13, 14, 23, 0.9) 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(139, 92, 246, 0.2);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.about-image-frame--profile:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(167, 139, 250, 0.45);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8),
                0 0 35px rgba(139, 92, 246, 0.35);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 28px;
    transition: transform 0.8s var(--ease-out-expo), filter 0.5s ease;
    filter: brightness(0.98) contrast(1.05);
}

.about-image-frame--profile:hover .profile-avatar-img {
    transform: scale(1.05);
    filter: brightness(1.02) contrast(1.08);
}

/* Glassmorphism Badge Overlay */
.profile-badge-overlay {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.15rem;
    background: rgba(10, 11, 20, 0.75);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.about-image-frame--profile:hover .profile-badge-overlay {
    background: rgba(13, 14, 26, 0.88);
    border-color: rgba(167, 139, 250, 0.35);
}

.profile-github-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.profile-github-tag svg {
    color: var(--accent-glow);
    transition: transform var(--transition-fast);
}

.profile-github-tag:hover {
    color: var(--accent-glow);
}

.profile-github-tag:hover svg {
    transform: rotate(8deg) scale(1.15);
}

.profile-status-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}

/* Personal Interests in About */
.about-interests {
    margin-top: 3.5rem;
    padding: 2.25rem 2.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.interests-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.interest-pill {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.interest-pill:hover {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15);
}

.interest-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}

.interest-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.interest-info strong {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 700;
}

.interest-info span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================
   EDUCATION & ACADEMIC JOURNEY
   ============================================ */
.education {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    backdrop-filter: blur(14px);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
}

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

.education-card-badge {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-glow);
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.education-card-badge--completed {
    background: rgba(0, 229, 163, 0.12);
    color: var(--color-opengl);
    border-color: rgba(0, 229, 163, 0.3);
}

.education-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.4rem;
    padding-right: 6.5rem;
}

.education-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-primary);
    color: var(--accent-glow);
    box-shadow: 0 0 16px var(--accent-subtle);
    flex-shrink: 0;
}

.education-icon svg {
    width: 26px;
    height: 26px;
}

.education-institution {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-glow);
    display: block;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.education-degree {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.education-degree-it {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.25rem;
}

.education-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.75rem;
    flex: 1;
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

/* ============================================
   SKILLS & EXPERTISE
   ============================================ */
.skills {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.75rem;
}

/* Bento Grid Matrix (Blueprint §2.1) */
.skills-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-span-7 {
    grid-column: span 7;
}

.bento-span-5 {
    grid-column: span 5;
}

.bento-span-4 {
    grid-column: span 4;
}

.bento-span-12 {
    grid-column: span 12;
}

.skill-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
}

/* Spotlight radial highlight on card hover */
.skill-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.skill-card:hover::after {
    opacity: 1;
}

.skill-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.skill-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.skill-icon svg {
    width: 26px;
    height: 26px;
}

.skill-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Platform-specific Skill Badges & Icons */
.skill-card--blender .skill-icon {
    background: var(--color-blender-subtle);
    color: var(--color-blender);
    border: 1px solid rgba(245, 121, 42, 0.3);
}
.skill-card--blender .skill-badge {
    background: var(--color-blender-subtle);
    color: var(--color-blender);
    border: 1px solid rgba(245, 121, 42, 0.3);
}
.skill-card--blender:hover {
    border-color: var(--color-blender);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--color-blender-glow);
}

.skill-card--unreal .skill-icon {
    background: var(--color-unreal-subtle);
    color: var(--color-unreal);
    border: 1px solid rgba(0, 168, 255, 0.3);
}
.skill-card--unreal .skill-badge {
    background: var(--color-unreal-subtle);
    color: var(--color-unreal);
    border: 1px solid rgba(0, 168, 255, 0.3);
}
.skill-card--unreal:hover {
    border-color: var(--color-unreal);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--color-unreal-glow);
}

.skill-card--opengl .skill-icon {
    background: var(--color-opengl-subtle);
    color: var(--color-opengl);
    border: 1px solid rgba(0, 229, 163, 0.3);
}
.skill-card--opengl .skill-badge {
    background: var(--color-opengl-subtle);
    color: var(--color-opengl);
    border: 1px solid rgba(0, 229, 163, 0.3);
}
.skill-card--opengl:hover {
    border-color: var(--color-opengl);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--color-opengl-glow);
}

.skill-card--cuda .skill-icon {
    background: var(--color-cuda-subtle);
    color: var(--color-cuda);
    border: 1px solid rgba(118, 185, 0, 0.3);
}
.skill-card--cuda .skill-badge {
    background: var(--color-cuda-subtle);
    color: var(--color-cuda);
    border: 1px solid rgba(118, 185, 0, 0.3);
}
.skill-card--cuda:hover {
    border-color: var(--color-cuda);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--color-cuda-glow);
}

.skill-card--embedded .skill-icon {
    background: var(--color-embedded-subtle);
    color: var(--color-embedded);
    border: 1px solid rgba(255, 71, 87, 0.3);
}
.skill-card--embedded .skill-badge {
    background: var(--color-embedded-subtle);
    color: var(--color-embedded);
    border: 1px solid rgba(255, 71, 87, 0.3);
}
.skill-card--embedded:hover {
    border-color: var(--color-embedded);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px var(--color-embedded-glow);
}

.skill-card--qa .skill-icon {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid #38bdf8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}
.skill-card--qa .skill-badge {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.skill-card--qa:hover {
    border-color: #38bdf8;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(56, 189, 248, 0.25);
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.skill-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Specialization Focus Line */
.skill-focus-line {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    width: fit-content;
}

.focus-label {
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    padding: 0.15rem 0.45rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.78rem;
    font-weight: 500;
    font-family: var(--font-mono);
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-fast);
}

.skill-card:hover .tag {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* ============================================
   PROJECT MEDIA SHOWCASE & PREVIEW STRIP
   ============================================ */
.project-media-showcase {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.project-media--clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    aspect-ratio: 16 / 9;
}

.project-media--clickable img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s var(--ease-out-expo), filter 0.4s ease;
}

.project-media--clickable:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.project-media-hover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 7, 12, 0.85) 0%, rgba(7, 7, 12, 0.35) 60%, rgba(7, 7, 12, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 4;
}

.project-media--clickable:hover .project-media-hover-overlay {
    opacity: 1;
}

.media-hover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    transform: translateY(10px);
    transition: transform var(--transition-base);
    background: rgba(18, 19, 32, 0.75);
    padding: 0.85rem 1.45rem;
    border-radius: 100px;
    border: 1px solid rgba(245, 121, 42, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--color-blender-glow);
    backdrop-filter: blur(12px);
}

.media-hover-content--unreal {
    border-color: rgba(0, 168, 255, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 24px var(--color-unreal-glow);
}

.project-media--clickable:hover .media-hover-content {
    transform: translateY(0);
}

.media-hover-icon {
    color: var(--color-blender);
    display: flex;
}

.media-hover-icon--unreal {
    color: var(--color-unreal);
}

.media-hover-text {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
}

/* Mini Preview Thumbnails Row */
.project-thumb-preview-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.65rem;
    width: 100%;
}

.thumb-preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.thumb-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.thumb-preview-item:hover {
    border-color: var(--color-blender);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-blender-glow);
}

.thumb-preview-item:hover img {
    transform: scale(1.08);
}

.thumb-tag {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    background: rgba(7, 7, 12, 0.85);
    border-radius: 4px;
    color: var(--text-primary);
    backdrop-filter: blur(6px);
    pointer-events: none;
    line-height: 1;
}

.thumb-preview-item--unreal:hover {
    border-color: var(--color-unreal);
    box-shadow: 0 6px 16px var(--color-unreal-glow);
}

.thumb-preview-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(245, 121, 42, 0.08);
    border: 1px dashed rgba(245, 121, 42, 0.4);
    color: var(--color-blender);
    transition: all var(--transition-fast);
}

.thumb-preview-more:hover {
    background: rgba(245, 121, 42, 0.18);
    border-color: var(--color-blender);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-blender-glow);
}

.thumb-preview-more--unreal {
    background: rgba(0, 168, 255, 0.08);
    border-color: rgba(0, 168, 255, 0.4);
    color: var(--color-unreal);
}

.thumb-preview-more--unreal:hover {
    background: rgba(0, 168, 255, 0.18);
    border-color: var(--color-unreal);
    box-shadow: 0 6px 20px var(--color-unreal-glow);
}

.more-count {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-blender);
    line-height: 1;
}

.more-count--unreal {
    color: var(--color-unreal);
}

.more-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.project-gallery-trigger-btn {
    background: var(--color-blender);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px var(--color-blender-glow);
}

.project-gallery-trigger-btn:hover {
    background: #ff8c3b;
    box-shadow: 0 6px 26px rgba(245, 121, 42, 0.5);
    transform: translateY(-2px);
}

.project-gallery-trigger-btn--unreal {
    background: var(--color-unreal);
    box-shadow: 0 4px 18px var(--color-unreal-glow);
}

.project-gallery-trigger-btn--unreal:hover {
    background: #24b6ff;
    box-shadow: 0 6px 26px rgba(0, 168, 255, 0.5);
    transform: translateY(-2px);
}

/* ============================================
   METAHUMAN FLAGSHIP REORGANIZED SHOWCASE
   ============================================ */
.project-card.project-card--metahuman,
.project-card.project-card--environment {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    padding: 0 !important;
    gap: 0 !important;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
}

.project-card.project-card--metahuman:hover,
.project-card.project-card--environment:hover {
    border-color: var(--color-unreal);
    box-shadow: 0 16px 45px var(--color-unreal-glow);
    transform: translateY(-4px);
}

/* Top Overview Section: Balanced 2 Columns */
.metahuman-overview,
.environment-overview {
    display: grid !important;
    grid-template-columns: 1.05fr 1fr !important;
    gap: 2.25rem !important;
    align-items: center !important;
    padding: 2.25rem 2.25rem 1.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.metahuman-hero-column,
.environment-hero-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
}

.metahuman-hero-column .project-media,
.environment-hero-column .project-media {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-subtle);
    background: #090c16;
}

.metahuman-quick-stats,
.environment-quick-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0.65rem 1rem;
    background: rgba(0, 168, 255, 0.05);
    border: 1px solid rgba(0, 168, 255, 0.16);
    border-radius: var(--radius-md);
    backdrop-filter: blur(8px);
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.quick-stat-num {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--color-unreal);
    line-height: 1.1;
}

.quick-stat-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.quick-stat-sep {
    width: 1px;
    height: 22px;
    background: rgba(0, 168, 255, 0.2);
}

.metahuman-info-column,
.environment-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.metahuman-info-column .project-tag,
.environment-info-column .project-tag {
    margin-bottom: 0.5rem;
}

.metahuman-info-column .project-title,
.environment-info-column .project-title {
    margin-bottom: 0.75rem;
}

.metahuman-info-column .project-desc,
.environment-info-column .project-desc {
    margin-bottom: 1.25rem;
    font-size: 0.93rem;
    line-height: 1.7;
}

.metahuman-info-column .project-specs,
.environment-info-column .project-specs {
    margin-bottom: 1.25rem;
}

/* Bottom Section: 3-Column Production Pipeline Workflow */
.metahuman-workflow-section,
.environment-workflow-section {
    width: 100% !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(0, 168, 255, 0.18);
    background: linear-gradient(180deg, rgba(8, 14, 26, 0.75) 0%, rgba(5, 8, 16, 0.9) 100%);
    padding: 1.85rem 2.25rem 2.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.35rem !important;
}

.metahuman-workflow-header,
.environment-workflow-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workflow-header-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.workflow-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-unreal);
}

.workflow-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.workflow-hint {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
}

.metahuman-workflow-grid,
.environment-workflow-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.35rem !important;
    width: 100% !important;
    align-items: stretch !important;
}

.workflow-stage-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(12, 18, 32, 0.65);
    border: 1px solid rgba(0, 168, 255, 0.16);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    transition: all var(--transition-base);
}

.workflow-stage-card:hover {
    border-color: rgba(0, 168, 255, 0.38);
    background: rgba(15, 24, 42, 0.85);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 168, 255, 0.12);
    transform: translateY(-3px);
}

.stage-card-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.stage-num-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-unreal);
    background: rgba(0, 168, 255, 0.15);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid rgba(0, 168, 255, 0.35);
    line-height: 1.1;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.stage-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

.stage-subtitle {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.stage-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}

.stage-desc code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 168, 255, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    color: #67e8f9;
}

.stage-gallery-flow {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
    margin-top: auto;
}

.stage-gallery-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
}

.stage-gallery-quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
}

/* Individual Stage Thumb Card */
.stage-thumb-card {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #080a14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all var(--transition-fast);
    aspect-ratio: 16 / 10;
    display: block;
    outline: none;
}

.stage-thumb-card--hero {
    aspect-ratio: 16 / 9;
}

.stage-gallery-quad .stage-thumb-card {
    aspect-ratio: 16 / 10;
}

.stage-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out-expo), filter 0.35s ease;
}

.stage-thumb-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.08);
}

.stage-thumb-card:hover {
    border-color: var(--color-unreal);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px var(--color-unreal-glow);
    transform: translateY(-2px);
}

.stage-thumb-card:focus-visible {
    border-color: var(--color-unreal);
    box-shadow: 0 0 0 3px rgba(0, 168, 255, 0.4);
}

.stage-thumb-tag {
    position: absolute;
    bottom: 0.35rem;
    left: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    background: rgba(7, 10, 18, 0.88);
    border: 1px solid rgba(0, 168, 255, 0.35);
    border-radius: 4px;
    color: #e0f2fe;
    backdrop-filter: blur(6px);
    z-index: 2;
    pointer-events: none;
    line-height: 1.1;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stage-thumb-zoom-icon {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(7, 10, 18, 0.8);
    border: 1px solid rgba(0, 168, 255, 0.3);
    color: var(--color-unreal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
    z-index: 2;
}

.stage-thumb-zoom-icon svg {
    width: 12px;
    height: 12px;
}

.stage-thumb-card:hover .stage-thumb-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   ENHANCED 3D LOOKDEV VIEWER / LIGHTBOX MODAL
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.94);
    backdrop-filter: blur(24px);
    z-index: 1;
}

.lightbox-modal {
    position: relative;
    z-index: 2;
    width: 95vw;
    max-width: 1300px;
    height: 94vh;
    display: flex;
    flex-direction: column;
    background: rgba(14, 15, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 121, 42, 0.12);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

/* Modal Header */
.lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(10, 10, 16, 0.6);
    flex-wrap: wrap;
    gap: 1rem;
}

.lightbox-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.lightbox-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-blender);
    background: rgba(245, 121, 42, 0.15);
    border: 1px solid rgba(245, 121, 42, 0.3);
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

/* In-Modal Filters */
.lightbox-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.lightbox-filter-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-filter-btn:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.lightbox-filter-btn.active {
    background: rgba(245, 121, 42, 0.15);
    border-color: var(--color-blender);
    color: var(--color-blender);
    box-shadow: 0 0 14px var(--color-blender-glow);
}

.lightbox-close {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

/* Modal Stage */
.lightbox-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    overflow: hidden;
    min-height: 0;
}

.lightbox-main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.lightbox-img-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    padding: 0.65rem 0.5rem 0;
    gap: 1rem;
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.45;
}

.lightbox-counter-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--color-blender);
    background: rgba(245, 121, 42, 0.12);
    border: 1px solid rgba(245, 121, 42, 0.3);
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    flex-shrink: 0;
}

.lightbox-nav {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    z-index: 5;
}

.lightbox-nav:hover {
    color: var(--text-primary);
    background: rgba(245, 121, 42, 0.2);
    border-color: var(--color-blender);
    transform: scale(1.1);
}

.lightbox-nav svg {
    width: 22px;
    height: 22px;
}

/* Bottom Filmstrip Carousel */
.lightbox-filmstrip-wrap {
    padding: 0.65rem 1.5rem;
    background: rgba(10, 10, 16, 0.75);
    border-top: 1px solid var(--border-subtle);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 121, 42, 0.4) transparent;
}

.lightbox-filmstrip-wrap::-webkit-scrollbar {
    height: 5px;
}
.lightbox-filmstrip-wrap::-webkit-scrollbar-thumb {
    background: rgba(245, 121, 42, 0.4);
    border-radius: 4px;
}

.lightbox-filmstrip {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: flex-start;
    min-width: max-content;
}

.filmstrip-item {
    position: relative;
    width: 82px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    padding: 0;
    background: transparent;
}

.filmstrip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filmstrip-item:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.filmstrip-item.active {
    opacity: 1;
    border-color: var(--color-blender);
    box-shadow: 0 0 14px var(--color-blender-glow);
    transform: scale(1.05);
}

.lightbox-footer-hints {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(7, 7, 12, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lightbox-footer-hints kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    padding: 0.1rem 0.35rem;
    color: var(--text-secondary);
}

/* Lightbox Dynamic Unreal Engine Theme Modifiers */
.lightbox--unreal .lightbox-modal {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.25);
}

.lightbox--unreal .lightbox-badge {
    color: var(--color-unreal);
    background: rgba(0, 168, 255, 0.15);
    border-color: rgba(0, 168, 255, 0.3);
}

.lightbox--unreal .lightbox-filter-btn.active {
    background: rgba(0, 168, 255, 0.15);
    border-color: var(--color-unreal);
    color: var(--color-unreal);
    box-shadow: 0 0 14px var(--color-unreal-glow);
}

.lightbox--unreal .lightbox-counter-badge {
    color: var(--color-unreal);
    background: rgba(0, 168, 255, 0.12);
    border-color: rgba(0, 168, 255, 0.3);
}

.lightbox--unreal .lightbox-nav:hover {
    background: rgba(0, 168, 255, 0.2);
    border-color: var(--color-unreal);
    color: var(--color-unreal);
}

.lightbox--unreal .filmstrip-item.active {
    border-color: var(--color-unreal);
    box-shadow: 0 0 14px var(--color-unreal-glow);
}

.lightbox--unreal .lightbox-filmstrip-wrap {
    scrollbar-color: rgba(0, 168, 255, 0.4) transparent;
}

.lightbox--unreal .lightbox-filmstrip-wrap::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 255, 0.4);
}

/* ============================================
   PROJECTS & PLATFORM DESIGN SYSTEM
   ============================================ */
.projects {
    background: var(--bg-secondary);
}

.platform-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}

.platform-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.platform-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.filter-dot--all { background: var(--accent-primary); }
.filter-dot--blender { background: var(--color-blender); }
.filter-dot--unreal { background: var(--color-unreal); }
.filter-dot--opengl { background: var(--color-opengl); }
.filter-dot--cuda { background: var(--color-cuda); }
.filter-dot--embedded { background: var(--color-embedded); }

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.platform-filter-btn.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.platform-filter-btn.active .filter-dot {
    transform: scale(1.3);
}

.platform-filter-btn.active[data-filter="all"] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-subtle);
}

.platform-filter-btn.active.platform-filter-btn--blender {
    border-color: var(--color-blender);
    color: var(--color-blender);
    box-shadow: 0 0 20px var(--color-blender-glow);
}

.platform-filter-btn.active.platform-filter-btn--unreal {
    border-color: var(--color-unreal);
    color: var(--color-unreal);
    box-shadow: 0 0 20px var(--color-unreal-glow);
}

.platform-filter-btn.active.platform-filter-btn--opengl {
    border-color: var(--color-opengl);
    color: var(--color-opengl);
    box-shadow: 0 0 20px var(--color-opengl-glow);
}

.platform-filter-btn.active.platform-filter-btn--cuda {
    border-color: var(--color-cuda);
    color: var(--color-cuda);
    box-shadow: 0 0 20px var(--color-cuda-glow);
}

.platform-filter-btn.active.platform-filter-btn--embedded {
    border-color: var(--color-embedded);
    color: var(--color-embedded);
    box-shadow: 0 0 20px var(--color-embedded-glow);
}

/* Platform Section */
.platform-section {
    margin-bottom: 4.5rem;
    transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
}

.platform-section.is-hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

/* Platform Header */
.platform-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.85rem;
    margin-bottom: 1.85rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.platform-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.platform-header--blender::before { background: var(--color-blender); }
.platform-header--unreal::before { background: var(--color-unreal); }
.platform-header--opengl::before { background: var(--color-opengl); }
.platform-header--cuda::before { background: var(--color-cuda); }
.platform-header--embedded::before { background: var(--color-embedded); }

.platform-header-left {
    display: flex;
    align-items: center;
    gap: 1.35rem;
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-icon svg {
    width: 26px;
    height: 26px;
}

.platform-icon--blender {
    background: var(--color-blender-subtle);
    color: var(--color-blender);
    border: 1px solid var(--color-blender);
    box-shadow: 0 0 16px var(--color-blender-glow);
}

.platform-icon--unreal {
    background: var(--color-unreal-subtle);
    color: var(--color-unreal);
    border: 1px solid var(--color-unreal);
    box-shadow: 0 0 16px var(--color-unreal-glow);
}

.platform-icon--opengl {
    background: var(--color-opengl-subtle);
    color: var(--color-opengl);
    border: 1px solid var(--color-opengl);
    box-shadow: 0 0 16px var(--color-opengl-glow);
}

.platform-icon--cuda {
    background: var(--color-cuda-subtle);
    color: var(--color-cuda);
    border: 1px solid var(--color-cuda);
    box-shadow: 0 0 16px var(--color-cuda-glow);
}

.platform-icon--embedded {
    background: var(--color-embedded-subtle);
    color: var(--color-embedded);
    border: 1px solid var(--color-embedded);
    box-shadow: 0 0 16px var(--color-embedded-glow);
}

.platform-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.platform-name {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.platform-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-badge--blender {
    background: var(--color-blender-subtle);
    color: var(--color-blender);
    border: 1px solid rgba(245, 121, 42, 0.35);
}
.platform-badge--unreal {
    background: var(--color-unreal-subtle);
    color: var(--color-unreal);
    border: 1px solid rgba(0, 168, 255, 0.35);
}
.platform-badge--opengl {
    background: var(--color-opengl-subtle);
    color: var(--color-opengl);
    border: 1px solid rgba(0, 229, 163, 0.35);
}
.platform-badge--cuda {
    background: var(--color-cuda-subtle);
    color: var(--color-cuda);
    border: 1px solid rgba(118, 185, 0, 0.35);
}
.platform-badge--embedded {
    background: var(--color-embedded-subtle);
    color: var(--color-embedded);
    border: 1px solid rgba(255, 71, 87, 0.35);
}

.platform-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

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

.projects-grid--duo {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
}

.projects-grid--duo .project-card {
    grid-template-columns: 1fr;
}

/* Project Card Base */
.project-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    position: relative;
    backdrop-filter: blur(12px);
}

/* Dynamic Spotlight Hover on Project Card */
.project-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.project-card:hover {
    transform: translateY(-5px);
}

.project-card--blender:hover {
    border-color: var(--color-blender);
    box-shadow: 0 14px 40px var(--color-blender-glow);
}
.project-card--unreal:hover {
    border-color: var(--color-unreal);
    box-shadow: 0 14px 40px var(--color-unreal-glow);
}
.project-card--opengl:hover {
    border-color: var(--color-opengl);
    box-shadow: 0 14px 40px var(--color-opengl-glow);
}
.project-card--cuda:hover {
    border-color: var(--color-cuda);
    box-shadow: 0 14px 40px var(--color-cuda-glow);
}
.project-card--embedded:hover {
    border-color: var(--color-embedded);
    box-shadow: 0 14px 40px var(--color-embedded-glow);
}

/* Project Media */
.project-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-tertiary);
}

.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.project-card:hover .project-thumbnail {
    transform: scale(1.05);
}

.project-media-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.project-media-badge--blender {
    background: rgba(7, 7, 12, 0.85);
    color: var(--color-blender);
    border: 1px solid var(--color-blender);
}

/* Video Embeds */
.video-embed {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.video-embed:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    opacity: 0.92;
    z-index: 3;
}

.video-play-btn:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
}

.video-play-btn svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.6));
}

.video-duration-badge {
    position: absolute;
    bottom: 0.85rem;
    right: 0.85rem;
    padding: 0.3rem 0.75rem;
    background: rgba(7, 10, 18, 0.88);
    border: 1px solid rgba(0, 168, 255, 0.35);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.video-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-unreal);
    box-shadow: 0 0 8px var(--color-unreal-glow);
    display: inline-block;
    animation: videoPulseDot 1.8s ease-in-out infinite;
}

@keyframes videoPulseDot {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.35); opacity: 1; }
}

/* Unreal Engine Custom Hero Video Embed */
.video-embed--unreal {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
}

.video-embed--unreal .video-play-btn--unreal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(8, 14, 26, 0.85);
    border: 2px solid var(--color-unreal);
    box-shadow: 0 0 25px var(--color-unreal-glow), 0 8px 30px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-unreal);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
    z-index: 4;
    cursor: pointer;
    padding: 0;
}

.video-embed--unreal:hover .video-play-btn--unreal {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(0, 168, 255, 0.25);
    border-color: #67e8f9;
    box-shadow: 0 0 35px rgba(0, 168, 255, 0.75), 0 12px 35px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.video-play-btn--unreal svg {
    width: 30px;
    height: 30px;
    margin-left: 3px;
    transition: transform var(--transition-fast);
}

.video-play-glow-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 168, 255, 0.5);
    animation: uePlayPulse 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
    pointer-events: none;
}

@keyframes uePlayPulse {
    0% { transform: scale(0.95); opacity: 0.85; }
    50% { transform: scale(1.28); opacity: 0.25; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Autoplay Hero Video Embed */
.project-media--autoplay {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #090c16 url('../media/envirorment/TA-G08-Finale-Presentazione-overview.png') center/cover no-repeat;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.hero-autoplay-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: inherit;
    display: block;
    z-index: 1;
}

.project-media-badge--autoplay {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 2;
    pointer-events: none;
    background: rgba(7, 10, 18, 0.88);
    border: 1px solid var(--color-unreal);
    color: var(--color-unreal);
    box-shadow: 0 0 16px var(--color-unreal-glow);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.badge-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    display: inline-block;
    animation: liveDotPulse 1.8s ease-in-out infinite;
}

@keyframes liveDotPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.4); opacity: 1; }
}

/* Canva Presentation Card */
.project-media--canva {
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b263b 0%, #0c121e 100%);
    position: relative;
}

.canva-showcase-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
    position: relative;
    z-index: 2;
}

.canva-glow-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.3) 0%, transparent 70%);
    filter: blur(14px);
    animation: pulseRing 3s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

.canva-icon {
    width: 58px;
    height: 58px;
    color: var(--color-unreal);
    transition: transform var(--transition-fast);
}

.project-card:hover .canva-icon {
    transform: scale(1.12);
}

.canva-badge-pill {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
    background: rgba(0, 168, 255, 0.15);
    border: 1px solid rgba(0, 168, 255, 0.45);
    border-radius: 100px;
    color: var(--color-unreal);
}

/* Code Banner Media */
.project-media--code {
    display: flex;
    align-items: stretch;
    background: #090a10;
}

.code-media-banner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    background: #090a10;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.65;
    position: relative;
}

.code-terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    flex: 1;
}

/* Copy Code Button */
.code-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.code-copy-btn.copied {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
}

.code-snippet {
    color: #cbd5e1;
    overflow: hidden;
    flex: 1;
}

.syn-kw { color: #f43f5e; font-weight: 600; }
.syn-type { color: #38bdf8; }
.syn-comment { color: #64748b; font-style: italic; }

.code-footer-badge {
    margin-top: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.code-media-banner--opengl { border-left: 3px solid var(--color-opengl); }
.code-media-banner--opengl .code-footer-badge { color: var(--color-opengl); }

.code-media-banner--cuda { border-left: 3px solid var(--color-cuda); }
.code-media-banner--cuda .code-footer-badge { color: var(--color-cuda); }

.code-media-banner--embedded { border-left: 3px solid var(--color-embedded); }
.code-media-banner--embedded .code-footer-badge { color: var(--color-embedded); }

/* Project Info & Description */
.project-info {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.65rem;
}

.project-tag--blender { color: var(--color-blender); }
.project-tag--unreal { color: var(--color-unreal); }
.project-tag--opengl { color: var(--color-opengl); }
.project-tag--cuda { color: var(--color-cuda); }
.project-tag--embedded { color: var(--color-embedded); }

.project-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.project-desc {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

.project-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.spec-pill {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.35rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

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

.project-link--blender { color: var(--color-blender); border-color: rgba(245, 121, 42, 0.35); }
.project-link--blender:hover {
    background: var(--color-blender-subtle);
    border-color: var(--color-blender);
    color: #fff;
    box-shadow: 0 0 20px var(--color-blender-glow);
}

.project-link--unreal { color: var(--color-unreal); border-color: rgba(0, 168, 255, 0.35); }
.project-link--unreal:hover {
    background: var(--color-unreal-subtle);
    border-color: var(--color-unreal);
    color: #fff;
    box-shadow: 0 0 20px var(--color-unreal-glow);
}

.project-link--opengl { color: var(--color-opengl); border-color: rgba(0, 229, 163, 0.35); }
.project-link--opengl:hover {
    background: var(--color-opengl-subtle);
    border-color: var(--color-opengl);
    color: #fff;
    box-shadow: 0 0 20px var(--color-opengl-glow);
}

.project-link--cuda { color: var(--color-cuda); border-color: rgba(118, 185, 0, 0.35); }
.project-link--cuda:hover {
    background: var(--color-cuda-subtle);
    border-color: var(--color-cuda);
    color: #fff;
    box-shadow: 0 0 20px var(--color-cuda-glow);
}

.project-link--embedded { color: var(--color-embedded); border-color: rgba(255, 71, 87, 0.35); }
.project-link--embedded:hover {
    background: var(--color-embedded-subtle);
    border-color: var(--color-embedded);
    color: #fff;
    box-shadow: 0 0 20px var(--color-embedded-glow);
}

/* ============================================
   PROJECTS VIEW SWITCHER & PANELS
   ============================================ */
.projects-view-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.4rem;
    background: rgba(14, 15, 26, 0.75);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: fit-content;
    margin: 0 auto 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.view-switch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.6rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    user-select: none;
}

.view-switch-btn svg {
    transition: transform var(--transition-fast);
}

.view-switch-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.view-switch-btn.active {
    color: #ffffff;
    background: var(--gradient-accent);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.view-switch-btn.active svg {
    transform: scale(1.1);
}

.view-switch-count {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
    transition: background var(--transition-fast);
}

.view-switch-btn.active .view-switch-count {
    background: rgba(255, 255, 255, 0.25);
}

/* Panel Animation */
.projects-view-panel {
    animation: fadeInPanel 0.4s var(--ease-out-expo) forwards;
}

@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   GITHUB REPOSITORIES SECTION
   ============================================ */
.repositories {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.github-archive-telemetry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)) auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 2.25rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.telemetry-stat-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.telemetry-stat-num {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.telemetry-stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.telemetry-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.telemetry-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-mono);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--accent-subtle);
    border: 1px solid rgba(139, 92, 246, 0.35);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.telemetry-sync-btn {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
}

.telemetry-sync-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.telemetry-sync-btn.spinning svg {
    animation: repoSyncSpin 0.75s linear infinite;
}

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

.telemetry-profile-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.repo-filter-loading {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Language Filter Bar */
.repo-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.repo-filter-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.repo-lang-btn {
    padding: 0.4rem 1.1rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.repo-lang-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: var(--accent-subtle);
}

.repo-lang-btn.active {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

/* GitHub Repos Grid */
.github-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.github-repo-card {
    padding: 2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.github-repo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.github-repo-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(139, 92, 246, 0.15);
}

.github-repo-card:hover::before {
    opacity: 1;
}

.repo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.repo-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow: hidden;
}

.repo-icon {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.repo-icon svg {
    width: 22px;
    height: 22px;
}

.repo-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.repo-name:hover {
    color: var(--accent-glow);
}

.repo-external-icon {
    color: var(--text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.github-repo-card:hover .repo-external-icon {
    color: var(--accent-glow);
    transform: translate(2px, -2px);
}

.repo-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.repo-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.repo-topic-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.github-repo-card:hover .repo-topic-tag {
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.repo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.repo-meta {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.repo-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
}

.repo-lang-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.repo-meta-item svg {
    width: 15px;
    height: 15px;
}

.repo-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-glow);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.repo-action-link:hover {
    transform: translateX(3px);
}

.github-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3.5rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
}

.contact-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    line-height: 1.85;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 1.25rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    padding: 2.25rem 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

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

.contact-card svg {
    width: 32px;
    height: 32px;
    color: var(--accent-primary);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-card:hover svg {
    color: var(--accent-glow);
    transform: scale(1.15);
}

.contact-label {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.contact-value {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    word-break: break-all;
}

.contact-card.contact-card--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
}

.contact-card.contact-card--disabled:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
}

.contact-card.contact-card--disabled svg {
    color: var(--text-muted);
    transform: none;
}

.contact-card.contact-card--action {
    cursor: pointer;
    background: var(--gradient-card);
    width: 100%;
    border: 1px solid var(--border-subtle);
}

.contact-card.contact-card--action:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(226, 255, 50, 0.18);
}

/* ---------- Floating Micro-Toast Notification (Blueprint Rule 4.4) ---------- */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.35rem;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border-hover);
    border-radius: 9999px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(226, 255, 50, 0.15);
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    pointer-events: none;
    transition: opacity 280ms var(--ease-out-expo), transform 280ms var(--ease-out-expo);
}

.toast-notification.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(226, 255, 50, 0.18);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.toast-icon svg {
    width: 14px;
    height: 14px;
}


/* Curriculum Vitae Download Box */
.contact-cv-box {
    margin-top: 3.5rem;
    padding: 2.25rem 2.75rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    text-align: left;
}

.cv-box-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cv-box-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid var(--accent-primary);
    color: var(--accent-glow);
    box-shadow: 0 0 16px var(--accent-subtle);
    flex-shrink: 0;
}

.cv-box-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cv-box-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cv-download-btn {
    white-space: nowrap;
    flex-shrink: 0;
}


/* ============================================
   FOOTER & BACK TO TOP
   ============================================ */
.footer {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
}

.footer-content {
    text-align: center;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.footer-credit {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-sep {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.footer-heart {
    color: var(--accent-primary);
    display: inline-block;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.18); }
    50% { transform: scale(1); }
    75% { transform: scale(1.12); }
}

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

/* Floating Back-to-Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(13, 14, 23, 0.85);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
    z-index: 990;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--accent-glow);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
    transform: translateY(-3px);
}

.progress-ring {
    position: absolute;
    inset: 1px;
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke: var(--accent-primary);
    transition: stroke-dashoffset 0.15s ease-out;
}

.arrow-up-icon {
    position: relative;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.back-to-top:hover .arrow-up-icon {
    transform: translateY(-2px);
}

/* ============================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   Architecture: Unified descending breakpoints (992px -> 768px -> 480px -> 360px)
   ============================================ */

/* Mobile Navigation Overlay Base */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 5, 10, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ---------- Breakpoint: Small Desktops & Large Tablets (<= 992px) ---------- */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .about-image {
        order: -1;
        max-width: 440px;
        margin: 0 auto;
    }

    .skills-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .bento-span-7,
    .bento-span-5,
    .bento-span-4 {
        grid-column: span 1;
    }

    .bento-span-12 {
        grid-column: span 2;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-media {
        aspect-ratio: 16 / 9;
    }

    .metahuman-overview,
    .environment-overview {
        grid-template-columns: 1fr !important;
        gap: 1.75rem !important;
        padding: 1.75rem !important;
    }

    .metahuman-workflow-section,
    .environment-workflow-section {
        padding: 1.75rem !important;
    }

    .metahuman-workflow-grid,
    .environment-workflow-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

/* ---------- Breakpoint: Tablets & Standard Mobile Viewports (<= 768px) ---------- */
@media (max-width: 768px) {
    :root {
        --section-padding: clamp(3.5rem, 8vw, 4.75rem);
        --container-padding: 1.15rem;
    }

    body {
        padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px));
    }

    html {
        scroll-padding-top: 75px;
    }

    .section-title {
        font-size: clamp(1.75rem, 5.5vw, 2.2rem);
        gap: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.65;
    }

    /* Floating Glass Pill Navbar on Mobile */
    .navbar {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
        max-width: none;
        transform: none;
        padding: 0.5rem 0.85rem;
        border-radius: 9999px;
    }

    .navbar.scrolled {
        padding: 0.45rem 0.85rem;
        background: rgba(14, 14, 20, 0.94);
    }

    .nav-logo {
        font-size: 1.05rem;
    }

    .nav-right-actions {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .nav-mobile-copy-btn {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.35rem 0.75rem;
        font-family: var(--font-body);
        font-size: 0.76rem;
        font-weight: 600;
        color: var(--accent-primary);
        background: rgba(226, 255, 50, 0.08);
        border: 1px solid rgba(226, 255, 50, 0.25);
        border-radius: 9999px;
        cursor: pointer;
        transition: all var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .nav-mobile-copy-btn:active {
        transform: scale(0.95);
        background: rgba(226, 255, 50, 0.16);
    }

    .nav-mobile-copy-btn.btn--copied {
        background: var(--accent-primary);
        color: #0A0A0C;
        border-color: var(--accent-primary);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
        padding: 0.4rem;
        background: transparent;
    }

    /* Mobile Dropdown Drawer anchored to Floating Navbar */
    .nav-links {
        position: absolute;
        top: calc(100% + 0.65rem);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        background: rgba(14, 14, 20, 0.96);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        padding: 0.85rem;
        gap: 0.35rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
        z-index: 1000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .nav-link {
        width: 100%;
        padding: 0.8rem 1.15rem;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: var(--radius-md);
        color: var(--text-secondary);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--accent-primary);
        background: rgba(226, 255, 50, 0.08);
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 6.5rem 0 3.5rem;
    }

    .hero-name {
        font-size: clamp(2.35rem, 8.5vw, 3.8rem);
        line-height: 1.1;
        margin-bottom: 1rem;
    }

    .hero-headline {
        font-size: clamp(1.15rem, 3.8vw, 1.35rem);
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        gap: 0.75rem;
        margin: 0 auto;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
        font-size: 0.92rem;
    }

    .hero-telemetry-strip {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1rem;
        width: 100%;
        max-width: 440px;
        padding: 1rem 1.25rem;
        margin-top: 2.25rem;
        border-radius: var(--radius-lg);
    }

    .telemetry-sep {
        display: none;
    }

    .telemetry-label {
        font-size: 0.62rem;
    }

    .telemetry-val {
        font-size: 0.8rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* About Section */
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .about-highlights {
        gap: 1.5rem;
        margin-top: 1.75rem;
        padding-top: 1.5rem;
    }

    .highlight-number {
        font-size: 2rem;
    }

    .highlight-label {
        font-size: 0.75rem;
    }

    .about-profile-card {
        max-width: 340px;
    }

    .profile-badge-overlay {
        padding: 0.85rem 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .profile-github-tag {
        font-size: 0.78rem;
        padding: 0.35rem 0.75rem;
    }

    .profile-status-tag {
        font-size: 0.72rem;
        padding: 0.35rem 0.7rem;
    }

    /* Education Section — Connected Academic Journey Timeline */
    .education-grid {
        position: relative;
        padding-left: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .education-grid::before {
        content: '';
        position: absolute;
        top: 1.5rem;
        bottom: 1.5rem;
        left: 0.45rem;
        width: 2px;
        background: linear-gradient(to bottom, var(--accent-primary), rgba(226, 255, 50, 0.15));
        border-radius: 2px;
        z-index: 1;
    }

    .education-card {
        position: relative;
        padding: 1.35rem 1.15rem;
    }

    .education-card::before {
        content: '';
        position: absolute;
        top: 1.75rem;
        left: -1.5rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #0A0A0C;
        border: 2px solid var(--accent-primary);
        box-shadow: 0 0 10px rgba(226, 255, 50, 0.6);
        z-index: 2;
        transform: translateX(-5px);
    }

    .education-card-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.75rem;
        font-size: 0.68rem;
        padding: 0.25rem 0.65rem;
    }

    .education-card-header {
        padding-right: 0;
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
        margin-bottom: 1rem;
    }

    .education-icon {
        width: 44px;
        height: 44px;
    }

    .education-icon svg {
        width: 22px;
        height: 22px;
    }

    .education-degree {
        font-size: 1.15rem;
    }

    .education-degree-it {
        font-size: 0.8rem;
    }

    .education-desc {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
    }

    .education-tags {
        gap: 0.4rem;
    }

    .education-tags .tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.55rem;
    }

    /* Skills Mobile Segmented Domain Selector */
    .skills-mobile-filter {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.45rem;
        padding: 0.25rem 0.1rem;
        margin-bottom: 1.25rem;
    }

    .skills-mobile-filter::-webkit-scrollbar {
        display: none;
    }

    .skill-filter-chip {
        flex-shrink: 0;
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-weight: 500;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border-color);
        padding: 0.45rem 0.9rem;
        border-radius: 9999px;
        cursor: pointer;
        transition: all var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .skill-filter-chip.active {
        color: #0A0A0C;
        background: var(--accent-primary);
        border-color: var(--accent-primary);
        font-weight: 600;
        box-shadow: 0 2px 10px rgba(226, 255, 50, 0.25);
    }

    .skill-card.skill-card--filtered-out {
        display: none !important;
    }

    /* Skills Matrix */
    .skills-bento-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .bento-span-7,
    .bento-span-5,
    .bento-span-4,
    .bento-span-12 {
        grid-column: span 1;
    }

    .skill-card {
        padding: 1.35rem 1.15rem;
    }

    .skill-icon {
        width: 44px;
        height: 44px;
    }

    .skill-icon svg {
        width: 22px;
        height: 22px;
    }

    .skill-name {
        font-size: 1.15rem;
    }

    .skill-desc {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .skill-focus-line {
        font-size: 0.78rem;
        padding: 0.45rem 0.75rem;
        margin-bottom: 1rem;
    }

    .skill-tags {
        gap: 0.35rem;
    }

    .skill-tags .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    /* Featured Projects */
    .platform-filter-bar {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.35rem;
        margin-bottom: 1.75rem;
        gap: 0.5rem;
        justify-content: flex-start;
        border-radius: var(--radius-lg);
    }

    .platform-filter-bar::-webkit-scrollbar {
        display: none;
    }

    .platform-filter-btn {
        flex-shrink: 0;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .platform-header {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .platform-icon {
        width: 42px;
        height: 42px;
    }

    .platform-name {
        font-size: 1.2rem;
    }

    .platform-desc {
        font-size: 0.82rem;
    }

    .project-info {
        padding: 1.5rem 1.25rem;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-desc {
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1.15rem;
    }

    .project-specs {
        gap: 0.35rem;
        margin-bottom: 1.25rem;
    }

    .spec-pill {
        font-size: 0.7rem;
        padding: 0.25rem 0.55rem;
    }

    .project-links {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
    }

    .project-links .btn,
    .project-links .project-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.88rem;
    }

    .project-thumb-preview-strip {
        gap: 0.4rem;
        padding: 0.65rem;
        grid-template-columns: repeat(4, 1fr);
    }

    .thumb-preview-item:nth-child(5) {
        display: none;
    }

    .thumb-preview-item {
        height: 48px;
    }

    /* MetaHuman Flagship Card */
    .metahuman-overview {
        padding: 1.25rem 1rem !important;
        gap: 1.25rem !important;
    }

    .metahuman-quick-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        padding: 0.65rem 0.5rem;
        width: 100%;
        text-align: center;
        background: rgba(10, 14, 26, 0.7);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
    }

    .metahuman-quick-stats .quick-stat-sep {
        display: none !important;
    }

    .metahuman-quick-stats .quick-stat-num {
        font-size: 0.8rem;
    }

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

    .metahuman-workflow-section {
        padding: 1.25rem 1rem !important;
    }

    .metahuman-workflow-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .metahuman-workflow-header .workflow-title {
        font-size: 1.15rem;
    }

    .metahuman-workflow-header .workflow-hint {
        font-size: 0.72rem;
    }

    /* Workflow Stage Stepper Pills */
    .workflow-stage-stepper {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        margin-top: 0.65rem;
        padding-bottom: 0.2rem;
    }

    .workflow-stage-stepper::-webkit-scrollbar {
        display: none;
    }

    .stage-step-pill {
        flex: 1;
        min-width: 95px;
        font-family: var(--font-mono);
        font-size: 0.7rem;
        font-weight: 600;
        padding: 0.45rem 0.6rem;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--text-secondary);
        cursor: pointer;
        text-align: center;
        white-space: nowrap;
        transition: all var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
    }

    .stage-step-pill.active {
        background: rgba(0, 168, 255, 0.15);
        border-color: var(--color-unreal);
        color: #e0f2fe;
        box-shadow: 0 0 12px rgba(0, 168, 255, 0.25);
    }

    /* Workflow Horizontal Snap Carousel on Mobile */
    .metahuman-workflow-grid,
    .environment-workflow-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: none !important;
        gap: 0.85rem !important;
        padding: 0.25rem 0.1rem 0.75rem !important;
        margin: 0 !important;
    }

    .metahuman-workflow-grid::-webkit-scrollbar,
    .environment-workflow-grid::-webkit-scrollbar {
        display: none !important;
    }

    .workflow-stage-card {
        flex: 0 0 calc(100% - 1.5rem) !important;
        max-width: calc(100% - 1.5rem) !important;
        scroll-snap-align: center !important;
        scroll-snap-stop: always !important;
        padding: 1.15rem 1rem;
        gap: 0.75rem;
    }

    .stage-title {
        font-size: 1rem;
    }

    .stage-desc {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .stage-gallery-duo {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stage-gallery-quad {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stage-thumb-tag {
        font-size: 0.62rem;
        padding: 0.2rem 0.45rem;
    }

    /* Japanese Sanctuary Environment Card */
    .environment-overview {
        padding: 1.25rem 1rem !important;
        gap: 1.25rem !important;
    }

    .environment-quick-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        padding: 0.65rem 0.5rem;
        width: 100%;
        text-align: center;
        background: rgba(10, 14, 26, 0.7);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
    }

    .environment-quick-stats .quick-stat-sep {
        display: none !important;
    }

    .environment-quick-stats .quick-stat-num {
        font-size: 0.8rem;
    }

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

    .environment-workflow-section {
        padding: 1.25rem 1rem !important;
    }

    .environment-workflow-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        margin-bottom: 0.75rem;
    }

    .environment-workflow-header .workflow-title {
        font-size: 1.15rem;
    }

    .environment-workflow-header .workflow-hint {
        font-size: 0.72rem;
    }

    /* GitHub Repositories Section */
    .github-archive-telemetry {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.25rem 1rem;
    }

    .telemetry-stat-card {
        align-items: center;
        text-align: center;
    }

    .telemetry-stat-num {
        font-size: 1.5rem;
    }

    .telemetry-stat-label {
        font-size: 0.68rem;
    }

    .telemetry-actions {
        grid-column: 1 / -1;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        margin-top: 0.5rem;
    }

    .telemetry-profile-btn {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.84rem;
    }

    .repo-filter-bar {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-bottom: 1.5rem;
    }

    .repo-filter-title {
        width: 100%;
        margin-bottom: 0.25rem;
        font-size: 0.75rem;
    }

    .repo-lang-btn {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    .github-repos-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .repo-card {
        padding: 1.35rem 1.15rem;
    }

    .repo-name {
        font-size: 1.05rem;
        word-break: break-word;
    }

    .repo-desc {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .repo-topic-tag {
        font-size: 0.68rem;
        padding: 0.2rem 0.5rem;
    }

    /* Contact Section & CV Box */
    .contact-text {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

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

    .contact-card {
        padding: 1.15rem 1.25rem;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }

    .contact-card svg {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
    }

    .contact-label {
        font-size: 0.75rem;
    }

    .contact-value {
        word-break: break-all;
        font-size: 0.88rem;
    }

    .contact-cv-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1.25rem;
        margin-top: 2.5rem;
    }

    .cv-box-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.85rem;
    }

    .cv-box-icon {
        width: 52px;
        height: 52px;
    }

    .cv-box-title {
        font-size: 1.15rem;
    }

    .cv-box-desc {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .cv-download-btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1.25rem;
    }

    /* Lightbox LookDev Modal on Mobile */
    .lightbox-modal {
        width: 100vw;
        height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }

    .lightbox-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .lightbox-title-wrap {
        width: calc(100% - 46px);
    }

    .lightbox-title {
        font-size: 1rem;
    }

    .lightbox-badge {
        font-size: 0.68rem;
    }

    .lightbox-close {
        width: 36px;
        height: 36px;
    }

    .lightbox-filters {
        width: 100%;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
        gap: 0.4rem;
    }

    .lightbox-filters::-webkit-scrollbar {
        display: none;
    }

    .lightbox-filter-btn {
        flex-shrink: 0;
        font-size: 0.72rem;
        padding: 0.25rem 0.65rem;
    }

    .lightbox-stage {
        padding: 0.5rem;
        position: relative;
    }

    /* Floating touch-friendly nav buttons directly on image */
    .lightbox-nav {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(10, 10, 16, 0.75);
        border: 1px solid var(--border-color);
        backdrop-filter: blur(8px);
        z-index: 10;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-nav svg {
        width: 18px;
        height: 18px;
    }

    .lightbox-meta {
        padding: 0.45rem 0.75rem;
        flex-direction: column;
        gap: 0.35rem;
        text-align: center;
    }

    .lightbox-caption {
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .lightbox-counter-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.55rem;
    }

    .lightbox-filmstrip-wrap {
        padding: 0.5rem 0.75rem;
    }

    .filmstrip-item {
        width: 54px;
        height: 36px;
    }

    .lightbox-footer-hints {
        display: none !important;
    }

    /* Floating Micro-Toast Notification */
    .toast-notification {
        bottom: calc(75px + max(0.65rem, env(safe-area-inset-bottom, 0px)));
        left: 1rem;
        right: 1rem;
        width: auto;
        max-width: none;
        font-size: 0.84rem;
        padding: 0.75rem 1rem;
        justify-content: center;
    }

    /* Floating Back to Top Button */
    .back-to-top {
        bottom: calc(65px + max(0.65rem, env(safe-area-inset-bottom, 0px)));
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    /* Ergonomic Thumb-Zone Mobile Bottom Navigation Dock */
    .mobile-bottom-dock {
        position: fixed;
        bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
        left: 0.75rem;
        right: 0.75rem;
        z-index: 1500;
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 0.4rem 0.5rem;
        background: rgba(14, 14, 20, 0.92);
        backdrop-filter: blur(24px) saturate(190%);
        -webkit-backdrop-filter: blur(24px) saturate(190%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 9999px;
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.15);
    }

    .mobile-dock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        padding: 0.35rem 0.5rem;
        color: var(--text-tertiary);
        border-radius: 9999px;
        transition: all var(--transition-fast);
        -webkit-tap-highlight-color: transparent;
        text-decoration: none;
        min-width: 48px;
    }

    .mobile-dock-item svg {
        transition: transform var(--transition-fast), stroke var(--transition-fast);
    }

    .mobile-dock-item span {
        font-family: var(--font-body);
        font-size: 0.62rem;
        font-weight: 500;
        letter-spacing: 0.02em;
        line-height: 1;
        transition: color var(--transition-fast);
    }

    .mobile-dock-item:hover,
    .mobile-dock-item:active {
        color: var(--text-secondary);
    }

    .mobile-dock-item.active {
        color: var(--accent-primary);
    }

    .mobile-dock-item.active svg {
        stroke: var(--accent-primary);
        transform: translateY(-1px);
        filter: drop-shadow(0 0 6px rgba(226, 255, 50, 0.5));
    }

    .mobile-dock-item.active span {
        color: var(--accent-primary);
        font-weight: 600;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0;
    }

    .footer-name {
        font-size: 1.05rem;
    }

    .footer-credit {
        font-size: 0.85rem;
    }

    .footer-copy {
        font-size: 0.75rem;
    }
}

/* ---------- Breakpoint: Small & Medium Mobile Screens (<= 480px) ---------- */
@media (max-width: 480px) {
    .hero-name {
        font-size: clamp(2rem, 9vw, 2.75rem);
    }

    .hero-telemetry-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem 0.75rem;
        padding: 0.85rem 1rem;
    }

    .about-highlights {
        flex-direction: column;
        gap: 1.25rem;
    }

    .project-thumb-preview-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .thumb-preview-item:nth-child(4) {
        display: none;
    }

    .github-archive-telemetry {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.85rem;
    }

    .telemetry-stat-card {
        align-items: center;
    }

    .stage-gallery-duo,
    .stage-gallery-quad {
        gap: 0.4rem;
    }
}

/* ---------- Breakpoint: Ultra-Compact Mobile Screens (<= 360px) ---------- */
@media (max-width: 360px) {
    :root {
        --container-padding: 0.85rem;
    }

    .navbar {
        left: 0.5rem;
        right: 0.5rem;
        padding: 0.45rem 0.75rem;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .hero-name {
        font-size: 1.95rem;
    }

    .hero-headline {
        font-size: 1.05rem;
    }

    .hero-telemetry-strip {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .metahuman-quick-stats,
    .environment-quick-stats {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .quick-stat-item {
        padding: 0.25rem 0;
    }
}

/* ============================================
   DESIGN ENGINEERING & ACCESSIBILITY (UI-SKILLS)
   Standards from leonxlnx/taste-skill, emilkowalski/emil-design-eng & arla6ka/ui-review
   ============================================ */

/* 1. Accessible Focus Rings for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-glow) !important;
    outline-offset: 3px !important;
}

/* 2. Hardware-accelerated smooth animations & tone-step boundaries */
.skill-card:hover,
.project-card:hover,
.education-card:hover {
    transition: transform 220ms var(--ease-out-expo),
                border-color 220ms ease,
                box-shadow 220ms ease !important;
}

/* 3. Prefers-Reduced-Motion Accessibility Gate */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-canvas {
        display: none !important;
    }
    
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
