@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #ff0000;
    /* Red */
    --secondary-color: #111111;
    /* Black */
    --text-color: #333333;
    /* Dark Grey */
    --text-light: #777777;
    /* Light Grey */
    --white: #ffffff;
    --light-bg: #f4f4f4;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;

    /* Spacing */
    --section-padding: 80px 0;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
    /* Slightly round all images */
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.text-primary,
.check-list li::before {
    color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-dark {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: capitalize;
    font-size: 14px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    border-color: var(--white);
}

/* Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 14px;
    display: none;
    /* Removed as per request */
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.social-links a {
    margin-left: 15px;
    font-size: 16px;
}

/* Header & Navbar */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--secondary-color);
    letter-spacing: -1px;
    z-index: 1001;
    /* Ensure logo is clickable */
}

.logo span {
    color: var(--primary-color);
}

/* Nav Links Centered on Desktop */
.nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    color: var(--secondary-color);
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Mobile Menu Styles (Applies to Tablet & Mobile) */
@media (max-width: 1024px) {
    .top-bar {
        display: none;
    }

    .hamburger {
        display: block;
        margin-left: 15px;
    }

    .nav-links {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: var(--white);
        /* White background for mobile menu */
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: var(--transition);
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
        transform: none;
        overflow-y: auto;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0 !important;
    }

    .nav-links a {
        color: var(--secondary-color) !important;
        /* Force dark text on white bg */
        font-size: 20px;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color) !important;
        /* Red for active */
    }
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

/* Specific shifts for desktop to make it more aesthetic */
@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
        gap: 30px;
    }

    .footer-widget:nth-child(2) {
        padding-left: 50px;
        /* Separates Quick Links from Logo */
    }

    .footer-widget:last-child {
        padding-left: 20px;
        /* Adjusts Contact Info position */
    }
}

.footer-widget h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-links li i {
    flex-shrink: 0;
    width: 20px;
    margin-top: 5px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

/* Common Section Styles */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    display: inline-flex;
    align-items: center;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
}

.section-title span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-right: 12px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Gallery Sub-Title with Square Bullet */
.section-title span.sub-title-gallery {
    display: inline-flex;
    align-items: center;
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

.section-title span.sub-title-gallery::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-right: 12px;
}

/* ... Previous styles ... */

/* Hero Section */
.hero {
    height: 90vh;
    /* Increased to reach top of About Us (~850px-900px) */
    min-height: 800px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/images/construction_hero_modern.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    /* Call to action fallback */
    background-color: #333;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content span {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-content span::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-right: 12px;
}

.hero-content h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--white);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 35px;
    color: #e0e0e0;
    max-width: 600px;
}

.btn-group .btn {
    margin-right: 15px;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .hero-content span {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px 0;
        height: auto;
    }

    .btn-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-group .btn {
        margin-right: 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Features Section */
.features {
    padding-bottom: 0;
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: -145px;
    /* Halfway positioning */
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

.feature-card {
    background-color: #f5f5f5;
    /* Light grey background from reference */
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
    padding: 20px;
}

.feature-tag {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary-color);
    border: 1px solid rgba(13, 13, 13, 0.1);
    border-radius: 5px;
    padding: 5px 14px;
    margin-bottom: 15px;
    font-family: 'DM Sans', sans-serif;
}

.feature-card:hover .feature-tag {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.feature-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--secondary-color);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    position: relative;
    padding-right: 35px;
}

.feature-link::before {
    content: '\f178';
    /* Font Awesome arrow-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    /* Red circle instead of yellow */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: var(--transition);
}

.feature-card:hover .feature-link::before {
    background-color: var(--secondary-color);
}

.feature-image {
    flex: 0 0 160px;
    height: 160px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


/* Redesigned About Us Section */
.about {
    padding: 100px 0;
}

.about-image-box {
    position: relative;
    padding-right: 50px;
    padding-bottom: 50px;
}

.about-main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 72%;
    height: 725px;
    /* Fixed height for tall portrait look */
}

@media (max-width: 768px) {
    .about-main-image {
        width: 100%;
        height: auto;
        min-height: 400px;
    }

    .about-image-box {
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 40px;
    }
}

.about-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-main-image:hover img {
    transform: scale(1.1);
}

.about-main-image::before,
.about-overlap-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    transition: left 0.75s;
}

.about-main-image:hover::before,
.about-overlap-image:hover::before {
    left: 200%;
    transition: left 0.75s;
}

.about-overlap-image {
    position: absolute;
    top: 10%;
    right: 9%;
    width: 50%;
    height: 361px;
    z-index: 2;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

@media (max-width: 768px) {
    .about-overlap-image {
        display: none;
        /* Hide confusing overlap image on mobile to keep it clean */
    }
}

.about-overlap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.about-overlap-image:hover img {
    transform: scale(1.1);
}

/* SVG Badge Styles */
.experience-seal {
    position: absolute;
    top: 365px;
    right: 34%;
    /* Positioned relative to container to overlap both images */
    width: 140px;
    height: 140px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(50%);
    border: 5px solid #ffffff;
}

@media (max-width: 768px) {
    .experience-seal {
        top: auto;
        bottom: -20px;
        right: 15px;
        transform: none;
        width: 100px;
        height: 100px;
    }

    .experience-seal .seal-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.experience-seal svg {
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
}

.experience-seal .circle-text {
    font-size: 14px;
    /* Adjusted for readability */
    font-weight: 800;
    fill: #ffffff;
    text-transform: uppercase;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
}

.experience-seal .seal-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 75px;
    height: 75px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 30px;
}

@keyframes rotateText {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.about-content {
    padding-left: 0;
    margin-left: -40px;
    margin-right: -20px;
}

@media (max-width: 768px) {
    .about {
        overflow: hidden;
        /* Prevent horizontal scroll bleed */
    }

    .about-content {
        margin-left: 0;
        margin-right: 0;
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
}

.about-feature-box {
    background-color: #f3f3f3;
    border-left: 6px solid var(--primary-color);
    padding: 30px;
    border-radius: 10px;
    margin: 35px 0;
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .about-feature-box {
        flex-direction: column;
        padding: 20px;
    }
}

.about-feature-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-feature-item .icon-sq {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
}

.about-feature-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.about-feature-item p {
    font-size: 14px;
    margin: 0;
    color: #999;
}

.about-benefits-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.about-benefits-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 15px;
    color: #111;
}

.about-benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 0;
}

.about-cta-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-with-arrow {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    padding: 0 0 0 25px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 54px;
    overflow: hidden;
}

.btn-with-arrow .btn-text {
    margin-right: 15px;
}

.btn-with-arrow .arrow-box {
    background-color: #000;
    color: #fff;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-with-arrow:hover {
    background-color: #000;
    color: #fff;
}

.btn-with-arrow:hover .arrow-box {
    background-color: var(--primary-color);
    color: #000;
}

.about-video-box {
    position: relative;
    width: 240px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.about-video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-video-box .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 16px;
}

.about-video-box:hover .play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.about .section-title span {
    color: #000 !important;
    font-weight: 700;
}

.about .section-title {
    margin-bottom: 30px;
}

.about .section-title span::before {
    background-color: var(--primary-color) !important;
}

/* Adjust Section Title Spacing */
.about .section-title h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-top: 10px;
}

/* Icon Box with Hover Effects */
.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.icon-diamond {
    transform: rotate(45deg);
}

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

.icon-circle {
    border-radius: 50%;
}

/* Icon Box Hover Effect with Rotating Background */
.icon-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%) rotate(180deg) scale(0);
    transition: all 0.4s ease;
    z-index: 0;
}

.icon-box:hover::before {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.icon-box i {
    position: relative;
    z-index: 1;
    transition: filter 0.4s ease;
}

.icon-box:hover i {
    filter: brightness(0) invert(1);
}

/* Benefits List */
.about-benefits-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.about-benefits-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--secondary-color);
}

.about-benefits-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 0;
}

/* Custom Button */
.btn-primary-custom {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: capitalize;
    font-size: 16px;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: -1;
    transition: width 0.4s ease;
}

.btn-primary-custom:hover::before {
    width: 100%;
}

.btn-primary-custom:hover {
    color: var(--white);
}

@media (max-width: 1199px) {
    .about-image-box {
        padding-right: 0;
        margin-bottom: 60px;
    }

    .about-content {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .about-overlap-image {
        width: 50%;
        bottom: 60px;
    }

    .experience-badge {
        width: 120px;
        height: 120px;
        padding: 25px;
    }

    .experience-badge .years {
        font-size: 36px;
    }

    .about-feature-box {
        padding: 20px;
    }
}

/* Services Section */
.services.section {
    background-color: #eeeeee !important;
    /* Updated to requested #eeeeee with !important to override cache */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px 25px;
    /* Vertical gap 30px, Horizontal gap 25px */
}

/* Increased space between rows specifically for services page */
.services-page .services-grid {
    row-gap: 40px;
}

.service-item {
    background-color: var(--white);
    border-radius: 12px;
    padding: 25px 0 20px 0;
    /* Aggressively reduced padding to 25px/20px */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    height: 100%;
    /* Ensure all cards in a row have same height */
}

.service-item:hover {
    /* Removed translateY(-10px) to keep card static as requested */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    /* Red border appears */
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 20px 10px 20px;
    /* Further reduced padding to 10px */
    margin: 0 0 10px 0;
    /* Further reduced margin below line to 10px */
    border-bottom: 0;
}

.service-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background-color: #e0e0e0;
}

.service-icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    transition: var(--transition);
}

.service-item:hover .service-icon-box {
    transform: scale(1.1);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
    font-family: 'Space Grotesk', sans-serif;
    text-align: left;
    max-width: 75%;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.service-item p {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 0;
    /* Removed margin-bottom to use image's margin-top instead */
    line-height: 1.6;
    text-align: left;
    padding: 0 20px;
    min-height: 50px;
    /* Reduced min-height to 50px to save space */
    align-items: flex-start;
}

.service-item .service-img {
    margin-top: auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 10px 20px 15px 20px;
    /* Reduced margins to 10px/15px */
}

.service-item .service-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    transition: left 0.75s;
}

.service-item:hover .service-img::before {
    left: 200%;
    transition: left 0.75s;
}


.service-item .service-img img {
    width: 100%;
    height: 180px;
    /* Reduced image height to 180px for a more compact card */
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
    display: block;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects Page */
.project-filters {
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    margin: 0 15px;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 5px;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary-color);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    transition: var(--transition);
}

.project-card:hover .project-info {
    bottom: 0;
}

.project-info h3 {
    color: var(--white);
    margin-bottom: 5px;
}

.project-info p {
    color: var(--primary-color);
    font-weight: 500;
}

/* Contact Page Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form .form-group.full-width {
    grid-column: span 2;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}

.contact-form button {
    grid-column: span 2;
    justify-self: center;
}

/* Contact Page Redesign */
.contact-hero {
    background-size: cover;
    background-position: center;
    height: 325px;
    /* Set specific height */
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: var(--white);
    text-align: center;
}

.contact-hero h1 {
    font-size: 60px;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-hero p {
    font-size: 18px;
    font-weight: 500;
}

.contact-hero .separator {
    color: var(--primary-color);
    margin: 0 10px;
}

/* Layout */
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
        gap: 40px;
    }
}

.contact-info-col {
    flex: 1;
    min-width: 300px;
}

.contact-form-col {
    flex: 1;
    min-width: 300px;
}

/* Left Column */
.contact-info-col .sub-title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.contact-info-col .sub-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-right: 12px;
}

.contact-info-col h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-info-col h2 {
        font-size: 32px;
    }
}

.contact-info-col .description {
    color: var(--text-light);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    /* Brand Red */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 4px;
    margin-right: 25px;
    flex-shrink: 0;
}

.item-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.item-text p {
    color: var(--text-light);
    font-size: 15px;
}

/* Right Column (Form) */
.form-wrapper {
    background-color: var(--light-bg);
    padding: 50px;
    border-radius: 4px;
}

.form-wrapper h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .form-wrapper h3 {
        font-size: 26px;
    }

    .form-wrapper {
        padding: 30px 20px;
    }
}

.form-sub {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 14px;
}

.redesign-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.redesign-form .form-row.full {
    display: block;
}

.redesign-form input,
.redesign-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid transparent;
    background-color: var(--white);
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    outline: none;
    transition: var(--transition);
}

.redesign-form input:focus,
.redesign-form textarea:focus {
    border-color: var(--primary-color);
}

.redesign-form button {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column;
    }

    .redesign-form .form-row {
        flex-direction: column;
        gap: 20px;
        /* consistent spacing */
    }

    .form-wrapper {
        padding: 30px;
    }

    .contact-hero h1 {
        font-size: 36px;
    }

    .contact-info-col h2 {
        font-size: 32px;
    }
}

/* Map Section */
.map-section {
    line-height: 0;
    /* Removing bottom space */
}

/* Scrolling Marquee */
.scrolling-marquee {
    background-color: var(--primary-color);
    /* Red */
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: scroll 40s linear infinite;
    /* Slower */
}

/* Text Item */
/* Text Item */
.marquee-content .marquee-item {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    /* Bold as requested */
    color: var(--white);
    text-transform: capitalize;
}

/* Separator Icon */
.marquee-content .marquee-separator {
    height: 18px;
    /* Match text height */
    width: auto;
    margin: 0 40px;
    /* Equal spacing */
    display: inline-block;
    vertical-align: middle;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    justify-content: center;
    align-items: center;
}

#backToTop:hover {
    background-color: #333;
    /* Darker shade or secondary color */
    transform: translateY(-5px);
}

#backToTop i {
    margin: 0;
}

/* Form Refinements to match image card style */
.form-wrapper {
    background-color: #f8f9fa;
    /* Very light gray */
    padding: 60px;
    border-radius: 0;
    /* Image shows sharp or very slight radius */
}

.redesign-form input,
.redesign-form textarea {
    background-color: var(--white);
    border: 1px solid #eee;
    padding: 18px;
    font-size: 15px;
    color: var(--text-color);
}

.redesign-form button.btn {
    background-color: var(--primary-color);
    color: var(--white);
    /* White text on Red bg */
    border: none;
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.redesign-form button.btn i {
    background-color: var(--secondary-color);
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    /* Or square? Image shows square-ish or circle inside button */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.contact-info-col {
    padding-top: 20px;
}

/* Navigation & Header Redesign */
header {
    height: 120px;
    background-color: rgba(255, 255, 255, 0.05);
    /* Very high transparency */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
    position: fixed;
    /* Fix header to top to overlay background */
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

header.hidden {
    transform: translateY(-100%);
}

.navbar {
    height: 100%;
    max-width: 96% !important;
    /* Widen container to push logo/button to edges */
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    margin: 0;
}

.nav-links li {
    margin: 0 22px;
    /* Reduced spacing */
}

.nav-links a {
    color: var(--white);
    /* White text */
    font-size: 16px;
    font-weight: 500;
}

.nav-links a::after {
    background-color: var(--white);
    bottom: -8px;
}

.logo.text-white {
    color: var(--white);
}

/* New Modern Button */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    /* Red */
    border-radius: 8px;
    /* Rectangular with slightly rounded corners */
    padding: 6px;
    padding-left: 25px;
    transition: var(--transition);
    overflow: hidden;
    height: 54px;
}

.btn-modern .btn-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    margin-right: 15px;
    letter-spacing: 0.5px;
}

.btn-modern .btn-icon {
    width: 42px;
    height: 42px;
    background-color: var(--secondary-color);
    /* Black */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: var(--transition);
}

.btn-modern:hover {
    background-color: var(--white);
}

.btn-modern:hover .btn-text {
    color: var(--secondary-color);
}

.btn-modern:hover .btn-icon {
    transform: rotate(45deg);
    /* Subtle arrow effect */
}

/* Logo Prevention from Squeezing */
.logo {
    flex-shrink: 0;
}

.logo img {
    height: auto !important;
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
}

/* Adjust hamburger for white header */
.hamburger {
    color: var(--white);
    z-index: 1002;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    header {
        height: 100px !important;
        /* Fixed height for tablet/mobile */
    }

    .hamburger {
        color: var(--secondary-color);
        /* Dark hamburger on transparent bg if needed */
    }

    .nav-right {
        gap: 10px;
    }

    .navbar {
        padding: 0 15px;
    }

    .logo {
        font-size: 22px;
    }

    .logo img {
        max-height: 40px;
        /* Slightly smaller logo on mobile */
    }
}

/* Exact Match Updates */

/* 1. Global Rounding */
img,
.feature-card,
.service-card,
.project-card,
.form-wrapper,
.map-section iframe {
    border-radius: 10px !important;
}

/* EXCEPTION: Do not round logo */
.logo img,
footer .logo img {
    border-radius: 0 !important;
}

/* 2. Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 3. Header Adjustments */
header {
    height: 105px !important;
}

/* Nav Links - Font Weight and Spacing */
.nav-links a {
    font-weight: 600 !important;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color) !important;
}

.nav-links li {
    margin: 0 15px !important;
    /* Closer match to 10-12px padding assumption + gap */
}

/* 4. Button Exact Match Refined (-15% size, more rounded) */
.btn-modern {
    border-radius: 8px !important;
    /* Slightly more rounded */
    height: auto !important;
    padding: 14px 25px 14px 17px !important;
    /* Reduced padding (-15%) */
}

.btn-modern .btn-icon {
    width: 25px;
    /* Reduced (-15%) */
    height: 25px;
    font-size: 12px;
    margin-left: 12px;
}

.btn-modern .btn-text {
    font-size: 15px !important;
    /* Reduced (-15%) */
    margin-right: 0 !important;
}

/* Round generic buttons */
button,
.btn,
input[type="submit"],
.read-more {
    border-radius: 6px !important;
    /* Soften sharp edges */
}

/* 5. Footer Color */
footer {
    background-color: #0d0d0d !important;
}

/* 6. Pricing Section - Ensure Hidden if exists (Visual Clean up) */
.pricing-section {
    display: none !important;
}

/* Why Choose Us Refinements */
.why-choose-us-parallax {
    background-image: url('../assets/images/why-choose-us-bg.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    z-index: 1;
}

.why-choose-us-parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}





/* Ensure the bullet remains red */
.features-section .section-title span::before,
.approach-section .section-title span::before,
.team-section .section-title span::before,
.what-we-do-section .section-title span::before {
    background-color: var(--primary-color) !important;
}

.why-choose-us-parallax h2,
.why-choose-us-parallax .section-title h2 {
    color: var(--white) !important;
}

.why-choose-us-parallax .section-title span {
    color: var(--primary-color) !important;
}

/* Bullet is generated by ::before, which uses var(--primary-color), so remains Red by default */

.features-section .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    /* Force 2x2 */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.features-section .feature-card {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    padding: 40px 30px;
    height: 100%;
}

.features-section .feature-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.features-section .feature-card h3 {
    margin-bottom: 15px;
}

/* 7. Custom Cursor */
.custom-cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.custom-cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
}

/* Hover effect */
.custom-cursor.hovered {
    width: 0;
    height: 0;
}

.custom-cursor-follower.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 62, 62, 0.1);
    border-color: transparent;
}

/* 8. Text Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* =========================================
   9. SECTION STYLING (Reference Match)
   ========================================= */



/* B. Features Grid (Why Choose Us) */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .features-section .features-grid {
        grid-template-columns: 1fr !important;
    }
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border: 1px solid #eee;
    text-align: left;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.why-choose-us-parallax .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.why-choose-us-parallax .feature-card h3,
.why-choose-us-parallax .feature-card p {
    color: var(--white);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.why-choose-us-parallax .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}


.feature-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 25px;
    background: transparent;
    width: auto;
    height: auto;
    display: block;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}


/* C. Projects Section */
.projects-section {
    background: var(--white);
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.project-card img {
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
    opacity: 1;
}

/* D. Testimonials Redesign */
.testimonials-section {
    padding: 100px 0;
    overflow: hidden;
}

.testimonial-carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollTestimonials 40s linear infinite;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-track:hover {
    animation-play-state: paused;
}

.testimonial-card-v2 {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    width: 400px;
    flex-shrink: 0;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

@media (max-width: 768px) {
    .testimonial-card-v2 {
        width: 300px;
        padding: 30px;
    }
}

.testimonial-card-v2:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.testimonial-card-v2 .quote-icon {
    font-size: 30px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.2;
}

.testimonial-card-v2 p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    margin-bottom: 25px;
}

.testimonial-card-v2 .rating {
    color: #ffb400;
    margin-bottom: 20px;
}

.testimonial-card-v2 .author h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}

.testimonial-card-v2 .author span {
    font-size: 14px;
    color: #777;
    font-weight: 500;
}

/* E. FAQ */
.faq-grid .feature-card {
    border-left: 4px solid var(--primary-color);
}

/* --- About Page Overhaul Styles --- */

/* Approach Section */
.approach-section {
    position: relative;
    padding-bottom: 100px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.approach-card {
    background-color: #1a1a1a;
    /* Somewhat lighter than pure black/secondary */
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #333;
    transition: var(--transition);
}

.approach-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.approach-card .icon-box {
    margin-bottom: 20px;
}

.approach-card .icon-box img {
    height: 50px;
    width: auto;
}

.approach-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

.approach-card p {
    color: #ffffff;
    font-size: 15px;
    margin-bottom: 20px;
}

.check-list li {
    position: relative;
    padding-left: 20px;
    color: #bbb;
    margin-bottom: 10px;
    font-size: 14px;
}

.check-list li::before {
    content: '■';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 10px;
    top: 5px;
}

/* Features Section */
.features-split {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

@media (max-width: 991px) {

    .features-split,
    .row {
        flex-direction: column;
    }
}

.features-img img {
    width: 100%;
    border-radius: 8px;
}

.feature-block {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-block .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--secondary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.feature-block:hover .icon-circle {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Core Values Progress Bars */
.progress-item {
    margin-bottom: 25px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--secondary-color);
}

.progress-bg {
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 4px;
}

/* Team Section (Overhaul) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.team-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

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

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    color: var(--white);
    text-align: center;
}

.team-info h3 {
    color: var(--white);
    margin-bottom: 5px;
    font-size: 20px;
}

.team-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* What We Do Section */
.what-we-do-content {
    align-items: flex-start;
}

.wwd-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.wwd-card:hover {
    background-color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.icon-box-yellow {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    /* Red as per request */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 20px;
    margin-bottom: 15px;
}

.wwd-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 10px;
    font-weight: 500;
}

/* CTA Section Subtitle */
.cta-subtitle {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    /* Matching section-title span */
    letter-spacing: 2px;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 20px;
    /* Adjusting margin slightly */
}

.cta-subtitle::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-right: 12px;
}

/* Custom Renovex-style Button */
.custom-arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 8px 8px 24px;
    border: none;
    border-radius: 8px;
    /* Slightly rounded corners like reference */
    font-size: 16px;
    font-weight: 700;
    text-transform: capitalize;
    /* Matches previous updates */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    gap: 20px;
    font-family: 'Space Grotesk', sans-serif;
    /* Consistent typography */
}

/* Sliding Background Effect */
.custom-arrow-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    /* Black */
    z-index: -1;
    transition: width 0.4s ease-in-out;
}

.custom-arrow-btn:hover::before {
    width: 100%;
}

/* Icon Box inside Button */
.btn-icon-box {
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    /* Black */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.4s ease-in-out;
}

.custom-arrow-btn:hover .btn-icon-box {
    background-color: var(--primary-color);
    /* Turns Red on hover */
}

.btn-icon-box i {
    transform: rotate(-45deg);
    /* Arrow often tilted in these designs, or just straight right */
    transition: transform 0.4s ease;
}

.custom-arrow-btn:hover .btn-icon-box i {
    transform: rotate(0deg);
    /* Straighten on hover */
}

/* Custom Quote Button (Header) */
.custom-quote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6px 6px 6px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    gap: 20px;
    font-family: 'Space Grotesk', sans-serif;
    text-decoration: none;
}

/* Sliding White Background Effect */
.custom-quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--white);
    z-index: -1;
    transition: width 0.4s ease-in-out;
}

.custom-quote-btn:hover::before {
    width: 100%;
}

.custom-quote-btn:hover {
    color: var(--secondary-color);
    /* Black text */
}

/* Icon Box inside Quote Button */
.custom-quote-btn .btn-icon-box {
    width: 36px;
    height: 36px;
    background-color: var(--secondary-color);
    /* Black */
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background-color 0.4s ease-in-out;
}

/* Hover: Icon Box turns Red */
.custom-quote-btn:hover .btn-icon-box {
    background-color: var(--primary-color);
}

.custom-quote-btn .btn-icon-box i {
    transform: rotate(-45deg);
    transition: transform 0.4s ease;
}

.custom-quote-btn:hover .btn-icon-box i {
    transform: rotate(0deg);
}

.custom-quote-btn .btn-text {
    white-space: nowrap;
    /* Prevent stacking text on mobile */
}

@media (max-width: 576px) {
    .custom-quote-btn {
        padding: 5px;
        /* Extremely compact */
        gap: 0;
    }

    .custom-quote-btn .btn-text {
        display: none;
        /* Hide text, only show arrow to prevent overlap with logo */
    }
}

/* =========================================
   New FAQ Section Styles (Clone)
   ========================================= */

/* Layout Wrapper */
.faq-layout-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.faq-left-col {
    flex: 0 0 40%;
    max-width: 40%;
}

.faq-right-col {
    flex: 0 0 55%;
    max-width: 55%;
    margin-left: auto;
    /* Push to right */
}

@media (max-width: 991px) {

    .faq-left-col,
    .faq-right-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Left Column Styling */
.faq-left-col .section-title {
    margin-bottom: 30px;
    text-align: left;
}

.faq-left-col .sub-title {
    display: inline-block;
    color: #0d0d0d;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
}

.faq-left-col .sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    /* Red Accent */
}

.faq-left-col h2 {
    font-size: 48px;
    line-height: 1.1;
    color: #0d0d0d;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .faq-left-col h2 {
        font-size: 36px;
    }
}

.faq-left-col p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* View All Button removed - using .custom-arrow-btn instead */

/* Call Us Box */
.faq-contact-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding-top: 40px;
    margin-top: 30px;
    border-top: 1px solid #eee;
    max-width: 100%;
}

.faq-contact-box .icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: var(--primary-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    flex-shrink: 0;
}

.faq-contact-box .content-box {
    flex: 1;
    min-width: 0;
}

.faq-contact-box .content-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 0;
    color: #0d0d0d;
    line-height: 1.2;
}

.faq-contact-box .content-box p {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.4;
}

/* Right Column: Accordion */
.faq-accordion {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 20px;
}

.accordion-item {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.accordion-header {
    margin: 0;
}

.accordion-button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 30px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #0d0d0d;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

/* Icon for Accordion (+ / -) */
.accordion-button::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-color);
    /* Red */
    font-weight: 400;
    transition: transform 0.3s ease;
}

.accordion-button.active::after {
    content: '−';
    /* Minus sign */
    color: #0d0d0d;
    /* changes to black when open */
    transform: rotate(0deg);
    /* prevent rotation since we swap char */
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content {
    padding: 0 30px 20px 30px;
}

.accordion-content p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   Dedicated FAQ Page Styles
   ========================================= */

.page-faqs {
    padding-top: 100px;
    padding-bottom: 100px;
    background-color: #f9f9f9;
}

.page-single-sidebar {
    position: sticky;
    top: 120px;
}

.page-category-list {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page-category-list ul {
    padding: 0;
    margin: 0;
}

.page-category-list ul li {
    margin-bottom: 10px;
}

.page-category-list ul li:last-child {
    margin-bottom: 0;
}

.page-category-list ul li a {
    display: block;
    padding: 15px 20px;
    background-color: #f5f5f5;
    color: #444;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
}

.page-category-list ul li a:hover,
.page-category-list ul li a.active {
    background-color: var(--primary-color);
    color: #fff;
}

.sidebar-cta-box {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-faqs-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page-single-faqs .sub-title {
    position: relative;
    padding-left: 20px;
}

.page-single-faqs .sub-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

@media (max-width: 991px) {
    .page-faqs .row {
        flex-direction: column;
    }

    .col-lg-4,
    .col-lg-8 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .page-single-sidebar {
        position: static;
        margin-bottom: 50px;
    }
}

/* =========================================
   Redesigned Gallery Grid (Reference Style)
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for desktop */
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-card {
    position: relative;
    display: block;
    height: 450px;
    /* Taller vertical cards */
    border-radius: 10px;
    overflow: hidden;
    cursor: none;
    /* Hide default cursor */
}

/* Image Wrapper */
.gallery-img-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* Hover: Zoom Image */
.gallery-card:hover .gallery-img-box img {
    transform: scale(1.1);
}

/* Gradient Overlay (Vignette) */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Flash Effect */
.gallery-img-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 2;
    transition: left 0.75s;
}

.gallery-card:hover .gallery-img-box::before {
    left: 200%;
    transition: left 0.75s;
}

/* Card Content (Title) */
.gallery-info {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 3;
}

.gallery-info h3 {
    color: var(--white);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: capitalize;
}

/* Top Right Arrow Button */
.gallery-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    z-index: 3;
    transition: all 0.4s ease;
    opacity: 0;
    transform: rotate(-45deg) scale(0);
}

.gallery-card:hover .gallery-arrow {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
}

/* Base Cursor (The wrapper that follows mouse) */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        height 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        background-color 0.3s ease,
        opacity 0.2s ease,
        transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--primary-color);
    /* Default Red Dot */
}

/* Inner Text (Hidden by default) */
.custom-cursor span {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease, font-size 0.3s ease;
    white-space: nowrap;
    text-transform: capitalize;
}

/* Hover over Text (Large Inverting Circle) */
.custom-cursor.hover-text {
    width: 65px;
    height: 65px;
    background-color: #fff;
    mix-blend-mode: difference;
    opacity: 0.9;
}

/* Hover over Gallery (Large Transparent Black Circle with View) */
.custom-cursor.hover-view {
    width: 85px;
    height: 85px;
    background-color: rgba(0, 0, 0, 0.6);
}

.custom-cursor.hover-view span {
    opacity: 1;
    font-size: 16px;
}

/* Hover over Links/Buttons - Hide custom cursor */
.custom-cursor.hover-link {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

/* Disable Custom Cursor on Touch Devices / Mobile */
@media (max-width: 1024px) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    h1:hover,
    h2:hover,
    h3:hover,
    .gallery-card:hover {
        cursor: auto !important;
        /* Restore normal behavior */
    }
}

/* We hide the system arrow ONLY on states where we want a special custom cursor visual */
h1:hover,
h2:hover,
h3:hover,
.gallery-card:hover {
    cursor: none !important;
}

/* Ensure links and buttons always show the "hand" pointer */
a,
button,
.accordion-button,
.custom-arrow-btn,
.custom-quote-btn {
    cursor: pointer !important;
}

/* Sub-titles should NOT trigger cursor: none to keep the arrow visible */
.section-title span,
.sub-title-gallery,
.sub-title {
    cursor: auto !important;
}

/* =========================================
   Before/After Carousel for Gallery Detail Pages
   ========================================= */

.before-after-carousel {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    overflow: visible;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0 20px;
}

.comparison-item {
    position: relative;
}

.comparison-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.comparison-label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-label.before {
    background-color: #333;
    color: #fff;
}

.comparison-label.after {
    background-color: var(--primary-color);
    color: #fff;
}

.comparison-item h3 {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    overflow: visible;
    padding-bottom: 10px;
}

.carousel-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50% !important;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    background-color: #ffffff;
    cursor: not-allowed;
    transform: scale(1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparison-item img {
        height: 300px;
    }
}

/* Scroll Reveal Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-50 {
    transition-delay: 0.05s;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* ========================================
   Mosaic Gallery Layout (11 Photos)
   ======================================== */
/* ========================================
   Mosaic Gallery Grid - Nueva Referencia Wireframe (11 Photos)
   ======================================== */
.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    grid-template-rows: repeat(3, 200px);
    gap: 12px;
    margin-top: 40px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f5f5f5;
}

.mosaic-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.mosaic-item:hover img {
    transform: scale(1.1);
}

.mosaic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-overlay i {
    color: white;
    font-size: 36px;
}

/* Grid positioning matching new wireframe reference exactly */

/* ============= FILA 1 ============= */

/* Image 1: Grande horizontal (izquierda, fila 1, columnas 1-6) */
.mosaic-item:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 2;
}

/* Image 2: Mediana horizontal (centro, fila 1, columnas 7-10) */
.mosaic-item:nth-child(2) {
    grid-column: 7 / 11;
    grid-row: 1 / 2;
}

/* Image 3: Rectángulo vertical a (derecha, filas 1-2, columnas 11-13) */
.mosaic-item:nth-child(3) {
    grid-column: 11 / 14;
    grid-row: 1 / 3;
}

/* ============= FILA 2 ============= */

/* Image 4: Pequeña cuadrada (izquierda, fila 2, columnas 1-2) */
.mosaic-item:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}

/* Image 5: Mediana vertical (centro izquierda, filas 2-3, columnas 3-6) */
.mosaic-item:nth-child(5) {
    grid-column: 3 / 7;
    grid-row: 2 / 4;
}

/* Image 6: Mediana horizontal (centro, fila 2, columnas 7-10) */
.mosaic-item:nth-child(6) {
    grid-column: 7 / 11;
    grid-row: 2 / 3;
}

/* Image 10: Rectángulo vertical b (derecha, filas 1-2, columnas 14-16) */
.mosaic-item:nth-child(10) {
    grid-column: 14 / 17;
    grid-row: 1 / 3;
}

/* Image 3 continúa aquí (ya definida arriba) */

/* ============= FILA 3 ============= */

/* Image 7: Pequeña cuadrada (izquierda, fila 3, columnas 1-2) */
.mosaic-item:nth-child(7) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

/* Image 5 continúa aquí (ya definida arriba) */

/* Image 8: Mediana cuadrada (centro, fila 3, columnas 7-10) */
.mosaic-item:nth-child(8) {
    grid-column: 7 / 11;
    grid-row: 3 / 4;
}

/* Image 9: Grande horizontal (derecha, fila 3, columnas 11-16) */
.mosaic-item:nth-child(9) {
    grid-column: 11 / 17;
    grid-row: 3 / 4;
}

/* Image 11: Hidden or not used in this layout */
.mosaic-item:nth-child(11) {
    display: none;
}

/* ========================================
   Lightbox Modal
   ======================================== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    margin-top: 20px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

/* Responsive Design for Mosaic Gallery */
@media (max-width: 1024px) {
    .mosaic-gallery {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 180px);
    }

    .mosaic-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }

    .mosaic-item:nth-child(2) {
        grid-column: 3 / 5;
        grid-row: 1 / 2;
    }

    .mosaic-item:nth-child(3) {
        grid-column: 3 / 5;
        grid-row: 2 / 4;
    }

    .mosaic-item:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }

    .mosaic-item:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }

    .mosaic-item:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 4 / 5;
    }

    .mosaic-item:nth-child(7) {
        grid-column: 3 / 5;
        grid-row: 4 / 6;
    }

    .mosaic-item:nth-child(8) {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
    }

    .mosaic-item:nth-child(9) {
        grid-column: 2 / 3;
        grid-row: 5 / 7;
    }

    .mosaic-item:nth-child(10) {
        grid-column: 3 / 4;
        grid-row: 6 / 7;
    }
}

@media (max-width: 768px) {
    .mosaic-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(8, 200px);
        gap: 10px;
    }

    .mosaic-item:nth-child(1),
    .mosaic-item:nth-child(2),
    .mosaic-item:nth-child(3),
    .mosaic-item:nth-child(4),
    .mosaic-item:nth-child(5),
    .mosaic-item:nth-child(6),
    .mosaic-item:nth-child(7),
    .mosaic-item:nth-child(8),
    .mosaic-item:nth-child(9),
    .mosaic-item:nth-child(10) {
        grid-column: auto;
        grid-row: auto;
    }

    .mosaic-item:nth-child(odd) {
        grid-column: 1 / 2;
    }

    .mosaic-item:nth-child(even) {
        grid-column: 2 / 3;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .mosaic-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(10, 250px);
    }

    .mosaic-item:nth-child(n) {
        grid-column: 1 / 2;
        grid-row: auto;
    }
}