/* Header styling */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    background-color: rgba(239, 177, 29, 0.95);
    backdrop-filter: blur(10px);
}

/* header.scrolled {
    background-color: rgba(239, 177, 29, 0.95);
    backdrop-filter: blur(10px);
} */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo svg {
    margin-right: 10px;
}

.logo-text {
    font-family: 'Comfortaa', sans-serif;
    font-weight: 600;
    font-size: var(--font-md);
    color: #fff;
}

nav {
    margin-left: auto; /* Push nav to the right */
    display: flex;
    justify-content: flex-end; /* Align items to the right */
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav ul li a:hover {
    color: var(--primary-red);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Dropdown menu styling */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.6em;
    margin-left: 5px;
    vertical-align: middle;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(239, 177, 29, 0.95);
    min-width: 180px;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    flex-direction: column;
    z-index: 1000;
    margin-top: 10px;
    padding: 10px 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    display: flex;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    margin: 0 !important;
    width: 100%;
}

.dropdown-menu li a {
    padding: 8px 15px;
    display: block;
    width: 100%;
    white-space: nowrap;
    text-align: center;
}

.dropdown-menu li a:hover {
    background-color: rgba(228, 61, 18, 0.1);
}

/* CTA button in header */
.cta-button {
    background-color: var(--primary-red);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-sm);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transition: transform 0.3s ease;
}

/* Mobile navigation styles */
@media (max-width: 992px) {
    nav {
        justify-content: flex-end;
    }
    
    .cta-button {
        display: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        margin-left: 20px;
    }
    
    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--golden-yellow);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    nav.active ul {
        display: flex;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: transparent;
        display: none;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-menu {
        display: flex;
    }
    
    .dropdown-toggle::after {
        float: right;
    }
}