:root {
    --bg-dark: #07080a;
    --bg-gradient: radial-gradient(circle at center, #15181e 0%, #08090c 65%, #020304 100%);
    --clock-size: clamp(320px, 70vw, 540px);
    --logo-size: clamp(150px, 32vw, 260px);
    
    /* Theme Switcher Variables (Default: Futuristic Green) */
    --accent-color: #00ff66;
    --accent-glow-subtle: rgba(0, 255, 102, 0.08);
    --accent-shadow: rgba(0, 255, 102, 0.22);
    --wave-color-1: rgba(0, 255, 102, 0.85);
    --wave-color-2: rgba(0, 220, 150, 0.4);
    --wave-color-3: rgba(0, 180, 255, 0.25);
    --wave-color-4: rgba(50, 255, 180, 0.3);
}

/* Cyan Accent */
[data-theme="cyan"] {
    --accent-color: #00f0ff;
    --accent-glow-subtle: rgba(0, 240, 255, 0.08);
    --accent-shadow: rgba(0, 240, 255, 0.22);
    --wave-color-1: rgba(0, 240, 255, 0.85);
    --wave-color-2: rgba(0, 180, 255, 0.4);
    --wave-color-3: rgba(0, 120, 255, 0.25);
    --wave-color-4: rgba(100, 230, 255, 0.3);
}

/* Indigo Accent */
[data-theme="indigo"] {
    --accent-color: #6366f1;
    --accent-glow-subtle: rgba(99, 102, 241, 0.12);
    --accent-shadow: rgba(99, 102, 241, 0.35);
    --wave-color-1: rgba(99, 102, 241, 0.85);
    --wave-color-2: rgba(168, 85, 247, 0.45);
    --wave-color-3: rgba(79, 70, 229, 0.25);
    --wave-color-4: rgba(192, 132, 252, 0.3);
}

/* Futuristic Orange Accent */
[data-theme="orange"] {
    --accent-color: #ff5500;
    --accent-glow-subtle: rgba(255, 85, 0, 0.1);
    --accent-shadow: rgba(255, 85, 0, 0.3);
    --wave-color-1: rgba(255, 85, 0, 0.85);
    --wave-color-2: rgba(255, 150, 0, 0.45);
    --wave-color-3: rgba(230, 40, 0, 0.25);
    --wave-color-4: rgba(255, 200, 50, 0.3);
}

/* Light Grey Accent */
[data-theme="lightgrey"] {
    --accent-color: #e2e8f0;
    --accent-glow-subtle: rgba(226, 232, 240, 0.12);
    --accent-shadow: rgba(226, 232, 240, 0.25);
    --wave-color-1: rgba(226, 232, 240, 0.75);
    --wave-color-2: rgba(148, 163, 184, 0.4);
    --wave-color-3: rgba(203, 213, 225, 0.2);
    --wave-color-4: rgba(241, 245, 249, 0.3);
}

/* Navy Blue Accent */
[data-theme="navy"] {
    --accent-color: #1d4ed8;
    --accent-glow-subtle: rgba(29, 78, 216, 0.15);
    --accent-shadow: rgba(29, 78, 216, 0.4);
    --wave-color-1: rgba(29, 78, 216, 0.85);
    --wave-color-2: rgba(30, 64, 175, 0.5);
    --wave-color-3: rgba(37, 99, 235, 0.3);
    --wave-color-4: rgba(96, 165, 250, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Textured futuristic background */
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gradient);
    z-index: 1;
}

/* Fine grain noise overlay */
.bg-texture {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Cyber grid lines for depth */
.bg-grid {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
    pointer-events: none;
}

/* Bottom Animated Sine Ribbon Wave Canvas Container (Max 100px) */
.wave-canvas-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
}

#waveCanvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ------------------------------------------------------------- */
/* Discrete Floating Logo Switcher (Top Left)                   */
/* ------------------------------------------------------------- */
.logo-toggle-wrapper {
    position: fixed;
    top: 1.8rem;
    left: 2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 18, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-icon-trigger:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-shadow);
}

.logo-icon-trigger svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.logo-icon-trigger .active-logo-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #000000;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--accent-color);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.logo-options-drawer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.6rem;
    border-radius: 30px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(-10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.logo-toggle-wrapper.expanded .logo-options-drawer {
    max-width: 260px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.drawer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-right: 0.2rem;
}

.logo-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.logo-btn.active, .logo-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 10px var(--accent-shadow);
}

/* ------------------------------------------------------------- */
/* Discrete Floating Accent Switcher (Top Right)                */
/* ------------------------------------------------------------- */
.theme-toggle-wrapper {
    position: fixed;
    top: 1.8rem;
    right: 2rem;
    z-index: 50;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 0.5rem;
}

/* Discrete Icon Trigger Button */
.theme-icon-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 18, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.theme-icon-trigger:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-shadow);
}

/* Palette Icon SVG */
.theme-icon-trigger svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

.theme-icon-trigger .active-dot-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Collapsible Options Drawer */
.theme-options-drawer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(15, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.6rem;
    border-radius: 30px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    
    /* Expand/Collapse Transition */
    max-width: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateX(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.theme-toggle-wrapper.expanded .theme-options-drawer {
    max-width: 480px;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.theme-toggle-wrapper.expanded .theme-icon-trigger svg {
    transform: rotate(45deg);
}

.theme-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.theme-btn .color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.theme-btn[data-color="green"] .color-dot { background: #00ff66; box-shadow: 0 0 5px #00ff66; }
.theme-btn[data-color="cyan"] .color-dot { background: #00f0ff; box-shadow: 0 0 5px #00f0ff; }
.theme-btn[data-color="indigo"] .color-dot { background: #6366f1; box-shadow: 0 0 5px #6366f1; }
.theme-btn[data-color="orange"] .color-dot { background: #ff5500; box-shadow: 0 0 5px #ff5500; }
.theme-btn[data-color="lightgrey"] .color-dot { background: #e2e8f0; box-shadow: 0 0 5px #e2e8f0; }
.theme-btn[data-color="navy"] .color-dot { background: #1d4ed8; box-shadow: 0 0 5px #1d4ed8; }

[data-theme="green"] .theme-btn[data-color="green"],
[data-theme="cyan"] .theme-btn[data-color="cyan"],
[data-theme="indigo"] .theme-btn[data-color="indigo"],
[data-theme="orange"] .theme-btn[data-color="orange"],
[data-theme="lightgrey"] .theme-btn[data-color="lightgrey"],
[data-theme="navy"] .theme-btn[data-color="navy"] {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 10px var(--accent-shadow);
}

.theme-btn:hover {
    border-color: var(--accent-color);
    color: #ffffff;
}

/* Main Center Wrapper */
.landing-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

/* Clock Outer Frame */
.clock-container {
    position: relative;
    width: var(--clock-size);
    height: var(--clock-size);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 0 60px rgba(0, 0, 0, 0.85),
        inset 0 0 35px rgba(0, 0, 0, 0.95),
        0 0 30px var(--accent-glow-subtle);
    background: rgba(12, 14, 18, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: box-shadow 0.4s ease;
}

/* Outer Glow Ring & Dial Ticks (No numbers) */
.clock-dial {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.clock-dial::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.tick-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
    margin-top: -50%;
    pointer-events: none;
}

.tick-mark::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 0;
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1px;
}

.tick-mark.major::before {
    top: 10px;
    height: 16px;
    width: 3px;
    margin-left: -0.5px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Transparent Logo directly inside the clock center */
.logo-center {
    position: absolute;
    width: var(--logo-size);
    height: auto;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 25px var(--accent-glow-subtle)) drop-shadow(0 8px 20px rgba(0,0,0,0.8));
    pointer-events: none;
    transition: filter 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-center img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Perimeter Clock Indicators / Hands orbiting around the logo */
.perimeter-hand {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
}

/* Hour Hand Pointer (+40% longer: 40px) */
.hour-pointer {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 40px;
    background: linear-gradient(to bottom, #ffffff, #a0b0c0);
    border-radius: 4px;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.7), 0 0 22px rgba(255, 255, 255, 0.35);
}

/* Minute Hand Pointer (+40% longer: 53px) */
.minute-pointer {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 53px;
    background: linear-gradient(to bottom, #ffffff, #607080);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* Second Hand Pointer (+40% longer: 67px) */
.second-pointer {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 67px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 16px var(--accent-color), 0 0 32px var(--accent-color);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.second-pointer::after {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    transition: box-shadow 0.4s ease;
}

/* Outer Orbit Track for Second hand indicator */
.orbit-track {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid var(--accent-glow-subtle);
    pointer-events: none;
    transition: border-color 0.4s ease;
}

/* Coming Soon & Brand Typography */
.text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.brand-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.85rem, 2.2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.65em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 0.65em;
}

/* Animated Shimmering Gradient for "Coming Soon" */
.coming-soon {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4.8vw, 3.2rem);
    font-weight: 800;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    background: linear-gradient(
        90deg, 
        #ffffff 0%, 
        #8a95a5 25%, 
        var(--accent-color) 50%, 
        #8a95a5 75%, 
        #ffffff 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 35px var(--accent-shadow);
    margin-left: 0.35em;
    animation: shimmerGradient 8s linear infinite;
    transition: text-shadow 0.4s ease;
}

@keyframes shimmerGradient {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

.subtext {
    font-size: clamp(0.7rem, 1.6vw, 0.85rem);
    font-weight: 200;
    letter-spacing: 0.28em;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .theme-toggle-wrapper {
        top: 1.2rem;
        right: 1.2rem;
    }
    .logo-toggle-wrapper {
        top: 1.2rem;
        left: 1.2rem;
    }
    .theme-options-drawer {
        flex-wrap: wrap;
        max-width: 0;
    }
    .theme-toggle-wrapper.expanded .theme-options-drawer {
        max-width: 260px;
    }
}

@media (max-height: 650px) {
    .landing-wrapper {
        gap: 1.1rem;
    }
    :root {
        --clock-size: clamp(240px, 50vh, 340px);
        --logo-size: clamp(110px, 22vh, 150px);
    }
}
