/* ============================================
   VAVO Puzzles Coming Soon - Premium Landing Page
   ============================================ */

:root {
    /* Teal/Turquoise Palette (from brand) */
    --color-teal-light: #5BBFBA;
    --color-teal: #3BA99F;
    --color-teal-dark: #2A847C;
    --color-teal-deep: #1D6B65;

    /* Navy/Slate Tones */
    --color-navy: #3D4F5F;
    --color-navy-dark: #2A3844;
    --color-slate: #4A5D6D;

    /* Neutral */
    --color-white: #FAFAFA;
    --color-off-white: #F0F5F4;
    --color-light-grey: #E8EFEE;

    /* Accent */
    --color-accent: #4DB6AC;

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-family);
    background: url('ocean-bg.jpg') center center / cover no-repeat fixed;
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Canvas Background */
#puzzle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero Section */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    pointer-events: none;
}

.content {
    text-align: center;
    pointer-events: auto;
}

/* Theme-based Logo Image */
.logo-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 400px;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .logo-image {
        max-width: 280px;
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 220px;
        max-height: 220px;
    }
}

/* SVG Logo (for Mandala theme) - JS controls positioning */
.logo-interactive {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.logo-shapes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.shape {
    position: relative;
    overflow: visible;
}

.shape-svg {
    filter: drop-shadow(0 4px 20px rgba(0, 255, 255, 0.4));
}

.neon-letter {
    animation: neonPulse 3s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6)) drop-shadow(0 0 20px rgba(0, 255, 255, 0.4)) drop-shadow(0 0 40px rgba(0, 255, 255, 0.2));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.8)) drop-shadow(0 0 30px rgba(0, 255, 255, 0.6)) drop-shadow(0 0 60px rgba(0, 255, 255, 0.3));
    }
}

.shape-1,
.shape-2,
.shape-3 {
    width: 110px;
    height: 110px;
}

.shape-4 {
    width: 110px;
    height: 110px;
}

.shape-2,
.shape-3 {
    margin-left: -22px;
}

.shape-4 {
    margin-left: 8px;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
    margin-top: 15px;
}

/* Holographic rainbow layer - hidden for neon letters */
.holographic-layer {
    display: none;
    /* Disable for neon tube style */
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    pointer-events: none;
    mix-blend-mode: color;
    opacity: 0.8;
    transition: opacity 0.1s ease-out;
    z-index: 2;
}

/* Specular highlight layer - hidden for neon letters */
.specular-layer {
    display: none;
    /* Disable for neon tube style */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 3;
}

/* Neon letters don't need the dark background overlay */

/* Shape sizes - matching reference proportions */
.shape-1 {
    width: 110px;
    height: 110px;
}

.shape-2 {
    width: 110px;
    height: 110px;
}

.shape-3 {
    width: 110px;
    height: 110px;
}

.shape-4 {
    width: 110px;
    height: 110px;
}

/* Hover effects - enhanced holographic glow */
.shape:hover .shape-svg {
    filter: drop-shadow(0 6px 25px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.4));
}

.shape:hover .holographic-layer {
    opacity: 1;
}

/* PUZZLES text - Montserrat Bold with wide letter spacing */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #ffffff;
    display: inline-block;
    white-space: nowrap;
    transition: transform 0.1s ease-out, text-shadow 0.1s ease-out;
    will-change: transform, text-shadow;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

/* Subtle ambient animation */
@keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Floating physics handles animation now */

/* Headline */
.headline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s var(--transition-smooth) 0.4s both;
}

/* Subheadline */
.subheadline {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s var(--transition-smooth) 0.6s both;
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    text-align: right;
    pointer-events: auto;
    animation: fadeIn 1s var(--transition-smooth) 1s both;
}

.footer p {
    font-size: 0.6875rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
    line-height: 1.6;
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.footer a:hover {
    color: var(--color-white);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {

    .shape-1,
    .shape-2,
    .shape-3 {
        width: 70px;
        height: 70px;
    }

    .shape-4 {
        width: 60px;
        height: 60px;
    }

    .shape-2,
    .shape-3 {
        margin-left: -14px;
    }

    .shape-4 {
        margin-left: 5px;
    }

    .logo-text {
        font-family: 'Montserrat', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.5em;
        text-transform: uppercase;
    }

    .footer {
        padding: 1rem 1.25rem;
    }

    .footer p {
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 0 1rem;
    }

    .shape-1,
    .shape-2,
    .shape-3 {
        width: 55px;
        height: 55px;
    }

    .shape-4 {
        width: 48px;
        height: 48px;
    }

    .shape-2,
    .shape-3 {
        margin-left: -11px;
    }

    .shape-4 {
        margin-left: 4px;
    }

    .logo-text {
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 700;
        letter-spacing: 0.5em;
        text-transform: uppercase;
    }

    .subheadline br {
        display: none;
    }
}

/* ============================================
   ELEGANT SETTINGS PANEL - Glassmorphism
   ============================================ */

.settings-wrapper {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    animation: fadeIn 1s var(--transition-smooth) 1.2s both;
    transition: opacity 0.4s ease;
}

.settings-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Settings Toggle Button */
.settings-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s var(--transition-smooth);
}

.settings-toggle:hover {
    transform: scale(1.1) rotate(45deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.settings-toggle.active {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.35);
}

/* Settings Panel - Glassmorphism */
.settings-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s var(--transition-smooth);
    pointer-events: none;
}

.settings-panel.expanded {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Settings Buttons - Icon Only */
.settings-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--transition-smooth);
    position: relative;
}

.settings-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.settings-btn.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Tooltip on hover */
.settings-btn::after,
.settings-slider::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    margin-left: 10px;
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.7rem;
    font-family: var(--font-family);
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.settings-btn:hover::after,
.settings-slider:hover::after {
    opacity: 1;
}

/* Settings Sliders */
.settings-slider {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    position: relative;
}

.settings-slider input[type="range"] {
    width: 60px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.settings-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease;
}

.settings-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.settings-slider input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .settings-wrapper {
        bottom: 1rem;
        left: 1rem;
    }

    .settings-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .settings-panel {
        padding: 0.75rem;
    }

    .settings-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .settings-slider input[type="range"] {
        width: 50px;
    }
}

/* ============================================
   MOBILE OPTIMIZATIONS - Simplified Version
   ============================================ */

/* Mobile device class applied via JS */
.mobile-device {
    background: url('bg-mandala.jpg') center center / cover no-repeat fixed !important;
}

/* Mobile background button */
.mobile-bg-btn {
    display: none;
}

.mobile-device .mobile-bg-btn {
    display: flex;
    position: fixed;
    bottom: 4rem;
    right: 1rem;
    z-index: 200;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    color: white;
    font-family: var(--font-family);
    font-size: 0.75rem;
    cursor: pointer;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.mobile-device #puzzle-canvas {
    display: none !important;
}

.mobile-device .controls {
    display: none !important;
}

.mobile-device .settings-wrapper {
    display: none !important;
}

/* Static centered logo on mobile */
.mobile-device .logo-interactive {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-device .logo-shapes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: auto;
    height: auto;
}

.mobile-device .shape {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    transition: none !important;
    will-change: auto !important;
}

/* Disable all heavy SVG filters on mobile */
.mobile-device .neon-letter {
    animation: none !important;
    filter: none !important;
}

.mobile-device .shape-svg {
    filter: drop-shadow(0 0 10px currentColor) !important;
}

/* Simplified neon glow via CSS only */
.mobile-device .shape-svg path,
.mobile-device .shape-svg circle {
    filter: none !important;
}

/* Hide holographic layers completely */
.mobile-device .holographic-layer,
.mobile-device .specular-layer {
    display: none !important;
}

/* Mobile shape sizes */
.mobile-device .shape-1,
.mobile-device .shape-2,
.mobile-device .shape-3 {
    width: 65px !important;
    height: 65px !important;
    margin: 0 -8px;
}

.mobile-device .shape-4 {
    width: 60px !important;
    height: 60px !important;
    margin-left: 2px;
}

/* PUZZLES text - static on mobile */
.mobile-device .logo-text {
    position: relative !important;
    transform: none !important;
    left: auto !important;
    top: auto !important;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
    will-change: auto !important;
}

/* Footer adjustments for mobile */
.mobile-device .footer {
    font-size: 0.5rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
    left: 0;
    right: 0;
}

.mobile-device .footer p {
    font-size: 0.45rem;
    line-height: 1.4;
}

/* Prevent any JS-based transforms on mobile */
.mobile-device [style*="transform"] {
    transform: none !important;
}

/* Smooth scrolling disabled for performance */
.mobile-device {
    scroll-behavior: auto;
}

/* Reduce motion for accessibility & performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Version Stamp */
/* Coming Soon Banner */
.coming-soon-banner {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    pointer-events: none;
}

@media (max-width: 768px) {
    .coming-soon-banner {
        font-size: 1.1rem;
        bottom: 4rem;
    }
}

.version-stamp {
    position: fixed;
    bottom: 0.75rem;
    right: 0.75rem;
    z-index: 50;
    font-size: 0.625rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.05em;
    pointer-events: none;
    user-select: none;
}

@media (max-width: 768px) {
    .version-stamp {
        font-size: 0.5rem;
        bottom: 0.5rem;
        right: 0.5rem;
    }
}

/* ============================================
   AUTO-ROTATE TIMER BUTTON - Top Right
   ============================================ */

.auto-rotate-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    min-width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--transition-smooth);
    animation: fadeIn 1s var(--transition-smooth) 1s both;
    overflow: hidden;
}

.auto-rotate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            rgba(0, 255, 255, 0.6) 0%,
            rgba(0, 255, 255, 0.6) var(--progress, 100%),
            transparent var(--progress, 100%),
            transparent 100%);
    opacity: 0.5;
    z-index: -1;
    transition: background 0.1s linear;
}

.auto-rotate-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.auto-rotate-btn.paused {
    border-color: rgba(255, 100, 100, 0.5);
    background: rgba(255, 100, 100, 0.2);
}

.auto-rotate-btn.paused::before {
    background: conic-gradient(from 0deg,
            rgba(255, 100, 100, 0.6) 0%,
            rgba(255, 100, 100, 0.6) var(--progress, 100%),
            transparent var(--progress, 100%),
            transparent 100%);
}

.auto-rotate-btn .pause-icon {
    display: none;
    font-size: 1.2rem;
}

.auto-rotate-btn.paused .timer-value {
    display: none;
}

.auto-rotate-btn.paused .pause-icon {
    display: block;
}

@media (max-width: 768px) {
    .auto-rotate-btn {
        top: 1rem;
        right: 1rem;
        min-width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}