@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN TOKENS & VARIABLES (Default: Black and Red Dark Theme)
   ========================================================================== */
:root {
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Default Theme: Dark (Black and Red) */
    --bg-primary: #0a0b0d;
    --bg-secondary: #101115;
    --bg-tertiary: #16181e;
    --bg-card: rgba(22, 24, 30, 0.85);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --color-accent: #ff2e3b; /* Vibrant glowing red */
    --color-accent-hover: #ff525e;
    --color-accent-light: rgba(255, 46, 59, 0.15);
    --color-accent-rgb: 255, 46, 59;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(255, 46, 59, 0.25);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 25px rgba(255, 46, 59, 0.3);
    
    --video-overlay: rgba(10, 11, 13, 0.85);
    --glass-blur: blur(16px);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme override (Toggled via JS) */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fcfcfd;
    --bg-tertiary: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --text-primary: #0f1115;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    --color-accent: #e50914; /* Crimson gaming red */
    --color-accent-hover: #ff2e3b;
    --color-accent-light: rgba(229, 9, 20, 0.1);
    --color-accent-rgb: 229, 9, 20;
    
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(229, 9, 20, 0.2);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.2);
    
    --video-overlay: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-hover);
}

/* Selection */
::selection {
    background-color: var(--color-accent);
    color: #ffffff;
}

/* ==========================================================================
   UTILITY CLASSES & GRID SYSTEMS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 16px;
    font-weight: 400;
}

.highlight {
    color: var(--color-accent);
}

/* Glassmorphism utility */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-4px);
}

/* Button style */
.btn-primary {
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 14px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(var(--color-accent-rgb), 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease-out;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
}

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
}

.navbar.scrolled .logo img {
    height: 65px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Theme Toggle switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 48px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--text-muted);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.slider::before {
    background-color: #ffffff;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 18px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 2;
}

input:checked + .slider {
    background-color: var(--color-accent);
}

input:checked + .slider::before {
    transform: translateX(24px);
}

.slider svg {
    width: 12px;
    height: 12px;
    fill: #ffffff;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.slider .sun-icon {
    margin-left: 2px;
}

.slider .moon-icon {
    margin-right: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   HERO SECTION (With Gameplay Video Background)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        var(--video-overlay) 20%,
        var(--video-overlay) 80%,
        var(--bg-primary) 100%
    );
    z-index: 1;
    transition: background 0.5s ease;
}

.hero-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-tagline::before, .hero-tagline::after {
    content: '';
    width: 16px;
    height: 2px;
    background-color: var(--color-accent);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    display: block;
    background: linear-gradient(to right, var(--text-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ==========================================================================
   STATIONS SECTION
   ========================================================================== */
.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.station-card {
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.station-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg-tertiary);
}

.station-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.station-card:hover .station-image img {
    transform: scale(1.08);
}

.station-count-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 1;
}

.station-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.station-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.station-spec {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   CAFE MENU SECTION
   ========================================================================== */
.cafe-bg {
    background-color: var(--bg-secondary);
    position: relative;
}

.cafe-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: center;
}

.cafe-display {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cafe-display img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.cafe-overlay-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--color-accent);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-glow);
}

.cafe-description-card {
    padding: 40px;
    border-radius: 8px;
}

.cafe-description-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cafe-description-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* ==========================================================================
   THE EQUIPMENT ARENA SECTION
   ========================================================================== */
.eq-details-card {
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.eq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.eq-col h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eq-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.eq-col p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   LOCATION & CONTACT
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.detail-item svg {
    width: 24px;
    height: 24px;
    fill: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.detail-text h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.detail-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.map-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.25) 0%, rgba(var(--color-accent-rgb), 0) 70%);
    animation: beacon 3s infinite;
}

.map-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.map-text svg {
    width: 40px;
    height: 40px;
    fill: var(--color-accent);
}

.map-text h5 {
    font-size: 1rem;
    text-transform: uppercase;
}

.map-text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.custom-select, .custom-input {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.custom-select:focus, .custom-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-light);
}

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-success-msg {
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-about img {
    height: 80px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-links h4, .footer-hours h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 4px;
}

.footer-hours p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.footer-social a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: var(--shadow-glow);
}

.footer-social svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ==========================================================================
   ANIMATIONS & RESPONSIVENESS
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes beacon {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Mobile responsive fixes */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero-content-centered {
        padding: 0 10px;
    }
    
    .cafe-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .eq-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 30px 24px;
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-actions {
        margin-left: auto;
        margin-right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        max-width: 280px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Floating Socials */
.floating-socials {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    width: 60px;
    height: 60px;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-btn.whatsapp {
    background-color: #25d366;
}

.floating-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.6);
    color: white;
}

/* Adjust position on smaller screens */
@media (max-width: 768px) {
    .floating-socials {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    .floating-btn svg {
        width: 25px;
        height: 25px;
    }
}
