/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(9, 9, 9, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 90px;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Default styles for desktop (large screens) */
/* This nav will be visible on large screens */
nav {
    display: flex; /* Make nav visible and horizontal on large screens */
    gap: 15px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #f1eeee;
    font-size: 1.2rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu Styles (keep as is if they work for desktop) */
/* ... existing dropdown styles ... */

/* Hide the menu-toggle by default on large screens */
.menu-toggle {
    display: none; /* Hide on desktop */
}
header .logo-wrapper img {
  max-height: 100%; /* Constrains the image height to its parent's height */
  width: auto;     /* Maintains the aspect ratio */
}
/* Media query for small screens (mobile) in header.css */
/* This will override the default desktop styles for nav and menu-toggle */
@media (max-width: 768px) {
    /* Hide the regular nav links on small screens */
    nav {
        display: none; /* Hide on mobile by default */
        flex-direction: column; /* For when it becomes active */
        position: absolute;
        top: 90px; /* Adjust based on your header height */
        right: 0; /* Align to the right edge */
        width: 100%; /* Take full width on mobile */
        background-color: rgba(9, 9, 9, 0.98); /* Match header background */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999; /* Slightly lower than header and toggle */
        padding: 10px 0; /* Add padding to the top/bottom */
    }

  nav.active {
    display: flex;
    flex-direction: column;
    position: fixed; /* Change from 'absolute' to 'fixed' */
    top: 90px;
    right: 0;
    width: 100%;
    height: calc(100vh - 90px); /* This is the key change */
    background-color: rgba(9, 9, 9, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 10px 0;
    justify-content: flex-start; /* Aligns content to the top */
    overflow-y: auto; /* Adds a scrollbar if content exceeds screen height */
  }
    nav div { /* Style for the div wrappers around nav links */
        text-align: center;
        padding: 8px 0;
    }

    nav a {
        color: #f1eeee; /* Ensure link color is visible on dark background */
        font-size: 1.5rem; /* Make links larger for mobile */
        width: 100%; /* Make links take full width of their div */
        display: block; /* Make link a block element for better tapping */
        padding: 10px 0;
    }

    nav a:hover {
        background-color: #333; /* Hover effect for mobile links */
    }

    /* Show the menu-toggle icon on small screens */
    .menu-toggle {
        display: flex; /* Show the hamburger icon on mobile */
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        cursor: pointer;
        padding: 0;
        background: transparent;
        border: none;
        position: relative;
        z-index: 1001; /* Ensure it's above other content */
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white; /* Color of the bars */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    /* Animation for when menu is active */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}