/* ==========================================================================
   CINEMATIC SYSTEMS DESIGN SYSTEM & GLOBAL CONSTANTS
   ========================================================================== */

:root {
    /* Base Luxurious Neutral Palette */
    --bg-base: #060608;
    --bg-surface: rgba(12, 12, 15, 0.7);
    --bg-surface-solid: #0c0c0f;
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-focus: rgba(255, 255, 255, 0.16);
    
    /* Premium High-Contrast Typography */
    --color-text-primary: #F5F5F7;
    --color-text-secondary: #9E9EA4;
    --color-text-muted: #57575D;
    
    /* Locked Unified Champagne Gold Palette */
    --color-accent: #E5C453; /* Soft champagne gold */
    --color-accent-rgb: 229, 196, 83;
    --color-accent-secondary: #38b000; /* Bright Green live indicator */
    --color-accent-secondary-rgb: 56, 176, 0;

    /* Cinematic Layout Spacing */
    --sidebar-width: 60px;
    --hud-header-height: 85px;
    --transition-cinematic: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-micro: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}


/* ==========================================================================
   RESET & SYSTEM BASICS
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}

html {
    scroll-behavior: smooth;
    background-color: #060608;
    color: var(--color-text-primary);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Modal Open scrollbar locking (height constraint removed to fix scroll-to-top jumps) */
html.modal-open {
    overflow: hidden !important;
    scroll-behavior: auto !important;
}

body.modal-open {
    overflow: hidden !important;
}

body {
    background-color: var(--bg-base);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle Technical Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
    background-size: 90px 90px;
    background-position: center top;
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================================
   HARDWARE-ACCELERATED CONSTANT CHAMPAGNE AMBIENT GLOW
   ========================================================================== */

.ambient-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ambient-glow-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    will-change: opacity;
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.default-glow {
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(229, 196, 83, 0.025) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(229, 196, 83, 0.025) 0%, transparent 45%);
}

/* Dynamic WebGL/Canvas layer */
#ambientCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}


/* ==========================================================================
   ADVANCED DIGITAL PERCENTAGE LOADER SCREEN
   ========================================================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #060608;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.loading-overlay.loaded {
    transform: translateY(-100%);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-ring-wrapper {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.02);
    stroke-width: 1.5;
}

.ring-fill {
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.1s linear;
}

.loader-number {
    position: absolute;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
}

.loader-brand-container {
    margin-top: 30px;
    height: 45px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-signature {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 34px;
    font-style: italic;
    font-weight: 500;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.loader-signature.revealed {
    opacity: 1;
    transform: translateY(0);
}

.loader-status {
    margin-top: 15px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}


/* ==========================================================================
   GLOBAL HEADS-UP DISPLAY (HUD) HEADER
   ========================================================================== */

.hud-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--hud-header-height);
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
}

.hud-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-signature {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 23px;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
    line-height: 1;
    text-transform: none;
}

.hud-live-signal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.live-signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent-secondary);
    position: relative;
}

.live-signal-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-accent-secondary);
    animation: pulseGlow 2s infinite ease-out;
}

.live-signal-text {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}

.hud-menu-trigger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--color-text-primary);
    transition: var(--transition-micro);
}


/* ==========================================================================
   DROPDOWN MOBILE NAV OVERLAY
   ========================================================================== */

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 6, 8, 0.98);
    z-index: 95;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-cinematic);
    padding: 40px;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: center;
}

.nav-link-item {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    letter-spacing: 2px;
    transition: var(--transition-micro);
}

.nav-link-item:hover {
    color: var(--color-accent);
    transform: scale(1.03);
}

.nav-footer {
    position: absolute;
    bottom: 40px;
    font-size: 9px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}


/* ==========================================================================
   STABLE COLLAPSIBLE HUD SIDEBAR (Stripe Style closed by default)
   ========================================================================== */

.hud-sidebar {
    position: fixed;
    top: var(--hud-header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--hud-header-height));
    border-right: none;
    background: rgba(6, 6, 8, 0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 90;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-content-wrapper {
    width: 100%;
    height: 100%;
    padding: 50px 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.stripe-bars {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 14px;
    height: 9px;
    transition: var(--transition-micro);
}

.stripe-bar {
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transition: var(--transition-micro);
}

.hud-sidebar:not(.collapsed) .stripe-bar:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.hud-sidebar:not(.collapsed) .stripe-bar:nth-child(2) {
    opacity: 0;
}

.hud-sidebar:not(.collapsed) .stripe-bar:nth-child(3) {
    transform: translateY(-3.5px) rotate(-45deg);
}

.sidebar-heading {
    border-left: 2px solid var(--color-accent);
    padding-left: 15px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 60px);
    margin-top: 30px;
    position: relative;
    padding: 10px 0 10px 3px;
}

.nav-pipeline-track {
    position: absolute;
    left: 6.5px;
    top: 15px;
    bottom: 15px;
    width: 1px;
    background: rgba(229, 196, 83, 0.12);
    z-index: 1;
}


.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text-secondary);
    opacity: 0.15;
    transform: scale(0.85);
    transform-origin: left center;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    position: relative;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    opacity: 1.0;
    color: var(--color-accent);
    transform: scale(1.12);
}

.nav-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(229, 196, 83, 0.3);
    background-color: var(--bg-surface-solid);
    transition: var(--transition-micro);
    z-index: 5;
}

.sidebar-nav-item.active .nav-dot {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
}


/* ==========================================================================
   IMMERSIVE VIEWPORT MAIN CONTAINER
   ========================================================================== */

.cinematic-container {
    margin-left: 60px;
    padding-top: var(--hud-header-height);
    position: relative;
    z-index: 10;
    transition: margin-left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cinematic-container.full-width {
    margin-left: 60px;
}

.scroll-section {
    min-height: calc(100vh - var(--hud-header-height));
    padding: 120px 8% 120px 6%;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

/* Backdrop blur layers completely removed behind section content (normal minimalist look restored) */
.section-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.section-heading {
    font-size: clamp(34px, 5.5vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 45px;
    color: var(--color-text-primary);
    line-height: 1.1;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 100%;
    margin-bottom: 45px;
    line-height: 1.65;
    text-align: justify;
}


/* ==========================================================================
   HERO INTRO SECTION
   ========================================================================== */

.hero-section {
    align-items: flex-start;
    padding-top: 75px;
    padding-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.hero-section .section-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    z-index: 10;
}

.hero-text-content {
    width: 100%;
    max-width: 55%; /* Slightly narrower to prevent overlap with photo at 60px offset */
    position: relative;
    z-index: 10;
}

.hero-photo-wrapper {
    position: absolute;
    bottom: 0;
    right: -2%; /* Adjusted for 60px container offset */
    width: 48%; /* Slightly reduced to prevent overflow at new offset */
    height: 100%;
    z-index: 4; /* Behind text (z-index 10) but in front of canvas network (z-index 3) */
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    transition: var(--transition-cinematic);
    border-radius: 50% 0 0 50%; /* Mathematically eliminates rectangular box boundaries */
}

.hero-profile-photo {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center bottom;
    mix-blend-mode: normal; /* Transparent PNG does not need lighten blend mode */
    filter: brightness(0.75) contrast(0.99) saturate(0.95); /* Perfected mechatronic lighting */
    mask-image: radial-gradient(ellipse at 50% 45%, black 45%, transparent 95%); /* Radial mask to fade all 4 outer box borders smoothly */
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 45%, transparent 95%);
    transition: var(--transition-cinematic);
}

/* Elegant Hover Effects Removed on Portrait (kept strictly static for seamless blending) */

@media (max-width: 991px) {
    .hero-section {
        padding-top: 50px;
        padding-bottom: 50px;
        overflow: visible;
    }
    
    .hero-section .section-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-text-content {
        max-width: 100%;
    }
    
    .hero-photo-wrapper {
        position: relative;
        width: 100%;
        max-width: 480px;
        aspect-ratio: 2.12 / 1;
        height: auto;
        margin: 40px auto 0;
        z-index: 5;
        right: 0;
    }
    
    .hero-profile-photo {
        height: auto;
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%),
                    linear-gradient(to left, black 85%, transparent 100%),
                    linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%),
                            linear-gradient(to left, black 85%, transparent 100%),
                            linear-gradient(to right, black 85%, transparent 100%);
    }
}


.hero-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    margin-bottom: 22px;
    font-family: 'Space Grotesk', sans-serif;
}

.tag-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
    position: relative;
}

.tag-pulse::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    animation: pulseGlow 2s infinite ease-out;
}

.tag-text {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-text-secondary);
}

.hero-title {
    font-size: clamp(42px, 7.5vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2.5px;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.hero-name-top {
    font-weight: 300;
    color: var(--color-text-secondary);
}

.hero-name-bottom {
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--color-text-primary) 30%, rgba(var(--color-accent-rgb), 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(12px, 2vw, 17px);
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: clamp(14px, 1.8vw, 17px);
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 680px;
    margin-bottom: 28px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--color-text-primary);
    color: #060608;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 24px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-micro);
}

.cta-primary:hover {
    background: var(--color-accent);
    color: #000;
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.015);
    color: var(--color-text-primary);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 14px 24px;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition-micro);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-focus);
}

.scroll-indicator {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: 12px;
    font-family: 'Space Grotesk', sans-serif;
}

.scroll-mouse {
    width: 18px;
    height: 30px;
    border: 1.5px solid var(--color-text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background-color: var(--color-accent);
    border-radius: 1px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouseWheel 2.2s infinite ease-in-out;
}

.scroll-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}


/* ==========================================================================
   PHILOSOPHY & PROFILE SECTION
   ========================================================================== */

.profile-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: start;
}

.premium-lead {
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.5;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 30px;
    border-left: 3px solid var(--color-accent);
    padding-left: 20px;
}

.body-text {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

.philosophy-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.philosophy-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition-cinematic);
}

.philosophy-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text-primary);
}

.card-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}


/* ==========================================================================
   IMMERSIVE INTERACTIVE TIMELINE WORK EXPERIENCE
   ========================================================================== */

.cinematic-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.timeline-navigation {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 25px;
}

.time-node {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 20px;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: var(--transition-micro);
}

.node-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
}

.node-company {
    font-size: 17px;
    font-weight: 800;
    color: var(--color-text-secondary);
    letter-spacing: -0.5px;
}

.node-role {
    font-size: 11px;
    color: var(--color-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.time-node:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-focus);
}

.time-node.active {
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.time-node.active .node-year {
    color: var(--color-accent);
}

.time-node.active .node-company {
    color: var(--color-text-primary);
}

.timeline-display-deck {
    position: relative;
    min-height: 290px;
}

.timeline-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 35px 40px;
    opacity: 0;
    transform: translateY(15px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
    cursor: pointer;
}

.timeline-card.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.card-header-meta {
    display: flex;
    justify-content: space-between;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.card-job-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.card-job-intro {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    max-width: 850px;
}

.card-btn-holder {
    margin-bottom: 25px;
}

.card-action-btn {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    border: 1px dashed rgba(var(--color-accent-rgb), 0.3);
    padding: 6px 14px;
    border-radius: 4px;
    transition: var(--transition-micro);
}

.timeline-card:hover .card-action-btn {
    background: rgba(var(--color-accent-rgb), 0.05);
    border-style: solid;
    border-color: var(--color-accent);
}

.card-metrics {
    display: flex;
    gap: 40px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
}

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

.m-val {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-accent);
    font-family: 'Space Grotesk', sans-serif;
}

.m-lbl {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}


/* ==========================================================================
   INFINITE SCROLLING SKILL MARQUEE TICKER (3 Tracks - Speed Boosted!)
   ========================================================================== */

.skills-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 18px;
}

/* Speed slowed down by exactly 30% to 31.2s track cycle loop */
.track-ltr .marquee-group {
    display: flex;
    gap: 18px;
    animation: scroll-ltr 31.2s linear infinite;
}

.track-rtl .marquee-group {
    display: flex;
    gap: 18px;
    animation: scroll-rtl 31.2s linear infinite;
}

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

.skill-chip {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-text-primary);
    white-space: nowrap;
    transition: var(--transition-micro);
}

.skill-chip:hover {
    background: rgba(var(--color-accent-rgb), 0.05);
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

@keyframes scroll-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% - 18px)); }
}

@keyframes scroll-rtl {
    0% { transform: translateX(calc(-100% - 18px)); }
    100% { transform: translateX(0); }
}


/* ==========================================================================
   EDUCATION CARD MODULE (Enhanced Storytelling & Interactivities)
   ========================================================================== */

.education-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.edu-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 40px;
    transition: var(--transition-cinematic);
    position: relative;
    cursor: pointer;
}

.edu-card.highlighted {
    border-color: rgba(var(--color-accent-rgb), 0.25);
    background: linear-gradient(135deg, rgba(12, 12, 15, 0.8) 0%, rgba(var(--color-accent-rgb), 0.015) 100%);
}

.edu-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.edu-card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
}

.edu-stage {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.edu-year {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
}

.edu-card.highlighted .edu-year {
    color: var(--color-accent);
}

.edu-degree {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.edu-school {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 15px;
}

.uni-link {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-micro);
}

.uni-link:hover {
    color: var(--color-accent) !important;
}

.uni-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.uni-link:hover::after {
    transform: scaleX(1);
}

.external-icon {
    opacity: 0;
    transform: translateY(1px) scale(0.8);
    transition: var(--transition-micro);
}

.uni-link:hover .external-icon {
    opacity: 1;
    color: var(--color-accent);
    transform: translateY(1px) scale(1);
}

.edu-meta-badge {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(var(--color-accent-rgb), 0.08);
    color: var(--color-accent);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.edu-description {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    max-width: 900px;
}

.click-instruction {
    position: absolute;
    bottom: 25px;
    right: 40px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    border: 1px dashed rgba(255,255,255,0.08);
    padding: 4px 10px;
    border-radius: 4px;
    transition: var(--transition-micro);
}

.edu-card:hover .click-instruction {
    color: var(--color-accent);
    border-color: var(--color-accent);
}


/* ==========================================================================
   APPLIED PROJECTS SECTION
   ========================================================================== */

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

.project-category-group {
    margin-bottom: 70px;
}

.project-category-group:last-child {
    margin-bottom: 0;
}

.category-subheading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: var(--color-accent);
    margin-bottom: 30px;
    border-left: 2px solid var(--color-accent);
    padding-left: 15px;
    text-transform: uppercase;
}

.research-stack {
    grid-template-columns: 1fr !important;
}

.research-stack .project-card {
    height: auto;
    min-height: 200px;
    padding: 35px 40px;
}

.project-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 35px 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-cinematic);
}

.project-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.proj-meta {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1.5px;
    flex-shrink: 0;
}

.proj-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 12px 0 8px;
    flex-shrink: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.proj-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    flex: 1 1 auto;
    min-height: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proj-action {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 15px;
    margin-top: auto;
    flex-shrink: 0;
    transition: var(--transition-micro);
}

.project-card:hover .proj-action {
    color: var(--color-accent);
}


/* ==========================================================================
   CERTIFICATIONS GRID
   ========================================================================== */

.certifications-grid-spacious {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.cert-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 30px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    transition: var(--transition-cinematic);
}

.cert-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.cert-title-big {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.cert-issuer {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    color: var(--color-text-secondary);
    display: block;
    margin-bottom: 20px;
}

.cert-detail-action {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    border: 1px dashed rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 3px;
    margin-top: auto;
    display: inline-block;
    transition: var(--transition-micro);
}

.cert-card:hover .cert-detail-action {
    color: var(--color-accent);
    border-color: var(--color-accent);
    border-style: solid;
}


/* ==========================================================================
   PERSONAL DYNAMICS MODULE
   ========================================================================== */

.personal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.personal-sub-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 35px 40px;
}

.panel-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.languages-flex-list {
    display: flex;
    flex-direction: column; /* Locked to clean single column stack style */
    gap: 12px;
}

.lang-pill-item {
    background: rgba(255,255,255,0.015);
    border: 1px solid var(--border-subtle);
    padding: 12px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Symmetrical left/right spacing */
    width: 100%;
}

.lang-tag {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.lang-level-pill {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    background: rgba(var(--color-accent-rgb), 0.1);
    padding: 3px 8px;
    border-radius: 4px;
}

.hobbies-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hobby-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hobby-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    color: var(--color-text-primary);
}

.hobby-detail {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--color-text-secondary);
}


/* ==========================================================================
   CONTACT EXPERIENCE (Centered in the middle with larger buttons)
   ========================================================================== */

.contact-section .section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-card-luxury {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--color-accent);
    border-radius: 8px;
    padding: 50px;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-box-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card-luxury .body-text {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.hud-box-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 20px;
    display: block;
}

.gateway-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 520px;
}

.gateway-item {
    display: flex;
    align-items: center;
    gap: 25px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    padding: 22px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition-micro);
    text-align: left;
    width: 100%;
}

.gate-icon {
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gate-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gate-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--color-text-muted);
}

.gate-address {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.gateway-item:hover {
    background: rgba(var(--color-accent-rgb), 0.04);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}


/* ==========================================================================
   GLOBAL FOOTER (Perfect bottom alignment, fully detached from contact card)
   ========================================================================== */

.cinematic-footer {
    width: 100%;
    border-top: 1px solid var(--border-subtle);
    padding: 20px 10%;
    background: #060608;
    position: relative;
    z-index: 10;
    margin-top: 180px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 1.5px;
}

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

.f-item-right {
    text-align: right;
    text-transform: uppercase;
}


/* ==========================================================================
   HIGH-FIDELITY DETAILED POPUP MODAL OVERLAY (With Scroll Locking)
   ========================================================================== */

.details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 4, 6, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

.details-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: rgba(12, 12, 15, 0.95);
    border: 1px solid var(--border-focus);
    border-radius: 12px;
    width: 100%;
    max-width: 780px;
    padding: 50px;
    margin: auto;
    position: relative;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75);
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-modal-overlay.open .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: var(--transition-micro);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    border: 1px solid transparent;
}

.modal-close-btn:hover {
    color: var(--color-accent);
    border-color: var(--border-subtle);
    background: rgba(255, 255, 255, 0.03);
}

.modal-heading {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    display: block;
}

.modal-body-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 25px;
}

.modal-block h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.modal-block p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--color-text-secondary);
    text-align: justify;
}

.modal-grid-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.modal-badge-chip {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 5px 12px;
    border-radius: 4px;
}

.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 15px;
}

.bullet-list li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    position: relative;
}

.bullet-list li::before {
    content: '//';
    position: absolute;
    left: -18px;
    color: var(--color-accent);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 10px;
    font-weight: 700;
}


/* ==========================================================================
   ANIMATION KEYFRAMES & UTILITIES
   ========================================================================== */

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

@keyframes scrollMouseWheel {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }
    35% {
        opacity: 1;
    }
    70% {
        opacity: 1;
        transform: translate(-50%, 7px);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 7px);
    }
}

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

/* Progressive text reveals */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-reveal-delay-1 {
    opacity: 0;
    transform: translateY(30px);
    animation: revealAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.animate-reveal-delay-2 {
    opacity: 0;
    transform: translateY(30px);
    animation: revealAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

@keyframes revealAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   RESPONSIVE DESIGN ADAPTATIONS
   ========================================================================== */

@media (max-width: 1150px) {
    :root {
        --sidebar-width: 0px;
    }

    .hud-sidebar {
        transform: translateX(-100%);
    }

    .sidebar-toggle {
        display: none;
    }

    .cinematic-container {
        margin-left: 0;
    }

    .hud-menu-trigger {
        display: flex;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (max-width: 768px) {
    .scroll-section {
        padding: 90px 6%;
    }

    .hud-header {
        padding: 0 25px;
    }

    .hud-live-signal {
        display: none;
    }

    .timeline-navigation {
        grid-template-columns: 1fr;
    }

    .timeline-display-deck {
        min-height: 380px;
    }

    .edu-card {
        padding: 30px;
    }

    .click-instruction {
        position: static;
        display: inline-block;
        margin-top: 15px;
    }

    .personal-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .personal-sub-panel {
        padding: 30px;
    }

    .contact-card-luxury {
        padding: 35px 20px;
    }

    .modal-box {
        padding: 35px 30px;
    }

    .modal-grid-two {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .f-item-left, .f-item-right {
        text-align: center;
    }
}

/* ==========================================================================
   BACK TO TOP GLOWING BUTTON
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #060608;
    border: 1px solid var(--border-subtle);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 0 15px rgba(229, 196, 83, 0.12);
    z-index: 100;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}

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

.back-to-top:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 25px rgba(229, 196, 83, 0.45);
    transform: scale(1.08);
}

.back-to-top svg {
    transition: transform 0.3s ease;
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 25px;
        right: 25px;
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================
   DESKTOP ALWAYS-VISIBLE SIDEBAR LAYOUT
   ========================================================================== */

@media (min-width: 1151px) {
    .hud-sidebar {
        transform: translateX(0) !important;
        background: rgba(6, 6, 8, 0.4);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        overflow: visible !important;
    }
    
    .sidebar-content-wrapper {
        overflow: visible !important;
    }
    
    .sidebar-toggle {
        display: none !important;
    }
    
    .cinematic-container {
        margin-left: 60px !important;
        transition: margin-left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .cinematic-container.full-width {
        margin-left: 60px !important;
    }
}

/* ==========================================================================
   CINEMATIC LOADER REVEAL & THESIS DOWNLOAD BUTTON STYLES
   ========================================================================== */

.loading-overlay {
    transition: background-color 1.4s ease-in-out 1.0s;
}

/* Expand containment to prevent text clipping during zoom */
.loading-overlay.phase-two .loader-brand-container {
    overflow: visible;
}

/* Fade out progress ring and status elements */
.loading-overlay.phase-two .loader-ring-wrapper,
.loading-overlay.phase-two .loader-status {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Make overlay background transparent to show page underneath */
.loading-overlay.reveal-start {
    background-color: transparent !important;
    pointer-events: none;
}

/* Zoom signature text to infinity and fade/blur out */
.loading-overlay.reveal-start .loader-signature {
    transform: scale(120) !important;
    opacity: 0 !important;
    filter: blur(5px);
    transition: transform 2.8s ease-in, opacity 2.2s ease-in, filter 2.2s ease-in !important;
}

/* Master's Thesis Pop-up Download Button */
.modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(229, 196, 83, 0.04);
    border: 1px solid rgba(229, 196, 83, 0.15);
    color: var(--color-accent);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    text-transform: uppercase;
}

.modal-download-btn:hover {
    background: var(--color-accent);
    color: #060608;
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(229, 196, 83, 0.25);
}


