/* ==========================================================================
   LUXCARE SERVICES – 3D LIGHT LUXURY SANCTUARY ENTRANCE
   Airy, Warm Ivory & Gold French Doors Portal
   ========================================================================== */

#unboxing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
    background: radial-gradient(circle at center, #ffffff 0%, #faf8f5 50%, #f1ebe1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s ease;
    user-select: none;
    -webkit-user-select: none;
}

#unboxing-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Subtle Ambient Wall Background */
.intro-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(rgba(212, 175, 55, 0.15) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(243, 238, 225, 0.6));
    background-size: 36px 36px, 100% 100%;
    opacity: 0.85;
}

.intro-ambient-glow {
    position: absolute;
    width: 720px;
    height: 720px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(245, 158, 11, 0.08) 45%, transparent 70%);
    filter: blur(55px);
    pointer-events: none;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    animation: portalGlow 6s ease-in-out infinite alternate;
}

@keyframes portalGlow {
    0% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Intro Architectural Sketches */
.intro-sketch-left {
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 170px;
    height: 200px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 4px 12px rgba(184, 134, 11, 0.1));
}

.intro-sketch-right {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 200px;
    height: 200px;
    opacity: 0.18;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 4px 12px rgba(184, 134, 11, 0.1));
}

@media (max-width: 900px) {
    .intro-sketch-left, .intro-sketch-right {
        opacity: 0.08;
        width: 110px;
        height: auto;
    }
}

/* Skip Button */
.intro-skip-btn {
    position: absolute;
    top: 26px;
    right: 32px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: #1e293b;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.35s ease;
}

.intro-skip-btn:hover {
    background: #ffffff;
    border-color: #D4AF37;
    color: #B8860B;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
    transform: translateX(3px);
}

/* Header Text */
.intro-header-content {
    text-align: center;
    z-index: 20;
    margin-bottom: 20px;
    animation: introFadeDown 1s ease forwards;
}

.intro-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 6px 22px;
    border-radius: 50px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
}

.intro-brand-pill span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #B8860B;
    text-transform: uppercase;
}

.intro-brand-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D4AF37;
}

.intro-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.85rem, 4.2vw, 2.85rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: #0f172a;
}

.intro-title .highlight {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 60%, #92400e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-subtitle {
    font-size: 0.96rem;
    color: #475569;
    max-width: 580px;
    margin: 0 auto;
    font-weight: 500;
}

/* ==========================================================================
   3D LIGHT WARDROBE & LIVING SANCTUARY DOUBLE DOORS
   ========================================================================== */
.doors-viewport {
    position: relative;
    width: 360px;
    height: 380px;
    perspective: 1200px;
    cursor: pointer;
    z-index: 20;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Door Frame Structure - Light Warm Oak & Gold Trim */
.door-frame {
    position: relative;
    width: 310px;
    height: 360px;
    background: #FAF8F5;
    border: 3.5px solid #D4AF37;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.2), 0 4px 20px rgba(0, 0, 0, 0.08);
    transform-style: preserve-3d;
    overflow: visible;
}

/* Radiant Interior Light Behind Doors */
.door-interior-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #ffffff 0%, #fef3c7 40%, #fde68a 70%, rgba(212, 175, 55, 0.25) 100%);
    opacity: 0;
    filter: blur(28px);
    transition: opacity 0.8s ease 0.2s, transform 1s ease;
    transform: scale(0.4);
    pointer-events: none;
    z-index: 1;
}

/* Left & Right French Doors - Light Ivory Lacquer */
.door-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #FAF8F5 60%, #F5F0E8 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-sizing: border-box;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 12px;
    box-shadow: inset 0 0 15px rgba(212, 175, 55, 0.08);
}

/* Left Door hinges on left */
.door-panel.door-left {
    left: 0;
    transform-origin: left center;
    border-right: 1.5px solid rgba(212, 175, 55, 0.6);
}

/* Right Door hinges on right */
.door-panel.door-right {
    right: 0;
    transform-origin: right center;
    border-left: 1.5px solid rgba(212, 175, 55, 0.6);
}

/* Fluted Glass Inset Panels */
.door-glass-pane {
    flex-grow: 1;
    margin: 8px 0;
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    background-image: repeating-linear-gradient(90deg, rgba(212, 175, 55, 0.06) 0px, rgba(212, 175, 55, 0.06) 4px, transparent 4px, transparent 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.12);
}

.door-service-icon {
    font-size: 1.85rem;
    color: #B8860B;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
}

.door-service-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #0f172a;
    text-align: center;
}

.door-service-sub {
    font-size: 0.6rem;
    color: #64748b;
    text-align: center;
    margin-top: 2px;
    font-weight: 600;
}

/* Polished Vertical Brass Door Handles */
.door-handle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70px;
    background: linear-gradient(to bottom, #d4af37, #fef08a, #b45309);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(184, 134, 11, 0.45);
    z-index: 10;
}

.door-left .door-handle {
    right: 8px;
}

.door-right .door-handle {
    left: 8px;
}

/* Center Golden Medallion Crest */
.door-center-crest {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle, #fef08a 0%, #D4AF37 55%, #b45309 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.45), 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-weight: 800;
    font-family: 'Playfair Display', Georgia, serif;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.door-center-crest span.monogram {
    font-size: 1.4rem;
    line-height: 1;
}

.door-center-crest span.crest-text {
    font-size: 0.46rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

/* CTA & Interaction */
.intro-cta-wrapper {
    text-align: center;
    z-index: 20;
    margin-top: 15px;
}

.intro-open-doors-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #F3C64F 0%, #D4AF37 50%, #B8860B 100%);
    color: #091322;
    border: none;
    padding: 13px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: portalPulse 2.8s infinite;
}

.intro-open-doors-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

@keyframes portalPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3); }
    50% { transform: scale(1.03); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5); }
}

.intro-hint {
    font-size: 0.82rem;
    color: #64748b;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

/* ==========================================================================
   DOOR OPENING ANIMATION SEQUENCE
   ========================================================================== */

/* 1. Medallion crest dissolves */
#unboxing-overlay.is-opening .door-center-crest {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* 2. Left and Right doors swing wide open in 3D */
#unboxing-overlay.is-opening .door-panel.door-left {
    transform: rotateY(-115deg);
}

#unboxing-overlay.is-opening .door-panel.door-right {
    transform: rotateY(115deg);
}

/* 3. Golden light rays burst outward through the doorway */
#unboxing-overlay.is-opening .door-interior-glow {
    opacity: 1;
    transform: scale(3.5);
}

/* 4. Entire frame zooms forward into camera */
#unboxing-overlay.is-opening .door-frame {
    transform: scale(2.2) translateZ(400px);
    transition: transform 1.25s cubic-bezier(0.5, 0, 0.2, 1);
}

/* 5. Smooth overlay fade */
#unboxing-overlay.is-opening {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease 0.65s, visibility 0.8s ease 0.65s;
}

@keyframes introFadeDown {
    0% { opacity: 0; transform: translateY(-16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .doors-viewport {
        transform: scale(0.85);
        height: 320px;
    }
    .intro-title {
        font-size: 1.6rem;
    }
    .intro-subtitle {
        font-size: 0.85rem;
        padding: 0 15px;
    }
    .intro-skip-btn {
        top: 18px;
        right: 18px;
        font-size: 0.8rem;
        padding: 8px 16px;
    }
}
