/* Header Styles */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Body padding to prevent content from being hidden under fixed header */
body {
    padding-top: 80px;
}

.navbar {
    width: 100%;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    text-decoration: none;
    color: #333;
    font-size: 1.0rem;
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-logo:hover {
    color: #007bff;
}

.logo-text {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    padding: 5px;
    background: transparent;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

/* Desktop Styles (1025px and above) */
@media screen and (min-width: 1025px) {
    .nav-menu {
        gap: 2rem;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* Tablet Styles (769px - 1024px) */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
    }

    .nav-logo {
        font-size: 1.3rem;
    }
}

/* Mobile Styles (768px and below) */
@media screen and (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .header {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        padding: 0.75rem 1rem;
        min-height: 70px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1.2rem 1rem;
        font-size: 1rem;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }

    /* Hamburger menu animation */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Small Mobile Styles (480px and below) */
@media screen and (max-width: 480px) {
    body {
        padding-top: 65px;
    }

    .header {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-container {
        padding: 0.6rem 0.8rem;
        min-height: 65px;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .nav-menu {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-link {
        padding: 1rem 0.8rem;
        font-size: 0.95rem;
    }

    .bar {
        width: 22px;
        height: 2.5px;
    }
}

