/* ================================================================
   FILE PATH: public/css/launch-celebration.css
   PURPOSE  : Website launch celebration animation overlay
   ⚠️  TO REMOVE: Delete this entire file AND remove the
       launch overlay HTML from home.blade.php AND remove
       launchCelebration() from home.js
   ================================================================ */

/* ── OVERLAY BASE ─────────────────────────────────────────────── */
.launch-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: linear-gradient(145deg, #4A0808 0%, #7A1F1F 40%, #3A0505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Fade out when .closing class is added */
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.launch-overlay.closing {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.04);
}
.launch-overlay.gone { display: none; }

/* ── DECORATIVE RING BACKGROUND ───────────────────────────────── */
.launch-overlay::before {
    content: '';
    position: absolute;
    width: 700px; height: 700px;
    border-radius: 50%;
    border: 1px solid rgba(232,150,26,0.15);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-in-out infinite;
}
.launch-overlay::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 3s ease-in-out infinite 0.5s;
}
@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
    50%       { transform: translate(-50%, -50%) scale(1.06); opacity: 0.8; }
}

/* ── CENTER CONTENT ───────────────────────────────────────────── */
.launch-center {
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: centerAppear 0.8s ease 0.2s both;
}
@keyframes centerAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Logo */
.launch-logo-wrap {
    position: relative;
}
.launch-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,150,26,0.25) 0%, transparent 70%);
    animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { transform: scale(1);   opacity: 0.6; }
    50%       { transform: scale(1.1); opacity: 1;   }
}
.launch-logo {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid #E8961A;
    object-fit: cover;
    box-shadow:
        0 0 0 8px rgba(232,150,26,0.15),
        0 0 40px rgba(232,150,26,0.30);
    position: relative; z-index: 1;
    animation: logoSpin 0.6s ease 0.4s both;
}
@keyframes logoSpin {
    from { transform: scale(0) rotate(-180deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);    opacity: 1; }
}

/* Title */
.launch-text-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.launch-title-1 {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 52px; font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    animation: titleSlide 0.6s ease 0.5s both;
}
.launch-title-2 {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 36px; font-weight: 700;
    color: #E8961A;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(232,150,26,0.4);
    animation: titleSlide 0.6s ease 0.65s both;
}
@keyframes titleSlide {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.launch-tagline {
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    font-style: italic;
    margin-top: 6px;
    animation: titleSlide 0.6s ease 0.80s both;
}

/* Ribbon row */
.launch-ribbon-row {
    display: flex; justify-content: center;
    margin-top: 6px;
    animation: titleSlide 0.6s ease 0.90s both;
}
.launch-ribbon {
    background: linear-gradient(90deg, #E8961A, #FFB830, #E8961A);
    color: #4A0808;
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 15px; font-weight: 700;
    padding: 7px 28px;
    border-radius: 30px;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 20px rgba(232,150,26,0.40);
    animation: ribbonShimmer 2s ease-in-out infinite 1.2s;
}
@keyframes ribbonShimmer {
    0%, 100% { box-shadow: 0 4px 20px rgba(232,150,26,0.40); }
    50%       { box-shadow: 0 4px 40px rgba(232,150,26,0.80); }
}

/* Enter button */
.launch-enter-btn {
    margin-top: 8px;
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.35);
    color: white;
    font-family: 'Tiro Devanagari Marathi', serif;
    font-size: 14px; font-weight: 700;
    padding: 11px 28px;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
    display: flex; align-items: center; gap: 6px;
    animation: titleSlide 0.6s ease 1.0s both;
}
.launch-enter-btn:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.60);
    transform: translateY(-2px);
}

/* ── PETALS ───────────────────────────────────────── */
.petals-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.petal {
    position: absolute;
    top: -40px;
    font-size: 20px;
    opacity: 0;
    animation: petalFall linear infinite;
    user-select: none;
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg) scale(0.6);
    }
    10% { opacity: 1; }
    80% { opacity: 0.7; }
    100% {
        opacity: 0;
        transform: translateY(110vh) rotate(720deg) scale(1);
    }
}

/* ── CONFETTI RIBBONS ─────────────────────────────── */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 4;
}

.confetti-piece {
    position: absolute;
    top: -20px;
    width: 8px; height: 16px;
    border-radius: 2px;
    opacity: 0;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        opacity: 0;
        transform: translateY(0) rotateZ(0deg) rotateX(0deg);
    }
    8%  { opacity: 1; }
    85% { opacity: 0.6; }
    100% {
        opacity: 0;
        transform: translateY(110vh) rotateZ(540deg) rotateX(360deg);
    }
}

/* ── CORNER DECORATIONS ───────────────────────────── */
.launch-corner {
    position: absolute;
    font-size: 32px;
    opacity: 0.4;
    animation: cornerFloat 3s ease-in-out infinite;
}
.launch-corner-tl { top: 20px;  left: 20px;  animation-delay: 0s;   }
.launch-corner-tr { top: 20px;  right: 20px; animation-delay: 0.5s; }
.launch-corner-bl { bottom: 20px; left: 20px;  animation-delay: 1s;   }
.launch-corner-br { bottom: 20px; right: 20px; animation-delay: 1.5s; }

@keyframes cornerFloat {
    0%, 100% { transform: translateY(0)    scale(1);    opacity: 0.4; }
    50%       { transform: translateY(-8px) scale(1.15); opacity: 0.7; }
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 576px) {
    .launch-logo    { width: 90px;  height: 90px; }
    .launch-title-1 { font-size: 36px; }
    .launch-title-2 { font-size: 26px; }
    .launch-tagline { font-size: 12px; }
}