/* Navigation Styles */
:root {
    --header-height: 70px; /* Reduced from 80px */
}

header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: height 0.3s ease;
}

/* Add padding to body to prevent content from being hidden behind fixed header */
body {
    padding-top: var(--header-height);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
    position: relative;
}

.logo img {
    height: 40px; /* Reduced from 50px */
    width: auto;
    transition: height 0.3s ease;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    z-index: 1001;
}

/* Mobile menu styles */
@media (max-width: 992px) {
    :root {
        --header-height: 60px; /* Smaller header on mobile */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: calc(100vh - var(--header-height));
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.5s ease;
        transform: translateX(-20px);
        opacity: 0;
        z-index: 1000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-links.active {
        left: 0;
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-links li {
        margin: 1rem 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.8rem 0;
        font-size: 1.1rem; /* Slightly larger font size */
        font-weight: 600; /* Bolder text */
        color: var(--text-color); /* Ensure text color is consistent */
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--primary-dark); /* Darken primary color on hover */
    }
    
    .mobile-signin {
        display: block !important;
        width: 100%;
        margin-top: 1rem;
    }
    
    .mobile-signin .btn {
        width: 100%;
        text-align: center;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.4s ease;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--primary-color);
}

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

.nav-links a:hover::after,
.nav-links a:focus::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color); /* Use primary color for hamburger lines */
        border-radius: 3px;
        transition: all 0.4s ease;
    }

    .mobile-menu-btn:hover span {
        background-color: var(--primary-dark); /* Darken on hover */
    }

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.5rem 1.5rem;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Dark Mode Styles */
.dark-mode header {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dark-mode .nav-links a {
    color: #f0f0f0;
}

.dark-mode .mobile-menu-btn span {
    background-color: #f0f0f0;
}

@media (max-width: 992px) {
    .dark-mode .nav-links {
        background-color: #1a1a1a;
    }
    
    .dark-mode .nav-links a {
        color: #f0f0f0;
    }
}

.nav-actions .theme-toggle,
.nav-actions .whatsapp-icon {
    color: #333; /* Default color for icons */
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: color 0.3s ease;
}
