/* ==========================================================================
   ISPR Grand Website Launch — Ceremonial Ribbon Cutting & Video Inauguration
   ========================================================================== */

#ispr-launch-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dce6d6;
    overflow: hidden;
    font-family: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

#ispr-launch-overlay.launch-completed,
html.launch-ceremony-completed #ispr-launch-overlay,
html.launch-ceremony-completed #launch-confetti-canvas {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Background video container */
.launch-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dce6d6;
    z-index: 1;
    overflow: hidden;
}

#ispr-launch-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    object-position: center center;
    background: #dce6d6;
    display: block;
}

/* Interactive Ceremonial UI Layer on top of the video */
.launch-ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.launch-ui-layer.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Center Ribbon Action Section */
.launch-center-action {
    position: relative;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Luxurious Red Satin Ribbon bar spanning 100% full width edge-to-edge */
.launch-ribbon-bar {
    position: relative;
    width: 100vw;
    height: 54px;
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 50%, #7f0000 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launch-ribbon-bar::before,
.launch-ribbon-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #fff6a6, #d4af37);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}
.launch-ribbon-bar::before { top: 3px; }
.launch-ribbon-bar::after { bottom: 3px; }

/* The Grand Inauguration Button situated in the ribbon */
.btn-ribbon-inaugurate {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #d4af37 0%, #f6e078 40%, #c59b27 100%);
    color: #4a2800 !important;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 14px 40px;
    border-radius: 50px;
    border: 3px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(212, 175, 55, 0.7);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    outline: none;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: ribbonBtnPulse 2.2s infinite ease-in-out;
}

.btn-ribbon-inaugurate::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(25deg);
    animation: shimmerPass 2.5s infinite;
}

@keyframes ribbonBtnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(212, 175, 55, 0.6); }
    50% { transform: scale(1.05); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.95); }
}

@keyframes shimmerPass {
    0% { left: -60%; }
    100% { left: 140%; }
}

.btn-ribbon-inaugurate:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #ffd700 0%, #fff2a3 40%, #d4af37 100%);
}

.btn-ribbon-inaugurate:active {
    transform: scale(0.98);
}

/* Footer / Skip section */
.launch-footer-wrap {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.launch-skip-link {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 131, 122, 0.2);
    color: #3b6b5e;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 24px;
    border-radius: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.launch-skip-link:hover {
    background: #ffffff;
    color: #0b3d32;
    border-color: #00837a;
    box-shadow: 0 4px 15px rgba(0, 131, 122, 0.2);
}

/* In-Video Skip Button */
.launch-video-skip {
    position: absolute;
    bottom: 25px;
    right: 25px;
    z-index: 30;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: none;
}

.launch-video-skip.visible {
    display: block;
}

.launch-video-skip:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #ffffff;
    transform: scale(1.05);
}

/* Confetti Canvas */
#launch-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000005;
    pointer-events: none;
    display: none;
}

/* Keyframes */
@keyframes launchFadeDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes launchFadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .btn-ribbon-inaugurate {
        font-size: 1.05rem;
        padding: 12px 32px;
    }
}

@media (max-width: 768px) {
    #ispr-launch-overlay,
    .launch-video-container {
        background: #dce6d6;
    }
    #ispr-launch-video {
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        object-fit: contain !important;
        object-position: center center;
        background: #dce6d6;
    }
    .launch-ui-layer {
        padding: 0;
    }
    .launch-video-container {
        height: 100vh;
        height: 100dvh;
    }
    .launch-ribbon-bar {
        width: 100vw;
        height: 48px;
    }
    .launch-ribbon-bar::before,
    .launch-ribbon-bar::after {
        height: 2px;
    }
    .btn-ribbon-inaugurate {
        font-size: 0.96rem;
        padding: 11px 26px;
        gap: 8px;
        border-width: 2.5px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 18px rgba(212, 175, 55, 0.6);
        touch-action: manipulation;
    }
    .btn-ribbon-inaugurate span:first-child {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .launch-ribbon-bar {
        height: 44px;
    }
    .launch-ribbon-bar::before {
        top: 2px;
    }
    .launch-ribbon-bar::after {
        bottom: 2px;
    }
    .btn-ribbon-inaugurate {
        font-size: 0.86rem;
        padding: 9px 20px;
        gap: 7px;
        letter-spacing: 0.3px;
        border-width: 2px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 14px rgba(212, 175, 55, 0.55);
    }
    .btn-ribbon-inaugurate span:first-child {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 360px) {
    .launch-ribbon-bar {
        height: 40px;
    }
    .btn-ribbon-inaugurate {
        font-size: 0.78rem;
        padding: 8px 15px;
        gap: 5px;
    }
    .btn-ribbon-inaugurate span:first-child {
        font-size: 1rem !important;
    }
}
