/* =============================================
   NAVBAR - COMPACT PREMIUM MEDICAL DESIGN
   ============================================= */

/* Main navbar container */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Accent line at top */
.nav-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2dd4bf 20%, #3b82f6 50%, #2dd4bf 80%, transparent);
}

/* Navbar background - solid with blur */
.nav-container {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.95), rgba(13, 20, 38, 0.98));
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 0 1rem;
}

/* Content wrapper - REDUCED HEIGHT */
.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* Scrolled state */
.main-nav.nav-scrolled .nav-container {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.98), rgba(13, 20, 38, 1));
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

/* Logo section - SMALLER */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-ring {
    position: relative;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(59, 130, 246, 0.15));
    border-radius: 50%;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-ring::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #2dd4bf, #3b82f6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.nav-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-brand-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-subtitle {
    color: #2dd4bf;
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Desktop navigation links */
.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.4rem 0.875rem;
    border-radius: 0.5rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #3b82f6);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
}

.nav-link:hover::after {
    width: 50%;
}

.nav-link.active {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.12);
}

/* Divider */
.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.625rem;
}

/* CTA Button - SMALLER */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: linear-gradient(135deg, #14b8a6, #3b82f6);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.35);
    letter-spacing: 0.01em;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(20, 184, 166, 0.5);
    color: #ffffff;
}

.nav-cta-icon {
    width: 13px;
    height: 13px;
}

/* Mobile toggle button */
.nav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.4rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nav-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-mobile-toggle:focus {
    outline: none;
}

.nav-mobile-icon {
    width: 22px;
    height: 22px;
}

/* Mobile menu */
.nav-mobile-menu {
    background: linear-gradient(135deg, rgba(10, 15, 30, 0.98), rgba(13, 20, 38, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

.nav-mobile-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
}

.nav-mobile-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.08);
}

.nav-mobile-cta-wrapper {
    padding-top: 0.75rem;
}

.nav-cta-mobile {
    width: 100%;
    justify-content: center;
}

.nav-mobile-hidden {
    display: none;
}

/* Desktop - show nav links, hide mobile toggle */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-mobile-toggle {
        display: none;
    }

    .nav-brand-name {
        font-size: 1.05rem;
    }

    .nav-subtitle {
        font-size: 0.65rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }
}

/* Mobile - smaller sizes */
@media (max-width: 767px) {
    .nav-logo-ring {
        width: 34px;
        height: 34px;
    }

    .nav-logo-img {
        width: 30px;
        height: 30px;
    }

    .nav-brand-name {
        font-size: 0.85rem;
    }

    .nav-subtitle {
        font-size: 0.55rem;
    }

    .nav-content {
        height: 56px;
    }
}
