/* ==========================================================================
   TN-BOTIFY 2026 - STYLE5.CSS (PIXAR ROBOT CINEMA & GUIDE EXPERIENCE)
   ========================================================================== */

:root {
    --primary: #FF3B30;
    --primary-hover: #E02B20;
    --secondary: #FF9500;
    --secondary-hover: #E08400;
    --accent: #E5E5EA;
    --accent-dark: #8E8E93;
    --bg-white: #FFFFFF;
    --bg-offwhite: #F2F2F7;
    --text-dark: #1C1C1E;
    --text-muted: #636366;
    --border-light: rgba(0, 0, 0, 0.08);
    --font-orbitron: 'Orbitron', sans-serif;
    --font-outfit: 'Outfit', 'Inter', sans-serif;
    --shadow-premium: 0 20px 40px rgba(255, 59, 48, 0.08), 0 1px 3px rgba(0,0,0,0.02);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-outfit);
    background-color: var(--bg-white);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar for Pixar theme */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-offwhite);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-dark);
    border-radius: 5px;
    border: 2px solid var(--bg-offwhite);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- CINEMA HUB LAYOUT --- */

/* Fixed Three.js Viewport */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: auto;
}

/* Background overlay for styling */
.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

/* Floating HUD Controls */
.cinema-hud {
    position: fixed;
    top: 30px;
    left: 30px;
    right: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

.hud-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.hud-logo img {
    height: 36px;
    width: auto;
}

.hud-logo h1 {
    font-family: var(--font-orbitron);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary);
}

.hud-logo span {
    color: var(--text-dark);
    font-family: var(--font-outfit);
    font-size: 13px;
    font-weight: 500;
    opacity: 0.6;
}

.hud-actions {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.hud-btn {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.hud-btn:hover {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 59, 48, 0.25);
}

.hud-btn.active {
    background: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

/* Scroll Indicator */
.scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-hint .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--accent-dark);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-hint .wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- THE MOVIE SCENES CONTAINER --- */
/* Scrollable element to drive GSAP ScrollTrigger */
#scroll-container {
    position: relative;
    width: 100%;
    z-index: 3;
    pointer-events: none; /* Let events fall through to canvas unless overriding */
}

.scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    pointer-events: none;
}

/* Custom layout placement for subtitles/HUD data */
.cinema-subtitle-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
    padding: 35px;
    border-radius: 28px;
    max-width: 460px;
    box-shadow: var(--shadow-premium);
    pointer-events: auto;
    transform: translateY(50px);
    opacity: 0;
    transition: opacity 0.8s var(--transition), transform 0.8s var(--transition);
}

.cinema-subtitle-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.subtitle-badge {
    background: rgba(255, 59, 48, 0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.cinema-subtitle-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.cinema-subtitle-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Interactive elements inside subtitle cards */
.interactive-action-btn {
    background: var(--text-dark);
    color: var(--bg-white);
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.interactive-action-btn:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* --- SPECIFIC CINEMATIC OVERLAYS --- */

/* Opening preloader overlay */
/* Opening preloader overlay with technical blueprint grid */
#intro-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-white);
    background-image: 
        radial-gradient(circle at center, transparent 35%, var(--bg-white) 100%),
        linear-gradient(rgba(255, 59, 48, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 59, 48, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 25px 25px, 25px 25px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.assembly-bay {
    position: relative;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(255, 59, 48, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 50px rgba(255, 59, 48, 0.06);
}

.assembly-bay::after {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--secondary);
    animation: rotateRadar 2.5s linear infinite;
}

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

.blueprint-svg {
    transform: scale(0.9);
}

.blueprint-line, .blueprint-circle, .blueprint-rect, .blueprint-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawStroke 4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

.preloader-status {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
}

.preloader-status h3 {
    font-family: var(--font-orbitron);
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.progress-bar {
    width: 240px;
    height: 5px;
    background: var(--accent);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 8px rgba(255, 59, 48, 0.5);
    transition: width 0.1s linear;
}

.loader-log {
    font-family: var(--font-orbitron);
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    height: 15px;
    opacity: 0.8;
}

/* Laser writer display text */
#laser-text-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-orbitron);
    font-size: 4.5vw;
    font-weight: 900;
    text-align: center;
    color: var(--primary);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

/* Laser sparks canvas overlay */
#spark-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* Regional Cities Grid (Cinema style) */
.cities-browser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.city-pill {
    background: var(--bg-offwhite);
    border: 1px solid transparent;
    padding: 10px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.city-pill:hover {
    background: rgba(255, 59, 48, 0.05);
    border-color: rgba(255, 59, 48, 0.2);
    color: var(--primary);
    transform: translateX(4px);
}

.city-pill.active {
    background: var(--primary);
    color: var(--bg-white);
}

.city-pill i {
    font-size: 14px;
}

/* Interactive Registration Portal Box */
.cinema-register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid var(--accent);
    outline: none;
    font-family: var(--font-outfit);
    font-size: 14px;
    background: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255,59,48,0.1);
}

.submit-btn {
    background: var(--primary);
    color: var(--bg-white);
    border: none;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.15);
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Success Card overlay */
.success-announcement {
    text-align: center;
    display: none;
    animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-announcement i {
    font-size: 48px;
    color: var(--secondary);
    margin-bottom: 15px;
}

/* --- INSTRUCTION TIPS OVERLAY --- */
.interaction-tip {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(28, 28, 30, 0.95);
    color: var(--bg-white);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    opacity: 0.8;
}

.interaction-tip i {
    color: var(--secondary);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- DARK MODE OVERRIDES --- */
body.dark-mode {
    --bg-white: #0f172a;
    --bg-offwhite: #090d16;
    --text-dark: #f8fafc;
    --text-muted: #94a3b8;
    --border-light: rgba(255, 255, 255, 0.08);
    --accent: #1e293b;
    --accent-dark: #475569;
}

body.dark-mode .cinema-subtitle-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(255,255,255,0.02);
}

body.dark-mode .hud-logo,
body.dark-mode .hud-btn {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

body.dark-mode .hud-logo span {
    color: #f8fafc;
}

body.dark-mode .hud-btn:hover {
    background: var(--primary);
    color: #ffffff;
}

body.dark-mode .hud-btn.active {
    background: var(--primary);
    color: #ffffff;
}

body.dark-mode .city-pill {
    background: #1e293b;
    color: #94a3b8;
}

body.dark-mode .city-pill:hover {
    background: rgba(255, 59, 48, 0.15);
    color: var(--primary);
}

body.dark-mode .city-pill.active {
    background: var(--primary);
    color: #ffffff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    border-color: var(--primary);
}

body.dark-mode #intro-curtain {
    background: #0f172a;
}

body.dark-mode .assembly-bay {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .preloader-status h3 {
    color: #f8fafc;
}

body.dark-mode .scroll-hint {
    color: #94a3b8;
}

body.dark-mode .scroll-hint .mouse {
    border-color: #475569;
}

body.dark-mode .vignette-overlay {
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
}
