/* =========================================
   PREMIUM GOLDEN ANIMATIONS & EFFECTS (ENHANCED - V2)
   ========================================= */

/* Hero Section Dynamic Translation */
/* Hero Section Dynamic Translation - Animation Removed */
.hero-content {
    /* animation: heroFloat 6s ease-in-out infinite; */
    transform-style: flat;
    /* changed from preserve-3d to avoid issues */
}

/* 
@keyframes heroFloat {
    0%, 100% { transform: translateY(0) perspective(1000px) rotateX(0deg); }
    50% { transform: translateY(-15px) perspective(1000px) rotateX(2deg); }
} 
*/

.hero-title {
    opacity: 1;
    /* Ensure visible if animation removed */
}

.hero-subtitle {
    opacity: 1;
}

.hero-actions {
    opacity: 1;
}

/* Keyframes removed */

/* Background Translation (Parallax-like) */
.hero-section {
    background-size: 110% 110%;
    animation: bgPan 20s linear infinite alternate;
}

@keyframes bgPan {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 100% 100%;
    }
}


/* ... (Previous Styles preserved below) ... */

/* 1. Global Golden Shine on Hover */
.btn-primary,
.card,
.pricing-card,
.testimonial-card,
.journey-step {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.card::after,
.pricing-card::after,
.testimonial-card::after,
.journey-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(212, 175, 55, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
    z-index: 10;
    pointer-events: none;
}

.btn-primary:hover::after,
.card:hover::after,
.pricing-card:hover::after,
.testimonial-card:hover::after,
.journey-step:hover::after {
    animation: goldenSweep 0.8s ease-in-out forwards;
}

@keyframes goldenSweep {
    0% {
        left: -150%;
    }

    100% {
        left: 200%;
    }
}

/* 2. Floating Icons & Gold Dust */
.icon-box,
.f-icon {
    animation: floatGentle 4s ease-in-out infinite;

    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes floatGentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* 6. Button Premium Shine (No Jitter) */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: subtlePulse 3s infinite;
}

/* Subtle pulse instead of jittery bounce */
@keyframes subtlePulse {
    0% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    /* Smooth lift */
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

/* Shine Sweep */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.btn-primary:hover::after {
    animation: shineSweep 0.75s;
}

@keyframes shineSweep {
    100% {
        left: 200%;
    }
}

/* Disable old .btn::before that caused glitch/covering */
.btn::before {
    display: none;
}

/* 3. Section Title Premium Metal Effect */
.section-title,
.hero-title {
    color: #ffd700;
    /* Gold Fallback */
    background: linear-gradient(to right,
            #bf953f,
            #fcf6ba,
            #b38728,
            #fbf5b7,
            #aa771c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shineMetal 5s linear infinite;
    text-shadow: none;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {

    .section-title,
    .hero-title {
        background: none;
        color: #D4AF37;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes shineMetal {
    to {
        background-position: 200% center;
    }
}

/* 4. Golden Border Pulse (Subtle) */
.card:hover,
.pricing-card:hover,
.journey-step:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 175, 55, 0.4);
    border-color: #D4AF37;
    animation: glowBorder 2s infinite alternate;
}

@keyframes glowBorder {
    from {
        border-color: rgba(212, 175, 55, 0.4);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 5px rgba(212, 175, 55, 0.2);
    }

    to {
        border-color: rgba(212, 175, 55, 1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.5);
    }
}

/* 5. Magical Gold Dust Background (For Dark Sections) */
.hero-section,
.programs-section,
.journey-section,
.tutor-section,
.footer {
    position: relative;
    /* Ensure z-index works */
}

/* Add a gold dust overlay via pseudo-element */
.programs-section::before,
.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.15) 2px, transparent 2px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* 6. Button Continuous Pulse */
.btn-primary {
    animation: btnPulse 3s infinite;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

@keyframes btnPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(212, 175, 55, 0.6), 0 0 10px rgba(212, 175, 55, 0.4);
    }
}

/* 7. Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.reveal-on-scroll.visible {
    opacity: 1;
}

/* 8. Text Selection Gold */
::selection {
    background: #D4AF37;
    color: #000;
}

/* 9. Logo Golden Shimmer Animation */
.logo-text-shimmer {
    background: linear-gradient(110deg,
            #ffffff 30%,
            #FFD700 45%,
            #FFF8DC 55%,
            #ffffff 70%);
    background-size: 200% auto;
    color: #fff;
    /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLogo 3s linear infinite;
    display: inline-block;
    font-weight: 700;
    filter: drop-shadow(0 0 1px rgba(212, 175, 55, 0.3));
    /* Glow */
}

@keyframes shineLogo {
    to {
        background-position: 200% center;
    }
}