/* Global Styles & Desktop First */
:root {
    --primary-color: #1A2E44;
    --secondary-color: #FFD700;
    --text-color: #FFFFFF;
    --accent-color: #007bff;
    --hover-color: #FFEA80;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 80px; /* Default padding for fixed header on desktop */
    background-color: #f4f7f6;
    color: #333;
}

body.no-scroll {
    overflow: hidden;
}

/* Site Header - Fixed Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 60px;
    box-sizing: border-box;
}

.site-header .header-top-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.site-header .logo {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 0;
    order: 1; /* Desktop: Logo on left */
    display: block; /* Ensure logo is always visible */
}

.site-header .logo:hover {
    opacity: 0.9;
}

/* Main Navigation - Desktop */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static; /* Desktop: Normal flow */
    transform: translateX(0); /* Ensure visible on desktop */
    transition: none; /* No transition on desktop */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 0;
    transition: color 0.3s ease;
    white-space: nowrap; /* Prevent wrapping */
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--secondary-color);
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex;
    gap: 15px;
    margin-left: auto;
    order: 3; /* Desktop: Buttons on right */
}

.mobile-nav-buttons {
    display: none; /* Hidden on desktop */
}

/* General Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
}

.btn-register {
    background-image: linear-gradient(to right, #FF4B2B, #FF416C);
    color: var(--text-color);
}

.btn-register:hover {
    background-image: linear-gradient(to right, #FF416C, #FF4B2B);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-login {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-login:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.btn-download {
    background-image: linear-gradient(to right, #2ECC71, #27AE60);
    color: var(--text-color);
}

.btn-download:hover {
    background-image: linear-gradient(to right, #27AE60, #2ECC71);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 10px; }
.hamburger-menu .bar:nth-child(3) { top: 20px; }

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Menu Overlay - Hidden on Desktop */
.mobile-menu-overlay {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 20px 20px;
    font-size: 15px;
    line-height: 1.6;
}

.footer-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    max-width: 30%;
}

.footer-section h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
}

.footer-section p,
.footer-section a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-nav-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-links li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        padding-top: 125px; /* Adjust padding for fixed header + mobile buttons */
    }

    .site-header {
        flex-direction: column; /* Stack elements vertically */
        align-items: stretch;
        padding: 10px 15px;
        min-height: auto;
    }

    .site-header .header-top-bar {
        width: 100%;
        justify-content: space-between;
    }

    .site-header .logo {
        font-size: 24px;
        text-align: center;
        flex: 1; /* Occupy available space to center */
        order: 2; /* Center logo */
        display: block; /* Ensure logo is visible */
    }

    .site-header .spacer {
        flex: 1; /* Push logo to center by balancing hamburger */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: 1;
    }

    .main-nav {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 75%;
        height: 100%;
        background-color: var(--primary-color);
        padding: 80px 20px 20px;
        box-sizing: border-box;
        transform: translateX(-100%); /* Off-screen by default */
        transition: transform 0.3s ease;
        z-index: 1000;
        justify-content: flex-start; /* Align menu items to top */
        overflow-y: auto;
    }

    .main-nav.active {
        display: flex; /* Show when active */
        transform: translateX(0); /* Slide in */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 5px;
    }

    .main-nav a {
        font-size: 18px;
        display: block;
        padding: 10px 0;
        width: 100%;
    }

    .desktop-nav-buttons {
        display: none; /* Hide desktop buttons on mobile */
    }

    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: var(--primary-color);
        z-index: 900; /* Below hamburger menu */
    }

    .mobile-nav-buttons .btn {
        padding: 8px 15px;
        font-size: 14px;
        border-radius: 20px;
    }

    .footer-content-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .footer-section h3 {
        text-align: center;
    }

    .footer-nav-links ul {
        align-items: center;
        padding: 0;
    }

    .footer-nav-links li {
        text-align: center;
    }
}