/*
 * ===================================================================
 * TABLE OF CONTENTS
 * ===================================================================
 * 1. GLOBAL & PRELOADER STYLES
 * 2. NAVIGATION BAR
 * 3. HERO SECTION
 * 4. GENERAL SECTION STYLES
 * 5. FEATURES SECTION
 * 6. HOW IT WORKS SECTION
 * 7. TESTIMONIALS SECTION
 * 8. CTA & FOOTER
 * 9. BUTTONS & UTILITIES
 * 10. RESPONSIVE ADJUSTMENTS
 * ===================================================================
*/

/* 1. GLOBAL & PRELOADER STYLES */
body, html {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    color: #495057;
    scroll-behavior: smooth;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
.hero-section .container {
  overflow: hidden;
}
.hero-image {
  max-width: 100%;
}

#navbarResponsive {
  max-width: 100%;
  overflow-x: hidden;
}


.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.spinner-grow {
    color: #7ed957; /* Your brand color */
}

/* 2. NAVIGATION BAR */
.navbar {
    transition: all 0.3s ease-in-out;
    padding: 0.5rem 0;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-nav .nav-link {
    font-weight: 600;
    color: #343a40;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #7ed957;
}
.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
}

/* 3. HERO SECTION */
.hero-section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    overflow: hidden;

    /* --- New Properties --- */
    /* The linear-gradient is placed BEFORE the url, creating an overlay. */
    /* You can adjust the rgba values (e.g., 0.6) to make it darker or lighter. */
    background: linear-gradient(rgba(29, 43, 56, 0.7), rgba(52, 73, 94, 0.7)), url('sliderbg.jpg');
    
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* (Optional) Add a parallax scrolling effect */
    background-attachment: fixed; 
}
.hero-section .tagline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
}
.hero-section .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
}
.hero-image {
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: perspective(1500px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.hero-image:hover {
     transform: perspective(1500px) rotateY(0deg) rotateX(0deg);
}

/* 4. GENERAL SECTION STYLES */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #212529;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 4px;
    background: #7ed957;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}
.section-title p {
    font-size: 1.1rem;
    color: #6c757d;
}

/* 5. FEATURES SECTION */
.features-section {
    background-color: #ffffff;
}
.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.feature-card .icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: #e4f8dd; /* Light green */
    color: #7ed957;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
}

/* 6. HOW IT WORKS SECTION */
.how-it-works-section {
    background-color: #f8f9fa; /* Default bg */
}
.step-icon {
    width: 60px;
    height: 60px;
    background-color: #7ed957;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(126, 217, 87, 0.4);
}
.how-it-works-section h4 {
    font-weight: 600;
    color: #343a40;
}

/* 7. TESTIMONIALS SECTION */
.testimonials-section {
    background-color: #ffffff;
}
.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 1rem;
    border-left: 5px solid #7ed957;
    height: 100%;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.user-profile {
    display: flex;
    align-items: center;
}
.user-profile img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}
.user-profile h5 {
    font-weight: 700;
    margin: 0;
}
.user-profile span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* 8. CTA & FOOTER */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://www.example.com/background.jpg) center center/cover no-repeat;
    background-color: #343a40; /* Fallback */
    color: white;
}
.footer {
    background-color: #212529;
    color: white;
    padding: 30px 0;
}
.footer a {
    transition: color 0.3s;
}
.footer a:hover {
    color: #7ed957 !important;
}

/* 9. BUTTONS & UTILITIES */
.btn-brand {
    background-color: #7ed957;
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 10px rgba(126, 217, 87, 0.3);
    transition: all 0.3s ease;
}
.btn-brand:hover {
    background-color: #6ac848;
    color: white;
    box-shadow: 0 6px 15px rgba(126, 217, 87, 0.4);
    transform: translateY(-2px);
}
.btn-outline-brand {
    border: 2px solid #7ed957;
    color: #7ed957;
    background-color: transparent;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
}
.btn-outline-brand:hover {
    background-color: #7ed957;
    color: white;
}
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    color: white;
}
.btn-outline-light:hover {
    background-color: white;
    color: #212529;
}

/* 10. RESPONSIVE ADJUSTMENTS */
@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    .hero-image {
        margin-top: 50px;
        transform: perspective(0) rotateY(0) rotateX(0); /* Simplify on smaller screens */
    }
    .navbar-nav {
       padding-top: 1rem;
    }
    .navbar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .btn-outline-light{
        margin-top: 12px;
    }
}