/* Base Styles */
:root {
    --primary-color: #007BFF;
    --secondary-color: #FFC107;
    --text-color: #333;
    --light-text-color: #f8f9fa;
    --dark-bg: #212529;
    --light-bg: #ffffff;
    --border-color: #dee2e6;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

a:hover {
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

.btn-secondary:hover {
    background-color: #e0a800;
    text-decoration: none;
}

/* Header Styles */
.site-header {
    position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
    background-color: var(--dark-bg);
    color: var(--light-text-color);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    position: relative;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.site-header .logo:hover {
    text-decoration: none;
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.main-nav .nav-list {
    display: flex;
    gap: 25px;
}

.main-nav .nav-list li a {
    color: var(--light-text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

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

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

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

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

/* ADDED: Styles for the hamburger icon bars */
.hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--light-text-color);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Footer Styles */
.site-footer {
    background-color: var(--dark-bg);
    color: var(--light-text-color);
    padding: 40px 0 20px;
    margin-top: 50px;
    position: relative;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col p,
.footer-col a {
    color: #bbb;
    font-size: 0.95em;
}

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

.footer-col.about-us .footer-logo {
    font-size: 1.8em;
    margin-bottom: 15px;
}

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

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

.footer-bottom .copyright {
    font-size: 0.85em;
    color: #999;
}

/* Back to Top Button */
#backToTopBtn {
    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 at the right side */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: var(--primary-color); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, opacity 0.3s;
}

#backToTopBtn:hover {
    background-color: var(--secondary-color);
}

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

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        position: relative;
        justify-content: flex-start;
    }

    .site-header .logo {
        font-size: 1.8em;
        margin-bottom: 15px;
        text-align: center;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        left: 15px;
        top: 25px;
        z-index: 1001;
    }

    .header-buttons {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .main-nav {
        width: 100%;
        margin-top: 0;
    }

    .main-nav .nav-list {
        /* ADDED: Hide menu by default on mobile */
        display: none;
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        padding: 0;
        border-top: none;
        z-index: 999;
        margin-top: 10px;
    }

    .main-nav .nav-list.active {
        display: flex;
        flex-direction: column;
        background-color: var(--dark-bg);
    }

    .main-nav .nav-list li {
        margin-bottom: 5px;
    }

    .main-nav .nav-list li:last-child {
        margin-bottom: 0;
    }

    .main-nav .nav-list li a {
        display: block;
        padding: 12px 15px;
        border-radius: 5px;
        background-color: #343a40;
    }
    
    .main-nav .nav-list li a::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header .logo {
        font-size: 1.5em;
    }

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