/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Font Families */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Theme Variables - Dark Mode (Default) */
    --bg-primary: #0a0b10;
    --bg-secondary: #11131e;
    --bg-navbar: rgba(10, 11, 16, 0.75);
    
    --text-primary: #f1f3f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --secondary-grad: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --primary-color: #6366f1;
    --secondary-color: #06b6d4;
    
    /* Glassmorphism Specs */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    --glass-glow: rgba(99, 102, 241, 0.15);

    /* Audio Rhythm Dynamically Controlled Variables */
    --rhythm-scale: 1;
    --rhythm-glow: 120px;
    --rhythm-opacity: 0.45;

    /* Animation Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables override */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-navbar: rgba(248, 250, 252, 0.75);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary-grad: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --secondary-grad: linear-gradient(135deg, #0891b2 0%, #2563eb 100%);
    --primary-color: #4f46e5;
    --secondary-color: #0891b2;
    
    --glass-bg: rgba(15, 23, 42, 0.03);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-shadow: rgba(15, 23, 42, 0.05);
    --glass-glow: rgba(79, 70, 229, 0.06);

    --rhythm-glow: 80px;
    --rhythm-opacity: 0.25;
}

/* ==========================================================================
   BASE STYLES & RESET (Slides Locking Mode & Select Disabled Globally)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Disable text selection and copy protection globally */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html, body {
    height: 100%;
    overflow: hidden; /* Lock natural browser scrolling completely */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* Enable typing selecting inside form fields specifically */
input, textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Global Smooth Theme Transition Rules */
body, .navbar, .navbar-container .navbar, .nav-link, .theme-toggle-btn,
.project-card, .skills-category-card, .contact-card, .form-input, .btn, .dot-btn {
    transition: background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                color 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                background 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==========================================================================
   DYNAMIC ANGRY MODE SHAKE ANIMATION
   ========================================================================== */
@keyframes angryShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-10px, -6px); }
    20% { transform: translate(10px, 6px); }
    30% { transform: translate(-12px, 10px); }
    40% { transform: translate(12px, -10px); }
    50% { transform: translate(-8px, 6px); }
    60% { transform: translate(8px, -6px); }
    70% { transform: translate(-10px, -10px); }
    80% { transform: translate(10px, 10px); }
    90% { transform: translate(-6px, 4px); }
}

.angry-shake {
    animation: angryShake 0.45s cubic-bezier(.36,.07,.19,.97) both;
}

/* ==========================================================================
   DYNAMIC FLOWING BACKGROUND GRADIENT DOUBLE BUFFERS
   ========================================================================== */
.bg-gradient-layer {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3; /* Under ambient spot lights */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 1.5s;
    background-size: 400% 400%;
    animation: flowGradient 25s infinite alternate ease-in-out;
}

.bg-gradient-layer.active {
    opacity: 1;
    visibility: visible;
}

@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   FIXED AMBIENT GLOWING SPOT LIGHTS (Continuous drifting & rotating)
   ========================================================================== */
.ambient-blobs-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2; /* Above gradient backdrop layers, below slide contents */
    overflow: hidden;
    pointer-events: none;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--kick-glow, 120px));
    opacity: var(--kick-opacity, 0.45);
    /* Transition is kept only for background color crossfades to prevent visual conflicts with JS LERP */
    transition: background 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    mix-blend-mode: screen;
    will-change: transform, opacity, filter; /* hardware compositor layer speedup! */
}

/* Slower and curved floating pathways (majestic swimming blobs) */
.ambient-blob.blob-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -15%;
    animation: driftBlob1 48s infinite linear;
}

.ambient-blob.blob-2 {
    width: 600px;
    height: 600px;
    bottom: -15%;
    right: -15%;
    animation: driftBlob2 55s infinite linear;
}

.ambient-blob.blob-3 {
    width: 350px;
    height: 350px;
    top: 35%;
    left: 40%;
    animation: driftBlob3 42s infinite linear;
}

/* Circular, curved bezier-like swim loops */
@keyframes driftBlob1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(var(--kick-scale, 1));
    }
    33% {
        transform: translate(140px, 80px) rotate(120deg) scale(calc(var(--kick-scale, 1) * 1.1));
    }
    66% {
        transform: translate(-60px, 160px) rotate(240deg) scale(calc(var(--kick-scale, 1) * 0.9));
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(var(--kick-scale, 1));
    }
}

@keyframes driftBlob2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(var(--kick-scale, 1));
    }
    33% {
        transform: translate(-150px, -110px) rotate(-120deg) scale(calc(var(--kick-scale, 1) * 0.85));
    }
    66% {
        transform: translate(80px, 50px) rotate(-240deg) scale(calc(var(--kick-scale, 1) * 1.05));
    }
    100% {
        transform: translate(0, 0) rotate(-360deg) scale(var(--kick-scale, 1));
    }
}

@keyframes driftBlob3 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(var(--kick-scale, 1));
    }
    33% {
        transform: translate(180px, -70px) rotate(120deg) scale(calc(var(--kick-scale, 1) * 1.15));
    }
    66% {
        transform: translate(-80px, -100px) rotate(240deg) scale(calc(var(--kick-scale, 1) * 0.95));
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(var(--kick-scale, 1));
    }
}

/* ==========================================================================
   REUSABLE UTILITIES & MAGNIFYING LENS EFFECTS ON TEXT HOVER
   ========================================================================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
    opacity: 0; /* Animated dynamically when active */
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-grad);
    margin: 0 auto;
    border-radius: 2px;
}

.gradient-text {
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dynamic lens magnification scaling on text elements */
.hero-title, .hero-subtitle, .hero-description, 
.section-title, .about-text-p, 
.timeline-title, .timeline-desc, 
.project-title, .project-description, 
.skill-name, .contact-form-title {
    display: inline-block;
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                color 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-title:hover, .hero-subtitle:hover, .hero-description:hover, 
.section-title:hover, .about-text-p:hover, 
.timeline-title:hover, .timeline-desc:hover, 
.project-title:hover, .project-description:hover, 
.skill-name:hover, .contact-form-title:hover {
    transform: scale(1.025); /* Subtle smooth magnify size scale */
    color: #ffffff;
}

body.light-theme .hero-title:hover, 
body.light-theme .hero-subtitle:hover, 
body.light-theme .hero-description:hover, 
body.light-theme .section-title:hover, 
body.light-theme .about-text-p:hover, 
body.light-theme .timeline-title:hover, 
body.light-theme .timeline-desc:hover, 
body.light-theme .project-title:hover, 
body.light-theme .project-description:hover, 
body.light-theme .skill-name:hover, 
body.light-theme .contact-form-title:hover {
    color: #000000;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary-grad);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--glass-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px) scale(1.02);
}

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

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   CUSTOM INTERACTIVE CROSSHAIR & GLOW CURSOR (Morphs to caret/chevron & magnifier)
   ========================================================================== */
.cursor-glow {
    position: fixed;
    left: 0;
    top: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glass-glow) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none !important;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    z-index: 999998;
    mix-blend-mode: screen;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.4s cubic-bezier(0.25, 1, 0.5, 1), 
                background 0.4s ease;
    display: block !important;
    opacity: 1;
    will-change: transform;
}

/* Crosshair Shape Cursor Base */
.cursor-cross {
    position: fixed;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    pointer-events: none !important;
    z-index: 999999;
    display: block !important;
    transform: translate3d(0, 0, 0) translate(-50%, -50%);
    transform-origin: center;
    transition: width 0.15s ease, height 0.15s ease, opacity 0.18s ease-in-out;
    opacity: 1;
    will-change: transform;
}

/* Hidden state for cross warning displays */
.cursor-cross.hidden {
    opacity: 0 !important;
}

/* Lock hide natural browser cursor globally on desktop */
* {
    cursor: none !important;
}

/* Cross Cursor lines - converted to symmetrical segments that morph smoothly */
.cross-line {
    position: absolute;
    width: 2px;
    height: 16px;
    left: 11px;
    top: 4px;
    background: #ffffff;
    border-radius: 1px;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                transform-origin 0.3s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.25s ease,
                background 0.3s ease,
                box-shadow 0.3s ease;
}

/* Base X state: rotated 45deg and -45deg respectively */
.cross-h {
    transform-origin: center;
    transform: rotate(45deg);
}

.cross-v {
    transform-origin: center;
    transform: rotate(-45deg);
}

/* INTERACTIVE BUTTON HOVER: Morphs smoothly into a Caret/Chevron pointing straight UP ^ */
.cursor-cross.hover-interactive .cross-h {
    transform-origin: top center;
    transform: rotate(-35deg); /* Left side slope */
}

.cursor-cross.hover-interactive .cross-v {
    transform-origin: top center;
    transform: rotate(35deg); /* Right side slope */
}

/* TEXT HOVER STATE: Glass Magnifier Circle Lens */
.cursor-cross::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 32px;
    height: 32px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2), inset 0 0 6px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.25s ease;
}

.cursor-cross.hover-text::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cursor-cross.hover-text .cross-line {
    opacity: 0;
    transform: scale(0);
}

/* ==========================================================================
   FUNNY RIGHT-CLICK WARNING TOOLTIP (Elastic jumping/bouncing transitions)
   ========================================================================== */
.right-click-warning {
    position: fixed;
    transform: translate(-50%, -60%) scale(0.6) rotate(var(--rotate-angle, 0deg));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 10005;
    opacity: 0;
    /* Spring physics curve for pop and bounce transitions */
    transition: opacity 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* Active State - overshoots scaling and translate slightly (Elastic Bouncing Jump & 0.8 Opacity) */
.right-click-warning.active {
    opacity: 0.8; /* Opacity raised to 0.8 for higher legibility */
    transform: translate(-50%, -110%) scale(1.1) rotate(var(--rotate-angle, 0deg));
}

/* Exit State - jumps up higher, shrinks, and twists away */
.right-click-warning.fade-out {
    opacity: 0;
    transform: translate(-50%, -150%) scale(0.6) rotate(calc(var(--rotate-angle, 0deg) * 1.5));
}

/* ==========================================================================
   DAMPING VIBRATION KEYFRAMES (High-speed mechanical micro-tremble with multiplier variable)
   ========================================================================== */
@keyframes megaVibrate {
    0% { transform: translate(0, 0); }
    /* Intense trembling stage (0% to 25%) */
    2% { transform: translate(calc(-3px * var(--v-mult, 1)), calc(1px * var(--v-mult, 1))); }
    4% { transform: translate(calc(3px * var(--v-mult, 1)), calc(-1px * var(--v-mult, 1))); }
    6% { transform: translate(calc(-2px * var(--v-mult, 1)), calc(-2px * var(--v-mult, 1))); }
    8% { transform: translate(calc(2px * var(--v-mult, 1)), calc(2px * var(--v-mult, 1))); }
    10% { transform: translate(calc(-3px * var(--v-mult, 1)), calc(1.5px * var(--v-mult, 1))); }
    12% { transform: translate(calc(3px * var(--v-mult, 1)), calc(-1.5px * var(--v-mult, 1))); }
    14% { transform: translate(calc(-2.5px * var(--v-mult, 1)), calc(2px * var(--v-mult, 1))); }
    16% { transform: translate(calc(2.5px * var(--v-mult, 1)), calc(-2px * var(--v-mult, 1))); }
    18% { transform: translate(calc(-3px * var(--v-mult, 1)), calc(-1px * var(--v-mult, 1))); }
    20% { transform: translate(calc(3px * var(--v-mult, 1)), calc(1px * var(--v-mult, 1))); }
    
    /* Decelerating/Damping trembling stage (20% to 50%) */
    24% { transform: translate(calc(-1.5px * var(--v-mult, 1)), calc(1px * var(--v-mult, 1))); }
    28% { transform: translate(calc(1.5px * var(--v-mult, 1)), calc(-1px * var(--v-mult, 1))); }
    32% { transform: translate(calc(-1.2px * var(--v-mult, 1)), calc(-0.8px * var(--v-mult, 1))); }
    36% { transform: translate(calc(1.2px * var(--v-mult, 1)), calc(0.8px * var(--v-mult, 1))); }
    40% { transform: translate(calc(-1.5px * var(--v-mult, 1)), calc(1.2px * var(--v-mult, 1))); }
    44% { transform: translate(calc(1.5px * var(--v-mult, 1)), calc(-1.2px * var(--v-mult, 1))); }
    48% { transform: translate(calc(-1px * var(--v-mult, 1)), calc(1px * var(--v-mult, 1))); }
    
    /* Subtle vibration stage (50% to 75%) */
    54% { transform: translate(calc(-0.6px * var(--v-mult, 1)), calc(0.6px * var(--v-mult, 1))); }
    60% { transform: translate(calc(0.6px * var(--v-mult, 1)), calc(-0.6px * var(--v-mult, 1))); }
    66% { transform: translate(calc(-0.3px * var(--v-mult, 1)), calc(-0.3px * var(--v-mult, 1))); }
    72% { transform: translate(calc(0.3px * var(--v-mult, 1)), calc(0.3px * var(--v-mult, 1))); }
    
    /* Settled stage */
    78% { transform: translate(0, 0); }
    100% { transform: translate(0, 0); }
}

/* ==========================================================================
   MEGA ANGRY STAGE TEXT OVERLAY (Huge centered "YAPMA" with slow fade out)
   ========================================================================== */
.mega-angry-text {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 11rem; /* Prominent size */
    font-weight: 900;
    color: #ff0033;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8); /* pop in from 0.8 to 1.0 */
    text-shadow: 0 0 50px rgba(255, 0, 51, 1), 0 0 100px rgba(255, 0, 51, 0.7);
    letter-spacing: 0.25em; /* Threat spacing */
    --v-mult: 1; /* Custom variable controlling vibration scale dynamically */
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Mega Angry Text Active entrance (triggers the dampening vibration) */
.mega-angry-text.active {
    opacity: 1;
    transform: scale(1.0);
    animation: megaVibrate 2.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Mega Angry Text exit (smooth fade out, shrinks slightly, NO expand/growth) */
.mega-angry-text.fade-out {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1),
                transform 1.0s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (max-width: 768px) {
    .mega-angry-text {
        font-size: 4.5rem;
        letter-spacing: 0.15em;
    }
}

/* ==========================================================================
   MEGA ANGRY BLUR STYLES (Blurs everything except the text overlay)
   ========================================================================== */
body.mega-angry-blur .slides-container,
body.mega-angry-blur .navbar-container,
body.mega-angry-blur .music-widget,
body.mega-angry-blur .dots-navigation,
body.mega-angry-blur .ambient-blobs-container,
body.mega-angry-blur .bg-gradient-layer {
    filter: blur(15px);
    pointer-events: none; /* Disable all interactions during mega anger */
}

/* Fast blur transition in */
body.mega-angry-blur .slides-container,
body.mega-angry-blur .navbar-container,
body.mega-angry-blur .music-widget,
body.mega-angry-blur .dots-navigation,
body.mega-angry-blur .ambient-blobs-container,
body.mega-angry-blur .bg-gradient-layer {
    transition: filter 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* VERY SLOW calm down blur transition out (5 seconds for cinematic recovery!) */
body:not(.mega-angry-blur) .slides-container,
body:not(.mega-angry-blur) .navbar-container,
body:not(.mega-angry-blur) .music-widget,
body:not(.mega-angry-blur) .dots-navigation,
body:not(.mega-angry-blur) .ambient-blobs-container,
body:not(.mega-angry-blur) .bg-gradient-layer {
    transition: filter 5.0s cubic-bezier(0.25, 1, 0.5, 1);
}

/* VERY SLOW calm down backdrop color transition out (4 seconds) */
body:not(.angry-mode) .ambient-blob,
body:not(.angry-mode) .bg-gradient-layer {
    transition: background 4.0s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 4.0s ease,
                filter 4.0s ease;
}

/* ==========================================================================
   ANGRY MODE RED OVERLAYS (Smoothly morphs the entire site to crimson glow)
   ========================================================================== */
body.angry-mode .ambient-blob {
    background: #ff0033 !important;
    filter: blur(140px) !important;
    opacity: 0.95 !important;
}

body.angry-mode .bg-gradient-layer {
    background: linear-gradient(135deg, #0e0101 0%, #3a0006 50%, #050000 100%) !important;
}

body.angry-mode .cross-line {
    background: #ff0033 !important;
    box-shadow: 0 0 10px #ff0033, 0 0 20px #ff0033 !important;
}

body.angry-mode .right-click-warning {
    color: #ff2233 !important;
    font-size: 1.15rem !important; /* Metin biraz daha büyür */
    text-shadow: 0 0 15px rgba(255, 0, 51, 0.9) !important;
}

body.angry-mode .cursor-typing {
    color: #ff0033 !important;
}

/* ==========================================================================
   ZEN CALM MODE OVERLAY (Subtle black/gray hardware-accelerated breathing gradient)
   ========================================================================== */
.zen-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000000; /* Highest priority overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    background: radial-gradient(circle, #181922 0%, #050508 100%); /* Base background */
    transition: opacity 2.0s cubic-bezier(0.25, 1, 0.5, 1), visibility 2.0s;
    overflow: hidden;
}

/* Hardware accelerated transition using opacity on absolute pseudo element */
.zen-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #0c0d12 0%, #020203 100%);
    z-index: -1;
    opacity: 0;
    animation: zenBgFlow 12s infinite alternate ease-in-out;
}

@keyframes zenBgFlow {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.zen-overlay.active {
    opacity: 1;
    visibility: visible;
}

.zen-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.zen-advice {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    height: 4.5rem; /* Fixed height to prevent layout shifts on text changes */
    margin-bottom: 30px;
    transition: opacity 0.8s ease, font-size 0.5s ease, color 0.5s ease;
    line-height: 1.5;
}

.zen-timer {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 45px;
    letter-spacing: 0.05em;
    transition: opacity 0.8s ease;
}

/* Pulsing Zen Breathing circle */
.zen-breath-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.12);
    border: 2px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 0 35px rgba(99, 102, 241, 0.15);
    animation: zenBreathing 4s infinite ease-in-out;
}

@keyframes zenBreathing {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.4); opacity: 0.85; box-shadow: 0 0 50px rgba(99, 102, 241, 0.3); }
}

/* Smooth fade out of everything when Zen mode is active */
body.zen-active .slides-container,
body.zen-active .navbar-container,
body.zen-active .music-widget,
body.zen-active .dots-navigation,
body.zen-active .ambient-blobs-container,
body.zen-active .bg-gradient-layer {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

/* ==========================================================================
   INTRO AUTOMATIC PRELOADER OVERLAY
   ========================================================================== */
.preloader-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: #040508;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 48px;
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), visibility 1.2s;
}

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

/* Fine dot tech grid overlay background */
.preloader-cyber-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(rgba(99, 102, 241, 0.08) 1.5px, transparent 0),
        radial-gradient(rgba(6, 182, 212, 0.08) 1.5px, transparent 0);
    background-size: 32px 32px;
    background-position: 0 0, 16px 16px;
    opacity: 0.65;
    z-index: 1;
    pointer-events: none;
}

/* Glowing center vignette shadow */
.preloader-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, #030406 85%);
    z-index: 2;
    pointer-events: none;
}

/* Tech concentric rings */
.preloader-rings {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.p-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.p-ring-outer {
    width: 250px;
    height: 250px;
    border: 1.5px dashed rgba(6, 182, 212, 0.25);
    animation: spinClockwise 16s linear infinite;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.05);
}

.p-ring-inner {
    width: 210px;
    height: 210px;
    border: 2px solid transparent;
    border-top-color: rgba(99, 102, 241, 0.4);
    border-bottom-color: rgba(6, 182, 212, 0.4);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.2));
    animation: spinCounter 8s linear infinite;
}

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

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

/* Oscilloscope canvas */
.preloader-canvas {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(10, 11, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(4px);
    z-index: 3;
}

/* Central glowing logo text */
.preloader-center-logo {
    position: absolute;
    z-index: 5;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    pointer-events: none;
}

.glitch-text {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px var(--primary-color);
    letter-spacing: -0.02em;
}

/* Technology Info & Status */
.preloader-tech-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.preloader-status {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: color 0.4s ease;
}

.preloader-status.complete {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.preloader-percentage {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Horizontal Tech Loading Bar */
.preloader-bar-tech {
    width: 220px;
    height: 3px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.preloader-bar-segment-fill {
    height: 100%;
    width: 0%;
    background: var(--primary-grad);
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.08s ease-out;
}

/* Hide animations for progress bars and counters on 100% complete */
.preloader-bar-tech, .preloader-percentage {
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.preloader-bar-tech.hidden, .preloader-percentage.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9) translateY(-10px);
}

/* Glowing tech text prompt styled for user interaction hook */
.preloader-enter-prompt {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.12em;
    text-align: center;
    max-width: 320px;
    margin-top: 15px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
    
    /* Hidden initially */
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95) translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    line-height: 1.5;
}

.preloader-enter-prompt.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
    animation: pulsePromptText 1.6s infinite alternate ease-in-out;
}

@keyframes pulsePromptText {
    0% {
        opacity: 0.55;
        text-shadow: 0 0 8px rgba(6, 182, 212, 0.2);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.65), 0 0 35px rgba(99, 102, 241, 0.45);
        color: #ffffff;
    }
}

/* ==========================================================================
   FLOATING MUSIC CONTROLLER WIDGET
   ========================================================================== */
.music-widget {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Shift to bottom-left to prevent collision with dot navigation */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    overflow: visible;
    cursor: pointer;
    height: 48px;
    max-width: 350px;
}

.music-toggle-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.music-toggle-btn:hover {
    color: var(--text-primary);
    transform: scale(1.08);
}

.music-info-container {
    display: flex;
    flex-direction: column;
    width: 100px;
}

.music-title {
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-status {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Music Visualizer Spectrum Bars */
.music-visualizer-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    width: 28px;
    height: 18px;
}

.v-bar {
    width: 4px;
    height: 100%;
    background: var(--primary-grad);
    border-radius: 2px;
    transform-origin: bottom;
    transform: scaleY(0.15);
    transition: transform 0.1s ease;
}

.music-widget.playing .v-bar {
    animation: musicSpectrum 1s infinite alternate ease-in-out;
}

.music-widget.playing .v-bar:nth-child(1) { animation-delay: 0.1s; animation-duration: 0.8s; }
.music-widget.playing .v-bar:nth-child(2) { animation-delay: 0.3s; animation-duration: 1.2s; }
.music-widget.playing .v-bar:nth-child(3) { animation-delay: 0.2s; animation-duration: 0.9s; }
.music-widget.playing .v-bar:nth-child(4) { animation-delay: 0.4s; animation-duration: 1.1s; }

@keyframes musicSpectrum {
    0% { transform: scaleY(0.15); }
    100% { transform: scaleY(1); }
}

/* Volume Control */
.music-volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid var(--glass-border);
    padding-left: 10px;
    color: var(--text-secondary);
}

.volume-slider {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--glass-border);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

/* ==========================================================================
   VERTICAL DOTS NAVIGATION
   ========================================================================== */
.dots-navigation {
    position: fixed;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.dot-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    opacity: 0.6;
    outline: none;
}

.dot-btn:hover {
    opacity: 1;
    transform: scale(1.2);
    background: var(--text-primary);
}

.dot-btn.active {
    opacity: 1;
    background: var(--primary-grad);
    transform: scale(1.4);
    box-shadow: 0 0 12px var(--primary-color);
}

/* ==========================================================================
   NAVIGATION NAVBAR (Centered Bug Fixed)
   ========================================================================== */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001; /* Must sit higher than slides */
    padding: 24px 0;
    transition: padding var(--transition-normal);
    display: flex;
    justify-content: center;
    pointer-events: none; /* Let clicks pass through container to slides */
}

.navbar {
    width: 100%;
    max-width: 1200px;
    margin: 0 24px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto; /* Enable clicks back on the actual bar */
}

.navbar-container.scrolled {
    padding: 16px 0;
}

.navbar-container.scrolled .navbar {
    max-width: 1000px;
    background: var(--bg-navbar);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--glass-shadow);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 12px 32px;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    cursor: pointer;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-grad);
    transition: width var(--transition-fast);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background: var(--glass-border);
    transform: rotate(15deg);
}

/* Hamburger menu stylings */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* ==========================================================================
   DYNAMIC STACKED SLIDES LAYOUT (Transparent for BG layer overlays)
   ========================================================================== */
.slides-container {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto; /* Internal scrolling if content overflow on small screens */
    overflow-x: hidden;
    padding: 100px 0 60px 0; /* Header and Footer clearings */
    background-color: transparent; /* Transparent so dynamic background layers show */
    
    /* 3D Depth Transition - Exit defaults */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(100vh) scale(0.95);
    filter: blur(15px);
    z-index: 1;
}

/* Slide is Active - Enters Center Viewport */
.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    filter: blur(0);
    z-index: 5;
}

/* Slide has Exited - Zoomed Upward Out of view */
.slide.exit-up {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100vh) scale(0.9);
    filter: blur(15px);
    z-index: 2;
}

/* Staggered Slide-In Keyframe Animations for children with POP and SPRING effect */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Apply staggered reveals on child components of ACTIVE slide */
.slide.active .hero-subtitle,
.slide.active .section-header,
.slide.active .about-image-wrapper {
    animation: slideInUp 0.85s 0.1s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active .hero-title,
.slide.active .about-subtitle,
.slide.active .project-card:nth-child(1),
.slide.active .skills-category-card:nth-child(1) {
    animation: slideInUp 0.85s 0.25s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active .hero-typing-container,
.slide.active .about-text-content,
.slide.active .project-card:nth-child(2),
.slide.active .skills-category-card:nth-child(2) {
    animation: slideInUp 0.85s 0.4s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active .hero-description,
.slide.active .personal-details-grid,
.slide.active .project-card:nth-child(3),
.slide.active .skills-category-card:nth-child(3) {
    animation: slideInUp 0.85s 0.55s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active .hero-ctas,
.slide.active .contact-card {
    animation: slideInUp 0.85s 0.7s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide.active .hero-social-links {
    animation: slideInUp 0.85s 0.85s both cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   HOVER INTERACTION EFFECTS
   ========================================================================== */
/* Project Cards glow border transition */
.project-card {
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, transparent 50%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.5s;
    z-index: 10;
}

.project-card:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(6, 182, 212, 0.5) 100%);
}

/* Skills Cards scale glow */
.skills-category-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.15);
}

/* ==========================================================================
   HERO SECTION SLIDE
   ========================================================================== */
.hero-section {
    position: absolute;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-typing-container {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    height: 3.5rem;
}

.typing-text {
    color: var(--text-primary);
}

.cursor-typing {
    color: var(--primary-color);
    animation: blinkCursor 0.8s infinite;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* Hero Social Icons */
.hero-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    opacity: 0; /* Animated dynamically when active */
}

.hero-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border-radius: 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--glass-shadow);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.hero-social-icon i {
    font-size: 1.1rem;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-social-icon:hover {
    color: var(--text-primary);
    transform: translateY(-4px) scale(1.04);
    border-color: var(--icon-color);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05), 0 0 15px var(--icon-color);
}

.hero-social-icon:hover i {
    transform: rotate(12deg) scale(1.15);
    color: var(--icon-color);
}

/* Hero Social Dropdown for Instagram */
.hero-social-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.instagram-toggle-btn {
    cursor: pointer;
    outline: none;
    padding: 0 16px 0 20px;
}

.instagram-toggle-btn .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 2px;
    opacity: 0.7;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.hero-social-dropdown.active .instagram-toggle-btn {
    border-color: var(--icon-color);
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.05), 0 0 18px var(--icon-color);
    transform: translateY(-4px) scale(1.04);
}

.hero-social-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--icon-color);
}

.hero-social-sub-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px) scale(0.92);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: rgba(10, 14, 24, 0.92);
    border: 1px solid rgba(225, 48, 108, 0.3);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(225, 48, 108, 0.2);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.3s ease;
    z-index: 100;
    min-width: 220px;
}

.hero-social-dropdown.active .hero-social-sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.hero-social-sub-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sub-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(225, 48, 108, 0.12);
    border: 1px solid rgba(225, 48, 108, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E1306C;
    font-size: 1rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.sub-icon-badge.train-badge {
    background: rgba(243, 156, 18, 0.12);
    border-color: rgba(243, 156, 18, 0.25);
    color: #f39c12;
}

.sub-icon-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.sub-handle {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.sub-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.hero-social-sub-icon:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--icon-color);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 12px var(--icon-color);
}

.hero-social-sub-icon:hover .sub-icon-badge {
    transform: scale(1.1) rotate(6deg);
    background: var(--icon-color);
    color: #ffffff;
}

.hero-social-sub-icon:hover .sub-handle {
    color: #ffffff;
}

/* Scroll indicator button */
.scroll-indicator-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
}

.scroll-mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollWheelAnim 1.5s infinite ease-in-out;
}

@keyframes scrollWheelAnim {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ==========================================================================
   ABOUT ME SECTION SLIDE & TIMELINE
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* Left Column: Bio Card */
.about-info-col {
    display: flex;
    flex-direction: column;
}

.about-bio-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.about-avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.about-avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    box-shadow: 0 5px 15px var(--glass-shadow);
}

.about-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.about-title-tag {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.about-text-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.personal-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 10px 0;
}

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

.detail-label {
    font-size: 0.80rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Right Column: Visual Timeline */
.about-timeline-col {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-header-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.timeline-scroll-area {
    overflow-y: auto;
    padding-left: 12px;
    padding-right: 12px;
    border-left: 2px solid var(--glass-border);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 460px; /* Locks scroll space to fit inside slides viewport */
}

.timeline-item {
    position: relative;
    padding-left: 24px;
}

.timeline-dot {
    position: absolute;
    left: -19px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-primary);
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    z-index: 2;
}

.timeline-item.active .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    transform: scale(1.2);
}

.timeline-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.timeline-badge.active {
    color: var(--primary-color);
}

.timeline-content-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.timeline-item:hover .timeline-content-box {
    transform: translateX(5px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 5px 15px var(--glass-glow);
}

.timeline-item:hover .timeline-dot {
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   PROJECTS SECTION SLIDE
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.project-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 40px var(--glass-glow);
}

.project-img-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.project-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.project-links {
    display: flex;
    gap: 16px;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: #0a0b10;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.project-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.project-btn-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.2rem;
    cursor: not-allowed;
    transition: all var(--transition-fast);
}

.project-btn i {
    cursor: none !important;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--glass-border);
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ==========================================================================
   SKILLS SECTION SLIDE
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.skill-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--glass-border);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--primary-grad);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic skill animation trigger when active class added in JS */
.skills-section.active-skills .skill-bar-fill {
    transform: scaleX(1);
}

/* ==========================================================================
   CONTACT SECTION SLIDE
   ========================================================================== */
.contact-wrapper {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 24px;
    align-items: stretch;
}

/* Contact Info Cards (Left Column) */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--glass-shadow);
    backdrop-filter: blur(14px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-color, var(--primary-color));
    opacity: 0.8;
    transition: width 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--card-color, var(--primary-color));
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px var(--card-color);
}

.contact-info-card:hover::before {
    width: 6px;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--card-color, var(--primary-color));
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-info-card:hover .contact-info-icon {
    transform: scale(1.12) rotate(6deg);
    background: var(--card-color);
    color: #ffffff;
}

.contact-info-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
    overflow: hidden;
}

.contact-info-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-info-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2px 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-info-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.contact-info-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.contact-info-btn:hover {
    background: var(--card-color);
    border-color: var(--card-color);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--card-color);
}

.contact-info-btn:hover i {
    transform: translate(2px, -2px);
}

.contact-info-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: #06b6d4;
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Contact Card (Right Column) */
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: 0 20px 50px var(--glass-shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 4px var(--glass-glow);
}

body.light-theme .form-input {
    background: rgba(15, 23, 42, 0.01);
}
body.light-theme .form-input:focus {
    background: rgba(15, 23, 42, 0.02);
}

.form-textarea {
    resize: none;
    height: 100px;
}

.btn-submit {
    align-self: center;
    min-width: 200px;
}

.error-msg {
    font-size: 0.8rem;
    color: #ef4444;
    display: none;
    margin-top: 4px;
}

.form-group.invalid .form-input {
    border-color: #ef4444;
}

.form-group.invalid .error-msg {
    display: block;
}

/* ==========================================================================
   INLINE FOOTER (Inside Contact Slide)
   ========================================================================== */
.footer-inline {
    margin-top: 30px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-grad);
    border: none;
    color: #ffffff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 24px var(--glass-glow);
}

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

.back-to-top:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 16px 24px;
    z-index: 20000000;
    box-shadow: 0 10px 30px var(--glass-shadow);
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toast-icon {
    font-size: 1.4rem;
    color: #10b981;
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-text-primary {
    font-weight: 700;
    font-size: 0.95rem;
}

.toast-text-secondary {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .projects-grid, .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .slide {
        padding: 90px 16px 80px 16px;
    }
    
    .navbar-container {
        padding: 16px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .navbar-container.scrolled .navbar {
        margin: 0 12px;
        width: calc(100% - 24px);
    }
    
    .hamburger-menu {
        display: flex;
        z-index: 1002;
    }
    
    .nav-menu {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: top var(--transition-normal);
        z-index: 1000;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        top: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-typing-container {
        font-size: 1.8rem;
        height: 2.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-timeline-col {
        margin-top: 20px;
    }

    .timeline-scroll-area {
        max-height: 350px;
    }
    
    .projects-grid, .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .personal-details-grid {
        grid-template-columns: 1fr;
        margin: 15px 0;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .contact-card {
        padding: 24px 20px;
    }

    .music-widget {
        bottom: 20px;
        left: 20px;
        max-width: 180px;
        z-index: 999;
    }

    .music-volume-container {
        display: none;
    }

    .dots-navigation {
        right: 16px;
        gap: 12px;
        padding: 12px 6px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        display: none !important; /* Hide back to top on mobile for full deck simplicity */
    }
    
    .hero-social-links {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ==========================================================================
   USER AUTHENTICATION MODULE (LOGIN / REGISTRATION)
   ========================================================================== */

/* 1. Navbar Trigger Button */
.auth-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 16px;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-trigger-btn:hover {
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    transform: translateY(-1px);
}

.auth-trigger-btn i {
    font-size: 0.95rem;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.auth-trigger-btn:hover i {
    color: var(--primary-color);
}

/* 2. Glassmorphic Modal Overlay */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000; /* Overlay above navbar but below cursor */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.auth-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* 3. Glassmorphic Modal Card */
.auth-modal-card {
    background: rgba(15, 23, 42, 0.65); /* Slate background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.auth-modal-overlay.active .auth-modal-card {
    transform: scale(1) translateY(0);
}

/* Close Button */
.auth-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.5); /* semi-transparent white for high visibility in dark mode */
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
    z-index: 10; /* keep above form inputs and labels */
}

.auth-modal-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

/* 4. Tab Headers */
.auth-tabs {
    display: flex;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 30px;
    gap: 8px;
}

.auth-tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 12px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    text-align: center;
}

.auth-tab-btn:hover {
    color: #ffffff;
}

.auth-tab-btn.active {
    color: #ffffff;
}

.auth-tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-grad);
    box-shadow: 0 0 10px var(--primary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.auth-tab-btn.active::after {
    transform: scaleX(1);
}

/* 5. Forms & Inputs */
.auth-form {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.auth-form.active {
    display: flex;
    animation: fadeInForm 0.4s ease forwards;
}

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

.auth-form-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.auth-form-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.auth-input-group input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.auth-input-group input:focus {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.01);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15),
                inset 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
}

/* Submit Button */
.auth-submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-top: 10px;
    cursor: pointer;
}

/* Back Link for Verification screen */
.auth-back-link {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color 0.3s ease;
    text-align: center;
    margin-top: 5px;
}

.auth-back-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Specific Verification Input code spacing */
.verify-code-input {
    letter-spacing: 0.6em;
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
    padding-left: 20px !important;
    font-family: monospace;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .auth-modal-card {
        padding: 30px 20px;
        max-width: 90%;
    }
    .auth-btn-text {
        display: none; /* Only show user icon on mobile navbar to save space */
    }
    .auth-trigger-btn {
        padding: 8px;
    }
}

/* ==========================================================================
   YALIAPP SHOWCASE SLIDE STYLING
   ========================================================================== */
.yaliapp-showcase-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
    margin-top: 20px;
}

.yaliapp-showcase-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.yaliapp-showcase-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.yaliapp-showcase-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.yaliapp-specs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    font-size: 0.9rem;
}

.spec-item i {
    font-size: 1.1rem;
    color: var(--secondary-color);
    width: 20px;
}

.yaliapp-status-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 2s infinite alternate ease-in-out;
}

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

.status-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #10b981;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-details {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.yaliapp-launch-btn {
    align-self: flex-start;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    animation: pulseLaunchBtn 2.5s infinite alternate ease-in-out;
}

@keyframes pulseLaunchBtn {
    0% { box-shadow: 0 0 15px rgba(6, 182, 212, 0.15); }
    100% { box-shadow: 0 0 35px rgba(6, 182, 212, 0.45); }
}

/* Cyber Terminal Mock Window */
.visual-mock-window {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.mock-header {
    background: rgba(15, 23, 42, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.mock-dot.red { background: #ef4444; }
.mock-dot.yellow { background: #eab308; }
.mock-dot.green { background: #22c55e; }

.mock-title {
    margin-left: 12px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.mock-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    height: 260px;
    font-family: var(--font-primary);
}

.mock-sidebar {
    background: rgba(15, 23, 42, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-side-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-side-item.active {
    color: #ffffff;
    font-weight: 600;
}

.mock-side-friend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.mock-status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.mock-status.online { background: #10b981; }
.mock-status.offline { background: #64748b; }

.mock-chat {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 14px;
    background: rgba(10, 15, 30, 0.15);
}

.mock-msg {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    text-align: left;
}

.mock-msg strong {
    color: #ffffff;
}

.mock-msg-input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
}

/* Mobile responsive fixes */
@media (max-width: 900px) {
    .yaliapp-showcase-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .visual-mock-window {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* YaliFM Widget Expansion Styles */
.widget-control-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

#widgetNextBtn {
    display: flex;
}

.widget-control-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.music-widget.widget-expanded .widget-control-btn {
    display: flex;
}

.music-expanded-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
}

.music-widget.widget-expanded .music-expanded-panel {
    display: flex;
}

.music-widget.widget-expanded {
    bottom: 50% !important;
    left: 50% !important;
    transform: translate(-50%, 50%) !important;
    max-width: 420px !important;
    height: 360px !important;
    border-radius: 24px !important;
    padding: 24px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(6, 182, 212, 0.25) !important;
    background: rgba(10, 15, 30, 0.85) !important;
}

.music-widget.widget-expanded .music-info-container {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
}

.music-widget.widget-expanded .music-title {
    font-size: 1.3rem !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-align: center !important;
}

.music-widget.widget-expanded .music-status {
    font-size: 0.85rem !important;
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.4) !important;
}

.music-widget.widget-expanded .music-volume-container {
    border-left: none !important;
    padding-left: 0 !important;
    justify-content: center !important;
    margin-top: 6px !important;
}

.music-widget.widget-expanded .volume-slider {
    width: 120px !important;
}

/* Custom visualizer bars scaling in expanded mode */
.music-widget.widget-expanded .music-visualizer-bars {
    justify-content: center !important;
    width: 100% !important;
    height: 32px !important;
    gap: 6px !important;
    margin: 8px 0 !important;
}

.music-widget.widget-expanded .v-bar {
    width: 6px !important;
}

/* Custom styling for expanded dropdown select */
#expandedRadioSelect {
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    font-weight: 500 !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 10px !important;
    outline: none !important;
}

#expandedRadioSelect option {
    background: #0f1322 !important;
    color: #fff !important;
    padding: 10px !important;
}

/* Ensure smooth transition properties are explicitly set */
.music-widget {
    transition: bottom 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                max-width 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                padding 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                background-color 0.8s ease,
                opacity 0.8s ease,
                box-shadow 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* YaliFM widget hidden state */
.music-widget.hidden-widget {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(40px) scale(0.9) !important;
}

/* Deck Control Button Styles on Slide 4 */
.deck-control-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.deck-control-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.08);
}
#deckPlayBtn:hover {
    background: #08d9fd !important;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.5) !important;
    transform: scale(1.1) !important;
}
.deck-control-btn:active, #deckPlayBtn:active {
    transform: scale(0.92) !important;
}

/* Premium Volume Slider Styles */
.volume-slider, .volume-slider-bar {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.08) !important;
    height: 6px !important;
    border-radius: 4px !important;
    outline: none !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.volume-slider::-webkit-slider-thumb, .volume-slider-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: var(--primary-color, #06b6d4) !important;
    box-shadow: 0 0 6px rgba(6, 182, 212, 0.6) !important;
    border: 2px solid #fff !important;
    transition: transform 0.15s ease, background-color 0.15s ease !important;
}

.volume-slider::-webkit-slider-thumb:hover, .volume-slider-bar::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.9) !important;
}

/* Connecting Pulse Animation */
@keyframes pulseConnecting {
    0% { opacity: 0.35; box-shadow: 0 0 4px #f59e0b; }
    100% { opacity: 1; box-shadow: 0 0 12px #f59e0b; }
}

.status-dot.connecting {
    background-color: #f59e0b !important;
    box-shadow: 0 0 8px #f59e0b !important;
    animation: pulseConnecting 0.8s infinite alternate !important;
}

.status-dot.error-state {
    background-color: #ef4444 !important;
    box-shadow: 0 0 8px #ef4444 !important;
}



@keyframes promptBlink {
    0%, 100% { opacity: 0.35; transform: scale(0.98); }
    50% { opacity: 0.95; transform: scale(1); }
}

/* ==========================================================================
   NAVBAR DROPDOWN SYSTEM (YaliStore)
   ========================================================================== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 140px;
    list-style: none;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: rgba(10, 15, 30, 0.95);
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -20px; /* Bridge the 12px layout gap completely */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    pointer-events: auto; /* Capture pointer events to maintain hover active state */
    z-index: -1;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    border-radius: 6px;
    margin: 2px 8px;
}

.dropdown-item:hover, .dropdown-item.active {
    color: #ffffff !important;
    background: rgba(6, 182, 212, 0.15) !important;
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* Hover actions */
.dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

