/* Navbar Styles */
:root {
    --navbar-height: 80px;
    --navbar-bg: var(--primary-dark);
    --navbar-bg-scrolled: var(--primary-dark);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    --navbar-text: #ffffff;
    --navbar-text-hover: rgba(255, 255, 255, 0.8);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--navbar-shadow);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    --navbar-height: 70px;
    background: var(--navbar-bg-scrolled);
    box-shadow: var(--navbar-shadow);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
}

.navbar nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    height: 100%;
    padding: 0.5rem 0;
}

.logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.brand-name span {
    color: var(--accent-color);
}

.tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.9;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    align-items: center;
}

.nav-link {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link i {
    font-size: 1.1rem;
    color: var(--navbar-text);
    opacity: 0.9;
}

.nav-link:hover {
    color: var(--navbar-text-hover);
}

.nav-link.active {
    color: var(--navbar-text);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--navbar-text);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1002;
    position: relative;
    padding: 0;
}

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

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Hide mobile menu button when mobile menu is open */
.mobile-menu.active ~ .mobile-menu-btn,
.mobile-menu-overlay.active ~ .mobile-menu-btn {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--navbar-bg);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    transform: translateX(0);
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--navbar-bg);
    position: sticky;
    top: 0;
    z-index: 1;
    height: var(--navbar-height);
}

.close-menu-btn {
    display: none;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
}

.mobile-nav-links a {
    color: var(--navbar-text);
    text-decoration: none;
    padding: 0.875rem;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.mobile-nav-links a i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--navbar-text);
    opacity: 0.9;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--navbar-text-hover);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Header - also update the mobile menu brand text */
.mobile-menu-header .brand-name {
    color: white;
}

.mobile-menu-header .tagline {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar {
        --navbar-height: 70px;
    }

    .navbar .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }

    .logo-container {
        gap: 0.75rem;
    }

    .brand-name {
        font-size: 1.1rem;
    }

    .mobile-menu {
        width: 100%;
        max-width: none;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

    .close-menu-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .navbar {
        --navbar-height: 50px;
    }

    .logo-container {
        gap: 0.75rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }

    .close-menu-btn {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .mobile-menu-btn,
    .close-menu-btn,
    .mobile-nav-links a {
        -webkit-tap-highlight-color: transparent;
    }

    .nav-link:hover::after {
        width: 0;
    }

    .nav-link.active::after {
        width: 80%;
    }
} 