:root {
    --primary-color: #0A2463;
    --accent-color: #FFD700;
    --text-color: #ffffff;
    --header-height-desktop: 70px;
    --header-height-mobile-top: 60px;
    --mobile-button-area-height: 50px; /* Approximate height for the mobile button area */
}

/* Base Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text-color);
    background-color: #1a1a1a; /* Dark background for contrast */
    padding-top: var(--header-height-desktop); /* Desktop padding for fixed header */
}

/* Header - Fixed & Suspended */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height-desktop);
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column; /* Default to column, will be overridden by desktop for content-wrapper */
    justify-content: center;
    align-items: center;
}

.header-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    min-height: var(--header-height-desktop);
}

.logo, .logo-footer {
    font-size: 28px;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block; /* Ensure logo is always visible */
}

/* Main Navigation (Desktop First) */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* Desktop horizontal */
}

.main-nav li {
    margin: 0 15px;
}

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

.main-nav a:hover {
    color: var(--accent-color);
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Push to the right */
}

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

.btn-register {
    background-image: linear-gradient(45deg, #FFD700, #FFA500);
    color: var(--primary-color);
    border: none;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-download {
    background-image: linear-gradient(45deg, #00BFFF, #1E90FF);
    color: var(--text-color);
    border: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.btn-login {
    background-image: linear-gradient(45deg, #FF6347, #FF4500);
    color: var(--text-color);
    border: none;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    color: var(--text-color);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

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

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

/* Mobile Button Area (Hidden on Desktop) */
.mobile-button-area {
    display: none;
}

/* Mobile Menu Overlay (Hidden by default) */
.mobile-menu-overlay {
    display: none;
}

/* Footer */
.site-footer {
    background-color: #111;
    color: #ccc;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #333;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-column {
    flex: 1;
    min-width: 180px;
    margin-bottom: 20px;
    text-align: left;
}

.footer-column h3 {
    font-size: 18px;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.6;
    color: #aaa;
}

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

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

.footer-nav a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.logo-footer {
    font-size: 24px;
    margin-bottom: 15px;
    display: inline-block;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    body {
        /* Adjust padding-top for fixed header and mobile button area */
        padding-top: calc(var(--header-height-mobile-top) + var(--mobile-button-area-height));
    }

    .site-header {
        min-height: var(--header-height-mobile-top);
        flex-direction: column; /* Stack header content and mobile buttons */
    }

    .header-content-wrapper {
        min-height: var(--header-height-mobile-top);
        padding: 0 15px;
        justify-content: space-between; /* Space out hamburger, logo */
    }

    .hamburger-menu {
        display: block; /* Show hamburger on mobile */
        order: 1;
        margin-right: auto; /* Push hamburger to left */
    }

    .logo {
        order: 2;
        flex-grow: 1; /* Allow logo to take available space for centering */
        text-align: center; /* Center logo */
        font-size: 24px;
        margin-left: -45px; /* Adjust for hamburger width to truly center */
    }

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

    .main-nav {
        display: none; /* Hide main nav by default on mobile */
        position: fixed;
        top: var(--header-height-mobile-top);
        left: 0;
        width: 80%; /* Menu width */
        height: calc(100vh - var(--header-height-mobile-top)); /* Full height minus header */
        background-color: var(--primary-color);
        flex-direction: column; /* Vertical menu items */
        align-items: flex-start;
        padding: 20px;
        transform: translateX(-100%); /* Slide out to the left */
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }

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

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

    .main-nav li {
        margin: 10px 0;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 10px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav li:last-child a {
        border-bottom: none;
    }

    .mobile-button-area {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        width: 100%;
        background-color: var(--primary-color);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        z-index: 999; /* Below hamburger menu, above main content */
        flex-wrap: wrap;
        min-height: var(--mobile-button-area-height);
    }

    .mobile-button-area .btn {
        flex: 1 1 auto; /* Allow buttons to wrap and grow */
        max-width: 150px;
        padding: 8px 15px;
        font-size: 14px;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
        z-index: 998;
        display: none; /* Hidden by default */
    }

    .mobile-menu-overlay.active {
        display: block; /* Show when active */
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-column {
        text-align: center;
        min-width: unset;
        width: 100%;
    }
    
    .footer-column h3 {
        text-align: center;
    }

    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-nav li {
        flex: 1 1 auto;
        margin: 5px 10px;
        min-width: 100px;
    }

    .footer-nav a {
        display: block;
    }
}

/* Utility for no scroll */
body.no-scroll {
    overflow: hidden;
}