/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    --bg-dark: #060304;           /* Near-black with warm wine undertone */
    --bg-card: #0e0809;           /* Dark wine charcoal */
    --bg-card-hover: #160a0a;     /* Slightly lifted wine card */
    --primary: #8b2020;           /* Deep crimson — exact match to video */
    --primary-glow: rgba(139, 32, 32, 0.5);
    --secondary: #c47878;         /* Dusty rose / muted rose — no orange */
    --secondary-glow: rgba(196, 120, 120, 0.35);
    --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --text-primary: #f0e8e8;      /* Warm cream white */
    --text-secondary: #a88888;    /* Muted dusty rose text */
    --text-muted: #6b4545;        /* Deep muted rose */
    --border-color: rgba(255, 210, 210, 0.07);
    --border-hover: rgba(139, 32, 32, 0.4);
    --glass-bg: rgba(14, 8, 9, 0.78);
    --glass-border: rgba(255, 210, 210, 0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
/* ==========================================================================
   Dark Burgundy Preloader (Risk style)
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1b0009 0%, #070003 100%);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    will-change: transform;
}

.preloader-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 35vh;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.preloader-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.preloader-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 11vw, 8.5rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 0.85;
    letter-spacing: -0.04em;
    margin: 0;
    text-shadow: 0 0 80px rgba(227, 0, 63, 0.25);
    overflow: hidden;
}

.preloader-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.65rem, 1.8vw, 0.85rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.55em;
    color: #b85d77;
    margin: 1.5rem 0 0 0.2rem;
    opacity: 0.9;
}

.preloader-mobile-notice {
    display: none; /* Скрыто по умолчанию для ПК */
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.72rem, 3.2vw, 0.85rem);
    font-weight: 500;
    color: #ff7b98;
    background: rgba(227, 0, 63, 0.12);
    border: 1px solid rgba(227, 0, 63, 0.35);
    padding: 10px 14px;
    border-radius: 8px;
    margin-top: 1.5rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    max-width: 320px;
    backdrop-filter: blur(8px);
}

body.is-mobile-device .preloader-mobile-notice {
    display: block; /* Отображается строго при детекте смартфона */
}

.preloader-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}

.preloader-counter {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 800;
    line-height: 0.8;
    color: #ffd6e0;
    opacity: 0.95;
    letter-spacing: -0.02em;
}

.preloader-progress-bar {
    width: 250px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.preloader-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #e3003f;
    box-shadow: 0 0 12px #e3003f;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

/* For mobile layout adjustment */
@media (max-width: 768px) {
    .preloader-content {
        padding-top: 40vh;
        padding-bottom: 40px;
        padding-inline: 24px;
    }
    .preloader-progress-bar {
        width: 150px;
    }
    .preloader-title {
        text-shadow: none;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

section {
    scroll-margin-top: 110px;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img, video {
    max-width: 100%;
    display: block;
}

/* Ambient Glow Blobs */
.ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 15s infinite alternate;
}

.bg-glow-1 {
    top: -200px;
    right: -150px;
    background: #7a1a1a;
    opacity: 0.22;
}

.bg-glow-2 {
    top: 500px;
    left: -250px;
    background: #9b3535;
    opacity: 0.16;
    animation-delay: -5s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    50% { transform: scale(1.15) translate(40px, 30px); opacity: 0.18; }
    100% { transform: scale(0.9) translate(-20px, -50px); opacity: 0.12; }
}

/* Typography & Headers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 40px;
    margin-bottom: 16px;
}

.section-description {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
}

.text-center {
    text-align: center;
}

/* Cards & Glassmorphism */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.15);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    gap: 10px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px -3px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-block {
    width: 100%;
}

.btn-icon svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Header / Navigation (Floating Glassmorphic Redesign)
   ========================================================================== */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

.header-container-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 48px);
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    background: rgba(14, 8, 9, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 210, 210, 0.08);
    padding: 0 32px;
    border-radius: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

.header.scrolled .header-container-custom {
    height: 60px;
    background: rgba(14, 8, 9, 0.85);
    border-color: rgba(255, 210, 210, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Left: Logo section */
.header-logo-section {
    display: flex;
    align-items: center;
    z-index: 5;
}

.logo {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0;
    text-transform: uppercase;
}

.logo-bold {
    font-weight: 800;
}

.logo-light {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Center: Nav links */
.header-nav-tab {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-smooth);
}

.nav-link.active::after {
    width: 100%;
}

/* Right: CTA Button & SFX Toggle */
.header-cta-tab {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sfx-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 210, 210, 0.1);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
}

.sfx-toggle-btn:hover {
    background: rgba(227, 0, 63, 0.14);
    border-color: rgba(227, 0, 63, 0.4);
    color: #ffffff;
}

.sfx-toggle-btn.muted {
    opacity: 0.55;
    background: transparent;
    border-color: rgba(255, 210, 210, 0.05);
}

.sfx-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.sfx-toggle-btn.muted .sfx-on {
    display: none;
}

.sfx-toggle-btn.muted .sfx-off {
    display: inline-block;
}

.sfx-toggle-btn:not(.muted) .sfx-off {
    display: none;
}

.sfx-toggle-btn:not(.muted) .sfx-on {
    display: inline-block;
}

.btn-cta-custom {
    color: #ffffff;
    background: var(--accent-gradient);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 22px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px -3px var(--primary-glow);
    transition: var(--transition-smooth);
}

.btn-cta-custom:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px -3px var(--primary);
}

.btn-cta-custom .arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-cta-custom:hover .arrow {
    transform: translate(2px, -2px);
}

/* Mobile Toggle and Responsive styling for mobile */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    margin-left: 15px;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   Hero Section (Redesigned with SVG loop ribbons & centered layout)
   ========================================================================== */
.hero {
    position: relative;
    padding: 220px 0 120px 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 20%, var(--bg-dark) 85%),
                linear-gradient(to bottom, transparent 50%, var(--bg-dark) 100%);
    z-index: 1;
}

/* SVG Ribbon background loops container */
.hero-ribbon-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ribbon-svg {
    width: 100%;
    height: 100%;
    min-width: 1440px;
    object-fit: cover;
    opacity: 0.8;
}

.ribbon-path {
    transition: var(--transition-smooth);
}

/* Floating keyframe animations for the ribbons to feel alive */
@keyframes ribbonFloat1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(20px, -30px) scale(1.02) rotate(0.5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

@keyframes ribbonFloat2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(-30px, 20px) scale(0.98) rotate(-0.5deg); }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); }
}

.path-1 {
    animation: ribbonFloat1 16s infinite ease-in-out;
    transform-origin: center;
}

.path-2 {
    animation: ribbonFloat2 22s infinite ease-in-out;
    transform-origin: center;
}

.path-3 {
    animation: ribbonFloat1 12s infinite ease-in-out alternate;
    transform-origin: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 6px 16px;
    background: rgba(139, 32, 32, 0.15);
    border: 1px solid rgba(139, 32, 32, 0.3);
    border-radius: 20px;
    text-shadow: 0 0 10px rgba(139, 32, 32, 0.3);
}

.hero-title {
    font-size: 80px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 44px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.icon-play {
    animation: playPulse 2s infinite;
}

@keyframes playPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 var(--primary-glow)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 8px var(--primary)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 var(--primary-glow)); }
}




/* ==========================================================================
   Transition Banner Video Section
   ========================================================================== */
.banner-video-section {
    background: transparent;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .banner-video-section {
        background: transparent;
        padding: 15px 0;
    }
}

.banner-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.interface-banner-video {
    position: relative;
    z-index: -2;
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    filter: contrast(1.4) brightness(0.85);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 95%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 95%);
}

/* ==========================================================================
   Portfolio Section (Horizontal Slider & Immersive Player)
   ========================================================================== */
.portfolio {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.portfolio-horizontal-pin {
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.portfolio-section-title-top {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    width: 100%;
}

.portfolio-section-title-top .section-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 8px;
}

.portfolio-section-title-top .section-title {
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.portfolio-horizontal-slider {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
    height: 100vh;
    align-items: center;
    padding-left: calc((100vw - 960px) / 2); /* Symmetrical screen centering for Slide 1 */
    padding-right: calc((100vw - 960px) / 2); /* Symmetrical screen centering for Slide 2 */
}

.portfolio-slide {
    width: 960px;
    flex-shrink: 0;
    margin-right: 120px;
    transition: opacity 0.5s ease;
}

.slide-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slide-media-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    cursor: pointer;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 210, 210, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 12, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slide-play-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.slide-play-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-left: 2px;
}

.slide-media-container:hover .slide-video-preview {
    opacity: 0.95;
    transform: scale(1.02);
}

.slide-media-container:hover .slide-media-overlay {
    background: rgba(10, 10, 12, 0.15);
}

.slide-media-container:hover .slide-play-btn {
    transform: scale(1.05);
    box-shadow: 0 6px 22px var(--primary);
}

.slide-num {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 6;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #ac4e4e; /* Terracotta color from Photo 2 */
    letter-spacing: 0.1em;
}



/* Mobile Fallback for Slider */
@media (max-width: 768px) {
    .portfolio-horizontal-pin {
        height: auto !important;
        display: block !important;
    }
    
    .portfolio-section-title-top {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        padding: 60px 24px 30px 24px !important;
        text-align: center;
    }
    
    .portfolio-horizontal-slider {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 24px 80px 24px !important;
        height: auto !important;
        gap: 60px !important;
    }
    
    .portfolio-slide {
        width: 100% !important;
        margin-right: 0 !important;
        opacity: 0;
        transform: translateY(35px);
        transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
    }

    .portfolio-slide.mobile-visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .slide-inner {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .slide-media-container {
        width: 100% !important;
    }
}


/* ==========================================================================
   Skills Section
   ========================================================================== */
/* Skills Orbit Container */
.skills-orbit-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .skills-orbit-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Left: HUD Panel */
.orbit-hud-panel {
    background: linear-gradient(135deg, #070003 0%, #150007 100%);
    border: 1px solid rgba(138, 10, 42, 0.35);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 0 30px rgba(138, 10, 42, 0.12);
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.hud-header {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #ffd6e0;
    opacity: 0.65;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(138, 10, 42, 0.15);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.hud-status {
    color: #e3003f;
    font-weight: 700;
}

.hud-preview-block {
    flex-grow: 1;
}

.hud-tag {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #e3003f;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hud-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin: 8px 0 16px 0;
    letter-spacing: -0.01em;
}

.hud-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.hud-meta-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(138, 10, 42, 0.15);
    padding-top: 20px;
    margin-top: 30px;
}

.hud-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 10px;
    color: #b85d77;
}

.meta-value {
    font-size: 13px;
    color: #ffffff;
    font-weight: 600;
}

.meta-value-box {
    display: flex;
    gap: 8px;
}

.software-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 12px;
}

.software-badge.ae-badge {
    background: #001233;
    color: #8bb2f9;
    border: 1px solid rgba(30, 100, 220, 0.4);
}

.software-badge.pr-badge {
    background: #150024;
    color: #d18bfc;
    border: 1px solid rgba(160, 80, 255, 0.4);
}

/* Right: Orbit Stage */
.orbit-stage {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    overflow: visible;
}

/* Holographic Core */
.orbit-core {
    position: absolute;
    width: 90px;
    height: 90px;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-nucleus {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #ff004c 0%, #520015 80%);
    box-shadow: 0 0 35px #e3003f, inset 0 0 15px rgba(255, 255, 255, 0.2);
    animation: core-pulsate 3s ease-in-out infinite alternate;
}

.core-text {
    position: relative;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

@keyframes core-pulsate {
    0% { transform: scale(0.95); opacity: 0.85; box-shadow: 0 0 25px rgba(227, 0, 63, 0.6); }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 45px rgba(227, 0, 63, 0.95); }
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(56.6deg);
    pointer-events: none;
}

.orbit-ring-inner {
    width: 200px;
    height: 200px;
    border: 1.5px dashed rgba(227, 0, 63, 0.3);
}

.orbit-ring-middle {
    width: 360px;
    height: 360px;
    border: 1.5px dashed rgba(227, 0, 63, 0.22);
}

.orbit-ring-outer {
    width: 520px;
    height: 520px;
    border: 1.5px dashed rgba(227, 0, 63, 0.15);
}

/* Orbit Nodes */
.orbit-node {
    position: absolute;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    z-index: 8;
}

/* Orbit Node Styles by Type */
.node-software {
    width: 44px;
    height: 44px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.02em;
}

.ae-node {
    background: linear-gradient(135deg, #001233 0%, #002266 100%);
    color: #8bb2f9;
    border: 1px solid rgba(30, 100, 220, 0.4);
    box-shadow: 0 0 12px rgba(30, 100, 220, 0.35);
}

.pr-node {
    background: linear-gradient(135deg, #150024 0%, #290042 100%);
    color: #d18bfc;
    border: 1px solid rgba(160, 80, 255, 0.4);
    box-shadow: 0 0 12px rgba(160, 80, 255, 0.35);
}

.node-direction {
    padding: 8px 18px;
    background: rgba(18, 0, 4, 0.85);
    border: 1.5px solid rgba(227, 0, 63, 0.5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(227, 0, 63, 0.2);
    white-space: nowrap;
    font-family: var(--font-heading);
}

.node-direction .node-label {
    display: inline-block;
}

.node-detail {
    padding: 6px 14px;
    background: rgba(3, 0, 1, 0.7);
    border: 1px solid rgba(227, 0, 63, 0.15);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.orbit-node:hover, .orbit-node.active {
    transform: translate(-50%, -50%) scale(1.12);
    color: #ffffff;
    border-color: #e3003f;
    box-shadow: 0 0 20px rgba(227, 0, 63, 0.45);
}

/* Animations */
@keyframes spin-clockwise {
    from { transform: translate(-50%, -50%) rotateX(68deg) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotateX(68deg) rotate(360deg); }
}

@keyframes spin-counter-clockwise {
    from { transform: translate(-50%, -50%) rotateX(68deg) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotateX(68deg) rotate(0deg); }
}

/* Laser Overlay */
.orbit-laser-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

.laser-line {
    stroke: url(#laser-gradient);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0.85;
    filter: drop-shadow(0 0 5px #e3003f);
    stroke-dasharray: 8 4;
    animation: laser-pulse 0.4s linear infinite;
}

@keyframes laser-pulse {
    to { stroke-dashoffset: -12; }
}

@media (max-width: 768px) {
    .orbit-stage {
        height: 380px;
    }
    .orbit-ring-inner { width: 140px; height: 140px; }
    .orbit-ring-middle { width: 230px; height: 230px; }
    .orbit-ring-outer { width: 320px; height: 320px; }
}

/* ==========================================================================
   Education & Experience Section
   ========================================================================== */
.education {
    position: relative;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(186, 12, 47, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    transform: translateY(-6px);
    border-color: rgba(186, 12, 47, 0.45);
    box-shadow: 0 12px 40px rgba(186, 12, 47, 0.15), 
                0 0 20px rgba(186, 12, 47, 0.04);
}

/* Specific item grid placement */
.bento-item-experience {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bento-item-univ {
    grid-column: span 1;
}

.bento-item-school {
    grid-column: span 1;
}

/* Header style */
.bento-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.bento-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(186, 12, 47, 0.4));
}

.bento-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.bento-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Premiere Pro Timeline Styles */
.premiere-timeline {
    background: #090506;
    border: 1px solid rgba(255, 210, 210, 0.05);
    border-radius: 16px;
    padding: 16px;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.timeline-ruler {
    height: 20px;
    border-bottom: 1px solid rgba(255, 210, 210, 0.1);
    position: relative;
    margin-bottom: 12px;
}

.ruler-mark {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 10px;
    color: var(--text-muted);
}

.timeline-tracks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.timeline-track {
    display: flex;
    align-items: center;
    background: rgba(14, 8, 9, 0.6);
    border-radius: 8px;
    height: 36px;
    position: relative;
}

.track-label {
    width: 32px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    border-right: 1px solid rgba(255, 210, 210, 0.05);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-content {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

.clip {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* Clip Types & Premium Colors */
.clip-adj {
    background: rgba(138, 43, 226, 0.18); /* Purple adjustment layer */
    border-color: rgba(138, 43, 226, 0.35);
    color: #e0b0ff;
}

.clip-text {
    background: rgba(220, 20, 60, 0.18); /* Crimson text */
    border-color: rgba(220, 20, 60, 0.35);
    color: #ffb3ba;
}

.clip-video {
    background: rgba(186, 12, 47, 0.15); /* Wine red footage */
    border-color: rgba(186, 12, 47, 0.3);
    color: var(--text-primary);
}

.clip-video.highlight {
    background: rgba(186, 12, 47, 0.35);
    border-color: rgba(186, 12, 47, 0.7);
    box-shadow: 0 0 10px rgba(186, 12, 47, 0.25);
}

.clip-audio {
    background: rgba(0, 128, 128, 0.15); /* Teal audio */
    border-color: rgba(0, 128, 128, 0.35);
    color: #a8e6cf;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.audio-title {
    z-index: 2;
}

.waveform-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 100%;
    opacity: 0.35;
    position: absolute;
    right: 12px;
    top: 0;
}

.waveform-bars span {
    display: inline-block;
    width: 2px;
    background: #a8e6cf;
    border-radius: 1px;
}

/* Statically heightening waveform bars */
.waveform-bars span:nth-child(2n) { height: 12px; }
.waveform-bars span:nth-child(3n) { height: 18px; }
.waveform-bars span:nth-child(5n) { height: 8px; }
.waveform-bars span:nth-child(7n) { height: 22px; }
.waveform-bars span:nth-child(even) { height: 15px; }

.clip-sfx {
    background: rgba(255, 140, 0, 0.15); /* Orange SFX tags */
    border-color: rgba(255, 140, 0, 0.35);
    color: #ffd3b6;
}

/* Playhead UI & Line */
.timeline-playhead {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    z-index: 10;
    pointer-events: none;
    left: 0%; /* Default starting left */
    transform: translateX(-50%);
}

.playhead-cursor {
    width: 11px;
    height: 11px;
    background: #ff3b30;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 8px #ff3b30;
    border-radius: 1px;
}

.playhead-line {
    width: 1px;
    background: linear-gradient(to bottom, #ff3b30, rgba(255, 59, 48, 0.1));
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px rgba(255, 59, 48, 0.5);
}

/* Playhead sweep animation */
.premiere-timeline:not(.manual) .timeline-playhead {
    animation: playhead-sweep 8s linear infinite;
}

@keyframes playhead-sweep {
    0% { left: 0%; }
    100% { left: 100%; }
}

@media (max-width: 576px) {
    .clip {
        font-size: 9px;
        padding: 0 4px;
    }
    .track-label {
        width: 24px;
        font-size: 9px;
    }
    .ruler-mark {
        font-size: 8px;
    }
    .premiere-timeline {
        padding: 10px;
    }
}

/* Education specific styles */
.education-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: block;
}

/* Bento Accordion component */
.bento-accordion {
    border-top: 1px solid rgba(255, 210, 210, 0.05);
    margin-top: auto;
    padding-top: 12px;
}

.bento-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
    user-select: none;
}

.bento-accordion-header:hover {
    color: var(--secondary);
}

.bento-accordion-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-accordion.active .bento-accordion-arrow {
    transform: rotate(180deg);
}

.bento-accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-accordion-inner {
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Quote styles */
.bento-quote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin: 0;
    padding: 0 20px;
    position: relative;
}

/* Responsive Grid styling */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-item-experience {
        grid-column: span 2;
    }
    .bento-item-quote {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 16px;
    }
    .bento-item-experience {
        grid-column: span 1;
        grid-row: span 1;
    }
    .bento-item-univ,
    .bento-item-school,
    .bento-item-quote {
        grid-column: span 1;
    }
    .bento-item {
        padding: 24px;
    }
    .bento-stats-grid {
        margin-top: 20px;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

.contact-details-list a:hover {
    color: var(--primary);
}

.copy-contact-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-left: 4px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition-smooth);
}

.copy-contact-btn:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    position: relative;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-icon, .check-icon {
    position: absolute;
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.check-icon {
    opacity: 0;
    transform: scale(0.5) rotate(-45deg);
    color: #4ade80; /* Vibrant green success color */
}

.copy-contact-btn.copied .copy-icon {
    opacity: 0;
    transform: scale(0.5) rotate(45deg);
}

.copy-contact-btn.copied .check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Tooltip */
.copy-contact-btn .tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.copy-contact-btn:hover .tooltip,
.copy-contact-btn.copied .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.social-btn:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
    transform: translateY(-3px);
}

.contact-form-container {
    padding: 48px;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--border-color);
    padding: 12px 0;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-textarea {
    min-height: 120px;
    resize: none;
}

.form-label {
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
    transition: var(--transition-smooth);
}

/* Floating Label Effects */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -16px;
    font-size: 12px;
    color: var(--secondary);
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 1px 0 var(--secondary);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form Success State */
.form-feedback-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 0;
}

.success-message h4 {
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: #050508;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-author {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   Fullscreen Video Overlay (Containing Block Fix)
   ========================================================================== */
#fullscreen-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 3, 4, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-video-content {
    position: fixed;
    background: #000000;
    overflow: hidden;
    z-index: 100000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 210, 210, 0.08);
}

#fullscreen-video-player,
#fullscreen-youtube-player {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    object-fit: contain;
}

/* Close Button */
.fullscreen-close-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(14, 8, 9, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 210, 210, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100001;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fullscreen-close-btn.visible {
    opacity: 1;
    transform: scale(1);
}

.fullscreen-close-btn:hover {
    background: rgba(139, 32, 32, 0.75);
    border-color: var(--primary);
    transform: scale(1.05) rotate(90deg);
}

.fullscreen-close-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Animations & Scroll Effects
   ========================================================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item entrance delay setup */
.scroll-reveal-item {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-item.animated {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 48px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
        gap: 24px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    /* Responsive Header adjustments */
    .header {
        top: 10px !important;
    }
    
    .header-container-custom {
        width: calc(100% - 24px) !important;
        height: 60px !important;
        padding: 0 20px !important;
        border-radius: 30px !important;
    }
    
    .header-logo-section {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .header-nav-tab {
        display: contents !important;
    }
    
    .header-cta-tab {
        display: none !important;
    }
    
    .mobile-nav-toggle {
        display: flex !important;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        border-top: 1px solid var(--border-color);
        padding: 40px;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        z-index: 99;
    }
    
    .nav.active {
        transform: translateX(0);
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .nav-link {
        font-size: 20px;
        color: var(--text-secondary);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--text-primary) !important;
    }
    
    .contact-form-container {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 32px;
    }

    /* Prevent ambient glow blobs from overflowing */
    .ambient-glow {
        width: 300px;
        height: 300px;
        right: auto;
        left: -50px !important;
    }
}

/* ==========================================================================
   Premium 3D Visual Effects & Cursor Glow
   ========================================================================== */
.card {
    transform-style: preserve-3d;
    will-change: transform;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

/* ==========================================================================
   Mobile Performance Optimizations (Smooth 60/120fps Scroll & No Jitter)
   ========================================================================== */
@media (max-width: 768px), (pointer: coarse) {
    /* Disable heavy SVG Gaussian blurs during mobile scroll */
    .ribbon-path,
    .ribbon-svg path {
        filter: none !important;
    }
    
    /* Hardware acceleration for scroll containers */
    body, html {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Lightweight backdrop blurs on mobile */
    .header-container-custom,
    #preloader,
    #fullscreen-video-overlay {
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
    }

    /* Reduce heavy shadows on mobile GPU */
    .bento-item,
    .slide-media-container,
    .skills-card {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    }
}

