/* === GLOBAL DESIGN TOKENS === */
:root {
    --primary: #059669;
    --primary-light: #34d399;
    --primary-glow: rgba(16, 185, 129, 0.3);
    --accent: #2563eb;
    --text-dark: #051b40;
    --text-gray: #64748b;
    --text-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-off-white: #E3E6E1;
    --bg-footer: #010101;
    --trans: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === TOP-LEFT LOGO === */
.top-left-logo {
    position: fixed;
    top: 0px;
    left: 3%;
    z-index: 10000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 15px 4px 18px;

    /* --- NEW: OPTION 2 (Dynamic Prism) --- */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) brightness(1.3) contrast(1.1);
    -webkit-backdrop-filter: blur(25px) brightness(1.3) contrast(1.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    /* ------------------------------------ */

    /* ------------------------------------ */

    border-radius: 0px 0px 15px 15px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.top-left-logo img {
    height: 55px;
    /* Increased for the new main_logo.png */
    object-fit: contain;
    filter: none;
    /* Clean look without halo contrast */
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.top-left-logo:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.top-left-logo:hover img {
    transform: scale(1.05);
    /* Slightly subtler scale */
}

/* === ELITE TOP-RIGHT SUNRAY NAVIGATION (1/4th Circle) === */
.menu-container {
    position: fixed;
    top: 0px;
    right: 3%;
    z-index: 10000;
}

.menu-trigger {
    cursor: pointer;
    padding: 12px 10px 12px 10px;
    z-index: 10001;
    position: relative;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* --- NEW: OPTION 2 (Synced with Logo) --- */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px) brightness(1.3) contrast(1.1);
    -webkit-backdrop-filter: blur(25px) brightness(1.3) contrast(1.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    /* ----------------------------------------- */

    /* ----------------------------------------- */

    border-radius: 0px 0px 15px 15px;
    transition: 0.3s;
}

.menu-trigger:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.hamburger-icon {
    width: 32px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-dark) !important;
    /* Halo Contrast: Dark core + White outer shadow */
    box-shadow: 0 0 1px #fff, 0 0 2px rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    transition: .25s ease-in-out;
    filter: none;
}

.hamburger-icon span:nth-child(1) {
    top: 0;
}

.hamburger-icon span:nth-child(2) {
    top: 8px;
    width: 75%;
    right: 0;
}

.hamburger-icon span:nth-child(3) {
    top: 16px;
}

.sunray-menu {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 0;
    height: 0;
    visibility: hidden;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.menu-container.active .sunray-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sunray-links {
    position: absolute;
    top: 50px;
    right: 50px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sunray-links li {
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: calc(var(--i) * 0.05s);
    opacity: 0;
    transform: translate(0, 0) scale(0);
}

.menu-container.active .sunray-links li {
    opacity: 1;
}

/* Fan-Out Logic (WIDE ARC - Desktop Optimized) */
.menu-container.active li:nth-child(1) {
    transform: translate(-220px, -20px) scale(1);
}

.menu-container.active li:nth-child(2) {
    transform: translate(-210px, 55px) scale(1);
}

.menu-container.active li:nth-child(3) {
    transform: translate(-180px, 120px) scale(1);
}

.menu-container.active li:nth-child(4) {
    transform: translate(-135px, 175px) scale(1);
}

.menu-container.active li:nth-child(5) {
    transform: translate(-80px, 215px) scale(1);
}

.menu-container.active li:nth-child(6) {
    transform: translate(-20px, 240px) scale(1);
}

.menu-container.active li:nth-child(7) {
    transform: translate(50px, 250px) scale(1);
}

/* Support: Pulled up significantly */

.sunray-links li a {
    /* --- NEW: THEME 1 (Frost Pearl) --- */
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(25px) brightness(1.5) contrast(1.2) !important;
    -webkit-backdrop-filter: blur(25px) brightness(1.5) contrast(1.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 0 15px rgba(255, 255, 255, 0.6) !important;
    /* ------------------------------------ */

    /* ------------------------------------ */

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 95px !important;
    height: 95px !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 10px !important;
    text-align: center !important;
}

.sunray-links li a:hover {
    background: var(--primary) !important;
    transform: scale(1.1) !important;
    border-color: var(--primary-light) !important;
    box-shadow: 0 0 25px var(--primary-glow) !important;
}

.sunray-links li a i {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    margin-bottom: 6px !important;
    color: #051b40 !important;
    /* Crisp Etched contrast: Tiny sharp dark shadow instead of fuzzy halo */
    filter: drop-shadow(0.5px 0.5px 0px rgba(0, 0, 0, 0.2));
}

.sunray-links li a span {
    font-size: 0.75rem !important;
    color: #051b40 !important;
    /* Sharp dark etch */
    text-shadow: 0.3px 0.3px 0px rgba(0, 0, 0, 0.1);
    font-weight: 800 !important;
    /* Maximum Premium Stance */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Beams Effect */
.sunray-beams {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: -1;
}

.beam {
    position: absolute;
    top: 0;
    right: 0;
    width: 200%;
    height: 120px;
    background: radial-gradient(ellipse at right, rgba(16, 185, 129, 0.2), transparent 75%);
    transform-origin: right center;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 1s ease;
}

.menu-container.active .beam {
    opacity: 1;
}

.beam:nth-child(1) {
    transform: rotate(155deg);
}

.beam:nth-child(2) {
    transform: rotate(180deg);
    transition-delay: 0.1s;
}

.beam:nth-child(3) {
    transform: rotate(205deg);
    transition-delay: 0.2s;
}

/* Beams are visible on Desktop by default */
.sunray-beams {
    display: block;
}


/* === SEISMIC RIPPLE ANIMATION === */
.exp-btn-round {
    position: fixed;
    /* Initial State: Center of Screen */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    /* Responsive Reveal Variables (Option B) */
    --exp-size: 90px;
    --exp-pos-x: 30px;
    --exp-pos-y: 85%;
    --exp-fs: 2rem;

    width: var(--exp-size);
    height: var(--exp-size);
    background: radial-gradient(circle at 30% 30%, #FCF6BA, #BF953F, #AA771C);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    font-size: var(--exp-fs);
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(191, 149, 63, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);

    opacity: 0;
    /* Initially hidden for 45 seconds */
    animation: shrink-and-slide 3s cubic-bezier(0.2, 0.8, 0.2, 1) 45s forwards;
}

/* Keyframes: Massive -> Center -> Corner */
@keyframes shrink-and-slide {
    0% {
        /* Start Massive & Invisible (45s) */
        width: 300vw;
        height: 300vw;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
        pointer-events: none;
    }

    /* Flash Visible */
    1% {
        opacity: 1;
    }

    50% {
        /* Reach Center (11.5s) */
        width: var(--exp-size);
        height: var(--exp-size);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: var(--exp-fs);
        border-radius: 50%;
        opacity: 1;
    }

    100% {
        /* Slide to Corner (13s) */
        width: var(--exp-size);
        height: var(--exp-size);
        left: var(--exp-pos-x);
        top: var(--exp-pos-y);
        transform: translate(0, -50%);
        font-size: var(--exp-fs);
        opacity: 1;
    }
}

/* Creating the Ripple Waves (Standard Continuous) */
.exp-btn-round::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(252, 246, 186, 0.6);
    opacity: 0;
    z-index: -1;
    /* Continuous Subtle Ripple */
    animation: ripple-wave 3s infinite linear;
    animation-delay: 13s;
    /* Start AFTER slide is done (10s + 3s) */
}

@keyframes ripple-wave {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 280%;
        /* Normal ripple expansion */
        height: 280%;
        opacity: 0;
        border-width: 0px;
    }
}

/* === REFINED BIG-BOOM ANIMATION LOGIC (45s Start) === */
/* === Experience Center Button Animations === */
.exp-icon-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Standby Stage (0-60s) */
.layer-standby-v9 {
    opacity: 1;
    visibility: visible;
    animation: standby-character-v9 60s linear forwards;
}

@keyframes standby-character-v9 {

    0%,
    99% {
        opacity: 1;
        visibility: visible;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Animation Stage Controls */
.stage-vr {
    opacity: 0;
    visibility: hidden;
    animation: master-vr-v9 18s infinite 60s;
}

.stage-experience {
    opacity: 0;
    visibility: hidden;
    animation: master-exp-v9 18s infinite 60s;
}

@keyframes master-vr-v9 {

    0%,
    50% {
        opacity: 1;
        visibility: visible;
    }

    52%,
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes master-exp-v9 {

    0%,
    58% {
        opacity: 0;
        visibility: hidden;
    }

    61%,
    96% {
        opacity: 1;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Internal VR Keyframes */
.layer-smiley-nod {
    animation: smiley-nod-v9 18s infinite 60s;
}

@keyframes smiley-nod-v9 {

    0%,
    48% {
        transform: translateY(0) scale(1.05);
    }

    2%,
    12%,
    22%,
    32%,
    42% {
        transform: translateY(4px) scale(1.05);
    }
}

.layer-vr-attached {
    animation: vr-attached-v10 18s infinite 60s;
}

@keyframes vr-attached-v10 {

    0%,
    27% {
        opacity: 0;
        transform: translateY(-15px) scale(0.85);
    }

    /* Slightly less travel for smaller box */
    33%,
    50% {
        opacity: 1;
        transform: translateY(0) scale(1.05);
    }

    52%,
    100% {
        opacity: 0;
    }
}

/* DUAL MOUTH LOGIC */
.mouth-default {
    animation: mouth-default-v9 18s infinite 60s;
}

@keyframes mouth-default-v9 {

    0%,
    38% {
        opacity: 1;
    }

    42%,
    100% {
        opacity: 0;
    }
}

.mouth-laugh {
    animation: mouth-laugh-v9 18s infinite 60s;
}

@keyframes mouth-laugh-v9 {

    0%,
    38% {
        opacity: 0;
    }

    42%,
    50% {
        opacity: 1;
    }

    52%,
    100% {
        opacity: 0;
    }
}

/* Radiant Monolith Animations */
.monolith-v12 {
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.15));
}

.monolith-v12 .monolith-base,
.monolith-v12 .monolith-roof {
    animation: monolith-glow-v12 3s infinite alternate 60s ease-in-out;
}

@keyframes monolith-glow-v12 {
    from {
        stroke-width: 7;
        filter: drop-shadow(0 0 2px #fff);
    }

    to {
        stroke-width: 8;
        filter: drop-shadow(0 0 10px #fff);
    }
}

.monolith-v12 .beam-v12 {
    opacity: 0;
    transform-origin: bottom;
    filter: blur(1.5px);
}

/* Staggered Beam Logic (Part of 18s loop) */
.monolith-v12 .beam-1 {
    animation: beam-1-v12 18s infinite 60s;
}

.monolith-v12 .beam-2 {
    animation: beam-2-v12 18s infinite 60s;
}

.monolith-v12 .beam-3 {
    animation: beam-3-v12 18s infinite 60s;
}

@keyframes beam-1-v12 {

    0%,
    62% {
        opacity: 0;
        transform: scaleY(0);
    }

    64% {
        opacity: 0.8;
        transform: scaleY(1);
    }

    72% {
        opacity: 0;
        transform: scaleY(1.3);
    }

    100% {
        opacity: 0;
    }
}

@keyframes beam-2-v12 {

    0%,
    64% {
        opacity: 0;
        transform: scaleY(0);
    }

    66% {
        opacity: 0.9;
        transform: scaleY(1.1);
    }

    74% {
        opacity: 0;
        transform: scaleY(1.4);
    }

    100% {
        opacity: 0;
    }
}

@keyframes beam-3-v12 {

    0%,
    66% {
        opacity: 0;
        transform: scaleY(0);
    }

    68% {
        opacity: 0.8;
        transform: scaleY(1);
    }

    76% {
        opacity: 0;
        transform: scaleY(1.3);
    }

    100% {
        opacity: 0;
    }
}

.house-energy-core-v12 {
    animation: core-pulse-v12 18s infinite 60s;
    transform-origin: center;
}

@keyframes core-pulse-v12 {

    0%,
    60% {
        opacity: 0;
        transform: scale(0.5);
    }

    65%,
    95% {
        opacity: 1;
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(16, 185, 129, 0.8)) brightness(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.exp-btn-round:hover {
    transform: translate(0, -50%) scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .sunray-links li a {
        width: 75px !important;
        height: 75px !important;
    }
}

/* === LARGE SCREEN OPTIMIZATIONS (>1600px) === */
@media (min-width: 1600px) {

    /* Larger Logo Container */
    .top-left-logo {
        padding: 4px 15px 4px 18px;
        border-radius: 0px 0px 15px 15px;
    }

    /* Larger Logo Image */
    .top-left-logo img {
        height: 60px;
    }

    /* Larger Experience Button */
    .exp-btn-round {
        width: 90px;
        height: 90px;
        font-size: 2rem;
    }
}

/* === EXPERIENCE CENTER HEADER === */
.page-header {
    position: fixed;
    top: 0;
    /* Sticked to very top for cleaner bar look */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 999;
    padding: 15px 0;
    /* Add padding for the bar */

    /* Default: Transparent (Let the hero image shine!) */
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    border-bottom: 1px solid rgba(0, 0, 0, 0);
    box-shadow: none;

    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Scrolled State (Added via JS) */
.page-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.experience-title {
    font-size: 3rem;
    /* Slightly reduced for elegance */
    font-weight: 700;
    /* Reduced from 800 */
    text-transform: capitalize;
    /* Changed from uppercase to Title Case */
    letter-spacing: -0.5px;
    /* Tighter, more modern spacing */
    margin: 0;
    display: inline-block;

    /* Brand Blue-Green Gradient Text */
    background: linear-gradient(135deg, #0ea5e9, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Optional: subtle shadow for depth against dark room */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));

    /* ENTRANCE ANIMATION */
    animation: slideDownFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Start hidden */
    transform: translateY(-20px);
}

@keyframes slideDownFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ROOM SELECTOR FIX (Layout Flow) === */
.selector-tabs {
    position: relative !important;
    /* Restore flow to push content down */
    margin-top: 120px !important;
    /* INCREASED to clear the new glass header bar */
    margin-bottom: 20px !important;
    /* Space above image */
    z-index: 998;
    width: auto;
    max-width: 90%;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    /* Centering in flow */
    left: auto !important;
    transform: none !important;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustment */
@media (max-width: 768px) {

    /* Refined Logo Positioning for Mobile */
    .top-left-logo {
        top: 0px;
        left: 3%;
        padding: 4px 10px 4px 10px;
        background: rgba(0, 0, 0, 0.03);
        /* Slightly darker for legibility on small screens */
    }

    .top-left-logo img {
        height: 48px;
        /* Slightly more compact for mobile flow */
    }

    /* Proper Flow for Mobile Header */
    .page-header {
        position: relative;
        /* Override fixed positioning from desktop! */
        margin-top: 75px;
        margin-bottom: 25px;
        /* INCREASED from 5px to 25px mainly for "minor spacing in the bottom" */
        text-align: center;
        width: 100%;
        background: none;
        /* No background on mobile, just flow */
        backdrop-filter: none;
        box-shadow: none;
        border: none;
        padding: 0;
        top: auto;

        pointer-events: auto;
        /* Allow interaction if needed */
    }

    .experience-title {
        font-size: 1.8rem;
        /* Increased mobile size */
        position: static;
        /* Let it flow */
        transform: none;
        margin: 0;
    }

    /* Ensure selector stays hidden or positioned correctly if shown */
    .selector-tabs {
        display: none !important;
        /* Keep hidden to use Drawer */
    }

    /* Mobile Menu Overhaul: Vertical Cascade (Compact for Responsiveness) */
    .menu-container.active li:nth-child(1) {
        transform: translate(-5px, 55px) scale(1);
    }

    .menu-container.active li:nth-child(2) {
        transform: translate(-5px, 130px) scale(1);
    }

    .menu-container.active li:nth-child(3) {
        transform: translate(-5px, 205px) scale(1);
    }

    .menu-container.active li:nth-child(4) {
        transform: translate(-5px, 280px) scale(1);
    }

    .menu-container.active li:nth-child(5) {
        transform: translate(-5px, 355px) scale(1);
    }

    .menu-container.active li:nth-child(6) {
        transform: translate(-5px, 430px) scale(1);
    }

    .menu-container.active li:nth-child(7) {
        transform: translate(-5px, 505px) scale(1);
    }

    .sunray-links li a {
        width: 70px !important;
        /* More compact circles for mobile */
        height: 70px !important;
        padding: 5px !important;
    }

    .sunray-links li a i {
        font-size: 1.1rem !important;
        /* Scaled down icons */
        margin-bottom: 4px !important;
        font-weight: 700 !important;
    }

    .sunray-links li a span {
        font-size: 0.65rem !important;
        /* Sharper text */
        letter-spacing: 1px !important;
        font-weight: 600 !important;
    }

    .sunray-beams {
        display: none !important;
        /* Hide beams on mobile for clarity */
    }

    /* Compact Experience Button (Responsive Option B) */
    .exp-btn-round {
        --exp-size: 75px;
        --exp-pos-x: 25px;
        --exp-pos-y: 88%;
        --exp-fs: 1.6rem;
    }
}