/* Header and navbar styles are loaded in index.html to improve initial page load performance */

/* Navbar styles */
.navbar {
    height: 100px;
    width: 100%;
    position: absolute; 
    top: 40px;
    left: 0;
    z-index: 999;
    background: transparent;
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-logo {
    display: none;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.menu-icon {
    display: none;
    color: var(--hero-text-color);
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-item {
    margin: 0 30px;
}

.nav-link {
    color: var(--hero-text-color);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--hover-color);
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 0;
    left: 50%;
    background-color: var(--hover-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after {
    width: 85%;
}

/* Responsive styles for header and navbar */
@media screen and (max-width: 960px) {
    .navbar {
        top: 30px;
    }
    
    .navbar-container {
        justify-content: center;
    }
    
    .nav-menu {
        flex-direction: row;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 20px;
    }
    
    .nav-link {
        font-size: 1.7rem;
        padding: 12px 8px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        height: auto;
        padding: 15px 0;
        top: 20px;
    }
    
    .nav-item {
        margin: 0 10px;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 8px 5px;
    }
    
    .logo {
        max-height: 180px;
        margin-top: 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 360px) {
    .navbar {
        top: 15px;
    }
    
    .nav-item {
        margin: 0 6px;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 6px 4px;
        letter-spacing: 0.5px;
    }
    
    .logo {
        margin-top: 0;
        max-height: 160px;
    }

    .hero-title {
        font-size: 1rem;
    }
}
