/* WebAR Brochure Design System - Osher Pulse */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background-color: transparent;
    color: #f3f4f6;
}

/* 2D HUD UI Overlay Container */
#ui-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

#ui-container * {
    pointer-events: auto;
}

/* Glassmorphism Header */
header {
    width: 100%;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.05);
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 10px;
    height: 10px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 12px #00f2fe;
    animation: pulseGlow 2s infinite;
}

.logo-text {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(to right, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 6px 14px;
    border-radius: 12px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00f2fe;
}

/* User Instruction Prompt */
#instruction-prompt {
    align-self: center;
    background: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 99px;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #00f2fe;
    text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: floatUpDown 3s ease-in-out infinite;
    pointer-events: none;
    text-align: center;
    max-width: 90%;
}

/* Bottom Control Drawer */
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-grid {
    display: grid;
    grid-template-cols: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .cta-grid {
        grid-template-cols: 1fr 1fr;
    }
}

/* Interactive Futuristic Buttons */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    color: #030712;
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #00f2fe;
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.1);
    color: #00f2fe;
}

.btn-reset {
    background: rgba(17, 24, 39, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #9ca3af;
    font-size: 11px;
    padding: 12px 18px;
    border-radius: 16px;
}

.btn-reset:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: #ef4444;
    color: #f87171;
}

a-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Fallback WebGL Viewer Mode */
#webgl-fallback {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #0f172a 0%, #030712 100%);
    overflow: hidden;
}

#fallback-starfield {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 25px 35px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 150px 80px, #fff, transparent),
        radial-gradient(1px 1px at 80px 220px, #fff, transparent),
        radial-gradient(2px 2px at 290px 140px, #fff, transparent);
    background-size: 300px 300px;
    opacity: 0.3;
    animation: rotateStars 200s linear infinite;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 12px #00f2fe;
    }
    50% {
        box-shadow: 0 0 20px #4facfe, 0 0 30px #00f2fe;
    }
    100% {
        box-shadow: 0 0 12px #00f2fe;
    }
}

@keyframes floatUpDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes rotateStars {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 2D Details Panel Overlay styling */
.details-panel-2d {
    background: rgba(17, 24, 39, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    align-self: center;
    width: 100%;
    max-width: 500px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.details-badge {
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(0, 242, 254, 0.15);
    color: #00f2fe;
    padding: 4px 10px;
    border-radius: 99px;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

#details-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}

#details-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #d1d5db;
    font-weight: 400;
}
