:root {
    --primary: #02245B;
    --secondary: #FF5E14;
    --accent: #3A86FF;
    --light: #F8F9FA;
    --dark: #1D2A38;
    --gray: #6C757D;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #333;
    line-height: 1.6;
}

img {
    pointer-events: none;
}

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

h1,
h2,
.h1,
.h2,
.fw-bold {
    font-weight: 700 !important;
}

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 600 !important;
    color: #FF5E14
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 500 !important;
}

/*** Spinner ***/
#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;
}

/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: #FFFFFF;
}

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

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

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.topbar-right {
    position: relative;
    background: var(--secondary);
}

.topbar-right::before {
    position: absolute;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    left: -15px;
    transform: skewX(-30deg);
    background-color: var(--secondary);
}

/* Enhanced Topbar for mobile */
@media (max-width: 991.98px) {
    .topbar-right {
        justify-content: center !important;
        padding: 10px !important;
    }

    .topbar-right .fs-5 {
        font-size: 1rem !important;
    }
}

/* Topbar background fix */
.container-fluid.bg-dark {
    background-color: var(--dark) !important;
}

/*** Navbar ***/
.navbar {
    min-height: 100px;
    padding-top: 0;
    padding-bottom: 0;
    box-shadow: 0 4px 20px rgba(2, 36, 91, 0.1);
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar.sticky-top {
    top: 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    padding: 0;
    height: auto;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.brand-text {
    line-height: 1.2;
    display: none;
}

.brand-text h1 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 1200px) {
    .brand-text {
        display: block;
    }
}

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link {
    padding: 35px 0 !important;
    margin: 0 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary) !important;
}

.navbar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* Navbar toggler icon */
.navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%282, 36, 91, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Responsive Navbar */
@media (max-width: 1199.98px) {
    .navbar-nav .nav-link {
        margin: 0 10px;
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        min-height: 80px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar-logo {
        height: 60px;
    }

    .navbar-nav {
        padding: 1.5rem 0;
        background: white;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 15px 20px !important;
        margin: 0 !important;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

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

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        /* background: rgba(2, 36, 91, 0.05); */
        padding-left: 30px !important;
    }

    .navbar-toggler {
        padding: 0.5rem;
        border: 2px solid var(--primary);
        border-radius: 5px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(2, 36, 91, 0.25);
    }

    .mobile-contact {
        background: var(--light);
        border-radius: 8px;
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .mobile-contact a {
        text-decoration: none;
        display: block;
        padding: 8px 0;
        transition: all 0.3s ease;
    }

    .mobile-contact a:hover {
        color: var(--secondary) !important;
        padding-left: 10px;
    }
}

@media (max-width: 767.98px) {
    .navbar {
        min-height: 70px;
    }

    .navbar-logo {
        height: 50px;
    }

    .topbar-right {
        font-size: 0.9rem !important;
    }

    .topbar-right .fs-5 {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 575.98px) {
    .navbar {
        min-height: 65px;
    }

    .navbar-logo {
        height: 45px;
    }

    .navbar-toggler {
        padding: 0.4rem;
    }

    .topbar-right {
        padding: 8px !important;
    }
}

/* Navbar scroll effect */
.navbar.scrolled {
    min-height: 80px;
    box-shadow: 0 4px 20px rgba(2, 36, 91, 0.15);
}

.navbar.scrolled .navbar-logo {
    height: 60px;
}

.navbar.scrolled .brand-text h1 {
    font-size: 1.3rem;
}

.navbar.scrolled .brand-text p {
    font-size: 0.8rem;
}

.navbar.scrolled .navbar-nav .nav-link {
    padding: 25px 0 !important;
}

@media (max-width: 991.98px) {
    .navbar.scrolled {
        min-height: 70px;
    }

    .navbar.scrolled .navbar-logo {
        height: 50px;
    }
}

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

/* Fix for navbar collapse animation */
.collapsing {
    transition: height 0.35s ease;
}

/* Improve mobile dropdown animation */
@media (max-width: 991.98px) {
    #navbarCollapse {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        transition: all 0.3s ease;
    }

    #navbarCollapse.collapsing {
        overflow: hidden;
    }

    #navbarCollapse.show {
        animation: slideDown 0.3s ease forwards;
    }

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

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Mobile social icons fix */
@media (max-width: 991.98px) {
    .navbar .btn-sm.rounded-circle {
        width: 40px;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Ensure navbar doesn't overlap carousel */
@media (max-width: 768px) {
    .carousel-item {
        margin-top: 0;
    }
}

/*** Carousel Complete Fix - Fully Responsive ***/
#header-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Carousel Inner Container */
.carousel-inner {
    width: 100%;
    position: relative;
}

/* Responsive Height Management - SIMPLIFIED */
.carousel-item {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
}

/* Responsive heights */
@media (min-width: 1400px) {
    .carousel-item {
        height: 90vh;
        min-height: 700px;
        max-height: 900px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .carousel-item {
        height: 85vh;
        min-height: 650px;
        max-height: 800px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .carousel-item {
        height: 80vh;
        min-height: 600px;
        max-height: 750px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .carousel-item {
        height: 75vh;
        min-height: 500px;
        max-height: 650px;
    }
}

@media (max-width: 767px) {
    .carousel-item {
        height: 70vh;
        min-height: 450px;
        max-height: 600px;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 65vh;
        min-height: 400px;
        max-height: 550px;
    }
}

@media (max-width: 375px) {
    .carousel-item {
        height: 60vh;
        min-height: 350px;
        max-height: 500px;
    }
}

/* Image Styling */
.carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* opacity: 0.85; */
    transition: transform 8s ease;
}

.carousel-item.active img {
    transform: scale(1.05);
}

/* Carousel Caption - FIXED POSITIONING */
.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
}

/* Content Container - CENTERED AND RESPONSIVE */
.carousel-content-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    position: relative;
    z-index: 3;
}

/* Gradient Overlay */
.carousel-caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(2, 36, 91, 0.85) 0%,
            rgba(2, 36, 91, 0.7) 50%,
            rgba(2, 36, 91, 0.5) 100%);
    z-index: 1;
}

/* Content Wrapper */
.carousel-content {
    max-width: 650px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Badge */
.carousel-badge {
    display: inline-block;
    background: rgba(255, 94, 20, 0.2);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 94, 20, 0.3);
    text-align: center;
}

/* Main Title */
.carousel-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

/* Description */
.carousel-desc {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons Container */
.carousel-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.carousel-btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.carousel-btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, #FF7B42 100%);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(255, 94, 20, 0.3);
}

.carousel-btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.carousel-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 94, 20, 0.4);
    color: white;
}

.carousel-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-3px);
    color: white;
}

/* Carousel Indicators - FIXED POSITIONING */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    z-index: 10;
    /* Higher than content */
    list-style: none;
    height: 12px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    margin: 0;
    padding: 0;
    text-indent: -999px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-indicators [data-bs-target].active {
    width: 40px;
    border-radius: 10px;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.carousel-indicators [data-bs-target]:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 11;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 94, 20, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* RESPONSIVE TYPOGRAPHY - CRITICAL FIX */
@media (max-width: 1200px) {
    .carousel-content-container {
        padding: 35px 25px;
    }

    .carousel-title {
        font-size: 36px;
    }

    .carousel-desc {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .carousel-content-container {
        padding: 30px 20px;
        text-align: center;
    }

    .carousel-content {
        max-width: 500px;
        margin: 0 auto;
    }

    .carousel-title {
        font-size: 32px;
    }

    .carousel-desc {
        font-size: 16px;
    }

    .carousel-btn {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .carousel-content-container {
        padding: 25px 15px;
    }

    .carousel-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .carousel-desc {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .carousel-badge {
        font-size: 12px;
        padding: 6px 15px;
        margin-bottom: 15px;
    }

    .carousel-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .carousel-btn {
        width: 100%;
        max-width: 280px;
        min-width: unset;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    .carousel-indicators {
        bottom: 15px;
        gap: 8px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }

    .carousel-indicators [data-bs-target].active {
        width: 30px;
    }
}

@media (max-width: 576px) {
    .carousel-content-container {
        padding: 20px 12px;
    }

    .carousel-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .carousel-desc {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .carousel-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .carousel-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 35px;
        height: 35px;
        margin: 0 5px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 14px;
        height: 14px;
    }

    .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }

    .carousel-indicators [data-bs-target].active {
        width: 25px;
    }
}

@media (max-width: 375px) {
    .carousel-title {
        font-size: 22px;
    }

    .carousel-desc {
        font-size: 13px;
    }

    .carousel-badge {
        font-size: 10px;
    }

    .carousel-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}

/* Landscape Mode */
@media (max-height: 500px) and (orientation: landscape) {
    .carousel-item {
        height: 90vh;
        min-height: 300px;
    }

    .carousel-content-container {
        padding: 15px;
    }

    .carousel-title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .carousel-desc {
        font-size: 14px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .carousel-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .carousel-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 120px;
    }

    .carousel-indicators {
        bottom: 5px;
    }
}

/* Large Desktop */
@media (min-width: 1600px) {
    .carousel-content-container {
        max-width: 1400px;
        padding: 50px 30px;
    }

    .carousel-title {
        font-size: 48px;
    }

    .carousel-desc {
        font-size: 20px;
    }
}

/* Animation */
.carousel-animated {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.carousel-delay-1 {
    animation-delay: 0.2s;
}

.carousel-delay-2 {
    animation-delay: 0.4s;
}

.carousel-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .carousel-item img,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-btn,
    .carousel-animated,
    .carousel-indicators [data-bs-target] {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }

    .carousel-item.active img {
        transform: none !important;
    }

    .carousel-animated {
        opacity: 1 !important;
    }
}

/*** Facts ***/
.facts {
    position: relative;
    margin: 6rem 0;
    background: var(--dark);
}

.facts .border {
    border-color: rgba(255, 255, 255, .1) !important;
}

/*** Features ***/
.btn-play {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--primary);
}

@media (max-width: 992px) {
    .btn-play {
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
    }
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid #FFFFFF;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.section-header {
    margin-bottom: 3rem;
}

.section-tagline {
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.feature-img-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.feature-img-container:hover .feature-img {
    transform: scale(1.03);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.play-btn:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-btn i {
    color: var(--primary);
    font-size: 28px;
    margin-left: 4px;
}

.feature-item {
    display: flex;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    box-shadow: 0 5px 15px rgba(2, 36, 91, 0.2);
}

.feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.feature-content h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-content span {
    color: var(--gray);
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: white;
}

.service-card {
    position: relative;
    margin: 10px 0 0 0;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-bg-img {
    position: absolute;
    z-index: 1;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background-color: #f0f0f0
}

.service-card:hover .service-bg-img {
    transform: scale(1.05);
}

.service-img-container {
    position: absolute;
    width: 160px;
    height: 160px;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 3;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service-card:hover .service-img-container {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.service-content {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background: linear-gradient(to top, rgba(2, 36, 91, 0.9) 0%, rgba(2, 36, 91, 0.7) 0%, transparent 100%);
    color: white;
    transition: all 0.4s ease;
    align-items: center;
}

.service-content .service-title h3 {
    color: black;
}

/* .service-card:hover .service-content {
    background: linear-gradient(to top, rgba(2, 36, 91, 0.95) 0%, rgba(2, 36, 91, 0.8) 60%, rgba(2, 36, 91, 0.4) 100%);
} */

.service-title {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-description {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 50px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 94, 20, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .service-card {
        height: 350px;
        margin: 10px 0 10px 0;
    }

    .service-img-container {
        width: 140px;
        height: 140px;
        top: -70px;
    }

    .service-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .feature-item {
        padding: 1rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        margin-right: 1rem;
    }

    .service-card {
        height: 380px;
    }
}

@media (max-width: 576px) {

    .why-choose-us,
    .services-section {
        padding: 3rem 0;
    }

    .service-card {
        height: 300px;
        margin: 10px;
    }

    .service-img-container {
        width: 120px;
        height: 120px;
        top: -60px;
    }

    .service-img {
        width: 85px;
        height: 85px;
    }
}

/*** Project ***/
.project-carousel {
    position: relative;
    background: var(--dark);
}

.project-item {
    position: relative;
    display: block;
}

.project-item img {
    transition: .5s;
}

.project-item:hover img,
.project-carousel .owl-item.center img {
    margin-top: -60px;
}

.project-item .project-title {
    position: absolute;
    padding: 0 15px;
    width: 100%;
    height: 80px;
    bottom: -110px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--dark);
    transition: .5s;
}

.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title {
    bottom: -60px;
}

.project-item .project-title::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 30px;
    top: -15px;
    left: 0;
    transform: skewY(-5deg);
    background: var(--dark);
    transition: .5s;
}

.project-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    transition: .5s;
    opacity: 0;
    z-index: 1;
}

.project-carousel:hover .owl-nav {
    opacity: 1;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    margin: 0 30px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

/*** Team ***/
.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    display: flex;
    align-items: center;
    background: var(--primary);
    transition: .5s;
}

.team-item:hover .team-social {
    left: 0;
}

/*** Testimonial ***/
.testimonial-carousel {
    position: relative;
}

.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 100px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 150px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .3s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 50%;
    font-size: 20px;
    transition: .3s;
    border: none;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.testimonial-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem 1.5rem;
    margin: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-img {
    position: relative;
    margin-bottom: 1.5rem;
}

.testi-author {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    border: 3px solid var(--primary);
}

.testi-author i {
    font-size: 40px !important;
    color: var(--primary) !important;
    margin-top: 0 !important;
}

.testimonial-text {
    text-align: center;
    background: var(--light);
    border-radius: 10px;
    padding: 1.5rem !important;
    border-left: 4px solid var(--secondary);
}

.testimonial-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--dark);
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial .btn-square.bg-primary {
    position: absolute;
    bottom: -10px;
    right: calc(50% - 20px);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
}

.testimonial-text h5 {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #02245b, #ff5e14);
}

.footer-logo {
    height: 35px;
    transition: transform 0.3s ease;
    filter: brightness(1.1);
}

.footer-description {
    line-height: 1.5;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: #ff5e14;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.footer-link {
    color: #b0b0b0 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer-link i {
    font-size: 0.65rem;
    color: #ff5e14;
    width: 12px;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.social-links {
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.social-links .btn-square {
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.footer-contact {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.footer-contact .contact-item {
    margin-bottom: 0.75rem;
}

.footer-contact .contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact .contact-item i {
    font-size: 0.9rem;
    min-width: 20px;
    margin-top: 0.25rem;
}

.footer-contact a {
    font-size: 0.85rem;
    line-height: 1.4;
}

.business-hours-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 6px;
}

.business-hours-card h5 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.business-hours-card .text-light {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.business-hours-card .fw-bold {
    font-size: 0.85rem;
}

.copyright {
    background: #0a0a0a;
    padding: 0.75rem 0;
    font-size: 0.8rem;
}


@media (max-width: 399.98px) {

    /* Quick Links - 2 columns */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1rem;
    }

    /* Equipment links - 2 columns */
    .col-lg-3 .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1rem;
    }

    /* Remove icons on very small screens */
    .footer-link i {
        display: none;
    }

    .footer-link {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }

    /* Stack social icons in 2 columns */
    .social-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 150px;
    }
}

@media (min-width: 400px) and (max-width: 575.98px) {

    .col-lg-2 .footer-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem 1.5rem;
    }

    .col-lg-3 .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 1.5rem;
    }

    .footer-link i {
        font-size: 0.6rem;
        margin-right: 0.4rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {

    .col-lg-2 .footer-links {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem 1.5rem;
    }

    .col-lg-3 .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem 1rem;
    }


}

@media (min-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 575.98px) {
    .footer {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }

    .footer .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Reduce spacing between columns */
    .footer .row.g-5 {
        margin-top: -1rem !important;
        --bs-gutter-y: 1rem;
    }

    /* No borders between columns on mobile */
    .footer .row>div {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer .row>div:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* Compact headings */
    .footer-heading {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }


    /* Compact contact section */
    .footer-contact {
        padding: 0.5rem;
        margin-top: 0.25rem;
    }

    /* Compact business hours */
    .business-hours-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }

    /* Reduce large spacing classes */
    .mt-5 {
        margin-top: 1.5rem !important;
    }

    .pt-4 {
        padding-top: 1rem !important;
    }
}

/* ===== UTILITY CLASS ADJUSTMENTS FOR MOBILE ===== */

@media (max-width: 767.98px) {

    /* Reduce all spacing on mobile */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .mb-3,
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }

    .mb-2 {
        margin-bottom: 0.5rem !important;
    }

    .me-2 {
        margin-right: 0.5rem !important;
    }

    .me-3 {
        margin-right: 0.75rem !important;
    }

    .mt-4 {
        margin-top: 1rem !important;
    }
}

/* ===== COMPACT LAYOUT FOR EXTRA SMALL SCREENS ===== */

@media (max-width: 350px) {

    /* Ultra-compact: 2 columns for everything */
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    /* Even smaller text */
    .footer-link {
        font-size: 0.75rem;
    }

    .footer-heading {
        font-size: 0.85rem;
    }

    .footer-description {
        font-size: 0.8rem;
    }

    /* Smaller social icons */
    .social-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .social-links .btn-square {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
}

/* ===== TOUCH-FRIENDLY OPTIMIZATIONS ===== */

@media (hover: none) and (pointer: coarse) {
    .footer-link {
        padding: 0.35rem 0;
        min-height: 36px;
        /* Reduced from 44px for compact layout */
        align-items: center;
    }

    .social-links .btn-square {
        min-width: 36px;
        /* Reduced from 44px */
        min-height: 36px;
    }

    a[href^="tel:"],
    a[href^="mailto:"] {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

@media (max-width: 767.98px) {

    /* Reduce animations on mobile */
    .footer-link,
    .social-links .btn-square,
    .business-hours-card {
        transition: none;
    }

    .wow {
        animation: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ===== DESKTOP HOVER EFFECTS ===== */

@media (min-width: 768px) {
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .wow.fadeIn {
        animation-name: fadeInUp;
        animation-duration: 0.6s;
        animation-fill-mode: both;
    }

    /* Hover effects only on desktop */
    .footer-link:hover {
        color: #ffffff !important;
        transform: translateX(5px);
    }

    .footer-link:hover i {
        transform: translateX(3px);
    }

    .social-links .btn-square:hover {
        transform: translateY(-2px) rotate(3deg);
        box-shadow: 0 4px 12px rgba(255, 94, 20, 0.3);
        background: #ff5e14;
        border-color: #ff5e14;
    }

    .business-hours-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
}

/* ===== ACCESSIBILITY ===== */

@media (max-width: 767.98px) {
    .footer-link {
        color: #d0d0d0 !important;
    }

    /* Ensure text doesn't get too small */
    body {
        -webkit-text-size-adjust: 100%;
    }

    /* Prevent text overflow */
    .footer-link {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== GRID FALLBACK ===== */

/* Fallback for browsers that don't support CSS Grid */
@supports not (display: grid) {
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    @media (max-width: 767.98px) {
        .footer-link {
            flex: 0 0 calc(50% - 0.5rem);
            margin-right: 0.5rem;
        }
    }
}

.wow.fadeIn {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
    animation-fill-mode: both;
}

/* Hover Effects */
.footer-link,
.social-links .btn-square,
.business-hours-card,
.footer-contact a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Text Effects */
.text-primary {
    background: linear-gradient(90deg, #ff5e14, #ff8e53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Borders */
.border-secondary {
    border-color: rgba(255, 94, 20, 0.2) !important;
}

/* Enhanced Horizontal touch-responsive scroll area */
.service-scroll-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 0 50px;
    box-sizing: border-box;
    isolation: isolate;
}

/* Gradient fade edges for scroll container */
.scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    mask-image: linear-gradient(to right,
            transparent 0%,
            black 40px,
            black calc(100% - 40px),
            transparent 100%);
    -webkit-mask-image: linear-gradient(to right,
            transparent 0%,
            black 40px,
            black calc(100% - 40px),
            transparent 100%);
}

.service-scroll-center {
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
    cursor: grab;
}

.service-scroll-center:active {
    cursor: grabbing;
}

.service-scroll-center::-webkit-scrollbar {
    display: none;
}

/* Enhanced scroll inner with 3D effect */
.scroll-inner {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 20px 0;
    perspective: 1000px;
}

/* Enhanced button items */
.scroll-inner>* {
    flex: 0 0 auto;
    min-width: 220px;
    max-width: 240px;
    perspective: 1000px;
}

.btn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    border-radius: 20px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    text-decoration: none;
    color: #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Hover glow effect */
.btn-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #3b82f6, #06b6d4);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.btn-item:hover::before {
    transform: scaleX(1);
}

/* Icon styling */
.btn-item i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #FF5E14;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.2));
}

/* Label styling */
.btn-label {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: #1f2937;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Hover effects */
.btn-item:hover {
    transform: translateY(-10px) scale(1.05) rotateX(5deg);
    box-shadow:
        0 20px 40px rgba(79, 70, 229, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(145deg, #ffffff, #f0f4ff);
}

.btn-item:hover i {
    transform: scale(1.1);
    color: #3b82f6;
}

.btn-item:hover .btn-label {
    color: #4f46e5;
}

/* Active state */
.btn-item:active {
    transform: translateY(-5px) scale(1.02);
    transition: transform 0.1s ease;
}

/* Enhanced hover pause with fade effect */
.scroll-inner:hover>* {
    animation: itemBounce 2s infinite ease-in-out;
}

@keyframes itemBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Enhanced navigation buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(1);
    background: linear-gradient(135deg, #4f46e5, #3b82f6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 25px rgba(79, 70, 229, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scroll-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.scroll-btn:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow:
        0 12px 35px rgba(79, 70, 229, 0.4),
        0 6px 20px rgba(0, 0, 0, 0.15);
}

.scroll-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.scroll-btn.prev {
    left: 10px;
}

.scroll-btn.next {
    right: 10px;
}

/* Progress indicator */
.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    z-index: 10;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #4f46e5, #3b82f6);
    border-radius: 2px;
    animation: progressPulse 2s infinite ease-in-out;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Enhanced responsive adjustments */
@media (max-width: 1024px) {
    .service-scroll-wrap {
        padding: 0 40px;
    }

    .scroll-inner>* {
        min-width: 200px;
    }

    .btn-item {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    .service-scroll-wrap {
        padding: 0 30px;
    }

    .scroll-inner {
        gap: 20px;
        animation-duration: 35s;
    }

    .scroll-inner>* {
        min-width: 170px;
        max-width: 190px;
    }

    .btn-item {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .btn-item i {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .btn-label {
        font-size: 0.9rem;
    }

    .scroll-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .scroll-progress {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .service-scroll-wrap {
        padding: 0 20px;
    }

    .scroll-inner {
        gap: 15px;
        animation-duration: 30s;
    }

    .scroll-inner>* {
        min-width: 140px;
        max-width: 160px;
    }

    .btn-item {
        padding: 18px 12px;
        border-radius: 14px;
    }

    .btn-item i {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    .btn-label {
        font-size: 0.85rem;
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .scroll-progress {
        width: 120px;
        height: 3px;
    }

    .scroll-container {
        mask-image: linear-gradient(to right,
                transparent 0%,
                black 20px,
                black calc(100% - 20px),
                transparent 100%);
        -webkit-mask-image: linear-gradient(to right,
                transparent 0%,
                black 20px,
                black calc(100% - 20px),
                transparent 100%);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .btn-item {
        background: linear-gradient(145deg, #2d3748, #4a5568);
        color: #e2e8f0;
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.3),
            0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .btn-item:hover {
        background: linear-gradient(145deg, #4a5568, #2d3748);
        box-shadow:
            0 20px 40px rgba(79, 70, 229, 0.2),
            0 8px 25px rgba(0, 0, 0, 0.3);
    }

    .btn-label {
        color: #e2e8f0;
    }

    .scroll-progress {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .scroll-inner {
        animation: none;
    }

    .btn-item,
    .scroll-btn {
        transition: none;
    }

    .scroll-inner:hover>* {
        animation: none;
    }

    .scroll-progress::after {
        animation: none;
    }
}


/* Improved text animations */
.animated-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.animated-text.delay-1 {
    animation-delay: 0.3s;
}

.animated-text.delay-2 {
    animation-delay: 0.6s;
}

.animated-text.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/********************    Home Page additinal CSS    *****************/
/* Quote styling improvements */
.quote-wrapper {
    text-align: center;
    display: inline-block;
    margin: 0 auto;
    padding-bottom: 14px;
    position: relative;
    max-width: 100%;
}

.quote-icon i {
    color: #ffffff !important;
    opacity: 0.7;
    font-size: 20px;
    margin: 0 6px;
    vertical-align: middle;
}

.quote-text {
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 600;
    color: #ffffff !important;
    vertical-align: middle;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.quote-underline {
    width: min(70%, 300px);
    height: 3px;
    background: #ff5e14;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* Service card button fix */
.service-btn-link {
    text-decoration: none;
    display: inline-block;
}

.service-btn-link:hover {
    text-decoration: none;
}

/* Skeleton loading for category cards */
.service-card-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 20px;
    height: 350px;
}

@keyframes skeleton-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Improved color contrast for footer */
.footer .text-primary {
    color: #ff5e14 !important;
}

.footer .btn-link {
    color: #ff5e14 !important;
}

.footer .btn-link:hover {
    color: #ffffff !important;
}

/* Touch-friendly improvements */
@media (max-width: 768px) {

    /* Fix for distracting gradient line */
    .scroll-container {
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    .service-scroll-wrap {
        margin: 1rem 0;
        padding: 0 15px;
        overflow: hidden;
    }

    .scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .scroll-container::-webkit-scrollbar {
        display: none;
    }

    .scroll-btn {
        display: none !important;
    }

    .btn-item {
        padding: 15px 10px;
        min-width: 150px;
    }

    .btn-item i {
        font-size: 1.8rem;
    }

    .btn-label {
        font-size: 0.9rem;
    }

    /* Fix carousel container on mobile */
    .container-fluid.px-0.mb-5 {
        overflow: hidden;
    }

    /* Ensure carousel images are visible */
    .carousel-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}



/* Loading state */
.service-bg-img.loading {
    background: linear-gradient(90deg,
            #f0f0f0 25%,
            #e0e0e0 50%,
            #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Focus styles for accessibility */
.btn-item:focus-visible,
.service-btn:focus-visible,
.scroll-btn:focus-visible {
    outline: 3px solid #02245b;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(2, 36, 91, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-item {
        border: 2px solid currentColor;
    }

    .service-card {
        border: 2px solid #02245b;
    }
}

/* FIX: Constrain scroll area to exact item width */
.scroll-container {
    max-width: 1400px;
    /* Match your calculated originalWidth */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

#scrollArea {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

/* Optional: Center the scroll area */
.service-scroll-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.scroll-btn {
    flex-shrink: 0;
}