:root {
    --bs-primary: #239174;      /* Luxurious green */
    --bs-secondary: #84c0b2;    /* Soft sage green */
    --bs-white: #ffffff;        /* Pure white */
    --bs-light: #f8f9f7;        /* Off-white */
    --bs-dark: #0f2c23;         /* Darker teal to complement new colors */
    --bs-body: #e6ede6;         /* Subtle greenish white for text */
    --bs-gold: #dcb945;         /* Gold color for M/WBE certification */
}

/* New Luxury Fonts */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
}

/* Apply new luxury fonts */
body {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5,
.carousel-caption-1-content h2, .carousel-caption-2-content h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar-brand, .navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/*** Spinner Start ***/
/*** 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;
}
/*** Spinner End ***/

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    transition: 0.5s;
    z-index: 99;
}

/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

/* Main button style: teal background, white text */
.btn-primary,
.btn-secondary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* Hover/focus: white background, teal text and border */
.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #fff !important;
    border-color: var(--bs-primary) !important;
    color: var(--bs-primary) !important;
}

/* Remove old button color rules if present */
.btn.btn-primary,
.btn.btn-secondary {

    
}
/*** Button End ***/

/*** Topbar Start ***/

/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-white);
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-dark);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-brand img {
    max-height: 45px;
}


@media (max-width: 991.98px) {
    .sticky-top.navbar-light {
        position: relative;
        background: var(--bs-white);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 8px 12px;
        border: 1px solid var(--bs-primary);
        color: var(--bs-primary);
        font-size: 1.2rem;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 12px 15px;
        margin-left: 0;
        color: var(--bs-dark);
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    .navbar-light .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        background-color: var(--bs-light);
        color: var(--bs-primary);
    }

    .navbar-light .navbar-brand img {
        max-height: 40px;
    }

    .navbar-collapse {
        margin-top: 10px;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .btn.btn-md-square {
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

@media (min-width: 992px) {

    .navbar-light {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid;
        border-left: 0;
        border-style: dotted;
        z-index: 999;
    }
    
    .sticky-top.navbar-light {
        position: fixed;
        background: var(--bs-light);
        border: none;
    }

    .navbar-light .navbar-nav .nav-item::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--bs-primary);
        transition: .5s;
    }

    .sticky-top.navbar-light .navbar-nav .nav-item::before {
        bottom: 0;
    }

    .navbar-light .navbar-nav .nav-item::after {
        content: "";
        position: absolute;
        bottom: 1px;
        left: 50%;
        transform: translateX(-50%);
        border: 10px solid;
        border-color: transparent transparent var(--bs-primary) transparent;
        opacity: 0;
        transition: 0.5s;
    }

    .navbar-light .navbar-nav .nav-item:hover::after,
    .navbar-light .navbar-nav .nav-item.active::after {
        bottom: 1px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-item:hover::before,
    .navbar-light .navbar-nav .nav-item.active::before {
        width: calc(100% - 2px);
        left: 1px;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}
/*** Carousel Hero Header Start ***/
.carousel-header {
    position: relative;
    overflow: hidden;
}

.carousel-indicators {
    display: none;
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: auto;
    opacity: 1;
}

.carousel .carousel-control-prev .carousel-control-prev-icon,
.carousel .carousel-control-next .carousel-control-next-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 25px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary);
    transition: 0.5s;
    border-radius: 0;
}

.carousel .carousel-control-prev .carousel-control-prev-icon {
    left: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 50px;
}

.carousel .carousel-control-next .carousel-control-next-icon {
    right: 0;
    border-top-left-radius: 50px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 0;
}

.carousel .carousel-control-prev .carousel-control-prev-icon:hover,
.carousel .carousel-control-next .carousel-control-next-icon:hover {
    background: var(--bs-secondary);
}

.carousel .carousel-inner .carousel-item {
    position: relative;
}

.carousel .carousel-inner .carousel-item .carousel-caption-1  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 100px;
    display: flex;
    align-items: center;
    justify-content: end;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5));
    background-size: cover;
}

.carousel-caption-1-content {
    text-align: end;
    padding-right: 100px;
}

.carousel-caption-1-content .carousel-caption-1-content-btn {
    display: flex;
    justify-content: end;
}

.carousel .carousel-inner .carousel-item .carousel-caption-2  {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-top: 100px;
    display: flex;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0.5));
    background-size: cover;
}

.carousel-caption-2-content {
    text-align: start;
    padding-left: 100px;
}

.carousel-caption-2-content .carousel-caption-2-content-btn {
    display: flex;
    justify-content: start;
}


@media (max-width: 992px) {
    .carousel .carousel-inner .carousel-item {
        height: 450px;
        margin-top: 0;
    }

    .carousel .carousel-inner .carousel-item img,
    .carousel .carousel-inner .carousel-item video {
        height: 450px;
        object-fit: cover;
        width: 100%;
    }

    .carousel .carousel-inner .carousel-item .carousel-caption-1,
    .carousel .carousel-inner .carousel-item .carousel-caption-2 {
        max-width: 100% !important;
        justify-content: center;
        padding-top: 80px; /* Move content slightly down */
        height: 100%;
        align-items: flex-start;
    }

    .carousel-caption-1-content,
    .carousel-caption-2-content {
        padding: 0 20px !important;
        text-align: center !important;
        max-width: 100% !important;
        margin-top: 0;
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn,
    .carousel-caption-2-content .carousel-caption-2-content-btn {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        margin-top: 25px; /* Move buttons further down */
        margin-bottom: 20px;
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn a,
    .carousel-caption-2-content .carousel-caption-2-content-btn a {
        margin: 0 !important;
        width: 100%;
        max-width: 200px;
        padding: 10px 18px !important;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 25px !important;
        text-align: center;
        display: inline-block;
    }

    /* Primary button styling for mobile */
    .carousel-caption-1-content .carousel-caption-1-content-btn .btn-primary,
    .carousel-caption-2-content .carousel-caption-2-content-btn .btn-primary {
        background-color: var(--bs-primary) !important;
        border-color: var(--bs-primary) !important;
        color: white !important;
    }

    /* Secondary button styling for mobile */
    .carousel-caption-1-content .carousel-caption-1-content-btn .btn-secondary,
    .carousel-caption-2-content .carousel-caption-2-content-btn .btn-secondary {
        background-color: rgba(255, 255, 255, 0.2) !important;
        border-color: white !important;
        color: white !important;
        backdrop-filter: blur(10px);
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn .btn-secondary:hover,
    .carousel-caption-2-content .carousel-caption-2-content-btn .btn-secondary:hover {
        background-color: white !important;
        color: var(--bs-primary) !important;
    }

    /* Show slider buttons on mobile with edge positioning */
    .carousel .carousel-control-prev,
    .carousel .carousel-control-next {
        display: flex !important;
        width: auto;
    }

    .carousel .carousel-control-prev .carousel-control-prev-icon,
    .carousel .carousel-control-next .carousel-control-next-icon {
        padding: 15px 15px;
        font-size: 1.5rem;
    }

    .carousel .carousel-control-prev .carousel-control-prev-icon i,
    .carousel .carousel-control-next .carousel-control-next-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .carousel .carousel-inner .carousel-item {
        height: 380px;
    }

    .carousel .carousel-inner .carousel-item img,
    .carousel .carousel-inner .carousel-item video {
        height: 380px;
        width: 100%;
    }

    .carousel .carousel-inner .carousel-item .carousel-caption-1,
    .carousel .carousel-inner .carousel-item .carousel-caption-2 {
        padding-top: 60px; /* Move content further down on smaller screens */
        height: 100%;
        align-items: flex-start;
    }

    .carousel-caption-1-content h2,
    .carousel-caption-2-content h2 {
        font-size: 1.6rem !important;
        margin-bottom: 12px;
    }

    .carousel-caption-1-content h2 span,
    .carousel-caption-2-content h2 span {
        font-size: 0.9rem !important;
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn,
    .carousel-caption-2-content .carousel-caption-2-content-btn {
        gap: 10px;
        margin-top: 20px; /* Move buttons further down on smaller screens */
        margin-bottom: 15px;
    }

    .carousel-caption-1-content .carousel-caption-1-content-btn a,
    .carousel-caption-2-content .carousel-caption-2-content-btn a {
        max-width: 180px;
        padding: 9px 16px !important;
        font-size: 0.9rem;
        border-radius: 22px !important;
    }

    /* Ensure slider buttons are visible and properly positioned on mobile */
    .carousel .carousel-control-prev,
    .carousel .carousel-control-next {
        display: flex !important;
        width: auto;
    }

    .carousel .carousel-control-prev .carousel-control-prev-icon,
    .carousel .carousel-control-next .carousel-control-next-icon {
        padding: 12px 12px;
        font-size: 1.2rem;
    }

    .carousel .carousel-control-prev .carousel-control-prev-icon i,
    .carousel .carousel-control-next .carousel-control-next-icon i {
        font-size: 1.2rem;
    }
}

/* Fix gray space in carousel header on mobile */
@media (max-width: 992px) {
    .container-fluid.position-relative.p-0 {
        overflow: hidden;
    }
    
    .carousel-header {
        height: 450px;
    }
    
    .carousel .carousel-inner {
        height: 450px;
    }
}

@media (max-width: 576px) {
    .carousel-header {
        height: 380px;
    }
    
    .carousel .carousel-inner {
        height: 380px;
    }
    
    /* Ensure video fills container completely */
    .carousel-item video {
        min-height: 380px;
        object-position: center;
    }
}

.modal .modal-header {
    height: 100px;
}

#searchModal .modal-content {
    background: rgba(255, 255, 255, .6);
}
/*** Carousel Hero Header End ***/


/*** Counter Start ***/
.counter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(35, 145, 116, 0.65), rgba(35, 145, 116, 0.65)), url(../img/ny.jpg);
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Add space above the counter section */
.counter {
    margin-top: 60px;
}

.counter .counter-item {
        display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.counter .counter-item .counter-item-icon {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
/*** Counter End ***/

/*** Team Start ***/
.team .team-item {
    position: relative;
    overflow: hidden;
    background: var(--bs-white);
    border: 1px solid var(--bs-secondary);
    border-radius: 10px;
}

.team .team-item .team-inner {
    transition: 0.5s;
}
.team .team-item:hover .team-inner {
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
}

.team .team-item .team-inner .team-img {
    position: relative;
    z-index: 2;
}

.team .team-item .team-inner .team-img::after {
    content: "";
    width: 100%;
    height: 0;
    position: absolute;
    top: 0;
    left: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: rgba(0, 209, 249, 0.2);
    transition: 0.5s;
    z-index: 3;
}

.team .team-item:hover .team-inner .team-img::after {
    height: 100%;
}

.team .team-item .team-inner .team-img .team-share {
    position: absolute;
    left: 10px;
    bottom: 10px;
    transition: 0.5s;
    z-index: 2;
}

.team .team-item:hover .team-inner .team-img .team-share {
    opacity: 0;
}

.team .team-item .team-inner .team-img .team-icon {
    position: absolute;
    bottom: 0;
    left: -100%;
    border-bottom-left-radius: 0 !important; 
    border-top-left-radius: 0 !important;
    display: inline-flex;
    background: var(--bs-primary);
    transition: 0.5s;
    z-index: 4;
}

.team .team-item:hover .team-inner .team-img .team-icon { 
    left: -25px; 
}
/*** Team End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-dark);
}

.footer .footer-item a,
.footer .footer-item p,
.footer .footer-item h4,
.footer .footer-item h3,
.footer .footer-item h6,
.footer .footer-item li,
.footer .footer-item span {
    color: #adb5bd !important; /* Match lorem ipsum color */
    line-height: 35px;
    transition: 0.5s;
}

.footer .footer-item a:hover,
.footer .footer-item a:focus {
    letter-spacing: 1px;
    color: var(--bs-primary) !important; /* Luxurious green on hover */
    text-decoration: underline;
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary) !important;
}
/*** Footer End ***/

/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-dark);
}
/*** copyright end ***/

/* Header (hero) text animation */
@keyframes luxuryFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption-1-content h2,
.carousel-caption-2-content h2 {
    opacity: 0;
    animation: luxuryFadeInUp 1.2s ease 0.2s forwards;
    font-size: 3.5rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.carousel-caption-1-content .carousel-caption-1-content-btn,
.carousel-caption-2-content .carousel-caption-2-content-btn {
    opacity: 0;
    animation: luxuryFadeInUp 1.2s ease 0.7s forwards;
}

/* Section header styling */
.about-item h1.display-3,
.feature h1.display-3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bs-dark);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-content h2.display-5 {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Subheading styling */
.text-uppercase.text-primary {
    font-weight: 500;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Mobile responsive header adjustments */
@media (max-width: 768px) {
    .carousel-caption-1-content h2,
    .carousel-caption-2-content h2 {
        font-size: 2rem;
        letter-spacing: 0.03em;
    }
    
    .about-item h1.display-3,
    .feature h1.display-3 {
        font-size: 2.5rem;
        letter-spacing: 0.03em;
    }
    
    .service-content h2.display-5 {
        font-size: 2rem;
        letter-spacing: 0.02em;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.8rem;
        letter-spacing: 0.01em;
    }
}

/*** Luxury Tables (Feature Columns) ***/
.luxury-table,
.feature-item {
    background: var(--bs-white);
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(17, 39, 27, 0.07);
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid var(--bs-secondary);
    opacity: 0;
    animation: tableFadeInUp 1s ease forwards;
}

/* Luxury Table Fade-in Up Animation */
@keyframes tableFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for each table/column */
.feature-item:nth-child(1) {
    animation-delay: 0.2s;
}
.feature-item:nth-child(2) {
    animation-delay: 0.4s;
}
.feature-item:nth-child(3) {
    animation-delay: 0.6s;
}

.luxury-table h4,
.feature-item h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.luxury-table ul,
.feature-item ul {
    padding-left: 1.2em;
    margin-bottom: 0;
}

.luxury-table ul li,
.feature-item ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

.luxury-table ul li::before,
.feature-item ul li::before {
    content: "•";
    position: absolute;
    left: -1.2em;
    top: 0.1em;
    color: var(--bs-primary);
}

@media (max-width: 767.98px) {
    .luxury-table,
    .feature-item {
        padding: 1.2rem 0.8rem;
    }
    .luxury-table h4,
    .feature-item h4 {
        font-size: 1.2rem;
    }
}


.feature-item:nth-child(1) {
    animation-delay: 0.2s;
}
.feature-item:nth-child(2) {
    animation-delay: 0.4s;
}
.feature-item:nth-child(3) {
    animation-delay: 0.6s;
}

@media (max-width: 767.98px) {
    .luxury-table,
    .feature-item {
        padding: 1.2rem 0.8rem;
    }
    .luxury-table h4,
    .feature-item h4 {
        font-size: 1.2rem;
    }
}

/* Service split section with background images and green tint */
@keyframes serviceFadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes serviceFadeInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-row {
    min-height: 500px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
}

.service-half {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    opacity: 0;
}

.service-half:first-child {
    border-top-left-radius: 48px;
    border-bottom-left-radius: 48px;
    animation: serviceFadeInLeft 1.2s ease 0.2s forwards;
}
.service-half:last-child {
    border-top-right-radius: 48px;
    border-bottom-right-radius: 48px;
    animation: serviceFadeInRight 1.2s ease 0.4s forwards;
}

.service-bg-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: inherit;
}

.service-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: none;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.service-half:first-child .service-content {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.service-half:last-child .service-content {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

@media (max-width: 991.98px) {
    .service-row {
        flex-wrap: wrap !important;
        min-height: auto !important;
        gap: 20px;
    }
    
    .service-half {
        min-height: 300px;
        padding: 1.5rem 0;
        border-radius: 20px !important;
        animation: none !important;
        opacity: 1 !important;
        justify-content: center !important;
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    .service-content {
        padding: 1.5rem 1rem !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .service-half:first-child .service-content,
    .service-half:last-child .service-content {
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    .service-content h2.display-5 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }
    
    .service-content p.lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-content ul.fs-5 {
        font-size: 1rem !important;
    }
    
    .service-content ul li {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .service-half {
        min-height: 280px;
        padding: 1rem 0;
        border-radius: 16px !important;
    }
    
    .service-content {
        padding: 1rem !important;
    }
    
    .service-content h2.display-5 {
        font-size: 1.6rem !important;
    }
    
    .service-content p.lead {
        font-size: 1rem;
    }
    
    .service-content ul.fs-5 {
        font-size: 0.9rem !important;
    }
}

/* Logo animation in service section */
@keyframes logoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}
.service-logo-img {
    opacity: 0;
    transform: scale(0.7) rotate(-10deg);
    animation: logoPopIn 1.2s cubic-bezier(.68,-0.55,.27,1.55) 0.6s forwards;
    box-shadow: 0 8px 32px rgba(35,145,116,0.18);
    border-radius: 50%;
    background: var(--bs-white);
    padding: 16px;
}

/* Centered logo overlay with subtle fade-in animation for service section */
#service .service-logo-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
    animation: logoFadeInUp 1.5s ease-out 0.6s both;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
}

@keyframes logoFadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 30px) scale(0.9);
    }
    100% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }
}

#service .service-logo-img {
    display: block;
    height: 100px;
    width: auto;
    max-width: 100%;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(17, 39, 27, 0.25);
    padding: 12px;
    backdrop-filter: blur(4px);
    border: none;
    object-fit: contain;
}

/* Responsive: stack on mobile */
@media (max-width: 991.98px) {
    #service .service-logo-img {
        height: 70px;
        padding: 8px;
        border-radius: 8px;
        max-width: 80px;
    }
    #service .service-logo-overlay {
        position: static;
        transform: none;
        margin: 2rem auto;
        width: 100%;
        display: flex;
        justify-content: center;
        animation: logoFadeInUp 1.5s ease-out 0.6s both;
    }
}

@media (max-width: 576px) {
    #service .service-logo-img {
        height: 60px;
        padding: 6px;
        border-radius: 6px;
        max-width: 70px;
    }
    #service .service-logo-overlay {
        margin: 1.5rem auto;
    }
}

@media (max-width: 400px) {
    #service .service-logo-img {
        height: 50px;
        padding: 4px;
        border-radius: 4px;
        max-width: 60px;
    }
}

/* Certified M/WBE Table - Gold with White Text */
.feature-item.mwbe-certified {
    background: var(--bs-gold) !important;
    border: 1px solid #B8860B !important;
    box-shadow: 0 4px 32px rgba(212, 175, 55, 0.25) !important;
}

.feature-item.mwbe-certified h4,
.feature-item.mwbe-certified p,
.feature-item.mwbe-certified .text-primary {
    color: var(--bs-white) !important;
}

/* Mobile font size and spacing improvements */
@media (max-width: 768px) {
    .about-item h1.display-3,
    .feature h1.display-3 {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem;
    }
    
    .about-item p.mb-4,
    .feature p.lead {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .feature-item h4 {
        font-size: 1.3rem;
    }
    
    .feature-item ul li {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn.py-3.px-5 {
        padding: 0.8rem 1.5rem !important;
    }
    
    .footer .footer-item a,
    .footer .footer-item p,
    .footer .footer-item h4 {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .about-item h1.display-3,
    .feature h1.display-3 {
        font-size: 1.8rem !important;
    }
    
    .about-item p.mb-4,
    .feature p.lead {
        font-size: 1rem;
    }
    
    .feature-item h4 {
        font-size: 1.2rem;
    }
    
    .feature-item ul li {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .btn.py-3.px-5 {
        padding: 0.7rem 1.2rem !important;
    }
    
    .footer .footer-item a,
    .footer .footer-item p,
    .footer .footer-item h4 {
        font-size: 0.85rem;
    }
    
    /* Fix form spacing on mobile */
    .form-control.py-3.px-4 {
        padding: 0.8rem 1rem !important;
    }
    
    .form-select.py-3.px-4 {
        padding: 0.8rem 1rem !important;
    }
    
    textarea.form-control.py-3.px-4 {
        padding: 0.8rem 1rem !important;
    }
}

/* Mobile button spacing improvements */
@media (max-width: 768px) {
    .carousel-caption-1-content .carousel-caption-1-content-btn,
    .carousel-caption-2-content .carousel-caption-2-content-btn {
        gap: 15px;
    }
    
    .text-center .btn {
        margin: 5px;
    }
    
    .feature .text-center .btn {
        margin-top: 1rem;
    }
}

/* Fix mobile viewport issues */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
        --bs-gutter-y: 1.5rem;
    }
    
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

.feature-item.mwbe-certified h4 {
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.feature-item.mwbe-certified p {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Carousel Video Styling */
.carousel-item video {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* Ensure carousel items have proper height */
.carousel-item {
    height: 100vh;
    min-height: 600px;
}

/* Video fallback styling */
.carousel-item video:not([src]) {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

/* Mobile responsive video sizing */
@media (max-width: 768px) {
    .carousel-item video {
        height: 70vh;
        min-height: 400px;
    }
    
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
}




