/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
:root {
    --color-bg: #090909; /* Solid Void Black */
    --color-bg-light: #121212; /* Slightly lighter for sections/cards */
    --color-text: #eceae3; /* Industrial Warm Cream */
    --color-text-muted: #88857f; /* Muted Cream-Grey */
    --color-accent: #195ACF; /* Electric Blue */
    --color-accent-hover: #3f80f4; /* Bright vector blue */
    --color-cream: #eceae3;
    --color-cream-muted: #c8c5ba;
    --color-white: #ffffff;
    --color-dark-grey: #1b1b1b;
    
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .marquee-content {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader-bypass #preloader,
.preloader-bypass .preloader,
.preloader-bypass #liquid-transition {
    display: none !important;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000; /* Full black background */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-video {
    width: 70vw;
    height: 60vh;
    object-fit: contain;
    opacity: 1;
    display: block;
    visibility: visible;
    z-index: 9999;
    position: relative;
    pointer-events: none;
    margin-bottom: 40px;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.preloader-static-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 0 15px var(--color-accent);
}

.loading-text {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    margin-top: 10px;
    animation: textVibrate 0.3s infinite;
    will-change: transform;
}

#loading-percentage {
    color: var(--color-white);
    margin-left: 10px;
    font-weight: 600;
}

.loading-bar-container {
    width: 250px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
}

.loading-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
}

.loading-percentage {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-white);
    letter-spacing: 2px;
}

@keyframes textVibrate {
    0% { transform: translate(0, 0); }
    25% { transform: translate(0.3px, -0.2px); }
    50% { transform: translate(-0.2px, 0.3px); }
    75% { transform: translate(0.2px, 0.2px); }
    100% { transform: translate(0, 0); }
}

@media (max-width: 768px) {
    .preloader-video {
        height: 45vh;
        margin-bottom: 30px;
    }
}

/* ==========================================================================
   Liquid Transition
   ========================================================================== */
.liquid-transition {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background-color: var(--color-accent);
    border-radius: 50%;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                height 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                top 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                left 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease;
}

.liquid-transition.contracting {
    top: var(--target-y, 90%) !important;
    left: var(--target-x, 50%) !important;
    width: 12px; /* Final dot size */
    height: 12px;
    opacity: 1;
}

.liquid-transition.settled {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 3rem;
    letter-spacing: 3px;
    border-left: 6px solid var(--color-accent);
    padding-left: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: ' »»';
    color: var(--color-accent);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   Vectorheart Decorative Elements
   ========================================================================== */
.vh-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Placed in background */
    overflow: hidden;
}

.vh-stripe-group-red {
    position: absolute;
    width: 160%;
    height: 140px;
    background: repeating-linear-gradient(45deg, 
        transparent, 
        transparent 15px, 
        rgba(25, 90, 207, 0.08) 15px, 
        rgba(25, 90, 207, 0.08) 30px
    );
    transform: rotate(-18deg);
    top: 12%;
    left: -20%;
    opacity: 0.8;
}

.vh-stripe-group-grey {
    position: absolute;
    width: 160%;
    height: 90px;
    background: repeating-linear-gradient(45deg, 
        transparent, 
        transparent 12px, 
        rgba(236, 234, 227, 0.02) 12px, 
        rgba(236, 234, 227, 0.02) 24px
    );
    transform: rotate(22deg);
    bottom: 20%;
    left: -20%;
    opacity: 0.75;
}

.vh-label {
    position: absolute;
    font-family: var(--font-heading);
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    color: rgba(236, 234, 227, 0.12);
    letter-spacing: 4px;
    text-transform: uppercase;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.vh-label-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

.vh-label-v1 {
    top: 25%;
    right: 4%;
    color: rgba(25, 90, 207, 0.22);
    border-right: 1.5px solid rgba(25, 90, 207, 0.2);
    padding-right: 10px;
    opacity: 0.75;
}

.vh-label-v2 {
    bottom: 15%;
    left: 4%;
    border-left: 1.5px solid rgba(236, 234, 227, 0.08);
    padding-left: 10px;
    opacity: 0.75;
}

.vh-hud-cross {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px dashed rgba(25, 90, 207, 0.15);
    border-radius: 50%;
    opacity: 0.65;
}

.vh-hud-cross::before, .vh-hud-cross::after {
    content: '';
    position: absolute;
    background-color: rgba(25, 90, 207, 0.15);
}

.vh-hud-cross::before {
    top: 50%;
    left: -8px;
    width: 52px;
    height: 1px;
}

.vh-hud-cross::after {
    left: 50%;
    top: -8px;
    width: 1px;
    height: 52px;
}

.vh-hud-c1 {
    top: 10%;
    left: 10%;
}

.vh-hud-c2 {
    bottom: 12%;
    right: 8%;
}

.vh-chevron-acc {
    position: absolute;
    font-family: var(--font-heading);
    color: var(--color-accent);
    opacity: 0.18;
    font-size: 1.5rem;
    letter-spacing: -2px;
}

.section-title.center {
    text-align: center;
    border-left: none;
    padding-left: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    border: 1px solid transparent;
    border-radius: 0px; /* Sharp mecha edge */
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
    box-shadow: 0 0 15px rgba(25, 90, 207, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0) 100%);
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(5, 5, 5, 0.95);
    padding: 15px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1rem;
    letter-spacing: 1px;
    color: var(--color-white);
    text-decoration: none;
}

.logo .accent {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-accent);
    padding-left: 10px;
}

.nav-links a::before {
    content: '»';
    position: absolute;
    left: -5px;
    opacity: 0;
    color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::before {
    opacity: 1;
    left: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    /* Placeholder gradient until video is added */
    background: radial-gradient(circle at center, #111111 0%, #050505 100%);
    z-index: -2;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28; /* Dimmed for optimal text contrast */
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Premium dark gradient blending with deep blue tint and fading to solid bg */
    background: linear-gradient(to bottom, 
        rgba(5, 5, 5, 0.85) 0%, 
        rgba(8, 12, 28, 0.55) 50%, 
        var(--color-bg) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    margin-top: auto;
    margin-bottom: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.hero-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 45px; /* Increased to make room for hover labels */
}

.initial-link {
    display: inline-block;
    transition: var(--transition-smooth);
    position: relative;
}

.initial-img-wrap {
    display: inline-block;
    animation: letterBreathe 5s ease-in-out infinite;
}

.initial-link img {
    height: 140px; /* Large, cinematic desktop size */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(25, 90, 207, 0.15));
    opacity: 0.85;
    transition: var(--transition-smooth);
}

/* Staggered delay for organic wave breathing */
.initial-link[data-label="ACTING"] .initial-img-wrap {
    animation-delay: 0s;
}

.initial-link[data-label="RHYTHM"] .initial-img-wrap {
    animation-delay: 0.4s;
}

.initial-link[data-label="TIMING"] .initial-img-wrap {
    transform: scaleX(1.14);
    animation: letterBreatheT 5s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes letterBreathe {
    0%, 100% {
        transform: translateY(0) scale(0.96);
        filter: drop-shadow(0 0 4px rgba(25, 90, 207, 0.15));
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) scale(1.04);
        filter: drop-shadow(0 0 24px rgba(25, 90, 207, 0.75));
        opacity: 1;
    }
}

@keyframes letterBreatheT {
    0%, 100% {
        transform: translateY(0) scale(0.96) scaleX(1.14);
        filter: drop-shadow(0 0 4px rgba(25, 90, 207, 0.15));
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) scale(1.04) scaleX(1.14);
        filter: drop-shadow(0 0 24px rgba(25, 90, 207, 0.75));
        opacity: 1;
    }
}

.initial-dot {
    font-size: 1.6rem;
    color: var(--color-accent);
    margin: 0 25px;
    opacity: 0.8;
    text-shadow: 0 0 8px rgba(25, 90, 207, 0.6);
}

.initial-link {
    display: inline-block;
    transition: var(--transition-smooth);
    position: relative;
}

.initial-link:hover {
    transform: scale(1.06);
}

/* Morph smoothly to glowing active state on hover */
.initial-link:hover img {
    transform: scale(1.12);
    filter: drop-shadow(0 0 28px rgba(25, 90, 207, 0.95));
    opacity: 1;
}

/* Custom Hover Labels */
.initial-link::after {
    content: attr(data-label);
    position: absolute;
    bottom: calc(100% + 22px); /* Position above the letter */
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.85); /* Smooth lift and scale pop-in */
    font-family: var(--font-heading);
    font-size: 1.35rem; /* Larger, extremely striking font size */
    color: var(--color-white);
    letter-spacing: 5px; /* Cinematic spacing */
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    white-space: nowrap;
    
    /* Pure neon text-glow cyberpunk styling (no borders or boxes) */
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    
    /* Intense sci-fi neon text-shadow */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.95),
                 0 0 20px var(--color-accent),
                 0 0 35px var(--color-accent);
}

.initial-link:hover::after,
.initial-link:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
}

.initial-link.inactive {
    cursor: default;
}

/* Scroll Arrow */
.scroll-arrow {
    position: absolute;
    bottom: 18vh;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: none;
    border: none;
    color: var(--color-accent);
    cursor: pointer;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.scroll-arrow.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.scroll-arrow svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 10px rgba(25, 90, 207, 0.5));
    animation: arrowPulse 2s infinite ease-in-out;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(8px); opacity: 1; }
}

.scroll-arrow:hover svg {
    filter: drop-shadow(0 0 15px var(--color-accent));
}

.hero-content h2 {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: var(--color-accent);
    letter-spacing: 6px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(25, 90, 207, 0.3);
}

.hero-statement {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: var(--color-text);
    margin-bottom: 40px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   Marquee Section
   ========================================================================== */
.marquee-section {
    padding: 20px 0;
    background-color: transparent;
    border: none;
    overflow: hidden;
    position: relative;
    display: flex;
    width: 100%;
    z-index: 10;
    margin-bottom: 10px; /* Reduced from 30px to push it lower */
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.logo-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
}

.marquee-track .dot {
    color: var(--color-accent);
    margin: 0 50px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.marquee-logo {
    height: 64px; /* Increased base size */
    width: auto;
    object-fit: contain;
    background-color: transparent;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

/* Individual tuning to balance visual weight across the strip */
.logo-aaronsims { height: 60px; }
.logo-spa { height: 60px; }
.logo-megalis { height: 66px; }
.logo-outoftheblue { height: 85px; } /* Increased height significantly for legibility */
.logo-piccolo { height: 80px; } /* Increased for better legibility */
.logo-redthrone { height: 90px; } /* Increased for better legibility */
.logo-rise { height: 64px; }

.marquee-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .marquee-logo {
        height: 42px; /* Increased mobile size */
    }
    
    /* Individual mobile tuning */
    .logo-outoftheblue { height: 56px; }
    .logo-piccolo { height: 52px; }
    .logo-redthrone { height: 60px; }
    .logo-aaronsims { height: 42px; }
    .logo-spa { height: 42px; }

    .marquee-track .dot {
        margin: 0 30px;
    }
    
    .initial-link .initial-img-wrap {
        animation: letterBreatheMobile 5s ease-in-out infinite;
    }
    .initial-link[data-label="TIMING"] .initial-img-wrap {
        transform: scaleX(1.14);
        animation: letterBreatheMobileT 5s ease-in-out infinite;
    }
    .initial-link img {
        height: 60px; /* Scale down for mobile */
    }
    .initial-dot {
        margin: 0 10px;
        font-size: 1rem;
    }
    
    /* Refined text-glow labels for mobile (no box/recuadro) */
    .initial-link::after {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(0.85);
        bottom: calc(100% + 12px);
        font-size: 0.75rem;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        backdrop-filter: none;
        text-shadow: 0 0 6px rgba(255, 255, 255, 0.95), 0 0 12px var(--color-accent);
        pointer-events: none;
    }

    @keyframes letterBreatheMobile {
        0%, 100% {
            transform: translateY(0) scale(0.97);
            filter: drop-shadow(0 0 2px rgba(25, 90, 207, 0.15));
            opacity: 0.85;
        }
        50% {
            transform: translateY(-4px) scale(1.03); /* Proportionate vertical breath */
            filter: drop-shadow(0 0 12px rgba(25, 90, 207, 0.6));
            opacity: 1;
        }
    }

    @keyframes letterBreatheMobileT {
        0%, 100% {
            transform: translateY(0) scale(0.97) scaleX(1.14);
            filter: drop-shadow(0 0 2px rgba(25, 90, 207, 0.15));
            opacity: 0.85;
        }
        50% {
            transform: translateY(-4px) scale(1.03) scaleX(1.14);
            filter: drop-shadow(0 0 12px rgba(25, 90, 207, 0.6));
            opacity: 1;
        }
    }
}

/* ==========================================================================
   Custom Cursor Glow
   ========================================================================== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    background-color: var(--color-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s, width 0.25s cubic-bezier(0.25, 1, 0.5, 1), height 0.25s cubic-bezier(0.25, 1, 0.5, 1), margin-top 0.25s cubic-bezier(0.25, 1, 0.5, 1), margin-left 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    margin-top: -2px;
    margin-left: -2px;
    box-shadow: 0 0 0 0 rgba(25, 90, 207, 0);
}

.custom-cursor.hovering {
    width: 8px; /* Slightly smaller solid core */
    height: 8px;
    margin-top: -4px;
    margin-left: -4px;
    background-color: var(--color-white);
    /* Subtle blue ring around the dot */
    box-shadow: 0 0 0 6px rgba(25, 90, 207, 0.5);
}

.custom-cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(25, 90, 207, 0.35) 0%, rgba(25, 90, 207, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.3s;
    margin-top: -400px;
    margin-left: -400px;
}

@media (max-width: 768px) {
    .custom-cursor, .custom-cursor-glow {
        display: none !important;
    }
}

/* Hide native cursor entirely on desktop where custom cursor is active */
@media (hover: hover) and (pointer: fine) {
    body, a, button, .work-card, .marquee-logo, * {
        cursor: none !important;
    }
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); } /* Loops perfectly with 4 groups */
}

/* ==========================================================================
   Selected Work Section
   ========================================================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.work-card {
    position: relative;
    height: 350px;
    background-color: var(--color-bg-light);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(236, 234, 227, 0.08);
    border-radius: 0px; /* Sharp technical mecha edge */
    transition: var(--transition-smooth);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    filter: grayscale(10%) contrast(100%);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), filter 0.5s ease, opacity 0.5s ease;
}

/* Blue Scanline/Grid Overlay on hover */
.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(25, 90, 207, 0.15) 50%, transparent 50%),
                linear-gradient(90deg, rgba(25, 90, 207, 0.05) 50%, transparent 50%);
    background-size: 4px 4px;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(9,9,9,0.98) 0%, rgba(9,9,9,0.85) 60%, rgba(9,9,9,0) 100%);
    transform: translateY(10px);
    opacity: 0;
    z-index: 3;
    transition: var(--transition-smooth);
}

.card-info h4 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 5px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.card-info .type {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 1.5px solid var(--color-accent);
    padding-bottom: 2px;
}

.card-info .details {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

.work-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(25, 90, 207, 0.2);
}

.work-card:hover .card-bg {
    transform: scale(1.04);
    filter: grayscale(0%) contrast(110%) brightness(0.65);
}

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

.work-card:hover .card-info {
    transform: translateY(0);
    opacity: 1;
}

.archive-more-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.all-projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.all-projects-btn:hover .btn-arrow {
    transform: translateX(6px);
}

/* Asymmetrical Mosaic Grid Helpers */
.grid-container.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 150px;
    gap: 25px;
}

.mosaic-card {
    height: 100% !important;
}

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.row-2 { grid-row: span 2; } /* 300px + 25px gap = 325px height */

@media (max-width: 900px) {
    .grid-container.mosaic-grid {
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto !important;
    }
    
    .mosaic-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 320px !important;
    }
}

/* ==========================================================================
   Reel Section
   ========================================================================== */
.reel-section {
    background-color: var(--color-bg-light);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Lab Carousel Section (Premium AAA Overhaul)
   ========================================================================== */
.lab-section {
    background-color: var(--color-bg);
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.lab-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 100px 0;
}

.lab-header {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.lab-header .section-title {
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.lab-carousel-controls {
    display: flex;
    gap: 15px;
    z-index: 10;
}

.carousel-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(10px);
}

.carousel-control-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(225, 29, 36, 0.6);
    transform: scale(1.05);
}

.carousel-control-btn svg {
    width: 22px;
    height: 22px;
}

.lab-carousel-viewport {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    scroll-behavior: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 40px 30px 40px;
    user-select: none;
    -webkit-user-drag: none;
}

.lab-carousel-viewport:active {
    cursor: grabbing;
}

.lab-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.lab-carousel-track {
    display: flex;
    gap: 35px;
    width: max-content;
    will-change: transform;
}

/* Panoramic Premium Card */
.lab-card {
    flex: 0 0 540px;
    position: relative;
    background-color: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lab-video-wrapper {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.lab-video-preview,
.lab-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.lab-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.9) 0%, rgba(5, 5, 5, 0.1) 60%, rgba(5, 5, 5, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.lab-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 30px;
    z-index: 2;
}

.lab-card-tag {
    font-size: 0.6rem;
    color: var(--color-accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.lab-card-info h4 {
    font-size: 1.25rem;
    color: var(--color-white);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.lab-card-info .type {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Card Hover States */
.lab-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 15px 40px rgba(25, 90, 207, 0.15), 0 0 25px rgba(25, 90, 207, 0.1);
    transform: translateY(-5px);
}

.lab-card:hover .lab-video-preview,
.lab-card:hover .lab-card-img {
    opacity: 0.95;
    transform: scale(1.04);
}

.lab-card:hover .lab-card-info h4 {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .lab-header {
        padding: 0 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .lab-carousel-viewport {
        padding: 10px 20px;
    }
    .lab-card {
        flex: 0 0 85vw;
    }
    .lab-video-wrapper {
        height: 220px;
    }
}

/* ==========================================================================
   Premium Fullscreen/Large Detail Modal
   ========================================================================== */
.lab-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100005;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.5s;
    padding: 20px;
}

.lab-modal.active {
    opacity: 1;
    visibility: visible;
}

.lab-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(20px);
    z-index: -1;
}

.lab-modal-container {
    width: 100%;
    max-width: 1300px;
    height: 85vh;
    min-height: 550px;
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(236, 234, 227, 0.08);
    border-radius: 0px; /* Sharp technical mecha edge */
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 50px rgba(25, 90, 207, 0.08);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lab-modal.active .lab-modal-container {
    transform: scale(1) translateY(0);
}

.lab-modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.lab-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transform: rotate(90deg);
}

.lab-modal-close-btn svg {
    width: 22px;
    height: 22px;
}

.lab-modal-content {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    width: 100%;
    height: 100%;
}

.lab-modal-content.full-player {
    display: block;
    width: 100%;
    height: 100%;
}

.lab-modal-content.full-player .lab-modal-player-section {
    width: 100%;
    height: 100%;
    border-right: none;
}

/* Left: Big Player Section */
.lab-modal-player-section {
    background-color: #000;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.lab-modal-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.lab-modal-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #000;
}

/* Cinematic Shimmer Skeleton Loading */
.lab-modal-skeleton {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c0c0c;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.lab-modal-skeleton.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.skeleton-shimmer {
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0) 100%);
    animation: shimmerLoop 2s infinite linear;
}

.skeleton-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.2);
    animation: pulseText 1.5s infinite ease-in-out;
}

@keyframes shimmerLoop {
    0% { left: -150%; }
    100% { left: 100%; }
}

@keyframes pulseText {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* Right: Glassmorphic Details Section */
.lab-modal-details-section {
    padding: 50px 45px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.45) 0%, rgba(5, 5, 5, 0.8) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.lab-modal-details-section::-webkit-scrollbar {
    width: 5px;
}
.lab-modal-details-section::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.lab-modal-details-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lab-modal-header {
    margin-bottom: 30px;
}

.lab-modal-category {
    font-size: 0.7rem;
    color: var(--color-accent);
    letter-spacing: 3px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.lab-modal-header h2 {
    font-size: 2rem;
    color: var(--color-white);
    line-height: 1.1;
    letter-spacing: 1px;
}

.lab-modal-meta-grid {
    display: flex;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.meta-val {
    font-size: 0.95rem;
    color: var(--color-white);
    font-weight: 600;
}

.lab-modal-description {
    margin-bottom: 35px;
}

.lab-modal-description h3, 
.lab-modal-section h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.lab-modal-description p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.lab-modal-section {
    margin-bottom: 35px;
}

/* Badges styling */
.software-badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sw-badge {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 4px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sw-badge:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Custom software colors */
.sw-badge {
    border-radius: 0px; /* Sharp technical edge */
    font-weight: 700;
}
.sw-badge.maya { border-color: var(--color-accent); color: var(--color-white); background: rgba(25, 90, 207, 0.08); }
.sw-badge.blender { border-color: var(--color-cream-muted); color: var(--color-cream); }
.sw-badge.unreal-engine { border-color: var(--color-accent); color: var(--color-white); background: rgba(25, 90, 207, 0.12); }
.sw-badge.motionbuilder { border-color: var(--color-cream-muted); color: var(--color-cream); }
.sw-badge.houdini { border-color: var(--color-accent); color: var(--color-accent); }
.sw-badge.after-effects { border-color: var(--color-cream-muted); color: var(--color-cream); }

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-tag {
    font-size: 0.75rem;
    color: var(--color-accent);
    background: rgba(25, 90, 207, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.lab-modal-footer {
    margin-top: auto;
    padding-top: 20px;
}

.lab-modal-cta {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .lab-modal-container {
        height: 90vh;
    }
    .lab-modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1.2fr 1fr;
        overflow-y: auto;
    }
    .lab-modal-player-section {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        height: 40vh;
    }
    .lab-modal-details-section {
        height: auto;
        padding: 30px 25px;
    }
}

/* ==========================================================================
   About & Expertise Section - Redesigned Centered Dossier
   ========================================================================== */
.about-section {
    background-color: var(--color-bg-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    padding: 0; /* Removed double padding so it matches standard section spacing */
}

.about-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(25, 90, 207, 0.08) 0%, rgba(25, 90, 207, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.about-dossier-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Aligns perfectly with the standard 1200px web grid */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.about-dossier-wrap .section-title {
    margin-bottom: 2.5rem; /* Equalized distance to match the space below the card */
    align-self: flex-start; /* Left-aligns perfectly with the screen margins, matching standard sections */
}

/* Single-column Dossier Grid Layout (Adapted) */
.about-dossier-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout since photo is removed */
    gap: 0;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px; /* Aligned with standard 1200px layout */
    margin-top: 3rem;
}

/* Left Column: Circular Photo Column */
.about-photo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.about-content-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-aligned */
    width: 100%;
}

/* Premium Photo Container */
.about-photo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-photo-wrapper-absolute {
    position: absolute;
    right: -120px; /* Positioned further to the right as requested */
    top: 50%; /* Vertically centered */
    transform: translateY(-50%);
    width: 280px;
    height: 280px;
    z-index: 10; /* Sits on top of the card border layer */
}

.about-photo-frame-inline {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Perfect Square for Perfect Circle */
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(25, 90, 207, 0.25);
    border-radius: 50%; /* Make it a circle! */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
}

/* ==========================================================================
   About Me Fun Fact Popover / Tooltip
   ========================================================================== */
.about-fun-fact-tooltip {
    position: absolute;
    left: 100%; /* Placed to the right of the photo wrapper */
    top: 50%;
    transform: translateY(-50%) translateX(10px) scale(0.95);
    width: 240px;
    background: rgba(10, 10, 10, 0.96);
    border: 1px solid rgba(25, 90, 207, 0.35);
    border-left: 3px solid var(--color-accent);
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                visibility 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(25, 90, 207, 0.25);
    z-index: 12;
    backdrop-filter: blur(10px);
    border-radius: 0px; /* Sharp mecha edge */
}

.about-photo-wrapper-absolute:hover .about-fun-fact-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(25px) scale(1); /* Smooth slide out to the right */
}

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

.tooltip-title {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    color: var(--color-accent);
    letter-spacing: 2px;
    font-weight: 700;
}

.tooltip-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent);
    animation: flash 1.5s infinite ease-in-out;
}

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

.tooltip-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.15s ease;
}

.about-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%; /* Circular image */
    opacity: 0.88;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
    filter: grayscale(15%) contrast(105%);
}

/* Concentric Rotating Sci-Fi Target HUD Ring */
.photo-glow-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(25, 90, 207, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    animation: rotateHUD 20s infinite linear;
}

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

/* Tech Sci-Fi Scanline Animation */
.photo-scanline {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(25, 90, 207, 0) 0%, rgba(25, 90, 207, 0.6) 50%, rgba(25, 90, 207, 0) 100%);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease;
}

/* Photo Hover Effects */
.about-photo-wrapper-absolute:hover .about-photo-frame-inline {
    transform: scale(1.05) translateY(-4px);
    border-color: rgba(25, 90, 207, 0.8);
}

.about-photo-wrapper-absolute:hover .about-profile-img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%) contrast(100%);
}

.about-photo-wrapper-absolute:hover .photo-glow-border {
    border-color: var(--color-accent);
    border-style: dashed;
    box-shadow: 0 0 25px rgba(25, 90, 207, 0.4);
}

.about-photo-wrapper-absolute:hover .photo-scanline {
    opacity: 1;
    animation: scanAnimation 3s infinite linear;
}

@keyframes scanAnimation {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* Subtitle and Location Header (Left-aligned) */
.about-dossier-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-aligned */
    gap: 8px;
    margin-bottom: 2.5rem;
    width: 100%;
}

.about-subtitle {
    font-size: clamp(2rem, 3.5vw, 2.6rem); /* Balanced size that doesn't overwhelm layout */
    color: var(--color-white);
    letter-spacing: 1px;
    font-family: var(--font-heading);
    text-align: left;
    margin-bottom: 0;
}

.about-subtitle .accent {
    color: var(--color-accent);
}

.about-location-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.about-role-subtitle {
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-location-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    border: 1px solid rgba(25, 90, 207, 0.4);
    background: rgba(25, 90, 207, 0.12);
    padding: 5px 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 5px rgba(25, 90, 207, 0.5);
    border-radius: 0px; /* Sharp technical edge */
}

.about-card-container {
    position: relative;
    width: 100%;
    margin-bottom: 2.5rem;
}

/* Premium Biography Dossier Card (Left Border Accent, Borderless Body) */
.about-bio-card {
    position: relative; /* Base for absolutely positioned inline profile picture */
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.015); /* Sleek technical glassmorphic card */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--color-accent); /* Left Vertical Technical Accent Line */
    padding: 40px 170px 40px 45px; /* Protected right padding of 170px leaves an elegant buffer for the larger corner image */
    margin-bottom: 0; /* Handled by container */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.about-bio-card:hover {
    border-color: rgba(25, 90, 207, 0.6);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: 0 20px 40px rgba(25, 90, 207, 0.08);
}

.about-bio {
    font-size: 1.08rem; /* Premium legible font size for widescreen */
    line-height: 1.85; /* Spacious line height for effortless reading */
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 100%; /* Fully expanded to take advantage of margins */
    text-align: left; /* Left-aligned */
}

/* Features List styling (Left-aligned) */
.about-features {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-aligned */
    gap: 20px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.feature-dot {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(25, 90, 207, 0.8);
}

.feature-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-align: left;
}

.feature-text strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Left-aligned CV Download Actions */
.about-actions-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: 0; /* Aligns perfectly with the clean vertical line of the dossier header & card */
    margin-top: 0; /* Equalized distance to rely solely on the card's margin-bottom */
}

.about-actions-left .btn-cv {
    padding: 16px 36px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.cv-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-cv:hover .cv-icon {
    transform: translateY(3px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
}

.btn-cv:hover .btn-glow {
    left: 150%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    text-align: center;
    background-color: var(--color-bg);
}

.contact-cta {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-white);
    margin-bottom: 15px;
}

.contact-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 50px;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 80px;
}

.contact-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

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

.site-footer {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 900px) {
    .about-dossier-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-photo-column {
        position: relative;
        top: 0;
    }
    .about-dossier-header {
        align-items: center;
        text-align: center;
        margin-bottom: 2rem;
    }
    .about-subtitle {
        font-size: 2.2rem;
        text-align: center;
    }
    .about-location-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .about-bio-card {
        border-left: none; /* Remove left border on mobile */
        border-top: 3px solid var(--color-accent); /* Small top mecha border for mobile */
        padding: 25px 20px; /* Keep comfortable inner card padding on mobile */
        background: rgba(255, 255, 255, 0.015);
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
        border-right: 1px solid rgba(255, 255, 255, 0.04);
        text-align: left;
    }
    .about-bio {
        font-size: 0.98rem;
        line-height: 1.7;
    }
    .about-features {
        margin-top: 2rem;
        padding-top: 1.5rem;
        gap: 16px;
    }
    .feature-text {
        font-size: 0.95rem;
    }
    .about-photo-wrapper-absolute {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 25px auto 0 auto; /* Center at the bottom of the card on mobile */
        width: 220px; /* Made larger on mobile as well */
        height: 220px; /* Made larger on mobile as well */
        transform: none;
    }
    .about-photo-wrapper-absolute:hover .about-photo-frame-inline {
        transform: scale(1.05) translateY(-4px);
    }
    .about-fun-fact-tooltip {
        left: 50%;
        top: 100%;
        transform: translateX(-50%) translateY(10px) scale(0.95);
        width: 240px;
        border-left: 1px solid rgba(25, 90, 207, 0.35);
        border-top: 3px solid var(--color-accent);
    }
    .about-photo-wrapper-absolute:hover .about-fun-fact-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(20px) scale(1);
    }
    .about-actions-left {
        padding-left: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 20px;
        background: rgba(5, 5, 5, 0.95);
    }
    
    .nav-links {
        margin-top: 20px;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.6rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   Projects Subpage Styles
   ========================================================================== */
.projects-hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
    background-color: var(--color-bg);
    overflow: hidden;
}

.projects-page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-white);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.projects-page-sub {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    padding: 0 20px;
}

.all-projects-btn:hover .back-arrow {
    transform: translateX(-6px);
}
