/* Hero Slider Styles */
.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
    background: var(--secondary-color);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: dissolve 1.5s ease-in-out;
}

@keyframes dissolve {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.slide.active {
    opacity: 1;
}

.slide-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 20px;
    margin-top: 100px;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.slide h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
/* Project Categories */
.project-categories {
    padding: 20px 5%;
    text-align: center;
    transition: all 0.5s ease-in-out;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    max-width: 783px;
    margin: 0 auto;
    background: #202020bd;
    margin-top: 20px;
}

.category-filters a {
    padding: 15px 30px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.category-filters a:hover {
    color: #fff;
    background: #35c81e ;
}

.category-filters a.active {
    color: #fff;
    background: #35c81e;
    position: relative;
}

/* Project Gallery */
.project-gallery {
    padding: 40px 5%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    cursor: default; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.gallery-item.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: default;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.gallery-overlay p {
    font-size: 0.9em;
    opacity: 0.8;
}

@media screen and (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media screen and (max-width: 576px) {
    .category-filters {
        gap: 10px;
    }
    
    .category-filters a {
        padding: 8px 15px;
        color: var(--secondary-color);
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        transition: all 0.3s ease;
        border-radius: 5px;
    }

    .slide h1 {
        font-size: 26px;
    }

    .gallery-overlay h3 {
        font-size: 19px;
    }

    .gallery-overlay p {
        font-size: 16px;
    }

    .category-filters a {
        font-size: 14px;
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .service-grid,
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .hero-slider {
        height: 300px;
    }

    .slide h1 {
        font-size: 2em;
    }

    .service-grid,
    .project-grid {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
        padding: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .project-card {
        flex: 0 0 300px;
        scroll-snap-align: start;
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .project-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .project-info {
        padding: 1rem;
        background: var(--white);
    }

    .project-info p {
        color: var(--secondary-color);
        font-size: 0.9rem;
        line-height: 1.5;
    }
    .section-title {
        font-size: 2em;
    }
}