/* Custom styles for Rosewood Foundation */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2ecc71;
    --secondary-color: #27ae60;
    --text-color: #333;
    --bg-color: #f8f9fa;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
    line-height: 1.6;
}

.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

header {
    transition: background-color 0.3s ease, padding 0.3s ease;
}

header.scrolled {
    background-color: rgba(46, 204, 113, 0.9);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

nav ul {
    display: flex;
    justify-content: space-around;
    padding: 0;
}

nav li {
    list-style-type: none;
}

nav a {
    position: relative;
    padding-bottom: 0.25rem;
    text-decoration: none;
    color: white;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

#home {
    position: relative;
    height: 100vh;
    display: flexbox;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-image: url("https://img.freepik.com/free-photo/photorealistic-sustainable-garden-with-home-grown-plants_23-2151479069.jpg?t=st=1725905127~exp=1725908727~hmac=7a107020bd3d7afb80e2273ea7d798a669daeb67b40e21cd52944392fe670bd2&w=740");
    background-repeat: no-repeat;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

#home .text-center {
    position: relative;
    z-index: 1;
}

.rounded-lg {
    border-radius: 1rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.transition-colors {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#goals .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#goals .bg-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#join-form input,
#join-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#join-form input:focus,
#join-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
    outline: none;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--bg-color);
}

/* Responsive styles */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    header h1 {
        font-size: 2rem;
    }

    #home h2 {
        font-size: 3rem;
    }

    #home p {
        font-size: 1.5rem;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    header h1 {
        font-size: 2.5rem;
    }

    #home h2 {
        font-size: 4rem;
    }

    #home p {
        font-size: 1.75rem;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 991px) {
    header {
        padding: 1rem 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin-bottom: 0.5rem;
    }

    #goals .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    #home h2 {
        font-size: 2rem;
    }

    #home p {
        font-size: 1rem;
    }

    #goals .grid {
        grid-template-columns: 1fr;
    }

    #impact .flex {
        flex-direction: column;
    }

    #impact .w-1 {
        width: 100%;
        margin-bottom: 2rem;
    }
}

@media (max-width: 575px) {
    header {
        padding: 0.5rem 0;
    }

    header h1 {
        font-size: 1.25rem;
    }

    #home h2 {
        font-size: 1.5rem;
    }

    #home p {
        font-size: 0.875rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}