body {
    background-color: #F1F5F9;
    font-family: 'Inter', sans-serif;
}

.section {
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.input-field {
    border-radius: 20px;
    padding: 0.75rem 1.25rem;
    width: 100%;
    border: 1px solid #E2E8F0;
    background-color: white;
}

.carousel {
    scroll-behavior: smooth;
}

.carousel-slide {
    min-width: 100%;
    transition: all 0.3s ease;
    display: flex;
    gap: 16px;
}

.carousel-item {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
}

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

    .carousel-indicator.active {
        background-color: #0F3460;
    }

.service-box {
    height: auto;
    min-height: 150px;
    border-radius: 20px;
    background-color: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.stat-box {
    background-color: #E0F2FE;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Hero section with background image */
.hero-section {
    background-image: url("../img/homegif.gif");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 20px;
    height: 70vh; /* Changed to 70vh as requested */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 38, 71, 0.7);
    border-radius: 20px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Service image containers */
.service-image-container {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image-container:hover .service-image {
    transform: scale(1.05);
}

.service-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 52, 96, 0.9), transparent);
    padding: 20px;
    color: white;
}

/* Before-After image styles */
.before-after-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 300px;
}

.after-image, .before-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.before-image {
    opacity: 0;
}

.has-hover:hover .before-image {
    opacity: 1;
}

.has-hover:hover .after-image {
    opacity: 0;
}

.image-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(to top, rgba(15, 52, 96, 0.9), transparent);
    z-index: 5;
}

/* Lightbox styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    gap: 20px;
}

.lightbox-img-container {
    position: relative;
    width: 48%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.lightbox-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    background-color: rgba(15, 52, 96, 0.7);
    padding: 5px;
    font-weight: bold;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

    .lightbox-nav button {
        background-color: rgba(255, 255, 255, 0.3);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 24px;
    }

        .lightbox-nav button:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }

/* Single image lightbox */
.single-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.single-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.single-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.single-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.single-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

    .single-lightbox-nav button {
        background-color: rgba(255, 255, 255, 0.3);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.3s;
        font-size: 24px;
    }

        .single-lightbox-nav button:hover {
            background-color: rgba(255, 255, 255, 0.5);
        }

/* Category tabs for works section */
.category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background-color: #E0F2FE;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .category-tab.active {
        background-color: #0F3460;
        color: white;
    }

.carousel-container {
    display: none;
    position: relative;
}

    .carousel-container.active {
        display: block;
    }

/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: #0F3460;
    z-index: 40;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    .mobile-menu.active {
        display: block;
    }

    .mobile-menu a {
        display: block;
        padding: 1rem;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

        .mobile-menu a:last-child {
            border-bottom: none;
        }

/* Carousel navigation buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 20;
}

    .carousel-nav button {
        background-color: rgba(15, 52, 96, 0.7);
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .carousel-nav button:hover {
            background-color: rgba(15, 52, 96, 0.9);
        }

/* Contact icons hover effect - changed to a lighter color */
.contact-icon {
    transition: all 0.3s ease;
}

    .contact-icon:hover {
        background-color: #38BDF8 !important; /* Light blue hover instead of dark navy */
        color: white !important;
        transform: translateY(-5px);
    }

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .section {
        padding: 1.5rem;
    }

    .carousel-slide {
        flex-direction: column;
    }

    .carousel-item {
        width: 100%;
        height: 250px;
        margin-bottom: 16px;
    }

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

    .hero-section {
        height: 60vh; /* Slightly smaller on mobile but still large */
    }
    /* Fixed spacing for stats container on mobile */
    .stats-container {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .category-tab {
        padding: 8px 16px;
        font-size: 14px;
    }

    .lightbox-content {
        flex-direction: column;
    }

    .lightbox-img-container {
        width: 100%;
        margin-bottom: 10px;
    }
}
