@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --text-color: #333333;
    --hover-color: #2980b9;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header:not(.scrolled) {
    background-color: transparent;
}
/* .header:not(.scrolled) .nav-link {
    color: white;
} */
.container_header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--hover-color);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2rem;
}

.nav-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight:bolder;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--background-color);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.dropdown-content a {
    color: var(--secondary-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.menu-toggle {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px) translateX(-50%); }
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

@media (max-width: 768px) {
    .container_header {
        height: 60px;
        /* background: white; */
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        display: none;
        padding: 1rem 0;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        color: #2980b9;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        min-width: 100%;
        transform: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger {
        display: block;
        width: 24px;
        height: 2px;
        background-color: white;
        position: relative;
        transition: background-color 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color:white;
        transition: transform 0.3s ease;
    }

    .hamburger::before {
        transform: translateY(-6px);
    }

    .hamburger::after {
        transform: translateY(6px);
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: translateY(0) rotate(45deg);
    }

    .menu-toggle.active .hamburger::after {
        transform: translateY(0) rotate(-45deg);
    }
}
@media (max-width: 480px) {
    .logo img {
        max-width: 120px;
    }
    h1 {
        font-size: 2em;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    .logo img {
        max-width: 150px;
    }
    .locations {
        flex-direction: column;
    }
    .location {
        width: 100%;
        min-width: unset;
    }
    .triangle-image {
        width: 200px;
        height: 200px;
    }
}
.logo img {
    max-width: 200px;
    height: auto;
}
.logo {
    display: block;
    /* margin-bottom: 20px; */
}
@media (max-width: 768px) {
   

    /* New styles for mobile */
    .header:not(.scrolled) .nav-link,
    .header.scrolled .nav-link {
        color: unset !important; /* This will use the default text color */
    }
    /* Adjust logo for consistency on mobile */
    /* .logo img {
        content: url('./img/FwdATLogo/Black\ Without\ ISO.png');
    } */
}