:root {
    --primary-blue: #1b5fad;
    --secondary-blue: #022c5c;
    --primary-red: #d42f2f;
    --dark-blue: #0a1628;
    --navy: #0e1d34;
    --light-bg: #f8f9fa;
    --text-dark: #222;
    --text-muted: #666;
    --white: #fff;
    --navbar-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* TOP BAR */
.top-bar {
    background: var(--secondary-blue);
    padding: 8px 0;
    font-size: 13px;
    color: var(--white);
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.top-bar .bi {
    margin-right: 5px;
}

/* NAVBAR */
.navbar {
    background: var(--primary-blue);
    padding: 0;
    transition: all 0.3s ease;
    height: var(--navbar-height);
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.navbar-spacer {
    display: none;
    height: var(--navbar-height);
}

.navbar-spacer.active {
    display: block;
}

.navbar-brand {
    background: var(--white);
    padding: 15px 25px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 10;
}

.navbar-brand img {
    height: 30px;
    transition: all 0.4s ease;
}

.navbar .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 20px 18px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    width: 60%;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-red) !important;
}

.nav-social a {
    color: var(--white);
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 3px;
}

.nav-social a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

/* ================= HERO SECTION (UPDATED) ================= */
#home {
    background:
        linear-gradient(rgba(4, 43, 102, 0.85), rgba(2, 39, 95, 0.85)),
        url('assets/carpentary.jpeg') center/cover no-repeat;
    /* Instead of fixed height, we use min-height to allow content to grow if needed */
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: var(--navbar-height);
    position: relative;
    overflow: hidden;
    /* Prevents unwanted scrollbars */
}

/* Text Styling */
#home h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

#home .hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Rotating Text Logic */
.rotating-text-wrapper {
    display: block;
    height: 1.2em;
    overflow: hidden;
    color: var(--white);
}

#changing-text {
    transition:
        opacity 0.5s ease-in-out,
        transform 0.5s ease-in-out;
    opacity: 1;
    display: block;
    color: var(--white);
    transform: translateY(0);
}

#changing-text.hidden {
    opacity: 0;
    transform: translateY(10px);
}

.highlight-red {
    color: var(--primary-red);
    display: block;
}

/* Button Styling */
.btn-primary-custom {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 14px 35px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: #b52525;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 47, 47, 0.4);
}

/* Desktop Form Wrapper Adjustment */
.inquiry-form-wrap {
    width: 100%;
    max-width: 480px;
    /* Ensures form doesn't get too wide */
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    #home {
        text-align: center;
        padding-bottom: 60px;
    }

    #home h1 {
        font-size: 34px;
    }

    #home .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    /* On mobile, we might hide the desktop form if you have a separate mobile form section */
    .hero-right {
        margin-top: 30px;
    }
}

/* ================= FIXED ABOUT SECTION CSS ================= */
#about {
    padding: 80px 0;
    /* Removed overflow:hidden so images don't get cut off */
}

#about .section-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* --- Fixed Image Stack Layout --- */
.about-images {
    position: relative;
    width: 100%;
    height: 460px;
    /* Fixed height to hold the stack */
    margin-top: 20px;
}

/* Main Image (Back layer, Top Right) */
.about-images .img-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Secondary Image (Front layer, Bottom Left) */
.about-images .img-bottom {
    position: absolute;
    bottom: 0;
    /* Aligned to bottom of container */
    left: 0;
    width: 55%;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 8px solid var(--white);
    /* Thick border for separation */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* --- Fixed Feature Icons (The "Certified Experts" list) --- */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Force 2 columns */
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 35px;
}

.about-feature-item {
    display: flex;
    /* Aligns icon next to text */
    align-items: center;
    gap: 15px;
}

.about-feature-item .icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(27, 95, 173, 0.1);
    /* Light Blue Background */
    color: var(--primary-blue);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    /* Prevents icon from squishing */
    transition: all 0.3s ease;
}

.about-feature-item:hover .icon-box {
    background-color: var(--primary-red);
    color: var(--white);
}

.about-feature-item span {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark-blue);
    line-height: 1.3;
}

.btn-outline-custom {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    padding: 12px 33px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(97, 47, 212, 0.4);
}

/* Mobile Fixes */
@media (max-width: 991px) {
    #about {
        padding: 60px 0;
    }

    .about-images {
        height: 380px;
        /* Smaller container on mobile */
        margin-bottom: 40px;
        /* Space between image and next section */
    }

    .about-images .img-top {
        height: 300px;
        width: 90%;
    }

    .about-images .img-bottom {
        height: 180px;
        width: 65%;
        bottom: 0;
    }

    .about-features {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
        gap: 15px;
    }
}

/* ==========================================
            WHY US SECTION
            ========================================== */
#why-us {
    position: relative;
    scroll-margin-top: var(--navbar-height);
    min-height: 600px;
    background-image: url('assets/large-bg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 100px 0;
    display: flex;
    align-items: center;
}

#why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 16, 35, 0.3);
    z-index: 0;
}

.why-us-inner {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.why-us-panel {
    position: relative;
    z-index: 2;
    width: 65%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.why-us-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    width: 6px;
    height: 100%;
    background: var(--primary-red);
}

.why-us-content {
    background: #081023;
    color: var(--white);
    padding: 55px 50px 40px;
    flex: 1;
}

.why-us-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.3;
}

.why-us-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.why-us-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 10px;
}

.why-us-list .item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
}

.why-us-list .item .bi {
    color: #2ecc71;
    font-size: 16px;
    flex-shrink: 0;
}

.stats-row {
    background: #081023;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 28px 50px;
}

.stats-row .stats-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-item .stat-icon {
    font-size: 32px;
    color: var(--primary-red);
    flex-shrink: 0;
    line-height: 1;
}

.stat-item .stat-info {
    display: flex;
    flex-direction: column;
}

.stat-item .stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.stat-item .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
}

.why-us-image-spacer {
    flex: 1;
}

@media (max-width: 991px) {
    #why-us {
        padding: 60px 0;
    }

    .why-us-inner {
        flex-direction: column;
    }

    .why-us-panel {
        width: 100%;
    }

    .why-us-panel::after {
        right: 0;
        bottom: -6px;
        top: auto;
        width: 100%;
        height: 6px;
    }
}

/* FORM */
.inquiry-form-wrap {
    background: var(--white);
    padding: 40px 35px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.inquiry-form-wrap h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.inquiry-form-wrap .form-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.radio-group {
    display: flex;
    gap: 0;
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.radio-group label {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-dark);
    background: var(--light-bg);
    border-right: 1px solid #e0e0e0;
    margin: 0;
}

.radio-group label:last-child {
    border-right: none;
}

.radio-group input[type='radio'] {
    display: none;
}

.radio-group input[type='radio']:checked+label {
    background: var(--primary-blue);
    color: var(--white);
}

.inquiry-form-wrap .form-control {
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    padding: 11px 15px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.inquiry-form-wrap .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(27, 95, 173, 0.1);
}

.inquiry-form-wrap textarea.form-control {
    resize: none;
    min-height: 80px;
}

.btn-submit-form {
    background: var(--primary-red);
    color: var(--white);
    border: none;
    padding: 13px 30px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Poppins', sans-serif;
    margin-top: 5px;
}

.btn-submit-form:hover {
    background: #b52525;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 47, 47, 0.4);
}

.form-group {
    margin-bottom: 10px;
}

.error-message {
    color: var(--primary-red);
    font-size: 0.75rem;
    margin-top: 2px;
    display: none;
    padding-left: 2px;
}

.error-message.visible {
    display: block;
}

.inquiry-form-wrap .form-control.invalid {
    border-color: var(--primary-red);
}

.inquiry-form-wrap .form-control.valid {
    border-color: #2ecc71;
}

.form-success-message {
    display: none;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.form-success-message.visible {
    display: block;
}

/* SERVICES */
#services {
    padding: 100px 0;
    background: var(--light-bg);
    scroll-margin-top: var(--navbar-height);
}

.section-divider {
    width: 50px;
    height: 4px;
    background: var(--dark-blue);
    margin: 0 auto 50px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    width: 20px;
    height: 4px;
    background: var(--primary-red);
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 5px;
    transition: all 0.4s;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(27, 95, 173, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.service-card:hover .icon-box {
    background: var(--primary-red);
}

.service-card .icon-box .bi {
    font-size: 28px;
    color: var(--primary-red);
    transition: color 0.3s;
}

.service-card:hover .icon-box .bi {
    color: var(--white);
}

.service-card h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.service-card .arrow-link {
    width: 35px;
    height: 35px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
}

.service-card .arrow-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.service-card-center {
    background: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 40px 30px;
    border-radius: 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    box-shadow: 0 5px 25px rgba(27, 95, 173, 0.3);
}

.service-card-center .icon-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card-center .icon-circle .bi {
    font-size: 32px;
    color: var(--white);
}

.service-card-center h5 {
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
}

.service-card-center a {
    color: var(--primary-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

/* TRUST */
#trust {
    background:
        linear-gradient(rgba(10, 22, 40, 0.88), rgba(10, 22, 40, 0.88)),
        url('assets/carpentary.jpeg') center/cover no-repeat fixed;
    padding: 120px 0;
    text-align: center;
    color: var(--white);
    scroll-margin-top: var(--navbar-height);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.play-btn:hover {
    background: var(--primary-red);
    transform: scale(1.1);
}

.play-btn .bi {
    font-size: 32px;
    color: var(--white);
    margin-left: 4px;
}

#trust h2 {
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 20px;
}

#trust h2 span {
    color: var(--primary-red);
}

#trust p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn-outline-light-custom {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 14px 35px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.btn-outline-light-custom:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

/* CONSULTANCY */
#consultancy {
    padding: 0;
    scroll-margin-top: var(--navbar-height);
}

.consultancy-image {
    min-height: 500px;
    background: url('assets/electrician.jpeg') center/cover no-repeat;
    position: relative;
}

.consultancy-image::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
    border: 3px solid var(--primary-red);
    z-index: 0;
    opacity: 0.3;
}

.consultancy-content {
    padding: 80px 60px;
}

.consultancy-item {
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s;
}

.consultancy-item:hover {
    padding-left: 10px;
}

.consultancy-item:last-child {
    border-bottom: none;
}

.consultancy-item .info-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.consultancy-item h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.consultancy-item p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* TESTIMONIALS */
#testimonials {
    background: var(--primary-blue);
    padding: 100px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--navbar-height);
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('assets/carpentary.jpeg') center/cover no-repeat;
    opacity: 0.08;
}

#testimonials .section-label {
    color: rgba(255, 255, 255, 0.8);
}

#testimonials .section-title {
    color: var(--white);
}

.testimonial-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 35px 30px;
    border-radius: 5px;
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--white);
}

.testimonial-card .quote-icon {
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}

.testimonial-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 25px;
}

.testimonial-author img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-red);
}

.testimonial-author h6 {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    color: var(--white);
}

.testimonial-author span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}
/* ==========================================
   PROJECTS SECTION - CONTINUOUS SLIDESHOW
   ========================================== */
#projects {
    padding: 100px 0;
    background: var(--dark-blue);
    color: var(--white);
    scroll-margin-top: var(--navbar-height);
}

#projects .section-label {
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#projects .section-title {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 20px;
}

.project-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
}

/* Slideshow Container */
.project-gallery {
    display: flex;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 40px;
}

/* Track that holds all items and slides */
.project-gallery .project-track {
    display: flex;
    gap: 20px;
    animation: scrollProjects 30s linear infinite;
    will-change: transform;
}

/* .project-gallery .project-track:hover {
    animation-play-state: paused;
} */

@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Individual Cards */
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 320px;
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    /* cursor: pointer; */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-item:hover img {
    transform: scale(1.1);
}

/* Deepened Overlay for better text legibility */
.project-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 40%,
            rgba(10, 22, 40, 0.9));
    opacity: 0.8;
    transition: opacity 0.3s;
}

.project-item:hover::after {
    opacity: 1;
}

/* Updated Project Overlays */
.project-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    color: var(--white);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    z-index: 5;
}

.project-item:hover .project-overlay-text {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay-text span {
    color: var(--primary-red);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.project-overlay-text h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* CTA Styles */
.projects-cta {
    margin-top: 50px;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.projects-cta a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}

.projects-cta a:hover {
    color: var(--primary-red);
}

/* ==========================================
   PROJECT MODAL STYLING (Universal)
   ========================================== */
.project-metric-box {
    background: #f8f9fa;
    border-top: 3px solid var(--primary-blue);
    border-radius: 4px;
    padding: 15px 5px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background 0.3s ease;
}

.project-metric-box strong {
    font-size: 10px;
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.project-metric-box span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-blue);
    text-align: center;
}

/* Responsive Overrides for Slideshow */
@media (max-width: 1199px) {
    .project-gallery .project-item {
        min-width: 280px;
        max-width: 280px;
    }
}

@media (max-width: 767px) {
    #projects {
        padding: 60px 0;
    }

    .project-gallery .project-item {
        min-width: 250px;
        max-width: 250px;
        height: 240px;
    }

    .project-gallery .project-track {
        animation-duration: 20s;
    }

    .project-overlay-text {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .project-gallery .project-item {
        min-width: 220px;
        max-width: 220px;
        height: 200px;
    }
}

/* MOBILE FORM SECTION */
#mobile-form-section {
    padding: 80px 0;
    background: var(--light-bg);
}

/* FOOTER */
footer {
    background: var(--dark-blue);
    padding: 60px 0 0;
    color: rgba(255, 255, 255, 0.7);
    scroll-margin-top: var(--navbar-height);
}

footer h5 {
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 25px;
}

.footer-contact .item {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-contact .item .bi {
    color: var(--primary-red);
    font-size: 18px;
    margin-top: 2px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.footer-links a .bi {
    color: var(--primary-red);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

.footer-post {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-post img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 3px;
}

.footer-post h6 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-post span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 13px;
    margin: 0;
}

.footer-bottom p span {
    font-weight: 700;
    color: var(--white);
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin-left: 12px;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary-red);
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top.visible:hover {
    background: var(--primary-blue);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
      RESPONSIVE: LARGE SCREENS (>=992px)
      ============================================ */
@media (min-width: 992px) {
    .hero-row {
        display: flex;
        align-items: center;
        min-height: calc(100vh - var(--navbar-height));
    }

    .hero-left {
        flex: 0 0 45%;
        max-width: 45%;
        text-align: left;
    }

    .hero-right {
        flex: 0 0 55%;
        max-width: 55%;
        padding-left: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-right .inquiry-form-wrap {
        max-width: 520px;
        width: 100%;
    }

    /* Why Us - full bg image layout */
    .why-us-inner {
        min-height: 480px;
    }

    .why-us-panel {
        width: 58%;
    }
}

/* ============================================
      RESPONSIVE: TABLET (768px - 991px)
      ============================================ */
@media (max-width: 991px) {
    :root {
        --navbar-height: 65px;
    }

    #home {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 30px);
        padding-bottom: 40px;
    }

    #home h1 {
        font-size: 34px;
        text-align: center;
    }

    #home .hero-desc {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-left {
        text-align: center;
        padding-right: 0;
        padding-bottom: 30px;
        align-items: center;
    }

    .hero-right {
        display: flex;
        justify-content: center;
    }

    .hero-right .inquiry-form-wrap {
        max-width: 520px;
        width: 100%;
    }

    /* Why Us on tablet */
    .why-us-inner {
        flex-direction: column;
        min-height: auto;
    }

    .why-us-panel {
        width: 100%;
    }

    .why-us-image-spacer {
        display: none;
    }

    .why-us-content {
        padding: 40px 30px 30px;
    }

    .why-us-content h2 {
        font-size: 28px;
    }

    .stats-row {
        padding: 20px 30px;
    }

    .consultancy-content {
        padding: 50px 30px;
    }

    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .inquiry-form-wrap {
        padding: 35px 25px;
    }

    #trust h2 {
        font-size: 32px;
    }

    #trust {
        padding: 80px 0;
    }

    .consultancy-image {
        min-height: 350px;
    }

    .navbar-brand {
        padding: 10px 18px;
    }

    .navbar-brand img {
        height: 32px;
    }

    .navbar .nav-link {
        padding: 15px 12px !important;
        font-size: 13px;
    }

    .section-title {
        font-size: 30px;
    }
}

/* ============================================
      RESPONSIVE: MOBILE (<768px)
      ============================================ */
@media (max-width: 767px) {
    :root {
        --navbar-height: 58px;
    }

    .top-bar {
        display: none !important;
    }

    #home {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 25px);
        padding-bottom: 30px;
    }

    #home h1 {
        font-size: 28px;
        letter-spacing: 1px;
        text-align: center;
    }

    #home .hero-desc {
        font-size: 14px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-left {
        text-align: center;
        padding-right: 0;
        padding-bottom: 0;
        align-items: center;
    }

    .hero-right {
        display: none !important;
    }

    .btn-primary-custom,
    .btn-outline-custom,
    .btn-outline-light-custom {
        padding: 12px 25px;
        font-size: 13px;
    }

    .section-title {
        font-size: 26px;
    }

    .section-label {
        font-size: 12px;
    }

    #about {
        padding: 60px 0;
    }

    .about-images .img-top {
        width: 80%;
        margin-left: 10%;
    }

    .about-images .img-bottom {
        width: 60%;
        margin-top: -50px;
    }

    .about-text {
        font-size: 14px;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .project-item {
        height: 180px;
    }

    .why-us-inner {
        flex-direction: column;
        min-height: auto;
    }

    .why-us-panel {
        width: 100%;
    }

    .why-us-image-spacer {
        display: none;
    }

    .why-us-list {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        padding: 35px 20px 25px;
    }

    .why-us-content h2 {
        font-size: 24px;
    }

    .stats-row {
        padding: 20px;
    }

    .stats-row .stats-flex {
        gap: 25px;
    }

    .stat-item .stat-number {
        font-size: 24px;
    }

    .stat-item .stat-icon {
        font-size: 24px;
    }

    .inquiry-form-wrap {
        padding: 25px 18px;
    }

    .inquiry-form-wrap h3 {
        font-size: 20px;
    }

    /* ========== UPDATED RADIO BUTTONS FOR MOBILE START ========== */
    /* Reset container to horizontal row */
    #mobile-form-section .radio-group {
        border: none;
        border-radius: 0;
        background: transparent;
        flex-direction: row;
        justify-content: space-between;
        /* Spreads them out */
        align-items: center;
        gap: 5px;
        margin-bottom: 20px;
    }

    /* Show actual radio input dots */
    #mobile-form-section .radio-group input[type='radio'] {
        display: inline-block;
        margin: 0;
        width: auto;
        accent-color: var(--primary-blue);
        /* Optional: Color the dot */
    }

    /* Reset labels to simple text next to dots */
    #mobile-form-section .radio-group label {
        background: transparent;
        border: none;
        padding: 0 5px 0 0;
        /* Small spacing right */
        text-align: left;
        width: auto;
        flex: unset;
        /* Don't grow/shrink */
        font-weight: 400;
        color: var(--text-dark);
        display: flex;
        align-items: center;
    }

    /* Remove border/lines between items */
    #mobile-form-section .radio-group label:last-child {
        border-bottom: none;
    }

    /* Remove active background state */
    #mobile-form-section .radio-group input[type='radio']:checked+label {
        background: transparent;
        color: var(--text-dark);
        font-weight: 600;
        /* Optional boldness for selected */
    }

    /* ========== UPDATED RADIO BUTTONS FOR MOBILE END ========== */

    #services {
        padding: 60px 0;
    }

    .service-card-center {
        display: none !important;
    }

    #trust {
        padding: 60px 0;
    }

    #trust h2 {
        font-size: 26px;
    }

    #trust p {
        font-size: 14px;
    }

    .play-btn {
        width: 60px;
        height: 60px;
        margin-bottom: 25px;
    }

    .play-btn .bi {
        font-size: 24px;
    }

    .consultancy-image {
        min-height: 280px;
    }

    .consultancy-content {
        padding: 40px 20px;
    }

    .consultancy-item h5 {
        font-size: 16px;
    }

    #testimonials {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-card p {
        font-size: 13px;
    }

    #projects {
        padding: 60px 0;
    }

    #mobile-form-section {
        padding: 60px 0;
    }

    footer {
        padding: 40px 0 0;
    }

    footer h5 {
        font-size: 16px;
        margin-bottom: 18px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-social {
        margin-top: 5px;
    }

    .navbar-brand {
        padding: 8px 15px;
    }

    .navbar-brand img {
        height: 28px;
    }

    .navbar .nav-link {
        padding: 12px 15px !important;
        font-size: 14px;
        text-align: center;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .nav-social {
        display: none !important;
    }

    .navbar-toggler {
        padding: 8px 12px;
        margin-right: 10px;
    }

    .navbar-collapse {
        background: var(--primary-blue);
        padding: 10px 0;
    }
}

/* ============================================
      RESPONSIVE: SMALL MOBILE (<480px)
      ============================================ */
@media (max-width: 480px) {
    #home h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .project-gallery {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .project-item {
        height: 150px;
    }

    .about-images .img-top {
        width: 90%;
        margin-left: 5%;
    }

    .about-images .img-bottom {
        width: 65%;
    }

    .why-us-content h2 {
        font-size: 22px;
    }

    #trust h2 {
        font-size: 22px;
    }

    .service-card {
        padding: 30px 20px;
        min-height: 180px;
    }

    .consultancy-image {
        min-height: 220px;
    }

    .footer-links .col-6 {
        width: 50%;
    }

    .stats-row .stats-flex {
        gap: 20px;
    }

    .stat-item .stat-number {
        font-size: 22px;
    }

    .stat-item .stat-icon {
        font-size: 22px;
    }
}

/* B2B MODAL SCOPED CSS */

/* 1. Modal Top Collision Fix */
#b2b-services-section .modal {
    z-index: 10000;
    /* Ensure it's above navbar */
    padding-top: var(--navbar-height);
    /* visual offset */
}

#b2b-services-section .modal .modal-content {
    border: none;
    border-radius: 6px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

#b2b-services-section .modal .modal-header {
    background: var(--primary-blue);
    color: var(--white);
    border-bottom: 3px solid var(--primary-red);
    padding: 20px 28px;
}

#b2b-services-section .modal .modal-header .modal-title {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.3px;
}

#b2b-services-section .modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
}

#b2b-services-section .modal .modal-body {
    padding: 28px 28px 20px;
    max-height: 65vh;
    overflow-y: auto;
}

#b2b-services-section .modal .svc-s {
    margin-bottom: 22px;
}

#b2b-services-section .modal .svc-s:last-child {
    margin-bottom: 0;
}

#b2b-services-section .modal .svc-l {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-red);
    margin-bottom: 8px;
}

#b2b-services-section .modal .svc-t {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0;
}

#b2b-services-section .modal .svc-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#b2b-services-section .modal .svc-ul li {
    font-size: 14px;
    color: var(--text-dark);
    padding: 6px 0 6px 22px;
    position: relative;
    line-height: 1.5;
    border-bottom: 1px solid #f0f0f0;
}

#b2b-services-section .modal .svc-ul li:last-child {
    border-bottom: none;
}

#b2b-services-section .modal .svc-ul li::before {
    content: '\f272';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--primary-blue);
    font-size: 12px;
}

#b2b-services-section .modal .svc-vp li::before {
    content: '\f26a';
    color: #2ecc71;
}

#b2b-services-section .modal .svc-ind {
    background: var(--light-bg);
    border-left: 3px solid var(--primary-blue);
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
}

#b2b-services-section .modal .svc-ind p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

#b2b-services-section .modal .svc-ind strong {
    color: var(--text-dark);
}

#b2b-services-section .modal .modal-footer {
    border-top: 1px solid #eee;
    padding: 14px 28px;
}

#b2b-services-section .modal .modal-footer .btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 24px;
    border-radius: 3px;
}

@media (max-width: 767px) {
    #b2b-services-section .modal .modal-header {
        padding: 16px 18px;
    }

    #b2b-services-section .modal .modal-header .modal-title {
        font-size: 17px;
    }

    #b2b-services-section .modal .modal-body {
        padding: 20px 18px 16px;
        max-height: 60vh;
    }

    #b2b-services-section .modal .svc-l {
        font-size: 10px;
    }

    #b2b-services-section .modal .svc-t,
    #b2b-services-section .modal .svc-ul li {
        font-size: 13px;
    }
}

/* 3. Highlight Animation CSS */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 47, 47, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 47, 47, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 47, 47, 0);
    }
}

.form-highlight-anim {
    animation: highlightPulse 2s ease-out;
    border-color: var(--primary-red) !important;
}