:root {
    --primary-color: #1A2A3A;
    --secondary-color: #FFD700;
    --text-color: #E0E0E0;
    --accent-color: #FFA500;
    --bg-dark: #0f1a27;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-dark);
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

/* Header Styles */
.site-header {
    background-color: var(--primary-color);
    padding: 15px 20px;
    border-bottom: 2px solid var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-header .logo {
    font-family: 'Arial Black', sans-serif; /* Creative font example */
    font-size: 2.2em;
    font-weight: bold;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 5px 0;
    display: inline-block;
    flex-shrink: 0;
}

.main-nav {
    flex-grow: 1;
    text-align: center;
    margin: 0 20px;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.main-nav a {
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

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

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-login {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-login:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-register {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-register:hover {
    background-color: var(--accent-color);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
}

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

/* Footer Styles */
.site-footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 40px 20px 20px;
    border-top: 2px solid var(--secondary-color);
    position: relative;
}

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

.footer-col {
    flex: 1 1 280px; /* Allow columns to grow and shrink */
    margin-bottom: 20px;
}

.site-footer .footer-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 0.9em;
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--secondary-color);
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.copyright {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 30px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--secondary-color); /* Set a background color */
    color: var(--primary-color); /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 50%; /* Rounded corners */
    font-size: 1.2em; /* Increase font size */
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .site-header .logo {
        font-size: 1.8em;
    }

    .hamburger-menu {
        display: block;
        order: 2; /* Position hamburger to the right */
    }

    .auth-buttons {
        order: 3; /* Position auth buttons next to hamburger or below */
        margin-left: auto; /* Push to the right */
        margin-top: 0;
        gap: 5px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    .main-nav {
        order: 4; /* Place nav below other elements */
        flex-basis: 100%; /* Take full width */
        margin: 15px 0 0;
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        background-color: var(--primary-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        padding-bottom: 10px;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    .main-nav li {
        width: 100%;
        text-align: center;
    }

    .main-nav a {
        padding: 12px 15px;
        width: calc(100% - 40px);
        margin: 5px auto;
        border-radius: 5px;
    }

    .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);
    }

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

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-col ul {
        padding-left: 0;
    }
}