/* styles.css */
:root {
    --primary-green: #166534;
    --light-green: #22c55e;
    --accent-yellow: #facc15;
    --dark-text: #1f2937;
    --light-text: #4b5563;
    --white: #ffffff;
    --off-white: #f9fafb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--off-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-green);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
}

h3 {
    font-size: 1.75rem;
}

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

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
}

.logo span {
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.contact-button {
    background-color: var(--accent-yellow);
    color: var(--primary-green);
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: #fbbf24;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #f0fdf4, var(--off-white));
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.button-primary {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button-primary:hover, .button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.card-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Icons */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-circle i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Previous base styles remain the same */
/* Adding new components and modifications */

/* Grid Layouts */
.card-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Feature Lists */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.feature-list li i {
    color: var(--light-green);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Testimonials */
.testimonial {
    position: relative;
    padding: 2rem;
    text-align: center;
}

.testimonial-icon {
    width: 48px;
    height: 48px;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.testimonial-icon i {
    color: var(--primary-green);
    font-size: 1.5rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    line-height: 1.8;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author p {
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Impact Stats */
.impact-stats {
    background: linear-gradient(135deg, #f0fdf4, var(--off-white));
    padding: 4rem 0;
    margin: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--light-text);
    font-weight: 500;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--light-green);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

/* Contact Information */
.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    width: 40px;
    height: 40px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-green);
}

/* Enhanced Button Styles */
.button-primary, .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button-primary:hover, .button-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button-primary {
    background: linear-gradient(to right, var(--primary-green), var(--light-green));
    color: var(--white);
    border: none;
}

.button-secondary {
    background: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .contact-info {
        margin-top: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.slide-up {
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

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

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer p {
    color: var(--white);  /* Updated: Changed from light-text to white */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a7f3d0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2f855a;
    color: var(--white);
}

/* responsive-styles.css */

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-green);
    padding: 6rem 2rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    color: var(--white);
    font-size: 1.25rem;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Images */
.responsive-img {
    max-width: 100%;
    height: auto;
}

/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .card-grid-2, 
    .card-grid-3, 
    .card-grid-4 {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .testimonial {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Stack Layouts */
.stack-on-mobile {
    display: flex;
    gap: 2rem;
}

@media (max-width: 768px) {
    .stack-on-mobile {
        flex-direction: column;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }
}

/* Touch-friendly Adjustments */
@media (hover: none) {
    .card:hover {
        transform: none;
    }

    .button-primary:hover,
    .button-secondary:hover {
        transform: none;
    }

    .nav-links a,
    .footer-links a {
        padding: 0.5rem 0;
    }
}

/* Loading States */
.loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--light-green);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* Add to your styles.css */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-green);
    color: var(--white);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: var(--light-green);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
}

/* Add smooth scrolling to the entire page */
html {
    scroll-behavior: smooth;
}

/* Style for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .back-to-top {
        transition: none;
    }
}