/* ========== Global Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* ========== Container for Consistent Spacing ========== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== Header Styles ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent; /* Initially transparent */
    padding: 1rem 0;
    transition: background-color 0.4s ease, padding 0.3s ease;
}

/* When user scrolls, header background color changes */
header.scrolled {
    background-color: #2c3e50; /* Dark background */
    padding: 0.8rem 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== Navigation Bar ========== */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: black;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth logo color transition */
}

/* Logo color black on scroll */
header.scrolled .logo a {
    color: black; /* Black logo when scrolled */
}

/* Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
}

/* Nav Links Item */
.nav-links li {
    margin-left: 1.5rem;
}

/* Default Navigation Links Color (White by default) */
.nav-links a {
    color: black; /* ✅ Set Nav Links Color to White */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease; /* Smooth hover effect */
}

/* Change Nav Links to Black When Scrolled */
header.scrolled .nav-links a {
    color: black; /* 🔥 Black links on scroll */
}

/* Hover Effect */
.nav-links a:hover {
    color: #f1c40f; /* Gold hover effect */
}

/* ========== Mobile Menu (Hamburger Icon) ========== */
.menu-icon {
    display: none; /* Hidden by default on desktops */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hamburger Bars */
.menu-icon .bar {
    width: 100%;
    height: 3px;
    background-color: black;
    border-radius: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animation for Close (X) */
.menu-icon.active .bar:nth-child(1) {
    transform: rotate(30deg) translate(4px, 5px);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: rotate(-30deg) translate(8px, -8px);
}

/* ========== Responsive Navigation with Fade-Down Effect ========== */
@media (max-width: 768px) {
    /* Hide nav links by default */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #f4f4f4;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Add fade-down effect */
    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        animation: fadeDown 0.5s ease-in-out;
    }

    /* White navigation links in mobile menu */
    .nav-links a {
        color: white;
    }

    /* Hover effect for mobile links */
    .nav-links a:hover {
        color: #f1c40f;
    }

    /* Show menu icon on mobile */
    .menu-icon {
        display: flex;
    }
}

/* ========== Fade Down Animation ========== */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Footer Styling ========== */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 1rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #f1c40f; /* Gold hover effect */
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
}
