:root {
    --primary-color: #e94e77; /* Rose Pink */
    --secondary-color: #8c2a52; /* Darker Pink/Plum */
    --accent-color: #6ed3cf; /* Teal */
    --text-dark: #333;
    --text-light: #555;
    --bg-light: #f9f9f9;
    --bg-dark: #34495e; /* Dark Blue Gray for contrast */
    --border-color: #eee;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition-speed: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

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

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

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.8em;
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: background-color var(--transition-speed), transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #5ac5c2; /* Slightly darker teal */
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1em;
}

/* Header */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.main-header .logo {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
}

.main-header .logo a {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05em;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

/* Hamburger menu toggle */
.nav-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Above nav to be clickable */
}

.nav-toggle .hamburger {
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Animate hamburger to 'X' */
.nav-toggle.active .hamburger:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .hamburger:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #fcebeb, #fae0e7); /* Light gradient background */
    padding: 80px 0;
    text-align: center;
    overflow: hidden; /* For image positioning */
}

.hero-section .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.hero-content h2 {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    animation: fadeInScale 1.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Info and Feature Sections */
.info-section, .feature-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.feature-section {
    background-color: #fff;
}

.info-section h3, .feature-section h3 {
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.steps-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.step-card, .feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform var(--transition-speed);
}

.step-card:hover, .feature-card:hover {
    transform: translateY(-5px);
}

.step-card img, .feature-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.step-card h4, .feature-card h4 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.testimonials-section h3 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 60px;
}

.testimonial-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 350px;
    min-height: 200px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: var(--shadow);
}

.testimonial-card p {
    font-size: 1.1em;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card .author {
    font-weight: 600;
    text-align: right;
    font-size: 0.9em;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(to right, #fcebeb, #fae0e7); /* Light gradient background */
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.signup-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto 20px;
}

.signup-form input[type="email"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.1em;
    outline: none;
    transition: border-color var(--transition-speed);
    min-width: 250px; /* Ensure input is not too small */
}

.signup-form input[type="email"]:focus {
    border-color: var(--primary-color);
}

.cta-section .small-text {
    font-size: 0.9em;
    color: var(--text-light);
}

/* Footer */
.main-footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 40px 0;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .logo {
    font-size: 1.5em;
    color: #fff;
    margin-bottom: 10px;
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav a:hover {
    color: var(--accent-color);
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media img {
    width: 28px;
    height: 28px;
    transition: transform var(--transition-speed);
}

.social-media img:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
    .hero-content h2 {
        font-size: 3em;
    }
    .hero-image-wrapper {
        order: -1; /* Image above content on smaller screens */
    }

    /* Main nav on tablets */
    .main-nav ul {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }

    .main-header .container {
        align-items: center;
        justify-content: space-between;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--bg-dark); /* Dark background for mobile menu overlay */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%); /* Start off-screen */
        transition: transform 0.3s ease-in-out;
        z-index: 999; /* Below header, above content */
    }

    .main-nav.nav-menu--open {
        transform: translateX(0); /* Slide in */
    }

    .main-nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        width: 100%;
    }

    .main-nav a {
        color: #fff; /* White links on dark background */
        font-size: 1.5em; /* Larger for touch */
        padding: 10px 0;
    }

    .main-nav a:not(.btn)::after {
        background-color: var(--accent-color); /* Highlight color */
    }

    .main-nav .btn {
        margin-top: 20px;
        font-size: 1.2em;
        background-color: var(--accent-color); /* Adjust button color for dark background */
        color: var(--text-dark);
    }

    .main-nav .btn:hover {
        background-color: #5ac5c2;
    }

    .nav-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    body.no-scroll {
        overflow: hidden; /* Prevent body scroll when menu is open */
    }

    .info-section h3, .feature-section h3, .testimonials-section h3, .cta-section h2 {
        font-size: 2em;
    }

    .steps-grid, .feature-grid, .testimonial-carousel {
        grid-template-columns: 1fr;
    }

    .signup-form {
        flex-direction: column;
        gap: 10px;
    }
    .signup-form input, .signup-form button {
        width: 100%;
    }

    .main-footer .container {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
        margin: 20px 0;
    }
    .social-media {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.3em; }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }

    .step-card, .feature-card, .testimonial-card {
        padding: 20px;
    }
}