/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --color-dark: #0b0b14;       /* Deepest background */
    --color-darker: #050508;     /* Header/Footer background */
    --color-primary: #00e0ff;    /* Cyan/Blue Neon */
    --color-secondary: #ff0055;  /* Pink/Red Neon */
    --color-tertiary: #00ff9d;   /* Green Neon */
    --color-light: #ffffff;      /* Headings */
    --color-text: #cccccc;       /* Body text */
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-dark);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* =========================================
   2. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: rgba(5, 5, 8, 0.95);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--color-primary);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

/* Mobile Hamburger Button */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-light);
    position: absolute;
    left: 0;
    transition: 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

/* Mobile Menu Active State */
.nav-links.active {
    right: 0;
}

/* Hamburger Animation when Active */
.nav-links.active + .hamburger span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.nav-links.active + .hamburger span:nth-child(2) { opacity: 0; }
.nav-links.active + .hamburger span:nth-child(3) { transform: rotate(-45deg); top: 9px; }


/* =========================================
   4. BUTTONS
   ========================================= */
.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-darker);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--color-light);
    box-shadow: 0 0 25px rgba(0, 224, 255, 0.8);
    transform: translateY(-2px);
}

/* Outline Button Variant */
.cta-button.outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.cta-button.outline:hover {
    background: var(--color-primary);
    color: var(--color-darker);
    box-shadow: 0 0 20px rgba(0, 224, 255, 0.6);
}

/* =========================================
   5. PAGE HEADERS (Games, Rentals, etc.)
   ========================================= */
.page-header {
    padding: 140px 0 60px; /* Top padding clears the fixed header */
    text-align: center;
    background: radial-gradient(circle at center, rgba(0, 224, 255, 0.1), transparent 70%);
}

.page-title {
    font-size: 3rem;
    color: var(--color-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-title span {
    color: var(--color-primary);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background: var(--color-darker);
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto; /* Pushes footer to bottom if page content is short */
}

footer a:hover {
    color: var(--color-primary);
}

/* =========================================
   7. RESPONSIVE / MOBILE STYLES
   ========================================= */
@media (max-width: 768px) {
    
    /* Mobile Navigation Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 1000; /* Behind hamburger, above content */
        overflow-y: auto; /* Allows scrolling if menu is still too tall */
    }

    .nav-links li {
        margin: 10px 0; /* Reduced from 20px to 10px for tighter spacing */
    }

    .nav-links li a {
        font-size: 1.4rem; /* Slightly reduced font size for better fit */
    }

    .hamburger {
        display: block; /* Show hamburger on mobile */
    }
    
    /* Typography Adjustments */
    .page-title { font-size: 2.2rem; }
}

/* =========================================
   8. UTILITIES & FIXES
   ========================================= */

/* iOS Scroll Lock Fix - Apply this class to body via JS when menu opens */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
