/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo a {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #10a861;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #10a861;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hamburger:hover {
    background-color: #f0f0f0;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(16, 168, 97, 0.8), rgba(2, 136, 232, 0.8)), url('https://images.unsplash.com/photo-1532664299352-314465553156?q=80&w=2070&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #10a861;
    color: #fff;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #0d8a50;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0; /* Start invisible */
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animated-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Features Showcase */
.features-showcase {
    padding: 4rem 2rem;
    text-align: center;
}

.features-showcase h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    margin-bottom: 1.5rem;
    color: #10a861;
}

/* How It Works */
.how-it-works {
    background-color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}

.step {
    max-width: 300px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: #10a861;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Testimonials */
.testimonials {
    padding: 4rem 2rem;
    text-align: center;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
}

.testimonial h4 {
    margin-top: 1rem;
    font-weight: bold;
}

/* Generic Page Styles */
.page-hero {
    background-color: #10a861;
    color: #fff;
    text-align: center;
    padding: 3rem 2rem;
}

.page-hero-content h1 {
    font-size: 2.5rem;
}

.page-content {
    padding: 4rem 2rem;
    background-color: #fff;
    min-height: calc(100vh - 80px - 250px); /* Header approx 80px, Footer approx 250px */
}

.content-wrapper {
    max-width: 90%;
    margin: 0 auto;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Download Section */
.download-section {
    background-color: #0288e8;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.app-stores {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-store-button {
    background-color: #fff;
    color: #0288e8;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.app-store-button:hover {
    background-color: #f0f2f5;
    transform: translateY(-3px);
}

.app-store-button i {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background-color: #111;
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 2rem;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #10a861;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    width: 100%;
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom ul li a:hover {
    color: #10a861;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0288e8;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 990;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #016bb3;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0; /* Changed from right: 0 */
        height: 100vh;
        width: 70%;
        background-color: #fff;
        flex-direction: column;
        padding-top: 50px; /* Adjusted padding-top */
        transform: translateX(-100%); /* Changed from translateX(100%) */
        transition: transform 0.3s ease-in-out;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2); /* Adjusted shadow */
        z-index: 999;
        padding-left: 2rem; /* Added padding-left */
        box-sizing: border-box;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1rem 0;
        text-align: left;
    }

    .hamburger {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .close-sidebar {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem; /* Changed from left: 1rem */
        font-size: 2rem;
        color: #333;
        cursor: pointer;
        transition: color 0.3s ease;
        background-color: #f0f0f0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .close-sidebar:hover {
        color: #10a861;
    }
}