/* File: /assets/css/style.css (Final Desktop & Mobile Slider Fix) */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;700&display=swap');

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f0f4f7;
}

:root {
    --primary-color: #1D8A8A;
    --secondary-color: #E8F7F7;
    --dark-color: #023C40;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

/* --- Animations --- */
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-in-down { animation: fadeInDown 1s ease-out forwards; }
.animate-fade-in-up { animation: fadeInUp 1s ease-out 0.3s forwards; opacity: 0; }

/* --- Header --- */
.header { 
    background-color: #fff !important; 
    box-shadow: var(--box-shadow);
}
.navbar-brand { color: var(--dark-color) !important; font-weight: 700; }
.nav-link { color: #555 !important; font-weight: 500; transition: color 0.3s; }
.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* --- Buttons --- */
.btn-primary-custom { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color); 
    color: #fff; 
    font-weight: 700; 
    padding: 12px 30px; 
    border-radius: 50px; 
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(29, 138, 138, 0.3);
}
.btn-primary-custom:hover { 
    background-color: var(--dark-color); 
    border-color: var(--dark-color); 
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(2, 60, 64, 0.4);
}
.btn-primary-custom.btn-sm { padding: 5px 15px; font-size: 0.9rem; }
.cta-button {
    padding: 15px 40px !important;
    font-size: 1.2rem !important;
}

/* --- Hero Slider Section (Desktop) --- */
#hero-slider {
    height: 65vh; /* Adjusted height for better desktop view */
    max-height: 650px;
    min-height: 450px;
    background-color: #212529; /* Fallback color */
}

#hero-slider .carousel-inner,
#hero-slider .carousel-item {
    height: 100%;
}

#hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
}

#hero-slider .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.carousel-caption {
    background-color: transparent;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: center;
    padding-left: 10%;
    padding-right: 10%;
}

.carousel-control-prev, .carousel-control-next {
    z-index: 4;
}

/* --- Boxed Sections --- */
.main-content {
    padding: 2rem 0;
}
.section-boxed {
    background-color: #fff;
    padding: 60px 0;
    margin: 0 1rem 2rem 1rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}
.section-boxed.bg-light {
    background-color: #f8f9fa;
}

/* --- Redesigned Service Card --- */
.service-card { 
    border: none; 
    border-radius: 15px; 
    box-shadow: var(--box-shadow);
    transition: transform 0.3s, box-shadow 0.3s; 
    border-bottom: 4px solid var(--primary-color);
}
.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}
.service-card .icon-wrapper { width: 80px; height: 80px; margin: 0 auto 20px; background: linear-gradient(to top, var(--secondary-color), #fff); color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; box-shadow: 0 0 0 10px var(--secondary-color); }

/* --- Why Choose Us Section --- */
.info-box {
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    height: 100%;
}
.info-box:hover {
    transform: translateY(-10px);
}
.info-box i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }
.info-box h3 { font-weight: 700; margin-bottom: 15px; }

/* --- Call to Action (CTA) Section --- */
#cta {
    background: linear-gradient(to right, var(--primary-color), var(--dark-color));
    border-radius: 15px;
    margin: 2rem 1rem;
    color: #fff !important;
}
#cta h2, #cta p {
    color: #fff !important;
}

/* --- Footer --- */
footer.bg-dark {
    text-align: center !important;
}

/* --- Portfolio Card --- */
.portfolio-card { overflow: hidden; border: none; box-shadow: 0 5px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.portfolio-card img { height: 200px; object-fit: cover; cursor: pointer; transition: opacity 0.3s; }
.portfolio-card a:hover img { opacity: 0.8; }
.portfolio-tag { position: absolute; top: 10px; right: 10px; background-color: rgba(0,0,0,0.6); color: #fff; padding: 2px 8px; border-radius: 5px; font-size: 0.8rem; }
.portfolio-tag.after { background-color: var(--primary-color); }

/* --- Floating Icons --- */
.whatsapp-icon { position: fixed; bottom: 20px; right: 20px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 2px 2px 10px rgba(0,0,0,0.2); z-index: 1000; transition: transform 0.3s; }
.whatsapp-icon:hover { transform: scale(1.1); }
.enamad-icon { position: fixed; bottom: 20px; left: 20px; z-index: 1000; }
.enamad-icon img { max-width: 100px; height: auto; }

/* --- Booking Page --- */
.booking-container { background-color: var(--secondary-color); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.booking-form-wrapper { background-color: #fff; padding: 2.5rem; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: 100%; max-width: 600px; }

/* --- Mobile Responsive Styles --- */
@media (max-width: 767.98px) {
    .section-boxed {
        margin: 0 0.5rem 1.5rem 0.5rem;
        padding: 40px 0;
    }

    #hero-slider {
        height: 50vh; /* A shorter height for a better mobile aspect ratio */
        max-height: 400px; /* A reasonable max height for most phones */
        min-height: auto; /* Allow it to be flexible */
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    .carousel-caption p {
        font-size: 1rem;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    }
    .cta-button {
        padding: 10px 25px !important;
        font-size: 1rem !important;
    }
}
