:root {
    --green: #74c69d;
    --green-dark: #52b788;
    --blue: #a3d5ff;
    --white: #ffffff;
    --gray: #f2f2f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--gray);
    color: #333;
    overflow-x: hidden;
}

header {
    position: relative;
}

.carousel {
    width: 100%;
    height: 90vh;
    position: relative;
    overflow: hidden;
}

.carousel img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.carousel img.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 30%;
    left: 10%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 10px;
    animation: fadeIn 2s ease-out;
}

.overlay h1 {
    font-size: 4rem;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 40px;
    background: var(--white);
}

.gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.services,
.pricing,
.book-now,
.newsletter {
    padding: 60px 20px;
    text-align: center;
    background: linear-gradient(to right, var(--green), var(--green-dark));
    color: white;
}

.services .service-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    transition: transform 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
}

.pricing {
    background: linear-gradient(to right, var(--green), var(--blue));
}

.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    color: #333;
    padding: 25px;
    border-radius: 10px;
    width: 240px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card h3 {
    margin-bottom: 10px;
}

.card .price {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--green-dark);
}

.book-now,
.newsletter {
    background: var(--white);
    color: #333;
}

form {
    max-width: 400px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input,
textarea,
button {
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: var(--green-dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--green);
}

footer {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
}

.overlay .description {
    font-size: 1rem;
    margin-top: 1rem;
    max-width: 600px;
    line-height: 1.5;
    color: #f0f0f0;
  }
  

@media (max-width: 768px) {
    .overlay h1 {
        font-size: 2.5rem;
    }

    .service-item,
    .card {
        width: 90%;
    }
}