/* --- Base Styles & Variables --- */
:root {
    --primary-color: #4F46E5; /* Indigo */
    --secondary-color: #EC4899; /* Pink */
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --grey-text: #6c757d;
    --border-color: #dee2e6;
    --font-family: 'Poppins', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scroll for anchor links */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-text);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    margin-bottom: 0.8rem;
    font-weight: 600;
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p {
    margin-bottom: 1rem;
    color: var(--grey-text);
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-text);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
}

.btn-primary:hover {
    color: var(--light-text);
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-small { padding: 8px 15px; font-size: 0.9rem; }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }

/* --- Header --- */
#main-header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease;
}

#main-header.scrolled {
     background-color: rgba(255, 255, 255, 0.95);
     box-shadow: var(--box-shadow);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}
.logo a:hover { color: var(--primary-color); }
.logo .team-name {
    font-size: 0.7rem;
    color: var(--grey-text);
    display: block;
    line-height: 1;
    margin-top: -5px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 600;
}
.nav-links a:hover { color: var(--primary-color); }

.menu-toggle {
    display: none; /* Hidden by default */
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--dark-text);
}


/* --- Hero Section --- */
#hero {
    background: linear-gradient(45deg, rgba(79, 70, 229, 0.05), rgba(236, 72, 153, 0.05));
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex-basis: 55%;
}
.hero-text h1 { color: var(--dark-text); }
.hero-text p { font-size: 1.1rem; color: var(--grey-text); margin-bottom: 30px;}

.cta-buttons .btn {
    margin-right: 15px;
    margin-bottom: 10px; /* For stacking on small screens */
}

.hero-image {
    flex-basis: 40%;
    text-align: center;
}
.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-text);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
}

/* --- How It Works Section --- */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-card {
    padding: 25px;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    margin-top: 30px; /* Space below number */
}

.step-card h3 {
    margin-bottom: 5px;
    color: var(--dark-text);
}

/* --- Call to Action Section --- */
#cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-text);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

#cta .btn-primary {
     background: var(--light-text);
     color: var(--primary-color);
     border: none;
}
#cta .btn-primary:hover {
     background: var(--light-text);
     color: var(--secondary-color);
     opacity: 0.95;
     transform: scale(1.05);
}

/* --- Footer --- */
#main-footer {
    background-color: var(--dark-text);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

#main-footer p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links li a:hover {
    color: var(--light-text);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Add delays for staggered effect */
.fade-in:nth-child(1) { transition-delay: 0.1s; }
.fade-in:nth-child(2) { transition-delay: 0.2s; }
.fade-in:nth-child(3) { transition-delay: 0.3s; }
.fade-in:nth-child(4) { transition-delay: 0.4s; }
/* Reset delay for elements in different sections */
#how-it-works .fade-in:nth-child(1) { transition-delay: 0.1s; }
#how-it-works .fade-in:nth-child(2) { transition-delay: 0.2s; }
#how-it-works .fade-in:nth-child(3) { transition-delay: 0.3s; }

/* --- Responsiveness --- */

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { flex-basis: 100%; margin-bottom: 30px; }
    .hero-image { flex-basis: 100%; }
    .cta-buttons { margin-bottom: 20px; }
}


@media (max-width: 768px) {
    .section-padding { padding: 40px 0; }
    h1 { font-size: 2.2rem; }

    /* Mobile Menu */
    .nav-links {
        display: none; /* Hide links by default */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Height of header */
        left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
     .nav-links .btn-small {
        margin-top: 10px;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon */
    }

    .features-grid { grid-template-columns: 1fr; }
    .how-it-works-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    .hero-text p { font-size: 1rem; }
    .cta-buttons .btn { display: block; margin: 10px auto; width: 80%; }
    .footer-links { flex-direction: column; gap: 10px; }
}
/* --- Add or modify these rules in your style.css --- */

/* Styles for the container (adjust flex-basis if needed) */
.hero-image {
    flex-basis: 40%; /* How much space the container takes on large screens */
    text-align: center; /* Centers the image if it's display: inline-block or similar */
    margin: 0 auto;     /* Helps center the container itself in flex */
    /* You could add a max-width HERE if you want to limit the container */
    /* max-width: 500px; */
}

/* Styles specifically for the illustration image */
.hero-illustration {
    display: block;     /* Treat the image as a block element */
    max-width: 100%;    /* Crucial: Image won't exceed the width of its container */
    height: auto;       /* Maintain the image's aspect ratio */
    margin: 0 auto;     /* Center the image horizontally within the .hero-image div */
    border-radius: 8px; /* Keep the rounded corners */

    /* Optional: If you still want a hard max pixel width */
    /* max-width: 450px; */ /* Uncomment this line if you never want the image wider than 450px */
    /* width: 100%; */ /* If using max-width in pixels, ensure it can still shrink */
}

/* --- Ensure responsive styles for the container are correct --- */
@media (max-width: 992px) {
    .hero-content {
        /* ... other styles ... */
        flex-direction: column;
    }
     .hero-image {
        flex-basis: 100%; /* Container takes full width on smaller screens */
        margin-top: 30px; /* Add some space above the image */
        /* The .hero-illustration inside will scale nicely due to max-width: 100% */
    }
}

@media (max-width: 768px) {
    /* Add any further adjustments if needed for very small screens */
    .hero-illustration {
       /* Maybe reduce a fixed max-width here if you set one */
       /* max-width: 300px; */
    }
}