/* --------------------------
   Hero adjustments
--------------------------- */
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    z-index: 1;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    z-index: 1;
}

/* Hero cross animation */
.hero-cross {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

/* --------------------------
   Services Section Layout
--------------------------- */
.services {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

.services .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.services .card {
    flex: 1 1 220px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --------------------------
   Project Carousel
--------------------------- */
.project-carousel {
    position: relative;
    padding: 4rem 2rem;
    background: #f9f9f9;
    overflow: hidden;
    text-align: center;
}

.project-carousel h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    animation: scrollCarousel 20s linear infinite;
}

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

.carousel-item {
    flex: 0 0 auto;
    width: 300px;
    position: relative;
    overflow: hidden;
}

.carousel-item .overlay-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0.5;
}

.carousel-item .overlay-icons img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.carousel-item:hover .overlay-icons img {
    transform: rotate(15deg) scale(1.2);
}

/* --------------------------
   Responsive Adjustments
--------------------------- */
@media (max-width: 1024px) {
    .carousel-item {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .services .cards {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .services .card {
        flex: none;
        width: 100%;
        max-width: 300px;
        padding: 1.5rem 1rem;
    }
    .carousel-item {
        width: 180px;
    }
    .carousel-track {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .services .card {
        padding: 1.5rem 1rem;
    }
    .carousel-item {
        width: 140px;
    }
    .project-carousel h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}
