/* =========================================
   1. VARIABLES & THEME
   ========================================= */
:root {
    /* Brand Colors */
    --color-brand-red: #EE2A2A;
    /* Nannak Red */
    --color-brand-dark: #121212;
    /* Deep Black/Grey */
    --color-brand-teal: #00D1FF;
    /* Accent Teal from Cafu inspo (optional) */

    /* Backgrounds */
    --bg-body: #0a0a0a;
    --bg-card: #1E1E1E;
    --bg-card-hover: #2C2C2C;
    --bg-header: rgba(10, 10, 10, 0.95);

    /* Typography Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --text-muted: #666666;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Borders & Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --border-color: #333;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-brand-red);
    color: white;
}

.btn-primary:hover {
    background-color: #cc2222;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--color-brand-dark);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: -1.5rem auto var(--spacing-lg) auto;
    font-size: 1.1rem;
}

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
}

/* =========================================
   4. COMPONENTS
   ========================================= */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--bg-header);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem; /* Increased size for better touch target */
    cursor: pointer;
    padding: 0.5rem; /* Add padding for touch target */
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    padding-top: var(--header-height);
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Grid */
.services {
    padding: var(--spacing-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: var(--color-brand-red);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-brand-red);
    margin-bottom: var(--spacing-sm);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

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

/* How It Works */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--bg-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: -1.5rem;
    display: block;
    z-index: 0;
}

.step-content {
    position: relative;
    z-index: 1;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

/* App Download */
.app-download {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.app-highlight-box {
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, #1a1a1a 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.qr-code-placeholder {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
}

/* Footer */
.footer {
    background: black;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--color-brand-red);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    padding-top: var(--spacing-md);
    border-top: 1px solid #222;
}

/* Responsive */
@media (max-width: 768px) {
    /* Responsive Typography */
    .hero-content h1 {
        font-size: 2.5rem; /* Reduced from 4rem */
    }
    
    .hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    /* Navigation & Header */
    .mobile-only {
        display: inline-flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%; /* Slightly wider */
        height: 100vh;
        background: var(--bg-card); /* Ensure opaque background */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-smooth);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1002; /* Higher than button */
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1003; /* Highest z-index to be clickable over everything */
        position: relative;
    }
    
    /* Ensure Header actions don't overlap */
    .header-actions {
        display: flex;
        align-items: center;
    }
    
    /* Spacing adjustments */
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 5rem;
    }
}