/* Base styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 60px; /* Ensure content adaptation */
    background-color: #0d1a2f; /* Solid dark background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex; /* Desktop: flex for horizontal layout */
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Distribute logo, nav, buttons */
    padding: 0 20px;
}

.header-top {
    display: flex; /* Always flex, but its children change based on media query */
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #ffc107; /* Highlight color for logo */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    padding: 5px 0;
    flex-shrink: 0; /* Prevent logo from shrinking on desktop */
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1003; /* Highest for interaction */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffc107;
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.header-right-desktop {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevent buttons from shrinking on desktop */
}

.header-right-placeholder {
    display: none; /* Hidden on desktop */
}

.header-buttons-mobile {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
    z-index: 1001; /* Below hamburger, above content */
}

.main-nav {
    display: flex; /* Desktop: flex for menu items */
    justify-content: center;
    flex-grow: 1; /* Allow nav to take central space on desktop */
    z-index: 998; /* Default for desktop, lower than header-top */
}

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

.main-nav li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: #ffc107;
}

/* Button styles */
.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 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #007bff);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 123, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    color: #333;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #e0a800, #ffc107);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 193, 7, 0.6);
    transform: translateY(-2px);
}

/* Footer styles */
.site-footer {
    background-color: #0d1a2f;
    color: #ccc;
    padding: 40px 20px 20px;
    font-size: 14px;
    border-top: 5px solid #007bff;
}

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

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column h3 {
    color: #ffc107;
    font-size: 18px;
    margin-bottom: 15px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
    display: inline-block;
}

.footer-column p {
    margin: 0 0 10px 0;
}

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

.footer-nav li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #ffc107;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 15px;
    }
    .header-right-desktop .btn {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column; /* Stack header-top and header-buttons-mobile */
        min-height: auto;
        padding: 0 15px;
        justify-content: flex-start; /* Reset desktop justify */
    }
    .header-top {
        width: 100%;
        padding: 8px 0;
        justify-content: space-between; /* Distribute hamburger, logo, placeholder */
    }
    .logo {
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center the logo text */
        font-size: 24px;
        flex-shrink: 1; /* Allow shrinking on mobile if needed */
    }
    .hamburger-menu {
        display: block;
        z-index: 1003;
    }
    .header-right-desktop {
        display: none; /* Hide desktop buttons */
    }
    .header-right-placeholder {
        display: block; /* Show placeholder to balance logo centering */
        width: 45px; /* Approximate width of hamburger for balance */
        height: 45px; /* Approximate height of hamburger for balance */
    }
    .header-buttons-mobile {
        display: flex; /* Show mobile buttons */
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        background-color: #1a2c42;
        z-index: 1001;
        justify-content: center;
        align-items: center;
    }
    .main-nav {
        position: fixed; /* Overlay the entire page */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #0d1a2f;
        flex-direction: column;
        display: none; /* Hidden by default */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 1002; /* Above buttons, below hamburger */
        overflow-y: auto;
        padding-top: 120px; /* This will be set dynamically by JS */
        flex-grow: 0; /* Reset flex-grow from desktop */
    }
    .main-nav.active {
        display: flex;
    }
    .main-nav ul {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
    }
    .main-nav li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 18px;
    }
    .main-nav li:last-child a {
        border-bottom: none;
    }
    /* Hamburger animation */
    .hamburger-menu .bar {
        transition: 0.4s;
    }
    .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-column {
        min-width: unset;
        width: 100%;
    }
    .footer-column h3 {
        margin-top: 20px;
    }
    .footer-nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-nav li {
        flex: 0 0 auto;
    }
    .footer-nav li a {
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    .btn-mobile {
        padding: 8px 15px;
        font-size: 14px;
    }
    .site-header {
        padding: 0 10px;
    }
    .main-nav {
        /* padding-top will be dynamically set by JS */
    }
}
