/* ===== PREMIUM NAVBAR DESIGN - TOP 1% WORLDWIDE ===== */

:root {
    --primary: #1363DF;
    --primary-dark: #0D47A1;
    --secondary: #F97316;
    --secondary-dark: #EA580C;
    --success: #10B981;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray: #6B7280;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== ENHANCED TOPBAR ===== */
.top-bar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 12px 0;
    border-bottom: 2px solid var(--border);
}

.top-bar .navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
}

.top-bar .d-inline-flex {
    gap: 10px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.top-bar .d-inline-flex:hover {
    background: rgba(19, 99, 223, 0.05);
    transform: translateY(-2px);
}

.top-bar .d-inline-flex i {
    font-size: 1.1rem;
    color: var(--primary);
}

.top-bar .d-inline-flex p {
    font-size: 0.95rem;
    color: var(--dark);
    font-weight: 500;
    margin: 0;
}

/* ===== PREMIUM NAVBAR ===== */
.nav-bar {
    background: transparent !important;
    padding: 0 !important;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 1000;
}

.nav-bar .navbar {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%) !important;
    padding: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

.nav-bar .navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar Brand */
.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary) !important;
    letter-spacing: -0.3px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--secondary) !important;
    transform: scale(1.05);
}

/* Navbar Toggle */
.navbar-toggler {
    border: 2px solid var(--primary) !important;
    padding: 6px 12px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(19, 99, 223, 0.1);
    border-color: var(--primary) !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231363DF' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Navigation Links */
.navbar-nav {
    gap: 0;
}

.nav-item {
    position: relative;
    margin: 0;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 1.2rem 1.3rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary) !important;
    background: rgba(19, 99, 223, 0.05);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(19, 99, 223, 0.08);
}

/* WhatsApp CTA Button */
.navbar-nav .nav-link,
.nav-bar a[href*="wa.me"] {
    position: relative;
}

.nav-bar a[href*="wa.me"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border-radius: 12px;
    padding: 10px 20px !important;
    color: white !important;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
    margin-right: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    overflow: hidden;
}

.nav-bar a[href*="wa.me"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary) 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-bar a[href*="wa.me"]:hover::before {
    left: 0;
}

.nav-bar a[href*="wa.me"]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white !important;
}

.nav-bar a[href*="wa.me"] .d-flex {
    gap: 10px;
}

.nav-bar a[href*="wa.me"] img {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    background: white;
    padding: 3px;
}

.nav-bar a[href*="wa.me"] .ms-3 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-bar a[href*="wa.me"] p {
    color: white !important;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

.nav-bar a[href*="wa.me"] h5 {
    color: #4ade80 !important;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 700;
}

/* Mobile Navbar Optimization */
@media (max-width: 991px) {
    .navbar {
        padding: 12px 16px !important;
    }

    .nav-link {
        padding: 12px 8px !important;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:hover {
        background: rgba(19, 99, 223, 0.08);
        padding-left: 16px !important;
    }

    .nav-bar a[href*="wa.me"] {
        margin-top: 12px;
        margin-left: 0;
        width: 100%;
        justify-content: center;
        border-radius: 10px;
        padding: 12px 16px !important;
    }

    .navbar-collapse {
        background: white;
        border-radius: 12px;
        margin-top: 12px;
        padding: 12px 0;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none !important;
    }

    .navbar-brand h2 {
        font-size: 1.2rem;
        color: var(--primary) !important;
        font-weight: 700;
    }

    .nav-link {
        padding: 10px 12px !important;
        font-size: 0.9rem;
    }

    .nav-link::before {
        height: 2px;
    }

    .nav-bar a[href*="wa.me"] {
        padding: 10px 12px !important;
        font-size: 0.85rem;
    }
}

/* ===== SCROLL EFFECT ===== */
.navbar.scrolled {
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar {
    animation: fadeInDown 0.4s ease;
}

/* Smooth transitions */
.nav-bar,
.navbar,
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}