/* ==========================================================================
   🪔 DIWALI THEME - Frontend Website
   Career FIXX - Festival of Lights

   This file is a PURE OVERLAY — it does NOT modify any existing styles.
   Colour variables, banner, intro and canvas live in diwali-fx.css.
   To disable: remove the <link> tag or set DIWALI_THEME_ENABLED=false in .env
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. WARM GLOW BLOBS
   -------------------------------------------------------------------------- */
.dw-blob {
    position: fixed;
    border-radius: 50%;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    will-change: transform;
}

.dw-blob-1 {
    width: 200px; height: 200px;
    background: var(--dw-marigold);
    top: 10%; left: -5%;
    animation: dwFloat1 12s ease-in-out infinite alternate;
}

.dw-blob-2 {
    width: 180px; height: 180px;
    background: var(--dw-rani);
    top: 60%; right: -5%;
    animation: dwFloat2 14s ease-in-out infinite alternate;
}

.dw-blob-3 {
    width: 150px; height: 150px;
    background: var(--dw-gold);
    top: 30%; left: 40%;
    animation: dwFloat3 10s ease-in-out infinite alternate;
}

.dw-blob-4 {
    width: 220px; height: 220px;
    background: var(--dw-marigold);
    bottom: 5%; left: 15%;
    animation: dwFloat1 16s ease-in-out infinite alternate;
}

.dw-blob-5 {
    width: 170px; height: 170px;
    background: var(--dw-rani);
    top: 5%; right: 20%;
    opacity: 0.09;
    animation: dwFloat2 11s ease-in-out infinite alternate;
}

.dw-blob-6 {
    width: 140px; height: 140px;
    background: var(--dw-gold);
    bottom: 25%; right: 35%;
    animation: dwFloat3 13s ease-in-out infinite alternate;
}

@keyframes dwFloat1 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.2); }
}
@keyframes dwFloat2 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -80px) scale(1.15); }
}
@keyframes dwFloat3 {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

/* --------------------------------------------------------------------------
   2. NAVBAR + FOOTER FESTIVE BORDER
   -------------------------------------------------------------------------- */
.rbt-header-wrapper {
    border-bottom: 3px solid transparent !important;
    border-image: linear-gradient(90deg, var(--dw-rani), var(--dw-marigold), var(--dw-gold), var(--dw-marigold), var(--dw-rani)) 1 !important;
}

.rbt-footer {
    border-top: 4px solid transparent !important;
    border-image: linear-gradient(90deg, var(--dw-rani), var(--dw-marigold), var(--dw-gold), var(--dw-marigold), var(--dw-rani)) 1 !important;
}

/* --------------------------------------------------------------------------
   3. THEME GRADIENT - MOVING GOLD SHINE
   -------------------------------------------------------------------------- */
.theme-gradient {
    background: linear-gradient(100deg, var(--dw-rani) 10%, #E8590C 35%, #FFB400 50%, #E8590C 65%, var(--dw-rani) 90%) !important;
    background-size: 220% 100% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: dwTextShine 4s linear infinite;
}

@keyframes dwTextShine {
    0%   { background-position: 120% 0; }
    100% { background-position: -100% 0; }
}

/* --------------------------------------------------------------------------
   4. CTA BUTTONS — SPARKLER SHINE
   -------------------------------------------------------------------------- */
.rbt-btn.btn-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dw-maroon), var(--dw-rani), #E8590C) !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(197, 10, 91, 0.35), 0 0 0 0 rgba(255, 180, 0, 0.5) !important;
    animation: dwButtonPulse 2.6s ease-out infinite;
    transition: transform 0.3s ease !important;
}

.rbt-btn.btn-gradient::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -40%;
    width: 30%;
    height: 140%;
    transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255, 243, 196, 0.55), transparent);
    animation: dwButtonShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

.rbt-btn.btn-gradient:hover {
    transform: translateY(-2px) !important;
}

@keyframes dwButtonPulse {
    0%   { box-shadow: 0 4px 16px rgba(197, 10, 91, 0.35), 0 0 0 0 rgba(255, 180, 0, 0.5); }
    70%  { box-shadow: 0 4px 16px rgba(197, 10, 91, 0.35), 0 0 0 12px rgba(255, 180, 0, 0); }
    100% { box-shadow: 0 4px 16px rgba(197, 10, 91, 0.35), 0 0 0 0 rgba(255, 180, 0, 0); }
}

@keyframes dwButtonShine {
    0%, 55% { left: -40%; }
    100%    { left: 130%; }
}

/* --------------------------------------------------------------------------
   5. SECTION TITLE DECORATIONS
   -------------------------------------------------------------------------- */
.section-title .title::after {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 10px;
    vertical-align: baseline;
    background: url('../images/diya.svg') center / contain no-repeat;
    animation: dwFlicker 2.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   6. CARD HOVER ACCENTS
   -------------------------------------------------------------------------- */
.service__style--1:hover {
    box-shadow: 0 8px 30px rgba(197, 10, 91, 0.15) !important;
    border-color: var(--dw-marigold) !important;
}

.top-features-box:hover {
    box-shadow: 0 0 0 3px var(--dw-gold),
                0 0 0 6px var(--dw-cream),
                0 0 0 9px var(--dw-rani),
                0 8px 30px rgba(0, 0, 0, 0.1) !important;
}

.rbt-counterup.rbt-hover-03:hover {
    box-shadow: 0 0 0 2px var(--dw-marigold), 0 10px 30px rgba(197, 10, 91, 0.12) !important;
}

/* --------------------------------------------------------------------------
   7. SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--dw-rani), var(--dw-marigold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--dw-maroon), var(--dw-rani));
}

/* --------------------------------------------------------------------------
   8. HOME HERO — STAGE
   -------------------------------------------------------------------------- */
.rbt-splash-slider {
    position: relative;
    overflow: hidden;
}

.rbt-splash-slider > .wrapper {
    position: relative;
    z-index: 1;
    margin-top: 44px; /* room for the toran, so it never touches the hero content */
}

/* --------------------------------------------------------------------------
   9. HOME HERO — TORAN (hangs from the navbar's bottom border)
   -------------------------------------------------------------------------- */
.dw-toran {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    height: 64px;
    z-index: 2;
    pointer-events: none;
    background: url('../images/diwali/toran.svg') center top / auto 100% repeat-x;
    filter: drop-shadow(0 3px 4px rgba(122, 18, 56, 0.25));
}

/* --------------------------------------------------------------------------
   10. HOME HERO — GOLDEN RAYS BEHIND THE PORTRAIT
   -------------------------------------------------------------------------- */
.dw-hero-rays {
    position: absolute;
    top: 50%;
    left: 76%;
    width: 900px;
    height: 900px;
    margin: -450px 0 0 -450px;
    z-index: 0;
    pointer-events: none;
    background: repeating-conic-gradient(rgba(255, 154, 0, 0.14) 0deg 7deg, transparent 7deg 18deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 18%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 18%, transparent 100%);
    animation: dwRaysSpin 80s linear infinite;
}

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

/* --------------------------------------------------------------------------
   11. HOME HERO — RIBBON + GLINTS
   -------------------------------------------------------------------------- */
.dw-hero-ribbon {
    position: absolute;
    top: 160px;
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(90deg, var(--dw-plum), var(--dw-maroon));
    color: #FFE3A3;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 16px 6px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(122, 18, 56, 0.3);
    pointer-events: none;
}

.dw-hero-ribbon img {
    width: 22px;
    height: 22px;
}

.dw-glint {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(135deg, #FFD36B, #FF8A00);
    clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
    animation: dwGlint 2.8s ease-in-out infinite;
}

@keyframes dwGlint {
    0%, 100% { transform: scale(0.2) rotate(0deg); opacity: 0; }
    50%      { transform: scale(1) rotate(45deg); opacity: 1; }
}

/* --------------------------------------------------------------------------
   12. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .dw-toran {
        top: 70px;
        height: 42px;
    }

    .rbt-splash-slider > .wrapper {
        margin-top: 26px;
    }

    /* The portrait moves to the top and centre once the hero stacks. */
    .dw-hero-rays {
        top: 330px;
        left: 50%;
        width: 720px;
        height: 720px;
        margin: -360px 0 0 -360px;
    }
}

/* Below this width the absolute desktop positions no longer line up with anything. */
@media (max-width: 768px) {
    .dw-toran {
        top: 62px;
        height: 36px;
    }

    .dw-hero-ribbon,
    .dw-blob-3,
    .dw-blob-4,
    .dw-blob-5,
    .dw-blob-6 {
        display: none;
    }

    .dw-hero-rays {
        top: 230px;
        width: 480px;
        height: 480px;
        margin: -240px 0 0 -240px;
    }

    .dw-blob-1,
    .dw-blob-2 {
        width: 120px;
        height: 120px;
        opacity: 0.08;
    }

    .section-title .title::after {
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .dw-blob-1,
    .dw-blob-2 {
        width: 80px;
        height: 80px;
    }
}

/* --------------------------------------------------------------------------
   13. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .dw-blob,
    .dw-hero-rays,
    .dw-glint,
    .theme-gradient,
    .rbt-btn.btn-gradient,
    .rbt-btn.btn-gradient::after,
    .section-title .title::after {
        animation: none !important;
    }

    .dw-glint {
        opacity: 0.8;
    }

    .rbt-btn.btn-gradient::after {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   14. PRINT STYLES — Hide all Diwali elements
   -------------------------------------------------------------------------- */
@media print {
    .dw-blob,
    .dw-hero-ribbon,
    .dw-hero-rays,
    .dw-toran,
    .dw-glint {
        display: none !important;
    }
}
