/* ========== Modern Navigation Styles - Inspinia Aligned ========== */

.modern-navbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-container {
    background: #313a46;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.modern-navbar-wrapper.scrolled .navbar-container {
    background: rgba(49, 58, 70, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.modern-navbar-wrapper .navbar {
    padding: 12px 0;
    transition: padding 0.3s ease;
}

.modern-navbar-wrapper.scrolled .navbar {
    padding: 8px 0;
}

/* Logo Styling */
.modern-brand {
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modern-brand:hover .logo-img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: white;
    line-height: 1;
    letter-spacing: 0.5px;
}

.brand-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Modern Toggler */
.modern-toggler {
    border: none;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modern-toggler:focus {
    box-shadow: 0 0 0 3px rgba(26, 179, 148, 0.3);
}

.modern-toggler:hover {
    background: rgba(255, 255, 255, 0.15);
}

.toggler-line {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(2) {
    opacity: 0;
}

.modern-toggler:not(.collapsed) .toggler-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Links */
.modern-nav {
    gap: 4px;
}

.modern-nav-link {
    position: relative;
    padding: 10px 18px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    overflow: visible;
    border-radius: 6px;
}

.nav-link-text {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.nav-link-underline {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: #1ab394;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.modern-nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.06);
}

.modern-nav-link:hover .nav-link-underline {
    transform: translateX(-50%) scaleX(1);
}

/* ACTIVE nav link - HIGH CONTRAST */
.modern-nav-link.active {
    color: white !important;
    background: rgba(26, 179, 148, 0.2);
}

.modern-nav-link.active .nav-link-text {
    color: #1ab394;
    font-weight: 600;
}

.modern-nav-link.active .nav-link-underline {
    transform: translateX(-50%) scaleX(1);
    background: #1ab394;
    height: 3px;
}

.nav-link-special {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-left: 5px;
}

.nav-link-special:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Contact CTA */
.navbar-cta {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.phone-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-icon-wrapper {
    position: relative;
}

.phone-pulse {
    width: 48px;
    height: 48px;
    background: #1ab394;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 10px rgba(26, 179, 148, 0.3);
}

.phone-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: #1ab394;
    opacity: 0.25;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.25;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.phone-pulse:hover {
    transform: scale(1.08);
    box-shadow: 0 5px 15px rgba(26, 179, 148, 0.4);
}

.phone-details {
    flex-direction: column;
}

.phone-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
}

.phone-number {
    font-size: 16px;
    color: white;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar-cta {
        border-left: none;
        margin-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 992px) {
    .modern-nav {
        padding: 20px 0;
    }

    .modern-nav-link {
        padding: 12px 20px !important;
        margin: 3px 0;
        border-radius: 8px;
    }

    .modern-nav-link:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .modern-nav-link.active {
        background: rgba(26, 179, 148, 0.15);
    }

    .nav-link-underline {
        display: none;
    }

    .navbar-cta {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none;
        justify-content: center;
    }

    .phone-details {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 50px !important;
        width: 50px !important;
    }

    .phone-pulse {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .phone-number {
        font-size: 14px;
    }
}
