/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Site Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1a1a1a; /* Solid dark background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Suspended visual effect */
    z-index: 1000; /* Ensure it's on top */
    min-height: 60px; /* Adaptive height */
    display: flex;
    flex-direction: column; /* Stack top bar and mobile buttons */
}

.header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #ffc107; /* Secondary color for logo */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
    margin-right: 20px; /* Space between logo and nav on desktop */
}

.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Center nav items on desktop */
}

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

.main-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li a.active {
    color: #007bff; /* Primary color on hover/active */
}

.desktop-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.header-mobile-buttons {
    display: none; /* Hidden by default, shown on mobile */
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: #2a2a2a; /* Slightly different background for distinction */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999; /* Below main nav overlay, but above page content */
}

.hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001; /* Above everything else */
    flex-shrink: 0;
    order: -1; /* Place at the beginning on mobile */
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu span:last-child {
    margin-bottom: 0;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px; /* Rounded corners */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none; /* No underline */
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Shadow for floating effect */
}

.btn-primary {
    background-color: #007bff; /* Primary color */
    color: #fff;
    border: none;
    animation: pulse 2s infinite; /* Example: subtle animation */
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #ffc107; /* Secondary color */
    color: #212529; /* Dark text for contrast */
    border: none;
}

.btn-secondary:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(0, 123, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 123, 255, 0); }
}

/* Site Footer */
.site-footer {
    background-color: #212529; /* Dark footer background */
    color: #f8f9fa;
    padding: 40px 20px;
    font-size: 14px;
}

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

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

.footer-section h3 {
    color: #ffc107; /* Secondary color for headings */
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.footer-section p {
    margin-bottom: 10px;
}

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

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

.footer-nav a {
    color: #f8f9fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #007bff; /* Primary color on hover */
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: #adb5bd;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-top-bar {
        padding: 10px 15px;
        position: relative; /* For absolute positioning of logo */
    }

    .logo {
        flex-grow: 0;
        position: absolute; /* Position absolute to truly center */
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        z-index: 1; /* Below hamburger */
        font-size: 24px;
    }

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

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

    .main-nav {
        display: none; /* Hide main nav by default */
        position: fixed;
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: rgba(0, 0, 0, 0.95); /* Dark overlay */
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px; /* Space for fixed header content */
        overflow-y: auto;
        z-index: 998; /* Below hamburger, above mobile buttons */
        transition: transform 0.3s ease-in-out;
        transform: translateX(-100%); /* Start off-screen */
    }

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

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0; /* No gap for stacked items */
    }

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

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

    .main-nav li a {
        padding: 15px 20px;
        display: block;
        text-align: left;
        font-size: 18px;
    }

    .header-mobile-buttons {
        display: flex; /* Show mobile buttons */
        z-index: 999; /* Ensure buttons are above main-nav when it slides over */
    }

    /* Hamburger animation */
    .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);
    }

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

    .footer-section {
        min-width: unset;
        width: 100%;
    }
}
