/* --- Elite Global style.css (Heavy-Duty Edition) --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    --primary: #8b5cf6; /* Matches branch.css */
    --primary-glow: rgba(139, 92, 246, 0.4);
    --navy: #020617; /* High-contrast navy */
    --bg-light: #0f172a; 
    --white: #ffffff;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    /* Radial gradients from branch.css */
    background-color: var(--navy);
    background-image: radial-gradient(circle at 15% 15%, #1e1b4b 0%, transparent 40%),
                      radial-gradient(circle at 85% 85%, #2e1065 0%, transparent 40%);
    color: var(--white);
    padding-top: 110px; 
    padding-bottom: 90px; 
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 🏛️ Floating Glass Navbar --- */
.navbar {
    position: fixed;
    top: 20px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90%; 
    max-width: 1200px;
    height: 75px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 25px; 
    z-index: 1000;
    animation: navSlideDown 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

@keyframes navSlideDown {
    from { transform: translate(-50%, -100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.nav-logo { 
    font-size: 1.6rem; 
    font-weight: 800; 
    color: var(--white); 
    letter-spacing: -1px;
}

.nav-logo span { 
    color: var(--primary); 
    text-shadow: 0 0 15px var(--primary-glow);
}

/* Branch Link (Heavy Styling) */
.branch-trigger-link {
    text-decoration: none;
    background: var(--primary);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px var(--primary-glow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.1);
}

.branch-trigger-link:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.2);
}

/* --- 🚀 Main Layout & Hero --- */
.kiosk-wrapper {
    max-width: 1250px; 
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-section {
    margin-bottom: 60px;
    animation: fadeIn 0.8s ease-out;
}

/* Heavy Typography from branch.css */
.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
    letter-spacing: -3px;
    line-height: 1;
}

.hero-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- 📦 3-Column Bento Grid --- */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    padding: 20px 0;
}

.service-card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    padding: 60px 30px;
    border-radius: 40px; 
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); 
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow);
    border-color: var(--primary);
}

/* Holographic Icon Box */
.icon-box {
    font-size: 3.5rem;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.03);
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    transition: 0.4s;
    border: 1px solid var(--glass-border);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* --- 📡 History & Marquee (Heavy Mode) --- */
.history-section {
    padding: 80px 0;
    background: rgba(0,0,0,0.2);
}

.marquee-window {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: var(--glass);
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

@keyframes scrollSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Jumps back seamlessly if data is tripled in JS */
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollSlide 30s linear infinite;
}

.history-card {
    min-width: 320px;
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 30px;
    border-top: 5px solid var(--primary); /* Success Purple */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    text-align: left;
}

/* --- 🛡️ Footer Styles --- */
.footer {
    position: fixed;
    bottom: 0; 
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-muted);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
}

/* --- 📱 Responsive Breakpoints --- */
@media (max-width: 1024px) {
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-section h1 { font-size: 3rem; letter-spacing: -2px; }
}

@media (max-width: 700px) {
    .menu-grid { grid-template-columns: 1fr; }
    .navbar { width: 95%; padding: 0 20px; border-radius: 20px; }
}

/* --- Elite Intro Overlay --- */
.intro-overlay {
    position: fixed;
    inset: 0;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Higher than navbar */
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
    background-image: radial-gradient(circle at center, #1e1b4b 0%, var(--navy) 70%);
}

.intro-content {
    text-align: center;
    animation: pulseEntry 1.5s ease-out;
}

@keyframes pulseEntry {
    from { opacity: 0; transform: scale(0.9); filter: blur(10px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.intro-logo {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.intro-logo span {
    color: var(--primary);
    text-shadow: 0 0 30px var(--primary-glow);
}

/* --- ⏳ 5-Second Progress Bar Logic --- */
.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    /* Animates for exactly 5 seconds */
    animation: loadProgress 5s linear forwards; 
}

@keyframes loadProgress {
    to { width: 100%; }
}

.intro-tagline {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 20px;
}

/* --- 👋 Exit State --- */
.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}