:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --dark-bg: #212529;
    --light-text: #f8f9fa;
    --dark-text: #343a40;
    --white: #ffffff;
    --black: #000000;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    padding-top: 120px; /* Adjust based on header height, considering mobile buttons */
}

/* Base styles for anchors and buttons */
a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    text-decoration: underline;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none; /* Ensure no underline on hover */
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #0056b3); /* Gradient */
    color: var(--white);
}

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

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary-color), #d39e00); /* Gradient */
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #d39e00, var(--secondary-color));
}

.btn-mobile-register {
    background: linear-gradient(45deg, #28a745, #218838); /* Green for register */
    color: var(--white);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); /* Glow effect */
}
.btn-mobile-register:hover {
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.7);
}

.btn-mobile-login {
    background: linear-gradient(45deg, #17a2b8, #138496); /* Cyan for login */
    color: var(--white);
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.5); /* Glow effect */
}
.btn-mobile-login:hover {
    box-shadow: 0 0 15px rgba(23, 162, 184, 0.7);
}

.btn-mobile-download {
    background: linear-gradient(45deg, #6f42c1, #5a32a3); /* Purple for download */
    color: var(--white);
    box-shadow: 0 0 10px rgba(111, 66, 193, 0.5); /* Glow effect */
}
.btn-mobile-download:hover {
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.7);
}


/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--dark-bg); /* Solid background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* Floating effect */
    z-index: 1000;
    min-height: 60px; /* Ensure content adaptation */
    color: var(--light-text);
}

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

.site-header .logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--secondary-color); /* Bright logo color */
    text-decoration: none;
    transition: color 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); /* Subtle glow */
}

.site-header .logo:hover {
    color: var(--white);
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

.site-header .main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

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

.site-header .main-nav a {
    color: var(--light-text);
    font-weight: bold;
    padding: 5px 0;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
    color: var(--secondary-color);
    text-decoration: none;
}

.site-header .main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a.active::after {
    width: 100%;
}

.site-header .desktop-buttons {
    display: flex;
    gap: 10px;
}

.site-header .hamburger-menu {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001; /* Higher than mobile buttons */
}

.site-header .hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Header Buttons (always visible) */
.site-header .mobile-buttons {
    display: none; /* Hidden by default on desktop */
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: var(--dark-bg); /* Match header background */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Lower than hamburger menu */
}

.site-header .mobile-nav {
    display: none; /* Hidden by default on desktop and mobile */
    flex-direction: column;
    background-color: var(--dark-bg); /* Solid background */
    position: absolute;
    top: 100%; /* Position below header top + mobile buttons */
    left: 0;
    width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 999; /* Below hamburger menu */
    padding-bottom: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.site-header .mobile-nav.active {
    max-height: 500px; /* Adjust as needed for menu content */
    display: flex; /* Display when active */
}

.site-header .mobile-nav ul {
    flex-direction: column;
    text-align: center;
}

.site-header .mobile-nav li {
    margin: 10px 0;
}

.site-header .mobile-nav a {
    display: block;
    padding: 10px 20px;
    color: var(--light-text);
    font-size: 18px;
}

.site-header .mobile-nav a:hover,
.site-header .mobile-nav a.active {
    background-color: rgba(255, 193, 7, 0.1); /* Subtle hover for mobile */
    color: var(--secondary-color);
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 20px;
    font-size: 14px;
    text-align: center;
}

.site-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    text-align: left;
}

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

.site-footer .footer-column h3 {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.site-footer .footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.site-footer .footer-column p,
.site-footer .footer-column a {
    color: var(--light-text);
    text-decoration: none;
    line-height: 1.8;
}

.site-footer .footer-column a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

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

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

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

    .site-header .header-top {
        padding: 10px 15px;
        min-height: 40px;
    }

    .site-header .logo {
        flex: 1; /* Allows logo to take available space for centering */
        text-align: center;
        font-size: 24px;
        order: 2; /* Puts logo in the middle */
    }

    .site-header .hamburger-menu {
        display: block; /* Show hamburger menu */
        order: 1; /* Puts hamburger menu on the left */
    }

    .site-header .desktop-nav,
    .site-header .desktop-buttons {
        display: none; /* Hide desktop nav and buttons */
    }

    .site-header .mobile-buttons {
        display: flex; /* Show mobile buttons */
        order: 3; /* Puts buttons area below header top */
        width: 100%;
        box-sizing: border-box; /* Include padding in width */
    }

    .site-header .header-top::after { /* Empty space on right for mobile header top */
        content: '';
        width: 45px; /* Match hamburger menu width */
        order: 3;
    }

    .site-header .mobile-buttons .btn {
        flex: 1;
        margin: 0 5px;
        padding: 8px 12px;
        font-size: 14px;
    }

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

    .site-footer .footer-column {
        margin: 15px 0;
        text-align: center;
        width: 100%;
        max-width: 300px;
    }

    .site-footer .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}