@font-face {
    font-family: 'IranianSans';
    src: url('/assets/fonts/IranianSans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IranianSans', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff, #fee2e2); /* هماهنگ با تم قرمز و سفید */
    min-height: 100vh;
    overflow-x: hidden;
}

.pool-hero, .pool-services, .pool-gallery, .pool-cta, .pool-about {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.pool-hero.ir-show, .pool-services.ir-show, .pool-gallery.ir-show, .pool-cta.ir-show, .pool-about.ir-show {
    opacity: 1;
    transform: translateY(0);
}

.pool-hero {
    background: linear-gradient(to bottom, rgba(220, 38, 38, 0.1), transparent);
    padding: 3rem 2rem;
    border-radius: 10px;
}

.service-card, .pool-cta, .pool-about {
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover, .pool-cta:hover, .pool-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.pool-img {
    width: 100%;
    height: clamp(250px, 40vw, 600px);
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #dc2626;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pool-img:hover {
    transform: scale(1.03);
}

.carousel-indicators {
    bottom: -3rem;
}

.carousel-indicators button {
    width: clamp(8px, 2vw, 12px);
    height: clamp(8px, 2vw, 12px);
    border-radius: 50%;
    background-color: #fee2e2;
    margin: 0 clamp(6px, 1vw, 10px);
    border: none;
    transition: background-color 0.3s ease;
}

.carousel-indicators .active {
    background-color: #dc2626;
}

.btn-light {
    background-color: #ffffff;
    color: #dc2626;
    border: 2px solid #dc2626;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-light:hover {
    background-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Laptop and Desktop Styles */
@media (min-width: 768px) {
    .pool-hero {
        padding: 4rem 3rem;
    }

    .pool-hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .pool-hero p {
        font-size: clamp(1.1rem, 2vw, 1.25rem);
    }

    .service-card {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 300px;
    }

    .service-card i {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    }

    .service-card p {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .pool-gallery {
        max-width: 80%;
        margin: 0 auto;
    }

    .pool-cta {
        padding: 3rem 2rem;
        max-width: 700px;
        margin: 0 auto;
    }

    .pool-cta h2 {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }

    .pool-cta p {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }

    .pool-about {
        padding: 2.5rem;
        background: linear-gradient(135deg, rgba(220, 38, 38, 0.05), #ffffff); /* گرادیانت ملایم قرمز */
        max-width: 90%;
        margin: 0 auto;
    }

    .pool-about h2 {
        font-size: clamp(1.75rem, 3vw, 2.25rem);
    }

    .pool-about h3 {
        font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    }

    .pool-about p {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .pool-about ul {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }
}

/* Tablet and Mobile Adjustments */
@media (max-width: 992px) {
    .pool-img {
        height: clamp(200px, 40vw, 400px);
    }

    .service-card {
        padding: 1.5rem;
        min-height: 260px;
    }

    .pool-about {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pool-hero {
        padding: 2rem 1.5rem;
    }

    .pool-img {
        height: clamp(160px, 35vw, 300px);
    }

    .service-card {
        padding: 1rem;
        min-height: 240px;
    }

    .carousel-indicators {
        bottom: -2rem;
    }

    .carousel-indicators button {
        width: clamp(6px, 1.5vw, 8px);
        height: clamp(6px, 1.5vw, 8px);
        margin: 0 clamp(4px, 1vw, 6px);
    }

    .btn-light {
        padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .pool-about {
        padding: 1rem;
    }

    .pool-about .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .pool-hero {
        padding: 1.5rem 1rem;
    }

    .pool-img {
        height: clamp(140px, 30vw, 200px);
    }

    .service-card {
        padding: 0.75rem;
        min-height: 200px;
    }

    .carousel-indicators {
        bottom: -1.5rem;
    }

    .carousel-indicators button {
        width: clamp(4px, 1.2vw, 6px);
        height: clamp(4px, 1.2vw, 6px);
        margin: 0 clamp(3px, 0.8vw, 5px);
    }

    .btn-light {
        padding: clamp(0.4rem, 1.2vw, 0.6rem) clamp(0.8rem, 1.5vw, 1rem);
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }

    .pool-about {
        padding: 0.75rem;
    }
}