/* ========================================
   MODERN RESPONSIVE NAVBAR
   Clean, modern, fully responsive navigation
   ======================================== */

/* ========================================
   BASE NAVBAR STYLES
   ======================================== */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(185, 44, 50, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

.modern-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* ========================================
   BRAND SECTION
   ======================================== */
.navbar-brand {
    flex-shrink: 0;
    margin-right: auto;
    /* Push brand to the left, menu to the right */
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.brand-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6c757d;
    margin: 0;
    line-height: 1;
}

.brand-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    display: none;
}

/* ========================================
   DESKTOP NAVIGATION
   ======================================== */
.navbar-menu-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #B92C32;
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover {
    color: #B92C32;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link.active {
    color: #B92C32;
}

.nav-login {
    background: linear-gradient(135deg, #B92C32 0%, #d23642 100%);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(185, 44, 50, 0.2);
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.nav-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 44, 50, 0.3);
    color: white !important;
}

.nav-login::after {
    display: none;
}

/* ========================================
   MOBILE MENU TOGGLE
   ======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(185, 44, 50, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2.5px;
    background: #B92C32;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.navbar-menu-mobile {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    /* Fixed width for left-side menu */
    height: calc(100vh - 70px);
    background: white;
    transform: translateX(-100%);
    /* Slide from LEFT */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    /* Shadow on right side */
}

.navbar-menu-mobile.active {
    transform: translateX(0);
}

.mobile-menu-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, rgba(185, 44, 50, 0.05) 0%, rgba(210, 54, 66, 0.05) 100%);
}

.mobile-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
}

.mobile-menu-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.mobile-menu-content {
    padding: 1.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* Touch-friendly improvements */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 44px;
    /* iOS touch target size */
    cursor: pointer;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #B92C32;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(185, 44, 50, 0.1);
    color: #B92C32;
    transform: translateX(5px);
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    transform: scaleY(1);
}

.mobile-nav-login {
    background: linear-gradient(135deg, #B92C32 0%, #d23642 100%);
    color: white !important;
    text-align: center;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(185, 44, 50, 0.2);
}

.mobile-nav-login:hover {
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 44, 50, 0.3);
    color: white !important;
}

.mobile-nav-login::before {
    display: none;
}

/* ========================================
   OVERLAY FOR MOBILE MENU
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1.5rem;
    }

    .navbar-menu-desktop {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

/* Mobile and below */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
        height: 60px;
        justify-content: space-between;
        position: relative;
    }

    .navbar-menu-desktop {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .brand-link {
        gap: 8px;
    }

    .brand-logo {
        height: 35px;
    }

    .brand-title {
        font-size: 0.85rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .modern-navbar {
        top: 0;
    }

    .navbar-menu-mobile {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .mobile-menu-overlay {
        top: 60px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 0.75rem;
    }

    .brand-logo {
        height: 35px;
    }

    .mobile-nav-link {
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }

    .mobile-menu-header {
        padding: 1.5rem;
    }

    .mobile-menu-content {
        padding: 1rem;
    }

    .navbar-menu-mobile {
        width: 260px;
        /* Slightly smaller for very small screens */
    }
}

/* Extra small mobile - iPhone SE and similar */
@media (max-width: 360px) {
    .navbar-container {
        padding: 0 0.5rem;
        height: 55px;
    }

    .brand-logo {
        height: 30px;
    }

    .brand-title {
        font-size: 0.75rem;
    }

    .brand-tagline {
        display: none;
        /* Hide tagline on very small screens */
    }

    .navbar-menu-mobile {
        width: 240px;
        top: 55px;
        height: calc(100vh - 55px);
    }

    .mobile-menu-header {
        padding: 1rem;
    }

    .mobile-logo {
        height: 45px;
    }

    .mobile-menu-header h3 {
        font-size: 1.1rem;
    }

    .mobile-menu-content {
        padding: 0.75rem;
    }

    .mobile-nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }

    .mobile-menu-overlay {
        top: 55px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar-menu-mobile {
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .mobile-menu-header {
        padding: 1rem;
    }

    .mobile-logo {
        height: 40px;
    }

    .mobile-menu-header h3 {
        font-size: 1rem;
    }

    .mobile-menu-content {
        padding: 0.75rem;
    }

    .mobile-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.mobile-menu-toggle:focus,
.nav-link:focus,
.mobile-nav-link:focus {
    outline: 2px solid #B92C32;
    outline-offset: 2px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        /* Changed from right to left */
    }

    to {
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.navbar-menu-mobile.active {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .modern-navbar {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #ccc;
    }

    .mobile-menu-toggle,
    .navbar-menu-mobile,
    .mobile-menu-overlay {
        display: none !important;
    }
}