/* ====================================================================
   HOLI THEME (Frontend) — Rich India
   Completely isolated. Toggle via HOLI_THEME_ENABLED in .env
   ==================================================================== */

/* ---- KEYFRAME ANIMATIONS ---- */
@keyframes holiGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes holiPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 127, 0.4); }
    50%       { box-shadow: 0 0 0 12px rgba(255, 0, 127, 0); }
}

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

@keyframes holiFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-8px); }
}

@keyframes holiSplashParticle {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 1; }
    100% { transform: translateY(-120px) translateX(var(--tx)) scale(0); opacity: 0; }
}

@keyframes holiRainbow {
    0%   { color: #ff007f; }
    20%  { color: #ffcc00; }
    40%  { color: #00e5ff; }
    60%  { color: #ff6600; }
    80%  { color: #9d00ff; }
    100% { color: #ff007f; }
}

@keyframes holiBarStripe {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 0; }
}

@keyframes holiBannerGlow {
    0%, 100% { box-shadow: 0 4px 25px rgba(255,0,127,0.5), 0 0 0 0 rgba(0,229,255,0.3); }
    50%       { box-shadow: 0 4px 40px rgba(0,229,255,0.6), 0 0 40px rgba(255,204,0,0.4); }
}

/* ---- HOLI TOP BANNER ---- */
.holi-festival-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #ff007f, #ffcc00, #00e5ff, #9d00ff, #ff007f);
    background-size: 300% 100%;
    animation: holiGradientShift 4s ease infinite, holiBannerGlow 3s ease infinite;
    color: white;
    text-align: center;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 9999;
    line-height: 1.5;
    border-bottom: 3px solid rgba(255,255,255,0.4);
}

.holi-festival-banner .holi-close {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.holi-festival-banner .holi-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.4);
}

/* Sparkle particles inside banner */
.holi-festival-banner::before {
    content: '🎨 ✨ 🌈 🎉 ✨ 🎨';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.9;
}

/* ---- FLOATING COLOR PARTICLES (Canvas injected via JS) ---- */
#holi-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* ---- BUTTON OVERRIDES ---- */
/* The site uses .thm-btn */
.thm-btn {
    background: linear-gradient(135deg, #ff007f, #ffcc00, #00e5ff, #9d00ff) !important;
    background-size: 300% 300% !important;
    animation: holiGradientShift 4s ease infinite !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 18px rgba(255, 0, 127, 0.45) !important;
    transition: all 0.3s ease !important;
}

.thm-btn:hover {
    transform: translateY(-3px) scale(1.04) !important;
    box-shadow: 0 8px 28px rgba(0, 229, 255, 0.55) !important;
    color: white !important;
}

/* ---- SLIDING TEXT SECTION ---- */
.sliding-text-one {
    background: linear-gradient(135deg, #ff007f 0%, #ffcc00 33%, #00e5ff 66%, #9d00ff 100%) !important;
    background-size: 300% 300% !important;
    animation: holiGradientShift 6s ease infinite !important;
}

.sliding-text__title {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---- MAIN HEADER COLORFUL BAR ---- */
.main-header::before {
    content: '';
    display: block;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #ff007f, #ffcc00, #00e5ff, #9d00ff, #00e676, #ff6600);
    background-size: 300% 100%;
    animation: holiGradientShift 3s linear infinite;
}

/* ---- SECTION TITLE TAGLINE ---- */
.section-title__tagline {
    color: #ff007f !important;
    font-weight: 700 !important;
}

.section-title__tagline-shape {
    background: linear-gradient(135deg, #ff007f, #ffcc00) !important;
}

/* ---- COURSES/PLAN CARDS ---- */
.courses-one__single {
    position: relative;
}

.courses-one__single::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(255,0,127,0.08),
        rgba(0,229,255,0.08)
    );
    pointer-events: none;
    transition: opacity 0.3s;
    opacity: 0;
}

.courses-one__single:hover::after {
    opacity: 1;
}

.courses-one__single:hover {
    box-shadow: 0 6px 30px rgba(255, 0, 127, 0.2) !important;
    border-color: rgba(255, 0, 127, 0.3) !important;
    transform: translateY(-4px);
    transition: all 0.3s ease;
}

/* ---- NEWSLETTER / CTA SECTION ---- */
.newsletter-one__inner {
    background: linear-gradient(135deg, #ff007f, #9d00ff, #00e5ff) !important;
    background-size: 300% 300% !important;
    animation: holiGradientShift 6s ease infinite !important;
}

.newsletter-one__title,
.newsletter-one__text {
    color: white !important;
}

/* ---- COUNTER SECTION ---- */
.counter-one {
    position: relative;
}

.counter-one::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255,0,127,0.15) 0%,
        rgba(0,229,255,0.15) 100%
    );
    pointer-events: none;
}

/* ---- TESTIMONIAL HIGHLIGHT ---- */
.testimonial-one__ratting .fa-star {
    color: #ffcc00 !important;
    animation: holiFloat 2s ease infinite;
}

/* ---- NAVBAR HOLI ACTIVE LINK ---- */
.main-menu__list > li.current > a,
.main-menu__list > li:hover > a {
    color: #ff007f !important;
}

/* ---- FOOTER GRADIENT TOP BORDER ---- */
.site-footer::before,
footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #9d00ff, #00e5ff, #ffcc00, #ff007f);
    background-size: 300% 100%;
    animation: holiGradientShift 4s linear infinite;
}

/* ---- HOLI FLOATING SPLASH CIRCLES (DOM elements, injected via JS) ---- */
.holi-blob {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
    animation: holiFloat 5s ease-in-out infinite;
    z-index: 0;
    filter: blur(40px);
}

.holi-blob-1 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #ff007f, transparent);
    top: -80px; left: -80px;
    animation-delay: 0s;
}

.holi-blob-2 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, #00e5ff, transparent);
    bottom: 0; right: -60px;
    animation-delay: 1.5s;
}

.holi-blob-3 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, #ffcc00, transparent);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.06;
    animation-delay: 0.8s;
}

/* ---- SCROLL-TO-TOP BUTTON ---- */
.scroll-to-top {
    background: linear-gradient(135deg, #ff007f, #ffcc00) !important;
    animation: holiPulse 2s ease infinite;
}
