/********** Template CSS **********/
:root {
    --primary: #08965b;
    --secondary: #5F656F;
    --light: #F5F5F5;
    --dark: #02245B;
    --success: #28a745;
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;
    --transition: all 0.3s ease;
}

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

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

h3,
h4,
.h3,
.h4,
.fw-medium {
    font-weight: 400 !important;
}

h5,
h6,
.h5,
.h6,
.fw-semi-bold {
    font-weight: 400 !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;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 5px
}

.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(--primary);
}

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


/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand {
    position: relative;
    padding-right: 50px;
    height: 75px;
    display: flex;
    align-items: center;
    /* background: var(--primary); */
}

.navbar .navbar-brand::after {
    position: absolute;
    content: "";
    width: 50px;
    height: 100%;
    top: 0;
    right: -25px;
    transform: skewX(-30deg);
    /* background-color: var(--primary); */
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

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

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
#header-carousel .carousel-item {
    height: 600px;
    position: relative;
}

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

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%);
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
}

.carousel-caption h1,
.carousel-caption .display-1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.carousel-caption p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

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

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 3.5rem;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(to right, rgba(2, 36, 91, 1) 0%, rgba(2, 36, 91, 0) 100%);
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}


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


/*** Service ***/
.service-item {
    position: relative;
    margin: 65px 0 25px 0;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item .service-img {
    position: absolute;
    padding: 12px;
    width: 130px;
    height: 130px;
    top: -65px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .service-detail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.service-item .service-title {
    position: absolute;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-title {
    top: -100%;
}

.service-item .service-text {
    position: absolute;
    overflow: hidden;
    padding: 65px 30px 25px 30px;
    width: 100%;
    height: 100%;
    top: 100%;
    left: 0;
    display: flex;
    align-items: center;
    text-align: center;
    background: rgba(2, 36, 91, .7);
    transition: .5s;
}

.service-item:hover .service-text {
    top: 0;
}

.service-item .service-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100px;
    top: -100%;
    left: 0;
    transform: skewY(-12deg);
    background: #FFFFFF;
    transition: .5s;
}

.service-item:hover .service-text::before {
    top: -55px;
}

.service-item .btn {
    position: absolute;
    width: 130px;
    height: 50px;
    left: 50%;
    bottom: -25px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    background: #FFFFFF;
    border: none;
    box-shadow: 0 0 45px rgba(0, 0, 0, .09);
    z-index: 2;
}

.service-item .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}


/*** Project ***/
.project-carousel {
    position: relative;
    background: #000;
    padding-bottom: 50px; /* add space for titles */
}

.project-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
  height: 300px; /* fixed height for all items (adjust as needed) */
}

.project-item img {
  width: 100%;
  height: 100%; /* take full container height */
  object-fit: cover; /* crop while keeping proportions */
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}


/* Hover effect on image */
.project-item:hover img,
.project-carousel .owl-item.center img {
    transform: scale(1.1);
    filter: brightness(0.8);
}

/* Title overlay */
.project-item .project-title {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 15px 10px;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.4s ease;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Lift title on hover */
.project-item:hover .project-title,
.project-carousel .owl-item.center .project-title {
    background: rgba(0,0,0,0.8);
}

/* Title text */
.project-item .project-title h5 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Carousel nav buttons */
.project-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
}

.project-carousel .owl-nav .owl-prev,
.project-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    background: #0077b6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background 0.3s ease;
}

.project-carousel .owl-nav .owl-prev:hover,
.project-carousel .owl-nav .owl-next:hover {
    background: #00b4d8;
}



/*** 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::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: 200px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

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

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

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.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 ***/
.footer {
    color: #B0B9AE;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #B0B9AE;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    color: #B0B9AE;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
/* Modernize font and base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Force Montserrat and normal weight across all textual elements */
body,
p,
span,
a,
button,
input,
textarea,
select,
label,
ul,
ol,
li,
blockquote,
small,
strong,
b {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Navbar glass effect */
.navbar {
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    transition: var(--transition);
    margin-bottom: 0 !important;
}

/* Remove gap between navbar and hero section */
#main-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#header-carousel {
    margin-top: 0 !important;
}

#header-carousel .carousel-inner {
    margin-top: 0 !important;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98) !important;
    box-shadow: var(--shadow-lg);
}

/* Modern buttons */
.btn {
    border-radius: var(--border-radius-lg);
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0d6efd 100%);
    color: var(--white);
    border: 2px solid transparent;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, #0d6efd 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-light:hover, .btn-light:focus {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Button sizes */
.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Card and section styling */
.service-item, .team-item, .testimonial-item, .project-item, .modal-content {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.service-item:hover, .team-item:hover, .testimonial-item:hover, .project-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Card content */
.card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.card-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

/* Section padding and spacing */
.container-xxl, .container-fluid {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Typography */
h1, .display-1, .display-5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: var(--gray-800);
}

h2, .display-4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: -0.25px;
    line-height: 1.3;
    color: var(--gray-800);
}

h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gray-700);
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-600);
}

/* Text utilities */
.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

/* Facts section */
.facts {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    border-radius: var(--border-radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.facts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.facts .border:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.02);
}

/* Footer */
.footer {
    background: var(--gray-900) !important;
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
    color: var(--white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover, .footer a:focus {
    color: var(--white);
    text-decoration: underline;
}

.footer .btn-link {
    color: var(--gray-300);
    padding: 0.25rem 0;
    transition: var(--transition);
}

.footer .btn-link:hover, .footer .btn-link:focus {
    color: var(--primary);
    padding-left: 0.5rem;
}

/* Back to top button */
.back-to-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--success) 100%);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.back-to-top:hover, .back-to-top:focus {
    background: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Add smooth transitions */
a, button, .btn, .service-item, .team-item, .testimonial-item, .project-item {
    transition: var(--transition);
}

/* Responsive Design Improvements */
@media (max-width: 1200px) {
    .container-xxl {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 992px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .display-1 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .container-xxl, .container-fluid {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .display-1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .facts {
        margin: 2rem 0;
        padding: 2rem 1rem;
    }
    
    .service-item, .team-item, .testimonial-item, .project-item {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .display-1 {
        font-size: 1.75rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .container-xxl, .container-fluid {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .facts {
        padding: 1.5rem 0.75rem;
    }
}

/* Gallery Page Styles */
.project-page {
    padding: 4rem 0;
}

.project__item {
    text-align: center;
    margin-bottom: 2rem;
    transition: var(--transition);
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.project__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project__item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.project__item:hover img {
    transform: scale(1.05);
}

.project__item h4 {
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-800);
}

.project__item h4 a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.project__item h4 a:hover {
    color: var(--success);
}

.primary-btn.normal-btn {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.primary-btn.normal-btn:hover {
    background: var(--success);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Form improvements */
.form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(8, 150, 91, 0.25);
    background: var(--white);
}

.form-floating > .form-control {
    padding: 1rem 0.75rem;
}

.form-floating > label {
    color: var(--gray-600);
    padding: 1rem 0.75rem;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Print styles */
@media print {
    .navbar, .footer, .back-to-top, .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    .container-xxl, .container-fluid {
        padding: 0 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #000;
        --secondary: #000;
        --gray-600: #000;
        --gray-700: #000;
        --gray-800: #000;
    }
    
    .btn-primary {
        background: #000;
        border-color: #000;
    }
    
    .btn-primary:hover {
        background: #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Video Container Styles */
.video-container {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: var(--gray-100);
  height: 300px; /* Fixed height for consistent layout */
}

.video-container:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  background: var(--gray-200);
}

.video-container:hover video {
  transform: scale(1.02);
}

/* Video loading state */
.video-container::before {
display:none;
}

.video-container video.loaded::before {
  opacity: 0;
}

/* Responsive video adjustments */
@media (max-width: 768px) {
  .video-container {
    margin-bottom: 1rem;
  }
  
  .video-overlay {
    width: 50px;
    height: 50px;
  }
  
  .video-overlay i {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .video-overlay {
    width: 40px;
    height: 40px;
  }
  
  .video-overlay i {
    font-size: 1.2rem;
  }
}

/* About Section */
.about-section {
  background: #fff;
  position: relative;
}

.about-content h2 {
  color: #1a1a1a;
  font-weight: 700;
}

.about-content .tagline {
  color: #555;
  font-style: italic;
  font-size: 1.1rem;
}

.about-content p {
  color: #444;
  line-height: 1.7;
}

/* Highlight Box */
.highlight-box {
  background: #f9f9f9;
  padding: 18px 20px;
  border-left: 5px solid #0d6efd;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}
.highlight-box:hover {
  transform: translateY(-5px);
}
.highlight-box li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
}

/* Image Collage */
.about-images {
  position: relative;
}
.about-main-img {
  border-radius: 15px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  width: 100%;
}
.about-sub-img {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 60%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.4s ease;
}
.about-sub-img:hover {
  transform: scale(1.05);
}
.why-biabani {
  position: relative;
  /* background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(255,255,255,0.7)); */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 60px 20px 80px;
  text-align: center;
  overflow: hidden;
}

/* Subtle glass-like shine animation */
.why-biabani::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: glass-shine 10s linear infinite;
}

@keyframes glass-shine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.why-biabani .heading {
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.why-biabani .heading h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2B7415FF;
  text-align: center;
  margin-bottom: 15px;
}

.why-biabani .heading h2 span {
  color: #2B7415FF; /* glassy blue accent */
}

.why-biabani .heading p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  line-height: 1.6;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.why-card i {
  font-size: 2.7rem;
  color: #2B7415FF;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.why-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: #222;
  font-weight: 600;
}

.why-card p {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
}

.why-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  background: rgba(255, 255, 255, 0.35);
}

.why-card:hover i {
 color: #2B7415FF; /* warm accent on hover */
}
.service-page {
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  background: #f8f9fa;
}

.service-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.service-container h1 {
  font-size: 3rem;
  font-weight: 700;
 color: #2B7415FF; 
  margin-bottom: 40px;
}

.service-image {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-image img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}

.service-image img:hover {
  transform: scale(1.03);
}

.service-content {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: left;
}

.service-content h2 {
  font-size: 1.8rem;
  color: #2B7415FF; 
  margin-bottom: 15px;
}

.service-content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  margin-bottom: 30px;
}
