/* ========================================
   Modern Navbar Styles
   ======================================== */

/* Remove all outlines and borders from navbar elements */
.modern-navbar *,
.modern-navbar *:focus,
.modern-navbar *:active,
.modern-navbar *:hover,
.modern-navbar a,
.modern-navbar a:focus,
.modern-navbar a:active,
.modern-navbar a:hover,
.modern-navbar button,
.modern-navbar button:focus,
.modern-navbar button:active,
.modern-navbar button:hover,
.modern-navbar li,
.modern-navbar ul {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Remove focus ring completely */
.modern-navbar *::-moz-focus-inner {
    border: 0 !important;
}

.modern-navbar *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove any pseudo-elements that might create borders */
.modern-navbar *::before,
.modern-navbar *::after {
    border: none !important;
    outline: none !important;
}

/* Specifically target icofont to prevent checkbox-like borders */
.modern-navbar [class*="icofont-"]::before,
.modern-navbar [class*="icofont-"]::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Hide any checkbox elements in navbar */
.modern-navbar input[type="checkbox"],
.modern-navbar .checkbox,
.modern-navbar .checkbox-wrapper,
.modern-navbar .checkbox-inline {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Navbar Container */
.modern-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(20px);
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
    outline: none !important;
}

.modern-navbar.scrolled {
    background: rgba(13, 13, 13, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Navbar Inner Container */
.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Section */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-logo img {
    height: 100px;
    width: auto;
    transition: filter 0.3s ease;
}

.navbar-logo:hover img {
    filter: brightness(1.1);
}

.navbar-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: none;
}

/* Navigation Menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    border: none;
}

.navbar-link:focus {
    outline: none;
    border: none;
}

.navbar-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, #ff5722, #ff9800);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.navbar-link:hover {
    color: #fff;
    background: rgba(255, 87, 34, 0.1);
}

.navbar-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.navbar-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(255, 152, 0, 0.2));
}

.navbar-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Icon in navbar */
.navbar-link i {
    font-size: 18px;
    display: inline-block !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.navbar-link i::before,
.navbar-link i::after {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

/* CTA Button */
.navbar-cta {
    margin-left: 15px;
}

.navbar-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff5722, #ff9800);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: none !important;
    transition: all 0.3s ease;
    outline: none !important;
    border: none !important;
}

.navbar-cta-btn:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.navbar-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5) !important;
    color: #fff;
}

.navbar-cta-btn i {
    font-size: 16px;
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    outline: none;
}

.navbar-toggle:focus {
    outline: none;
    border: none;
}

.navbar-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 992px) {
    .navbar-container {
        height: 70px;
    }

    .navbar-logo img {
        height: 45px;
    }

    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu.active {
        max-height: calc(100vh - 70px);
        opacity: 1;
        overflow-y: auto;
    }

    .navbar-item {
        width: 100%;
    }

    .navbar-link {
        width: 100%;
        padding: 15px 20px;
        justify-content: flex-start;
        border-radius: 12px;
        margin-bottom: 5px;
    }

    .navbar-link::before {
        display: none;
    }

    .navbar-link:hover,
    .navbar-link.active {
        background: rgba(255, 87, 34, 0.15);
        border-left: 4px solid #ff5722;
    }

    .navbar-cta {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .navbar-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 24px;
    }

    .navbar-toggle {
        display: flex;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 0 15px;
        height: 65px;
    }

    .navbar-logo img {
        height: 100px;
    }

    .navbar-menu {
        top: 65px;
        padding: 15px;
    }

    .navbar-link {
        font-size: 14px;
        padding: 12px 15px;
    }

    .navbar-cta-btn {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* ========================================
   Smooth Scrolling & Offset for Fixed Navbar
   ======================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ========================================
   Animation for Menu Items
   ======================================== */

@media (max-width: 992px) {
    .navbar-menu.active .navbar-item {
        animation: slideInDown 0.3s ease forwards;
        opacity: 0;
    }

    .navbar-menu.active .navbar-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .navbar-menu.active .navbar-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .navbar-menu.active .navbar-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .navbar-menu.active .navbar-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .navbar-menu.active .navbar-item:nth-child(5) {
        animation-delay: 0.3s;
    }

    .navbar-menu.active .navbar-cta {
        animation: slideInDown 0.3s ease forwards;
        animation-delay: 0.35s;
        opacity: 0;
    }

    @keyframes slideInDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ========================================
   Page Content Offset
   ======================================== */

body {
    padding-top: 80px;
}

@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 65px;
    }
}
