/* --- Global Styles & Variables --- */
:root {
    --primary-color: #0052CC; /* Trustworthy Blue */
    --primary-color-dark: #0A2540; /* Deeper Blue for text/accents */
    --secondary-color: #00D09C; /* Vibrant Teal/Green */
    --secondary-color-dark: #00B382;
    --light-gray: #F6F9FC;
    --medium-gray: #E6E6E6;
    --dark-gray: #555;
    --text-color: #333;
    --heading-font: 'Poppins', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --container-width: 1140px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden; /* For AOS horizontal animations */
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color-dark);
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

p {
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 700;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}


.bg-light {
    background-color: var(--light-gray);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}
.btn-primary:hover {
    background-color: var(--secondary-color-dark);
    border-color: var(--secondary-color-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 208, 156, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}
.btn-light {
    background-color: #fff;
    color: var(--primary-color-dark);
    border-color: #fff;
}
.btn-light:hover {
    background-color: var(--light-gray);
    color: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,255,255, 0.2);
}


.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- Header & Navigation --- */
#main-header {
    background-color: #fff;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-svg .logo-primary-fill { fill: var(--primary-color); }
.logo-svg .logo-accent-fill { fill: var(--secondary-color); }
.logo-svg .logo-text-primary { fill: var(--primary-color-dark); }
.logo-svg .logo-text-accent { fill: var(--secondary-color); }


.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color-dark);
}
.logo img { height: 40px; } /* If using img tag for logo */

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--dark-gray);
    padding: 5px 0;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}


.nav-buttons .btn {
    margin-left: 15px;
}

#mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
#mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color-dark);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* --- Hero Section --- */
#hero {
    padding-top: 160px; /* Space for fixed header */
    padding-bottom: 100px;
    background-color: var(--light-gray); /* Fallback */
    position: relative;
    overflow: hidden; /* For bg shape */
}

.hero-bg-shape {
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 50%;
    transform: rotate(30deg);
    filter: blur(50px);
    z-index: 0;
}


.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex-basis: 55%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.hero-text h1 .highlight {
    color: var(--secondary-color);
    /* Simple text animation idea (can be enhanced with JS) */
    display: inline-block;
    /* animation: pulseColor 3s infinite alternate; */
}

/* @keyframes pulseColor {
    0% { color: var(--secondary-color); }
    100% { color: var(--primary-color); }
} */

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-text .btn {
    margin-right: 15px;
}
.hero-text .btn:last-child {
    margin-right: 0;
}

.hero-image {
    flex-basis: 40%;
    text-align: right;
}
.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); */
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 20px;
    color: var(--secondary-color); /* Icon color */
}
.feature-icon svg { /* Or img */
    width: 50px;
    height: 50px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* --- How It Works Section --- */
.how-it-works-grid {
    display: flex;
    flex-wrap: wrap; /* For smaller screens */
    justify-content: space-between;
    align-items: flex-start; /* Align items at the top */
    position: relative;
}

.step-card {
    flex-basis: calc(33.333% - 40px); /* Adjust for gap */
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    position: relative;
    margin-bottom: 30px; /* For mobile stack */
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 2px 5px rgba(0, 208, 156, 0.4);
}

.step-connector {
    flex-basis: 60px; /* Width of connector line/dots */
    height: 4px; /* Thickness */
    background-color: var(--medium-gray); /* Color of the line */
    margin: 55px 0; /* Align with middle of step numbers roughly */
    align-self: flex-start; /* Align to top */
    border-radius: 2px;
    position: relative;
}
/* Hide connector on mobile if steps stack */


/* --- Testimonials Section --- */
.testimonial-slider {
    display: flex; /* Simple flex for now, can be JS slider */
    gap: 30px;
    overflow-x: auto; /* Allows horizontal scroll if many testimonials */
    padding-bottom: 20px; /* For scrollbar */
}
.testimonial-card {
    flex: 0 0 calc(50% - 15px); /* Two cards visible, adjust as needed */
    min-width: 300px; /* Min width for smaller screens */
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--secondary-color);
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
}
.testimonial-card h4 {
    font-size: 1rem;
    color: var(--primary-color-dark);
    margin-bottom: 5px;
}
.testimonial-card span { /* For stars */
    color: #FFD700; /* Gold */
    font-size: 1.2rem;
}


/* --- CTA Section --- */
#cta {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}
#cta h2 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 15px;
}
#cta p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* --- Footer --- */
#main-footer {
    background-color: var(--primary-color-dark);
    color: var(--light-gray);
    padding-top: 60px;
}

.footer-logo .logo-primary-fill { fill: white; }
.footer-logo .logo-accent-fill { fill: var(--secondary-color); }
.footer-logo .logo-text-primary { fill: white; }
.footer-logo .logo-text-accent { fill: var(--secondary-color); }


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about .logo {
    display: inline-block;
    margin-bottom: 15px;
}
.footer-about .logo-svg { /* Adjust footer logo size if needed */
    width: 130px;
}

.footer-about p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: var(--medium-gray);
    font-size: 0.9rem;
}
.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.social-icons a {
    margin-left: 15px;
    color: var(--medium-gray);
    font-size: 1.2rem; /* If using font icons */
}
.social-icons img { /* If using img for social icons */
    width: 24px;
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.social-icons a:hover img {
    opacity: 1;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        flex-basis: 100%;
        margin-bottom: 40px;
    }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-image {
        flex-basis: 100%;
        text-align: center;
    }
    .hero-image img { max-width: 80%; }

    .how-it-works-grid {
        flex-direction: column;
        align-items: center;
    }
    .step-card {
        flex-basis: 100%;
        max-width: 400px; /* Limit width on mobile for aesthetics */
    }
    .step-connector {
        width: 4px; /* Vertical line */
        height: 40px; /* Length of vertical line */
        margin: 20px 0; /* Spacing between stacked cards */
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .hero-text h1 { font-size: 2.8rem; }

    .nav-links {
        display: none; /* Hide for mobile menu */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    .nav-links.active {
        display: flex; /* Show when active */
    }
    .nav-links li {
        margin: 10px 20px;
        text-align: center;
    }
    .nav-buttons {
        display: none; /* Can move these into mobile menu or simplify */
    }
     .nav-buttons.mobile-active { /* Example to show buttons in mobile menu */
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }
    .nav-buttons.mobile-active .btn {
        margin: 10px 0;
        width: 80%;
    }

    #mobile-menu-toggle {
        display: block;
    }
    #mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    #mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }
    #mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .features-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }

    .testimonial-slider {
        flex-direction: column; /* Stack testimonials */
    }
    .testimonial-card {
        flex: 1 1 auto; /* Full width */
        margin-bottom: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-about p { margin: 0 auto 1rem; max-width: 300px; }
    .footer-bottom .container {
        flex-direction: column;
        gap: 10px;
    }
    .social-icons { margin-top: 10px; }
    .social-icons a:first-child { margin-left: 0; }
}