/* Bootstrap 5 Navbar Custom Styles */


/* Navbar Base Styles */

.navbar {
    background: rgb(61, 157, 158) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* padding: 1rem 0; */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}


/* Navbar when scrolled */

.navbar.scrolled {
    background: rgb(61, 157, 158) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}


/* Navbar Brand (Logo) */

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #012B3D !important;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0;
}

.navbar-brand img {
    height: 46px !important;
    width: auto;
    max-width: none;
    /* filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1)); */
    transition: all 0.3s ease;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.2));
}

.navbar.scrolled .navbar-brand {
    color: #012B3D !important;
}

.navbar.scrolled .navbar-brand:hover {
    color: #00d4ff !important;
}


/* Navigation Links */

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0.5rem !important;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.2rem;
    /* background: rgb(203 220 247); */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgb(0 212 255 / 0%);
}

.navbar-nav .nav-link:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.navbar-nav .nav-link:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.navbar-nav .nav-link.active {
    color: #00d4ff !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.3);
}


/* Scrolled state for nav links */

.navbar.scrolled .navbar-nav .nav-link {
    color: #fff !important;
}

.navbar.scrolled .navbar-nav .nav-link:hover {
    color: #00d4ff !important;
    background: rgba(0, 212, 255, 0.1);
}

.navbar.scrolled .navbar-nav .nav-link.active {
    color: #00d4ff !important;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
}


/* Social Links */

.navbar-nav .social-link {
    color: #fff !important;
    font-size: 1.2rem;
    padding: 0.5rem !important;
    border: 1px solid rgba(1, 43, 61, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 0.2rem;
}

.navbar-nav .social-link:hover {
    color: #00d4ff !important;
    border-color: rgba(0, 212, 255, 0.5);
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.navbar.scrolled .navbar-nav .social-link {
    color: #fff !important;
    border-color: rgba(1, 43, 61, 0.2);
}

.navbar.scrolled .navbar-nav .social-link:hover {
    color: #00d4ff !important;
    border-color: rgba(0, 212, 255, 0.5);
}


/* Navbar Toggler */

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 43, 61, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(1, 43, 61, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Mobile Menu */

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
    .navbar-nav .nav-link {
        color: #012B3D !important;
        text-align: center;
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 10px;
    }
    .navbar-nav .nav-link:hover {
        background: rgba(0, 212, 255, 0.1);
        color: #00d4ff !important;
    }
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(0, 153, 204, 0.2));
        color: #00d4ff !important;
    }
    .navbar-nav .social-link {
        color: #012B3D !important;
        margin: 0.5rem auto;
        display: inline-flex;
    }
    .navbar-nav .social-link:hover {
        color: #00d4ff !important;
    }
    /* Mobile logo adjustments */
    .navbar-brand img {
        height: 60px !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand img {
        height: 50px !important;
    }
}


/* Content Padding for Fixed Navbar */

/*body {*/
/*    padding-top: 80px;*/
/*}*/


/* Ensure the main carousel (slider) doesn't get white background */

#mainCarousel,
.owl-carousel {
    background-color: transparent !important;
}


/* White background for non-slider sections */


/* Ensure specific sections have white background */

.AboutUsSection,
.BusinessUnitsSection,
.PartnersSection,
.NumbersSection,
.CallToActionSection {
    background-color: #ffffff !important;
}


/* Smooth Scrolling */

html {
    scroll-behavior: smooth;
}


/* Scroll Indicator */

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4ff, #0099cc, #00d4ff);
    background-size: 200% 100%;
    z-index: 1001;
    transition: width 0.3s ease;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}