/* Navbar Component Styles */
:root {
    /* Inherit main theme variables */
    --navbar-height: 80px;
    --navbar-background: rgba(255, 255, 255, 0.95);
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --navbar-mobile-height: 70px;
}

/* Navbar Container */
.nav-bar { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--navbar-background);
    box-shadow: var(--navbar-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--navbar-background);
    box-shadow: var(--navbar-shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navbar Content */
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Section */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
}

.navbar-logo img {
    height: 50px;
    width: auto;
}

/* Navigation Links */
.navbar-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Desktop Action Buttons */
.navbar-container > .navbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hide mobile action buttons on desktop */
.navbar-links .navbar-actions {
    display: none;
}

.nav-button {
    padding: 0.6rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.nav-button.primary {
    background: var(--primary-color);
    color: white;
}

.nav-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.nav-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-button.primary:hover {
    background: #d13e2e;
    box-shadow: 0 4px 12px rgba(234, 85, 71, 0.3);
}

.nav-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Mobile Menu Icon */
.mobile-menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.mobile-menu-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.2s ease;
    transform-origin: center;
    will-change: transform, opacity;
}

/* Hamburger Animation */
.mobile-menu-icon.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: var(--primary-color);
}

.mobile-menu-icon.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-icon.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: var(--primary-color);
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    will-change: opacity, visibility;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Scrolled State */
.navbar.scrolled {
    background: white;
    box-shadow: var(--navbar-shadow);
    height: 70px;
}

.navbar.scrolled .navbar-logo img {
    height: 40px;
}

/* Ultra-Wide Screens (2198px - 2560px) */
@media (min-width: 2198px) and (max-width: 2560px) {
    .navbar-container {
        padding: 0 5rem;
        max-width: 1800px;
    }
    
    .navbar-links {
        gap: 3.5rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.6rem 0;
    }
    
    .nav-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    
    .navbar-logo img {
        height: 55px;
    }
}

/* Extra Large Screens (2560px and above) */
@media (min-width: 2561px) {
    .navbar-container {
        padding: 0 6rem;
        max-width: 2000px;
    }
    
    .navbar-links {
        gap: 4rem;
    }
    
    .nav-link {
        font-size: 1.3rem;
        padding: 0.7rem 0;
    }
    
    .nav-button {
        padding: 0.9rem 2.2rem;
        font-size: 1.2rem;
    }
    
    .navbar-logo img {
        height: 60px;
    }
}

/* Desktop Large (1440px and above) */
@media (min-width: 1441px) and (max-width: 2197px) {
    .navbar-container {
        padding: 0 4rem;
        max-width: 1600px;
    }
    
    .navbar-links {
        gap: 3rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .nav-button {
        padding: 0.7rem 1.8rem;
        font-size: 1rem;
    }
}

/* Desktop Standard (1024px - 1440px) */
@media (max-width: 1440px) and (min-width: 1024px) {
    .navbar-container {
        max-width: 1200px;
        padding: 0 2rem;
    }
    
    .navbar-links {
        gap: 2.5rem;
    }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 769px) {
    .navbar-container {
        padding: 0 1.5rem;
        max-width: 1000px;
    }
    
    .navbar-links {
        gap: 2rem;
    }
    
    .nav-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) {
    .navbar {
        height: var(--navbar-mobile-height);
    }
    
    .navbar-logo img {
        height: 40px;
    }
    
    .mobile-menu-icon {
        display: flex;
    }
    
    .navbar-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    .navbar-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .navbar-actions {
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Hide desktop actions */
    .navbar-container > .navbar-actions {
        display: none;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .navbar-logo img {
        height: 35px;
    }
    
    .nav-link {
        font-size: 1.1rem;
    }
    
    .nav-button {
        width: 120px;
        font-size: 0.85rem;
    }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
    .navbar-logo img {
        height: 30px;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .navbar-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .nav-button {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.8rem;
    }

    .navbar-logo img {
        height: 40px;
    }

    .mobile-menu-icon {
        width: 24px;
        height: 18px;
    }

    .mobile-menu-icon span {
        height: 2px;
    }

    .navbar-links {
        padding: 1.5rem;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 0.7rem 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-icon {
        display: flex;
    }

    /* Hide desktop action buttons on mobile */
    .navbar-container > .navbar-actions {
        display: none;
    }

    .navbar-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--navbar-height));
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 2rem;
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        will-change: transform, opacity, visibility;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 0;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: color 0.2s ease;
    }

    .nav-link::after {
        display: none;
    }

    /* Show mobile action buttons inside menu */
    .navbar-links .navbar-actions {
        display: flex;
        position: absolute;
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-button {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
        transition: all 0.2s ease;
    }
} 