/* =========================================
   HOME PAGE STYLES (home.css) - FINAL
   ========================================= */

/* --- General Section Styling --- */
.page-section { padding: 6rem 0; overflow-x: hidden; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* --- 1. Hero Section (with Image Background) --- */
.hero { position: relative; height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--text-light); }
.hero-image-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area */
    object-position: center;
}
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(0deg, rgba(10, 25, 47, 0.8) 0%, rgba(10, 25, 47, 0.5) 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: 3.8rem; font-weight: 700; color: var(--text-light); margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.25rem; max-width: 700px; margin: 0 auto 2.5rem; color: rgba(255, 255, 255, 0.9); }
.hero-buttons { display: flex; justify-content: center; gap: 1rem; }
.hero .btn-secondary { background: transparent; color: var(--text-light); border-color: rgba(255, 255, 255, 0.5); }
.hero .btn-secondary:hover { background-color: var(--text-light); color: var(--secondary-color); }

/* --- 2. Services Section (Image-Based) --- */
.services-overview { background-color: var(--bg-soft-gray); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card { position: relative; display: block; height: 400px; border-radius: var(--border-radius); overflow: hidden; color: var(--text-light); text-decoration: none; }
.service-card-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card-bg { transform: scale(1.1); }
.service-card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(10, 25, 47, 0.85), transparent 60%); }
.service-card-content { position: absolute; bottom: 0; left: 0; padding: 2rem; width: 100%; }
.service-card-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary-color); }
.service-card-title { font-size: 1.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.service-card-link { font-family: var(--font-heading); font-weight: 600; color: var(--text-light); opacity: 0; transform: translateY(10px); transition: all 0.4s ease; }
.service-card:hover .service-card-link { opacity: 1; transform: translateY(0); }
.service-card-link i { margin-left: 0.5rem; }

/* --- 3. Stats Section --- */
.stats-section { background-color: #FFFFFF; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat-number { font-size: 3.5rem; color: var(--primary-color); font-weight: 700; margin-bottom: 0.5rem; }
.stat-label { font-size: 1.1rem; color: var(--text-secondary); }

/* --- 4. Testimonials --- */
.testimonials { background-color: var(--bg-soft-gray); }
.testimonial-slider { position: relative; padding-bottom: 4rem; }
.testimonial-card { background-color: var(--bg-light); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: left; height: 100%; display: flex; flex-direction: column; justify-content: space-between;}
.testimonial-quote { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 2rem; min-height: 100px; flex-grow: 1;}
.testimonial-author { display: flex; align-items: center; gap: 1rem; border-top: 1px solid #eee; padding-top: 1.5rem; margin-top: auto;}
.testimonial-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.author-info strong { display: block; color: var(--secondary-color); font-size: 1.1rem; }
.rating { color: #FFC107; }
/* Swiper Pagination Styles */
.swiper-pagination { bottom: 0 !important; }
.swiper-pagination-bullet { background: var(--primary-color) !important; width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--secondary-color) !important; }

/* --- 5. Final CTA --- */
.cta-section { background-color: var(--secondary-color); color: var(--text-light); padding: 5rem 0; }
.cta-section h2 { color: var(--text-light); font-size: 2.5rem; }
.cta-section p { color: rgba(255, 255, 255, 0.9); max-width: 600px; margin: 1rem auto 2rem; }
.cta-section .btn { font-size: 1.1rem; padding: 15px 35px; }

/* --- Animation --- */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 80%; max-width: 300px; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .testimonial-card { padding: 2rem 1.5rem; }
    .testimonial-quote { min-height: auto; }
}
/* New style for better mobile stats */
@media (max-width: 576px) {
    .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
}