/* Diwali — index hero & ribbon (professional, responsive) */

.diwali-ribbon {
    position: relative;
    z-index: 98;
    background: linear-gradient(90deg, #0a4d66 0%, #0d6588 35%, #115e7a 65%, #0a4d66 100%);
    color: #fff;
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

.diwali-ribbon.is-hidden {
    display: none;
}

.diwali-ribbon-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 44px 10px 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.diwali-ribbon-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fde68a, #f59e0b 55%, #b45309);
    color: #78350f;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.55);
    animation: diwali-icon-pulse 2.8s ease-in-out infinite;
}

.diwali-ribbon-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

.diwali-ribbon-text strong {
    color: #fde68a;
    font-weight: 600;
}

.diwali-ribbon-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s ease;
}

.diwali-ribbon-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Hero season tweaks */
.hero-section.diwali-season .hero-overlay {
    background:
        radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.2), transparent 42%),
        radial-gradient(circle at 88% 22%, rgba(244, 114, 182, 0.14), transparent 40%),
        radial-gradient(circle at 78% 78%, rgba(74, 222, 128, 0.12), transparent 45%),
        radial-gradient(circle at 18% 72%, rgba(96, 165, 250, 0.12), transparent 42%),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.78), transparent 58%),
        radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.96), #020617);
}

.diwali-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.diwali-lights-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    padding: 0 8px;
}

.diwali-light-wire {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(30, 41, 59, 0.9) 8%, rgba(30, 41, 59, 0.9) 92%, transparent);
    border-radius: 999px;
}

.diwali-light-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 8px;
    gap: 2px;
}

.diwali-bulb {
    flex: 1;
    max-width: 13px;
    min-width: 5px;
    height: 16px;
    border-radius: 50% 50% 42% 42%;
    margin-top: 6px;
    opacity: 0.88;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    animation: diwali-bulb-glow 3.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.diwali-bulb--amber {
    background: radial-gradient(circle at 35% 25%, #fffbeb 0%, #fbbf24 50%, #b45309 100%);
    box-shadow: 0 0 10px 2px rgba(251, 191, 36, 0.55);
}

.diwali-bulb--crimson {
    background: radial-gradient(circle at 35% 25%, #ffe4e6 0%, #f43f5e 50%, #be123c 100%);
    box-shadow: 0 0 10px 2px rgba(244, 63, 94, 0.5);
}

.diwali-bulb--emerald {
    background: radial-gradient(circle at 35% 25%, #ecfdf5 0%, #34d399 50%, #047857 100%);
    box-shadow: 0 0 10px 2px rgba(52, 211, 153, 0.5);
}

.diwali-bulb--sapphire {
    background: radial-gradient(circle at 35% 25%, #eff6ff 0%, #60a5fa 50%, #1d4ed8 100%);
    box-shadow: 0 0 10px 2px rgba(96, 165, 250, 0.55);
}

.diwali-bulb--violet {
    background: radial-gradient(circle at 35% 25%, #f5f3ff 0%, #c084fc 50%, #7e22ce 100%);
    box-shadow: 0 0 10px 2px rgba(192, 132, 252, 0.55);
}

.diwali-bulb--tangerine {
    background: radial-gradient(circle at 35% 25%, #fff7ed 0%, #fb923c 50%, #c2410c 100%);
    box-shadow: 0 0 10px 2px rgba(251, 146, 60, 0.55);
}

.diwali-bulb--cyan {
    background: radial-gradient(circle at 35% 25%, #ecfeff 0%, #22d3ee 50%, #0e7490 100%);
    box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.5);
}

.diwali-fireworks-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
    z-index: 0;
}

.diwali-sparkles {
    position: absolute;
    inset: 0;
}

.diwali-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    opacity: 0;
    animation: diwali-sparkle-float 4.5s ease-in-out infinite;
}

.diwali-sparkle--amber { background: #fbbf24; box-shadow: 0 0 8px 1px rgba(251, 191, 36, 0.85); }
.diwali-sparkle--crimson { background: #fb7185; box-shadow: 0 0 8px 1px rgba(244, 63, 94, 0.8); }
.diwali-sparkle--emerald { background: #4ade80; box-shadow: 0 0 8px 1px rgba(74, 222, 128, 0.8); }
.diwali-sparkle--sapphire { background: #60a5fa; box-shadow: 0 0 8px 1px rgba(96, 165, 250, 0.85); }
.diwali-sparkle--violet { background: #c084fc; box-shadow: 0 0 8px 1px rgba(192, 132, 252, 0.85); }

.diwali-diya {
    position: absolute;
    bottom: 8px;
    width: 108px;
    line-height: 0;
    opacity: 0.98;
    filter:
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 14px rgba(212, 165, 116, 0.22))
        drop-shadow(0 -2px 20px rgba(255, 200, 130, 0.12));
}

.diwali-diya img,
.diwali-diya svg.diwali-diya-svg {
    display: block;
    width: 100%;
    height: auto;
}

.diwali-diya--left {
    left: max(16px, 3vw);
}

.diwali-diya--right {
    right: max(16px, 3vw);
}

@media (min-width: 992px) {
    .diwali-diya {
        width: 124px;
        bottom: 12px;
    }
}

.diwali-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fef3c7;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(251, 191, 36, 0.45);
    backdrop-filter: blur(8px);
}

.diwali-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 10px #f59e0b;
    animation: diwali-icon-pulse 2s ease-in-out infinite;
}

@keyframes diwali-bulb-glow {
    0%, 100% {
        opacity: 0.72;
        filter: brightness(0.95);
    }
    28% {
        opacity: 0.88;
        filter: brightness(1.05);
    }
    52% {
        opacity: 0.78;
        filter: brightness(0.98);
    }
    74% {
        opacity: 0.92;
        filter: brightness(1.08);
    }
}

@keyframes diwali-sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.6);
    }
    15% {
        opacity: 0.85;
    }
    50% {
        opacity: 0.35;
        transform: translateY(-28px) scale(1);
    }
}

@keyframes diwali-icon-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
    }
    50% {
        box-shadow: 0 0 16px rgba(251, 191, 36, 0.75);
    }
}

@media (max-width: 768px) {
    .diwali-ribbon-inner {
        padding: 10px 40px 10px 12px;
    }

    .diwali-ribbon-text {
        font-size: 12px;
    }

    .diwali-ribbon-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .diwali-diya {
        width: 72px;
        bottom: 6px;
        opacity: 0.82;
    }

    .diwali-lights-wrap {
        height: 40px;
    }

    .diwali-bulb {
        height: 14px;
        margin-top: 4px;
    }

    .diwali-hero-badge {
        font-size: 12px;
        padding: 5px 12px 5px 8px;
    }
}

@media (max-width: 480px) {
    .diwali-diya--right {
        display: none;
    }

    .diwali-diya--left {
        width: 64px;
        opacity: 0.75;
    }
}

@media (prefers-reduced-motion: reduce) {
    .diwali-bulb,
    .diwali-sparkle,
    .diwali-ribbon-icon,
    .diwali-hero-badge-dot {
        animation: none !important;
    }

    .diwali-bulb {
        opacity: 0.85;
    }

    .diwali-fireworks-canvas {
        display: none;
    }
}
