/* ==========================================
   EMITRUST MODERN NAVIGATION STYLES
   navbar.css - Save in your CSS folder
   ========================================== */

/* Body padding for fixed navbar */
body {
    padding-top: 90px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   MAIN NAVBAR
   ========================================== */
.modern-navbar {
    background: #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.25rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.modern-navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

/* ==========================================
   LOGO / BRAND
   ========================================== */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #06AAC5, #0891a8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Boulia-Demo', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 170, 197, 0.3);
}

.brand-logo:hover .brand-icon {
    transform: rotate(-10deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(6, 170, 197, 0.5);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    font-family: 'Boulia-Demo', sans-serif;
    letter-spacing: 1px;
}

.brand-tagline {
    font-size: 0.7rem;
    color: #06AAC5;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==========================================
   NAVIGATION MENU
   ========================================== */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    position: relative;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link span {
    white-space: nowrap;
}

.nav-link:hover {
    color: #06AAC5;
    background: rgba(6, 170, 197, 0.1);
}

.nav-link.active {
    color: #06AAC5;
    background: rgba(6, 170, 197, 0.15);
    box-shadow: 0 2px 8px rgba(6, 170, 197, 0.2);
}

/* ==========================================
   ACTION BUTTONS
   ========================================== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-nav {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-login {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    background: transparent;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: linear-gradient(135deg, #06AAC5, #0891a8);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(6, 170, 197, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 170, 197, 0.5);
    color: white;
}

/* ==========================================
   MOBILE MENU TOGGLE
   ========================================== */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 30px;
    height: 24px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.mobile-toggle span:nth-child(1) {
    top: 0;
}

.mobile-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 50%;
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: #1a1a1a;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9997;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-nav-menu .nav-item {
    margin-bottom: 0.75rem;
}

.mobile-nav-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-nav-menu .nav-link:hover {
    background: rgba(6, 170, 197, 0.2);
    transform: translateX(10px);
}

.mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-actions .btn-nav {
    width: 100%;
    justify-content: center;
    padding: 1rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 991px) {
    .navbar-container {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-icon {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        max-width: 100%;
    }

    .brand-tagline {
        display: none;
    }

    .navbar-container {
        padding: 0 1rem;
    }

    body {
        padding-top: 80px;
    }
}

/* ================================
   NAVBAR MOBILE FIX
   ================================ */

/* Hide brand text (name + tagline) on mobile, keep icon only */
@media (max-width: 768px) {
    .brand-text {
        display: none;
    }

    .brand-logo {
        gap: 0;
    }
}