/* Header and Footer Styles */

/* Enhanced Header Styles */
.header-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.site-header:hover .logo-icon {
    transform: scale(1.1);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.nav-icon {
    margin-right: 4px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-icon, 
.menu-icon::before, 
.menu-icon::after {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    position: absolute;
    transition: all 0.3s ease;
}

.menu-icon {
    top: 50%;
    transform: translateY(-50%);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    bottom: -8px;
}

/* Mobile Menu */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    display: block;
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 20px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    width: 100%;
    max-width: 300px;
    justify-content: center;
}

.mobile-menu a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-menu svg {
    width: 20px;
    height: 20px;
}

/* Enhanced Footer Styles */
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    transition: transform 0.3s ease;
}

.footer-branding:hover .footer-logo {
    transform: scale(1.1);
}

.footer-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .site-header .main-nav {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-branding {
        margin-bottom: 15px;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* When mobile menu is active */
body.menu-open {
    overflow: hidden;
}

body.menu-open .menu-icon {
    background-color: transparent;
}

body.menu-open .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

body.menu-open .menu-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Animation for active menu item */
.nav-link.active {
    background: rgba(255,255,255,0.15);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: var(--primary-light);
    border-radius: 3px;
}
