/* ============================================
   HERO SECTION REDESIGN - With Your Animation
   ============================================ */

/* Hero Section Base */
.hero-section {
    min-height: 80vh;
    /* padding: 140px 0 100px; */
    position: relative;
    overflow: hidden;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
}
.hero-wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 500px; /* Increased height for larger waves */
    z-index: 3;
    pointer-events: none;
}

.bottom-wave {
    bottom: -1px;
    transform: scaleY(1.8); /* Makes the wave taller/more dramatic */
}

/* For even more drama on desktop */
@media (min-width: 992px) {
    .bottom-wave {
        height: 320px;
        transform: scaleY(1.3);
    }
}

/* Enhanced Background */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('../src/images/b4.png') center/cover no-repeat;
    opacity: 0.95;
    z-index: 1;
    filter: brightness(1.2) contrast(1.1);
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.85) 0%,      /* Slightly reduced opacity */
        rgba(230, 81, 0, 0.8) 50%,       /* Slightly reduced opacity */
        rgba(255, 107, 53, 0.85) 100%);  /* Slightly reduced opacity */
    z-index: 3; /* BELOW particles */
    pointer-events: none; /* Allow mouse to pass through to particles */
}

/* Clean Wave Design */
.hero-wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    pointer-events: none;
}

.top-wave {
    top: 0;
    transform: scaleY(-1);
}

.bottom-wave {
    bottom: -1px;
}

/* ============================================
   LEFT TEXT SECTION - Redesigned
   ============================================ */

.hero-text-col {
    z-index: 4;
    position: relative;
    padding-right: 40px;
}

/* Subtitle - Elegant & Clean */
.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out 0.3s backwards;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s backwards;
}

/* Main Title - Powerful & Stunning */
.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.8rem;
    color: var(--white);
    animation: slideInLeft 0.8s ease-out 0.4s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


/* ============================================
   ANIMATED HEADLINE - Calendar Flip Effect (Refined Blur)
   ============================================ */

.cd-headline.rotate-1 {
    display: inline;
    perspective: 800px;
    transform-style: preserve-3d;
}

.cd-words-wrapper {
    display: inline-block;
    position: relative;
    text-align: left;
    margin-left: 10px;
    height: 70px; /* Fixed height */
    vertical-align: middle;
    perspective: 800px;
    transform-style: preserve-3d;
}

.cd-words-wrapper b {
    color: var(--secondary);
    display: inline-block;
    position: absolute;
    white-space: nowrap;
    left: 0;
    top: 0;
    opacity: 0;
    transform-origin: 50% 0%;
    transform: rotateX(-120deg) scaleY(0.7) translateZ(20px);
    padding: 10px 10px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 
        0 5px 15px rgba(0, 78, 137, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 -2px 0 rgba(0, 0, 0, 0.1) inset;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
    backface-visibility: hidden;
    filter: blur(1.5px) brightness(1.05); /* Reduced blur */
    min-width: 200px;
    text-align: center;
    box-sizing: border-box;
    transition: none;
}

/* Calendar page flip-in effect - Very subtle blur */
.cd-words-wrapper b.is-visible {
    position: relative;
    opacity: 1;
    transform: rotateX(0deg) scaleY(1) translateZ(0);
    animation: calendar-flip-in 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: blur(0) brightness(1); /* No blur when visible */
    box-shadow: 
        0 8px 25px rgba(0, 78, 137, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset,
        0 -3px 0 rgba(0, 0, 0, 0.15) inset;
}

/* Calendar page flip-out effect - Subtle blur */
.cd-words-wrapper b.is-hidden {
    opacity: 0;
    transform: rotateX(120deg) scaleY(0.7) translateZ(20px);
    animation: calendar-flip-out 1s cubic-bezier(0.75, 0.04, 0.85, 0.06) forwards;
    filter: blur(2px) brightness(0.9); /* Reduced blur */
}

/* Beautiful calendar flip-in animation with minimal blur */
@keyframes calendar-flip-in {
    0% {
        opacity: 0;
        transform: rotateX(-120deg) scaleY(0.7) translateZ(20px);
        filter: blur(3px) brightness(1.1); /* Reduced from 10px */
        box-shadow: 
            0 0px 5px rgba(0, 78, 137, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
    20% {
        transform: rotateX(-90deg) scaleY(0.85) translateZ(10px);
        filter: blur(2px) brightness(1.05); /* Reduced */
    }
    40% {
        transform: rotateX(-60deg) scaleY(0.95) translateZ(5px);
        filter: blur(1px) brightness(1.02); /* Reduced */
        box-shadow: 
            0 3px 10px rgba(0, 78, 137, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    }
    60% {
        transform: rotateX(-30deg) scaleY(1.05) translateZ(2px);
        filter: blur(0.5px) brightness(1); /* Very subtle */
        box-shadow: 
            0 5px 18px rgba(0, 78, 137, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    }
    80% {
        transform: rotateX(-10deg) scaleY(1.02) translateZ(1px);
        filter: blur(0) brightness(1); /* Clear */
    }
    100% {
        opacity: 1;
        transform: rotateX(0deg) scaleY(1) translateZ(0);
        filter: blur(0) brightness(1); /* Crystal clear */
        box-shadow: 
            0 8px 25px rgba(0, 78, 137, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.9) inset,
            0 -3px 0 rgba(0, 0, 0, 0.15) inset;
    }
}

/* Beautiful calendar flip-out animation with minimal blur */
@keyframes calendar-flip-out {
    0% {
        opacity: 1;
        transform: rotateX(0deg) scaleY(1) translateZ(0);
        filter: blur(0) brightness(1);
        box-shadow: 
            0 8px 25px rgba(0, 78, 137, 0.25),
            0 0 0 1px rgba(255, 255, 255, 0.9) inset,
            0 -3px 0 rgba(0, 0, 0, 0.15) inset;
    }
    20% {
        transform: rotateX(20deg) scaleY(0.98) translateZ(2px);
        filter: blur(0.5px) brightness(0.98); /* Very subtle */
    }
    40% {
        transform: rotateX(45deg) scaleY(0.95) translateZ(5px);
        filter: blur(1px) brightness(0.95); /* Subtle */
        box-shadow: 
            0 5px 15px rgba(0, 78, 137, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    }
    60% {
        transform: rotateX(75deg) scaleY(0.85) translateZ(10px);
        filter: blur(1.5px) brightness(0.9); /* Moderate */
        box-shadow: 
            0 3px 8px rgba(0, 78, 137, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    }
    80% {
        opacity: 0.4;
        transform: rotateX(100deg) scaleY(0.75) translateZ(15px);
        filter: blur(2px) brightness(0.85); /* More blur at end */
    }
    100% {
        opacity: 0;
        transform: rotateX(120deg) scaleY(0.7) translateZ(20px);
        filter: blur(2.5px) brightness(0.8); /* Final blur */
        box-shadow: 
            0 0px 3px rgba(0, 78, 137, 0.05),
            0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    }
}

/* Add a subtle shine effect to the visible word */
.cd-words-wrapper b.is-visible::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 100%);
    border-radius: 12px 12px 0 0;
    pointer-events: none;
    z-index: 2;
}

/* Add a subtle 3D edge to the word */
.cd-words-wrapper b.is-visible::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Prevent layout shift - reserve space */
.hero-title {
    margin-bottom: 3rem !important;
    min-height: 110px;
    position: relative;
}

/* Ensure hero CTA container stays fixed */
.hero-cta-container {
    margin-top: 3.5rem;
    position: relative;
    z-index: 10;
}


/* ============================================
   PARTICLES.JS CONTAINER
   ============================================ */

/* CRITICAL: Make canvas visible and interactive */
#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4; /* Increased to be ABOVE overlay */
    pointer-events: auto !important; /* Allow mouse interaction */
}

/* Canvas styling - make particles more visible */
#particles-js canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.7 !important; /* Increased visibility */
    /* mix-blend-mode: screen;  */
}


/* Content should be above everything */
.container {
    position: relative;
    z-index: 10;
}
.hero-wave {
    z-index: 5 !important;
}

.hero-text-col,
.hero-cta-container,
.spotify-player-wrapper {
    z-index: 6 !important;
    position: relative;
}

/* On mobile, reduce particles opacity for better performance */
@media (max-width: 768px) {
    #particles-js canvas {
        opacity: 0.5 !important;
    }
}



/* ============================================
   RESPONSIVE DESIGN - Mobile Optimized
   ============================================ */

@media (max-width: 1200px) {
    .cd-words-wrapper {
        height: 75px;
    }
    
    .cd-words-wrapper b {
        padding: 9px 24px;
        min-width: 180px;
        filter: blur(1px) brightness(1.05); /* Even less blur on tablet */
    }
    
    .hero-title {
        min-height: 100px;
    }
}

@media (max-width: 992px) {
    .cd-words-wrapper {
        height: 70px;
    }
    
    .cd-words-wrapper b {
        padding: 8px 22px;
        min-width: 160px;
        filter: blur(0.8px) brightness(1.05);
    }
    
    @keyframes calendar-flip-in {
        0% {
            filter: blur(2px) brightness(1.1); /* Reduced for tablet */
        }
        40% {
            filter: blur(0.8px) brightness(1.02);
        }
        60% {
            filter: blur(0.3px) brightness(1);
        }
        100% {
            filter: blur(0) brightness(1);
        }
    }
    
    @keyframes calendar-flip-out {
        0% {
            filter: blur(0) brightness(1);
        }
        60% {
            filter: blur(1px) brightness(0.9);
        }
        100% {
            filter: blur(1.5px) brightness(0.8); /* Reduced */
        }
    }
    
    .hero-title {
        min-height: 90px;
    }
}

@media (max-width: 768px) {
    .cd-words-wrapper {
        height: 65px;
        display: block;
        text-align: center;
        margin: 15px auto 0;
    }
    
    .cd-words-wrapper b {
        padding: 7px 20px;
        min-width: 150px;
        left: 50%;
        transform: translateX(-50%) rotateX(-120deg) scaleY(0.7) translateZ(20px);
        filter: blur(0.5px) brightness(1.05); /* Minimal blur on mobile */
    }
    
    .cd-words-wrapper b.is-visible {
        transform: translateX(-50%) rotateX(0deg) scaleY(1) translateZ(0);
        filter: blur(0) brightness(1);
    }
    
    .cd-words-wrapper b.is-hidden {
        transform: translateX(-50%) rotateX(120deg) scaleY(0.7) translateZ(20px);
        filter: blur(1px) brightness(0.9); /* Reduced */
    }
    
    /* Mobile-optimized animations - minimal blur */
    @keyframes calendar-flip-in {
        0% {
            opacity: 0;
            transform: translateX(-50%) rotateX(-120deg) scaleY(0.7) translateZ(20px);
            filter: blur(1.5px) brightness(1.1); /* Very minimal */
        }
        40% {
            transform: translateX(-50%) rotateX(-60deg) scaleY(0.95) translateZ(5px);
            filter: blur(0.5px) brightness(1.02);
        }
        60% {
            transform: translateX(-50%) rotateX(-30deg) scaleY(1.05) translateZ(2px);
            filter: blur(0.2px) brightness(1);
        }
        100% {
            opacity: 1;
            transform: translateX(-50%) rotateX(0deg) scaleY(1) translateZ(0);
            filter: blur(0) brightness(1);
        }
    }
    
    @keyframes calendar-flip-out {
        0% {
            opacity: 1;
            transform: translateX(-50%) rotateX(0deg) scaleY(1) translateZ(0);
            filter: blur(0) brightness(1);
        }
        40% {
            transform: translateX(-50%) rotateX(45deg) scaleY(0.95) translateZ(5px);
            filter: blur(0.5px) brightness(0.95);
        }
        80% {
            opacity: 0.3;
            transform: translateX(-50%) rotateX(100deg) scaleY(0.75) translateZ(15px);
            filter: blur(1px) brightness(0.85);
        }
        100% {
            opacity: 0;
            transform: translateX(-50%) rotateX(120deg) scaleY(0.7) translateZ(20px);
            filter: blur(1.2px) brightness(0.8); /* Minimal final blur */
        }
    }
    
    .hero-title {
        min-height: 85px;
        margin-bottom: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .cd-words-wrapper {
        height: 60px;
    }
    
    .cd-words-wrapper b {
        padding: 6px 18px;
        min-width: 140px;
        filter: blur(0.3px) brightness(1.05); /* Almost no blur */
    }
    
    /* Option 2: Remove blur completely on very small screens */
    @media (max-width: 400px) {
        .cd-words-wrapper b {
            filter: none; /* No blur at all */
        }
        
        @keyframes calendar-flip-in {
            0% {
                filter: none;
            }
            100% {
                filter: none;
            }
        }
        
        @keyframes calendar-flip-out {
            0% {
                filter: none;
            }
            100% {
                filter: none;
            }
        }
    }
    
    .hero-title {
        min-height: 80px;
        margin-bottom: 2rem !important;
    }
}

/* Alternative: Optional blur removal class */
.no-blur .cd-words-wrapper b,
.no-blur .cd-words-wrapper b.is-visible,
.no-blur .cd-words-wrapper b.is-hidden {
    filter: none !important;
}

.no-blur @keyframes calendar-flip-in,
.no-blur @keyframes calendar-flip-out {
    0%, 100% {
        filter: none !important;
    }
}




/* ============================================
   CTA BUTTONS - Consistent with Header
   ============================================ */

.hero-cta-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #0066b2 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.9rem 2.5rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 25px rgba(0, 78, 137, 0.4) !important;
    border-radius: 8px !important;
    letter-spacing: 0.03em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.05rem;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(0, 78, 137, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, #005299 100%) !important;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.9rem 2.5rem !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    letter-spacing: 0.03em;
    font-size: 1.05rem;
}

.btn-outline-light:hover {
    background: var(--white) !important;
    color: var(--primary) !important;
    border-color: var(--white) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   SPOTIFY PLAYER - Enhanced
   ============================================ */

.spotify-player-wrapper {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: slideInRight 0.8s ease-out 0.4s backwards;
    border: 2px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 4;
}

.spotify-player-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.spotify-player-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.25);
}

.spotify-player-wrapper iframe {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ============================================
   BASE ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}








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

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-text-col {
        padding-right: 20px;
    }
    
    .cd-words-wrapper b {
        padding: 2px 10px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-text-col {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .hero-cta-container {
        justify-content: center;
    }
    
    .cd-words-wrapper {
        margin-left: 8px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 3px;
    }
    
    .cd-words-wrapper b {
        padding: 2px 8px;
        font-size: 0.95em;
    }
    
    .btn-primary,
    .btn-outline-light {
        padding: 0.8rem 2rem !important;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-cta-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .spotify-player-wrapper {
        margin-top: 2rem;
    }
    
    .cd-words-wrapper {
        display: inline-block;
        margin-top: 10px;
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    .cd-words-wrapper b {
        padding: 2px 6px;
        font-size: 0.9em;
    }
    
    .hero-title .cd-headline {
        display: block;
        margin-top: 10px;
    }
    
    .cd-words-wrapper {
        display: block;
        margin: 10px 0 0 0;
        text-align: center;
    }
}

/* ============================================
   EXTRA POLISH
   ============================================ */

/* Floating subtle elements */
.hero-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    z-index: 3;
    pointer-events: none;
}

/* Decorative corner accents */
.hero-text-col::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 0 0 0;
    pointer-events: none;
}

.hero-text-col::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    border-right: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 0 12px 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-text-col::before,
    .hero-text-col::after {
        display: none;
    }
}

/* Smooth scrolling for click-scroll buttons */
html {
    scroll-behavior: smooth;
}

/* Ensure hero section is properly spaced below fixed header */
