/* Basic Reset & Typography */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}
*, *::before, *::after {
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header Base Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1a1a1a; /* Dark solid background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    display: flex;
    flex-direction: column; /* Default to column for mobile, will change for desktop */
    justify-content: center;
    padding: 0 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    width: 100%;
    max-width: 1200px; /* Max width for content */
    margin: 0 auto;
}

.logo {
    font-size: 2em;
    font-weight: bold;
    color: #007bff; /* Primary color for logo */
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
}

/* Desktop Navigation */
.main-nav {
    display: flex; /* Initially hidden on mobile, shown on desktop */
    flex-grow: 1;
    justify-content: center;
}
.main-nav .nav-list {
    display: flex;
    gap: 25px;
}
.main-nav .nav-list a {
    color: #fff;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s ease;
}
.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: #007bff;
    transition: width 0.3s ease;
}
.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    color: #007bff;
}
.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

/* Header Buttons (Desktop) */
.header-buttons {
    display: flex;
    gap: 10px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline */
    color: #fff; /* Default text color for buttons */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-register {
    background: linear-gradient(45deg, #007bff, #0056b3); /* Primary color gradient */
    color: #fff;
}
.btn-register:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

.btn-login {
    background: linear-gradient(45deg, #28a745, #1e7e34); /* Secondary color gradient */
    color: #fff;
}
.btn-login:hover {
    background: linear-gradient(45deg, #1e7e34, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.4);
}

.btn-download {
    background: linear-gradient(45deg, #ffc107, #e0a800); /* Another bright color */
    color: #333; /* Dark text for bright background */
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}
.btn-download:hover {
    background: linear-gradient(45deg, #e0a800, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Higher than other header elements */
}
.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
}

/* Mobile Buttons Area */
.mobile-buttons-area {
    display: none; /* Hidden on desktop */
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #2a2a2a; /* Slightly lighter than header */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Lower than main header and hamburger */
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 20px;
    margin-top: 50px; /* Space from content */
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-col h3 {
    color: #fff;
    font-size: 1.2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    display: inline-block;
}
.footer-col p, .footer-col a {
    font-size: 0.9em;
    line-height: 1.8;
    color: #bbb;
}
.footer-col a:hover {
    color: #007bff;
}
.footer-nav ul li a {
    color: #bbb;
    padding: 5px 0;
    display: block;
}
.footer-nav ul li a:hover {
    color: #007bff;
    padding-left: 5px;
    transition: all 0.2s ease;
}

/* Responsive Styles for Mobile */
@media (max-width: 768px) {
    .site-header {
        min-height: auto;
        padding: 0;
    }

    .header-container {
        justify-content: space-between;
        padding: 10px 20px;
        min-height: 60px;
    }

    .logo {
        flex-grow: 1; /* Allows logo to take available space */
        text-align: center; /* Centers the logo */
        font-size: 1.8em;
    }

    .main-nav {
        display: none; /* Hide desktop nav */
        position: fixed;
        top: 0; /* Will be set dynamically by JS to be below header-container and mobile-buttons-area */
        left: -100%; /* Off-screen */
        width: 70%;
        height: 100vh;
        background-color: #2a2a2a; /* Mobile menu background */
        transition: left 0.3s ease;
        flex-direction: column;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1001; /* Higher than hamburger to cover content */
    }
    .main-nav.active {
        left: 0;
    }
    .main-nav .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 20px;
    }
    .main-nav .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav .nav-list a {
        padding: 15px 10px;
        width: 100%;
        display: block;
        color: #fff;
    }
    .main-nav .nav-list a::after {
        display: none; /* Hide hover effect on mobile menu */
    }
    .main-nav .nav-list a:hover {
        background-color: rgba(0, 123, 255, 0.2);
    }

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

    .hamburger-menu {
        display: block; /* Show hamburger */
        order: -1; /* Place it at the beginning */
        color: #fff;
    }

    .mobile-buttons-area {
        display: flex; /* Show mobile buttons */
        position: relative; /* Ensure it stays below the fixed header-container */
        z-index: 999; /* Below hamburger menu (1001) and main nav (1001), but above page content */
    }

    /* Hamburger menu animation */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-col {
        margin-bottom: 20px;
        min-width: unset;
        width: 100%;
    }
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-nav ul li {
        flex: 1 1 auto;
        min-width: 100px;
    }
}