/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}


/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }
    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }
    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
        -webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
        -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF; /* White by default (homepage) */
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: #000000 !important; /* Black text for other pages */
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Keep the active/selected link as primary color */
.sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary) !important; /* Keep active link as blue */
}

/* Hover effect for inactive links */
.sticky-top.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--primary) !important; /* Blue on hover */
}

.navbar-dark .navbar-brand h1 {
    color: #FFFFFF; /* White on homepage */
}

/* Make sure the brand is visible on sticky navbar */
.sticky-top.navbar-dark .navbar-brand h1 {
    color: var(--primary) !important; /* Blue on other pages */
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Logo visibility - Desktop vs Mobile */
.navbar-logo-desktop {
    display: block;
}

.navbar-logo-mobile {
    display: none;
}

/* Mobile Language Selector */
.language-selector-mobile {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.language-btn-mobile {
    background: transparent;
    border: none;
    color: white;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: auto;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.language-btn-mobile:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.language-btn-mobile:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 163, 218, 0.25);
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.language-btn-mobile:active {
    background: rgba(255, 255, 255, 0.15);
}

.language-btn-mobile .flag-icon {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

/* Mobile Menu Dropdown */
.mobile-menu-dropdown {
    display: flex !important;
    align-items: center;
    margin-right: 0;
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    color: var(--primary) !important; /* Primary blue color for visibility on white background */
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: auto;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background: rgba(6, 163, 218, 0.1);
    color: var(--primary) !important;
}

.mobile-menu-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 163, 218, 0.25);
    background: rgba(6, 163, 218, 0.1);
    outline: none;
    color: var(--primary) !important;
}

.mobile-menu-btn:active {
    background: rgba(6, 163, 218, 0.15);
    color: var(--primary) !important;
}

.mobile-menu-btn i {
    font-size: 18px;
}

.mobile-menu-dropdown-menu {
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px 0;
}

.mobile-menu-dropdown-menu .dropdown-item {
    padding: 10px 16px;
    font-size: 15px;
    color: #333;
    transition: all 0.2s ease;
}

.mobile-menu-dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.mobile-menu-dropdown-menu .dropdown-item i {
    width: 20px;
    text-align: center;
}

/* App Download Buttons - Fixed Dimensions to Prevent Stretching */
.google-play-badge,
.app-store-badge,
.app-download-buttons img[src*="google-play-badge"],
.app-download-buttons img[src*="app-store-badge"],
.carousel-caption img[alt="Google Play"],
.carousel-caption img[alt="App Store"],
.carousel-caption a img[src*="google-play-badge"],
.carousel-caption a img[src*="app-store-badge"] {
    width: 180px !important;
    height: 55px !important;
    max-width: 180px !important;
    max-height: 55px !important;
    object-fit: contain !important;
    display: block;
    border: none;
}

/* Container constraints */
.app-download-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Carousel Fixes */
#header-carousel {
    overflow: hidden;
    position: relative;
    height: 100vh; /* Full screen on desktop like live site */
    min-height: 600px; /* Minimum height fallback */
}

#header-carousel .carousel-inner {
    overflow: hidden;
    height: 100%;
}

#header-carousel .carousel-item {
    overflow: hidden;
    height: 100%;
}

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: #FFFFFF;
    }

    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: #000000 !important; /* Black text for other pages */
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active,
    .sticky-top.navbar-dark .navbar-nav .nav-link:hover,
    .sticky-top.navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary) !important;
    }

    .navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
    
    /* Mobile menu button - ensure visibility on white background */
    .mobile-menu-btn {
        color: var(--primary) !important;
    }
    
    .mobile-menu-btn i {
        color: var(--primary) !important;
    }
    
    /* Ensure carousel caption covers full height on mobile */
    .carousel-caption {
        height: 100% !important;
        width: 100% !important;
        background: rgba(9, 30, 62, .7) !important;
    }
    
    /* Show mobile logo, hide desktop logo */
    .navbar-logo-desktop {
        display: none !important;
    }
    
    .navbar-logo-mobile {
        display: block !important;
        margin-right: 0 !important; /* Remove margin since no text follows on mobile */
    }
    
    /* Hide navbar brand text on mobile - show only icon */
    .navbar-brand-text {
        display: none !important;
    }
    
    .navbar-brand h1 .navbar-brand-text {
        display: none !important;
    }
    
    /* Alternative: Hide text nodes in navbar-brand h1 on mobile */
    .navbar-brand h1 {
        line-height: 1;
    }
    
    .navbar-brand h1::after {
        content: none !important;
    }
    
    /* Ensure navbar collapses properly on mobile */
    .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        align-items: center;
    }
    
    /* Prevent menu items from wrapping on mobile */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        margin-left: 0 !important;
        padding: 10px 15px !important;
        white-space: nowrap;
    }
    
    /* Mobile navbar layout - ensure proper spacing */
    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        padding: 10px 15px !important;
        position: relative;
        z-index: 1000;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        margin-right: auto;
    }
    
    /* Mobile language selector and menu positioning */
    .language-selector-mobile {
        order: 2;
        margin-right: 10px;
        display: flex;
        align-items: center;
    }
    
    .mobile-menu-dropdown {
        order: 3;
        margin-left: 0;
        display: flex !important;
    }
    
    /* Hide navbar collapse on mobile, show dropdown instead */
    .navbar-collapse {
        display: none !important;
    }
    
    .navbar-collapse.d-lg-flex {
        display: none !important;
    }
    
    /* Ensure navbar container doesn't cause overflow */
    .container-fluid.position-relative.p-0 {
        overflow: visible;
    }
}

/* Small mobile devices - Ensure navbar doesn't wrap */
@media (max-width: 576px) {
    /* Reduce navbar brand size to prevent wrapping */
    .navbar-brand {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 120px); /* Account for language button and toggler */
    }
    
    .navbar-brand h1 {
        font-size: 1.1rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand img,
    .navbar-logo-mobile {
        height: 40px !important;
        margin-right: 0 !important; /* No margin needed since text is hidden */
        flex-shrink: 0;
    }
    
    /* Hide text on small mobile */
    .navbar-brand-text {
        display: none !important;
    }
    
    /* Ensure navbar toggler is always visible and properly positioned */
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1rem;
        border-width: 1px;
        flex-shrink: 0;
        order: 3;
    }
    
    /* Mobile language selector styling */
    .language-selector-mobile {
        order: 2;
        margin-right: 8px;
        display: flex;
        align-items: center;
    }
    
    .language-btn-mobile {
        width: 36px;
        height: 36px;
        padding: 3px;
    }
    
    .language-btn-mobile .flag-icon {
        width: 22px;
        height: 16px;
    }
    
    /* Mobile menu button styling */
    .mobile-menu-btn {
        width: 36px;
        height: 36px;
        padding: 3px;
    }
    
    .mobile-menu-btn i {
        font-size: 16px;
    }
    
    /* App download buttons - mobile sizing (proportionally smaller) */
    .app-download-buttons img[src*="google-play-badge"],
    .app-download-buttons img[src*="app-store-badge"],
    .google-play-badge,
    .app-store-badge,
    .carousel-caption img[alt="Google Play"],
    .carousel-caption img[alt="App Store"],
    .carousel-caption a img[src*="google-play-badge"],
    .carousel-caption a img[src*="app-store-badge"] {
        width: 150px !important;
        height: 46px !important;
        max-width: 150px !important;
        max-height: 46px !important;
        object-fit: contain !important;
    }
    
    /* Carousel mobile fixes */
    #header-carousel {
        height: 500px !important;
    }
    
    #header-carousel .carousel-item img {
        height: 100% !important;
        min-height: auto !important;
    }
    
    /* Ensure carousel caption background covers entire slider on mobile */
    .carousel-caption {
        padding: 20px 15px;
        height: 100% !important;
        width: 100% !important;
        background: rgba(9, 30, 62, .7) !important;
    }
    
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
        margin-bottom: 10px !important;
    }
    
    .carousel-caption h1 {
        font-size: 24px;
        font-weight: 600 !important;
        margin-bottom: 15px !important;
        line-height: 1.2;
    }
    
    .carousel-caption .btn {
        font-size: 14px;
        padding: 8px 16px;
        margin: 5px;
    }
    
    /* Ensure carousel controls are visible */
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
        opacity: 0.8;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* iPhone SE and very small mobile devices (375px and below) */
@media (max-width: 375px) {
    /* Further reduce navbar brand size */
    .navbar-brand {
        max-width: calc(100% - 110px); /* Account for smaller buttons */
    }
    
    .navbar-brand h1 {
        font-size: 0.95rem !important;
    }
    
    .navbar-brand img,
    .navbar-logo-mobile {
        height: 35px !important;
        margin-right: 0 !important; /* No margin needed since text is hidden */
    }
    
    /* Hide text on very small mobile */
    .navbar-brand-text {
        display: none !important;
    }
    
    /* Smaller mobile language button */
    .language-selector-mobile {
        margin-right: 6px;
    }
    
    .language-btn-mobile {
        width: 32px;
        height: 32px;
        padding: 2px;
    }
    
    .language-btn-mobile .flag-icon {
        width: 20px;
        height: 14px;
    }
    
    /* Smaller mobile menu button */
    .mobile-menu-btn {
        width: 32px;
        height: 32px;
        padding: 2px;
    }
    
    .mobile-menu-btn i {
        font-size: 14px;
    }
    
    /* App download buttons - very small mobile sizing (proportionally smaller) */
    .app-download-buttons img[src*="google-play-badge"],
    .app-download-buttons img[src*="app-store-badge"],
    .google-play-badge,
    .app-store-badge,
    .carousel-caption img[alt="Google Play"],
    .carousel-caption img[alt="App Store"],
    .carousel-caption a img[src*="google-play-badge"],
    .carousel-caption a img[src*="app-store-badge"] {
        width: 130px !important;
        height: 40px !important;
        max-width: 130px !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }
    
    /* Carousel fixes for very small screens */
    #header-carousel {
        height: 450px !important;
    }
    
    #header-carousel .carousel-item img {
        height: 100% !important;
        min-height: auto !important;
    }
    
    /* Ensure carousel caption background covers entire slider on very small mobile */
    .carousel-caption {
        height: 100% !important;
        width: 100% !important;
        background: rgba(9, 30, 62, .7) !important;
    }
    
    .carousel-caption h1 {
        font-size: 20px !important;
    }
    
    .carousel-caption h5 {
        font-size: 12px !important;
    }
}

@media (min-width: 992px) {
    /* Show navbar collapse on desktop */
    .navbar-collapse.d-lg-flex {
        display: flex !important;
    }
    
    /* Hide mobile menu dropdown on desktop */
    .mobile-menu-dropdown {
        display: none !important;
    }
    
    /* Hide navbar toggler on desktop (menu is always visible) */
    .navbar-toggler {
        display: none !important;
    }
    
    /* App download buttons - desktop sizing (fixed dimensions) */
    .app-download-buttons img[src*="google-play-badge"],
    .app-download-buttons img[src*="app-store-badge"],
    .google-play-badge,
    .app-store-badge,
    .carousel-caption img[alt="Google Play"],
    .carousel-caption img[alt="App Store"],
    .carousel-caption a img[src*="google-play-badge"],
    .carousel-caption a img[src*="app-store-badge"] {
        width: 180px !important;
        height: 55px !important;
        max-width: 180px !important;
        max-height: 55px !important;
        object-fit: contain !important;
    }
    
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }
    
    .sticky-top.navbar-dark {
        position: fixed;
        background: #FFFFFF;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Add shadow for depth */
        border-bottom: 1px solid #eee; /* Add border for definition */
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-dark .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .sticky-top.navbar-dark .navbar-brand h1 {
        color: var(--primary);
    }
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    min-width: 80px;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.language-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(6, 163, 218, 0.25);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: white;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    border: none;
}

.language-dropdown {
    min-width: 140px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    background: white;
    margin-top: 5px;
}

.language-dropdown .dropdown-item {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    color: #333;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
}

.language-dropdown .dropdown-item:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.language-dropdown .dropdown-item:focus {
    background: #f8f9fa;
    color: var(--primary);
    outline: none;
}

.language-dropdown .dropdown-item .flag-icon {
    border: none;
}

/* Dark theme for sticky navbar */
.sticky-top .language-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #333;
}

.sticky-top .language-btn:hover {
    background: rgba(6, 163, 218, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.sticky-top .language-btn:focus {
    background: rgba(6, 163, 218, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(6, 163, 218, 0.25);
}

/* Chevron arrow color for white background */
.sticky-top .language-btn i,
.sticky-top .language-btn .fa-chevron-down {
    color: #333 !important;
}

.sticky-top .language-btn:hover i,
.sticky-top .language-btn:hover .fa-chevron-down {
    color: var(--primary) !important;
}

.sticky-top .language-btn:focus i,
.sticky-top .language-btn:focus .fa-chevron-down {
    color: var(--primary) !important;
}

/* General chevron color for non-homepage pages */
.navbar:not(.navbar-dark) .language-btn i,
.navbar:not(.navbar-dark) .language-btn .fa-chevron-down {
    color: #333 !important;
}

.navbar:not(.navbar-dark) .language-btn:hover i,
.navbar:not(.navbar-dark) .language-btn:hover .fa-chevron-down {
    color: var(--primary) !important;
}

.navbar:not(.navbar-dark) .language-btn:focus i,
.navbar:not(.navbar-dark) .language-btn:focus .fa-chevron-down {
    color: var(--primary) !important;
}


/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .7);
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {left: 0; } 50% { left : 145px; } 100% { left: 0; }
}

@-webkit-keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left : 50%; margin-left: 45px; } 100% { left: 50%; margin-left: -75px; }
}

@-webkit-keyframes section-title-run-sm {
    0% {left: 0; } 50% { left : 85px; } 100% { left: 0; }
}


/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}

.service-item .service-icon i {
    transform: rotate(45deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: #DDDDDD;
    border-radius: 2px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    background: var(--primary);
}

.testimonial-carousel .owl-item.center {
    position: relative;
    z-index: 1;
}

.testimonial-carousel .owl-item .testimonial-item {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: #FFFFFF !important;
    box-shadow: 0 0 30px #DDDDDD;
}


/*** Team ***/
.team-item {
    transition: .5s;
}

.team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .5s;
}

.team-social a.btn {
    position: relative;
    margin: 0 3px;
    margin-top: 100px;
    opacity: 0;
}

.team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.team-item:hover .team-social {
    background: rgba(9, 30, 62, .7);
}

.team-item:hover .team-social a.btn:first-child {
    opacity: 1;
    margin-top: 0;
    transition: .3s 0s;
}

.team-item:hover .team-social a.btn:nth-child(2) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .05s;
}

.team-item:hover .team-social a.btn:nth-child(3) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .1s;
}

.team-item:hover .team-social a.btn:nth-child(4) {
    opacity: 1;
    margin-top: 0;
    transition: .3s .15s;
}

.team-item .team-img img,
.blog-item .blog-img img  {
    transition: .5s;
}

.team-item:hover .team-img img,
.blog-item:hover .blog-img img {
    transform: scale(1.15);
}


/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}

/* Force navbar links to be visible - highest specificity */
.navbar-dark.sticky-top .navbar-nav .nav-link,
.sticky-top .navbar-dark .navbar-nav .nav-link,
.sticky-top.navbar-dark .navbar-nav .nav-link {
    color: #000000 !important; /* Force black color */
    opacity: 1 !important; /* Ensure visibility */
}

.navbar-dark.sticky-top .navbar-nav .nav-link.active,
.sticky-top .navbar-dark .navbar-nav .nav-link.active,
.sticky-top.navbar-dark .navbar-nav .nav-link.active {
    color: #06A3DA !important; /* Your primary blue */
}

.navbar-dark.sticky-top .navbar-nav .nav-link:hover,
.sticky-top .navbar-dark .navbar-nav .nav-link:hover,
.sticky-top.navbar-dark .navbar-nav .nav-link:hover {
    color: #06A3DA !important; /* Blue on hover */
}

/* Override any white color assignments with even higher specificity */
.navbar .nav-link {
    color: #000000 !important;
}

.navbar .nav-link.active {
    color: #06A3DA !important;
}

.navbar .nav-link:hover {
    color: #06A3DA !important;
}

/* Clean Navigation Color Solution */

/* Homepage navbar - NOT sticky (transparent background) */
.navbar-dark:not(.sticky-top) .navbar-nav .nav-link {
    color: #FFFFFF !important; /* White text on homepage */
    font-size: 18px;
    font-weight: 600;
    padding: 35px 0;
}

.navbar-dark:not(.sticky-top) .navbar-nav .nav-link:hover,
.navbar-dark:not(.sticky-top) .navbar-nav .nav-link.active {
    color: var(--primary) !important; /* Blue for active/hover */
}

/* Other pages navbar - sticky (white background) */
.navbar-dark.sticky-top .navbar-nav .nav-link {
    color: #000000 !important; /* Black text on other pages */
    padding: 20px 0;
}

.navbar-dark.sticky-top .navbar-nav .nav-link:hover,
.navbar-dark.sticky-top .navbar-nav .nav-link.active {
    color: var(--primary) !important; /* Blue for active/hover */
}

/* Brand colors */
.navbar-dark:not(.sticky-top) .navbar-brand h1 {
    color: #FFFFFF !important; /* White on homepage */
    transition: color 0.3s ease; /* Smooth color transition */
}

.navbar-dark.sticky-top .navbar-brand h1 {
    color: var(--primary) !important; /* Blue on other pages */
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Special case: At top of homepage when "Inicio" is not active - make brand visible */
.navbar-dark:not(.sticky-top) .navbar-brand h1.brand-visible-top {
    color: #06A3DA !important; /* Blue when at top and Inicio not active */
}

/* ============================================
   MOBILE & TABLET SPACING FIXES
   Reduce excessive vertical spacing on mobile/tablet
   while keeping desktop layout unchanged
   ============================================ */

@media (max-width: 768px) {
    /* Bootstrap Utility Overrides - Reduce vertical spacing */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .my-5 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .pt-5 {
        padding-top: 1.5rem !important;
    }
    
    .pb-5 {
        padding-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1.5rem !important;
    }
    
    /* Container spacing reduction */
    .container-fluid.py-5,
    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .container-fluid.pt-lg-0,
    .container.pt-lg-0 {
        padding-top: 1rem !important;
    }
    
    /* Facts/Counter Section - Reduce spacing */
    .facts {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .facts .container {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Section Titles - Reduce bottom margin */
    .section-title {
        margin-bottom: 1.5rem !important;
    }
    
    .section-title.position-relative.pb-3.mb-5 {
        padding-bottom: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Carousel Caption - Tighter spacing on mobile */
    .carousel-caption {
        padding: 15px 10px !important;
        bottom: 10% !important;
    }
    
    .carousel-caption .p-3 {
        padding: 0.75rem !important;
        max-width: 100% !important;
    }
    
    .carousel-caption .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .mb-md-4 {
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Hero section text spacing */
    .carousel-caption h5 {
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption h1 {
        margin-bottom: 1rem !important;
    }
    
    /* Row gaps - Reduce vertical spacing */
    .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }
    
    /* Card sections - Reduce padding */
    .testimonial-item {
        margin-bottom: 1rem !important;
    }
    
    .testimonial-item .pt-5 {
        padding-top: 1.5rem !important;
    }
    
    .testimonial-item .pb-4 {
        padding-bottom: 1rem !important;
    }
    
    .testimonial-item .pt-4 {
        padding-top: 1rem !important;
    }
    
    .testimonial-item .pb-5 {
        padding-bottom: 1.5rem !important;
    }
    
    /* About/Features/Services sections */
    .wow.fadeInUp {
        margin-bottom: 0 !important;
    }
    
    /* Remove excessive min-height on mobile */
    [style*="min-height"] {
        min-height: auto !important;
    }
    
    /* Hero section buttons - Tighter spacing */
    .carousel-caption .btn {
        margin: 3px !important;
        padding: 8px 16px !important;
    }
    
    .carousel-caption .me-3 {
        margin-right: 0.5rem !important;
    }
}

/* Tablet specific adjustments (768px - 991px) */
@media (min-width: 769px) and (max-width: 991px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container-fluid.py-5,
    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .section-title.position-relative.pb-3.mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Very small mobile devices (≤576px) - Even tighter spacing */
@media (max-width: 576px) {
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .container-fluid.py-5,
    .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .facts {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .facts .container {
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }
    
    .section-title {
        margin-bottom: 1rem !important;
    }
    
    .section-title.position-relative.pb-3.mb-5 {
        padding-bottom: 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption {
        padding: 10px 8px !important;
        bottom: 8% !important;
    }
    
    .carousel-caption .p-3 {
        padding: 0.5rem !important;
        max-width: 100% !important;
    }
    
    .carousel-caption h1 {
        margin-bottom: 0.75rem !important;
    }
    
    .carousel-caption h5 {
        margin-bottom: 0.5rem !important;
    }
    
    .row.g-5 {
        --bs-gutter-y: 1rem;
    }
}

/* ============================================
   DESKTOP SPACING PRESERVATION
   Ensure desktop spacing remains unchanged
   This comes AFTER mobile rules to properly override them
   ============================================ */

@media (min-width: 992px) {
    /* Restore original Bootstrap spacing on desktop - override mobile rules */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .my-5 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }
    
    .pt-5 {
        padding-top: 3rem !important;
    }
    
    .pb-5 {
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 3rem !important;
    }
    
    .mt-5 {
        margin-top: 3rem !important;
    }
    
    /* Container spacing - restore original */
    .container-fluid.py-5,
    .container.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .container-fluid.pt-lg-0,
    .container.pt-lg-0 {
        padding-top: 0 !important;
    }
    
    /* Facts section - restore original */
    .facts {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .facts .container {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Section titles - restore original */
    .section-title {
        margin-bottom: 3rem !important;
    }
    
    .section-title.position-relative.pb-3.mb-5 {
        padding-bottom: 1rem !important;
        margin-bottom: 3rem !important;
    }
    
    /* Carousel height for desktop - full screen like live site */
    #header-carousel {
        height: 100vh !important;
        min-height: 600px !important;
    }
    
    #header-carousel .carousel-item img {
        height: 100% !important;
        min-height: auto !important;
    }
    
    /* Carousel caption - compact spacing with proper font sizes for desktop */
    .carousel-caption {
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-caption .p-3 {
        padding: 1rem !important;
        max-width: 900px !important;
        width: 100%;
    }
    
    /* Compact margins for desktop matching live site */
    .carousel-caption .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .mb-md-4 {
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .mb-2 {
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    /* Proper font sizes for desktop - matching live site */
    .carousel-caption h5 {
        margin-bottom: 0.75rem !important;
        line-height: 1.4 !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
    }
    
    .carousel-caption h1,
    .carousel-caption .display-1 {
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
        font-size: 4.5rem !important;
        font-weight: 700 !important;
    }
    
    /* Display-1 proper sizing */
    .carousel-caption .display-1 {
        margin-bottom: 1rem !important;
    }
    
    /* App download section - proper spacing */
    .carousel-caption .text-center.mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .carousel-caption .text-center.mb-4 p {
        margin-bottom: 0.75rem !important;
        font-size: 1rem !important;
    }
    
    /* App download buttons spacing */
    .carousel-caption .app-download-buttons {
        margin-top: 0.5rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Action buttons - proper sizing */
    .carousel-caption .btn {
        margin-top: 1rem !important;
        padding: 0.875rem 2rem !important;
        font-size: 1rem !important;
    }
    
    /* Row gaps - restore original */
    .row.g-5 {
        --bs-gutter-y: 3rem;
    }
}