/* Layout components like header, navigation, etc. */

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.animated-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-red) 0%, rgba(228, 61, 18, 0.9) 100%);
}

.animated-bg-item {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(80px);
}

.bg-item-1 {
    width: 600px;
    height: 600px;
    background: var(--secondary-pink);
    top: -200px;
    left: -100px;
    animation: float 25s infinite ease-in-out;
}

.bg-item-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-light-pink);
    top: 40%;
    right: -200px;
    animation: float 20s infinite ease-in-out reverse;
}

.bg-item-3 {
    width: 300px;
    height: 300px;
    background: var(--golden-yellow);
    bottom: 10%;
    left: 20%;
    animation: float 30s infinite ease-in-out 2s;
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(239, 177, 29, 0.95); /* Changed to golden yellow with transparency */
    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 ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: var(--font-sm);
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-red); /* Changed hover color to primary red */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-red); /* Changed underline color to primary red */
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* 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: 768px) {
    .mobile-menu-toggle {
        display: flex;
        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: all 0.3s ease;
    }
    
    /* Add X animation */
    .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;
    }
    
    nav.active ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--golden-yellow);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    nav.active ul li {
        margin: 10px 0;
    }
    
    /* Ensure header matches layout.css */
    header {
        padding: 20px 0;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        transition: background-color 0.3s ease;
    }
    
    header.scrolled {
        background-color: rgba(239, 177, 29, 0.95);
        backdrop-filter: blur(10px);
    }
}