@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary-color: #1a4c33;
    --secondary-color: #4CAF50;
    --accent-color: #e8f5e9;
    --text-dark: #2c3e50;
    --text-light: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fdfdfd;
}

/* Header & Navigation */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-container img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/community.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    color: var(--white);
    margin-top: 80px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    animation: fadeInUp 1s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.btn-primary:hover {
    background-color: #3d8b40;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

/* Page Headers (for inner pages) */
.page-header {
    padding: 220px 5% 80px;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #0d2c1c 100%);
    color: var(--white);
    text-align: center;
    margin-top: 0;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.page-header p {
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

/* Section Shared Styles */
.section {
    padding: 5rem 5%;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 76, 51, 0.85);
    z-index: 1;
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.value-card:hover::before {
    background: rgba(26, 76, 51, 0.7);
}

.value-card h3, .value-card p {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 3rem 5%;
}

footer .footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

footer .footer-logo img {
    height: 50px;
    border-radius: 5px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

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



/* Gallery Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* Social Links in Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--primary-color);
    background-color: var(--accent-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 35px;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Core Values Background */
.core-values-section {
    background-color: var(--white);
}

/* Forms & Inputs */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

/* Impact Grid */
.impact-grid .value-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}
.impact-grid .value-card::before {
    display: none;
}

/* Scroll Animations Removed */

/* Responsive Typography */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .section-title { font-size: 2rem; }
}

/* Gallery Styles - Premium Polaroid Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    padding: 3rem 5%;
    background-color: var(--accent-color); /* Light background to make frames pop */
}
.gallery-item {
    background: #ffffff;
    padding: 15px 15px 60px 15px; /* Creates the Polaroid bottom lip */
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Perfect squares inside the frame */
    object-fit: cover;
    border-radius: 3px;
    display: block;
}
.gallery-item::after {
    content: "Green Pacesetters";
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: #888;
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (hover: hover) {
    .gallery-item:hover {
        transform: translateY(-10px) rotate(2deg);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
    .gallery-item:nth-child(even):hover {
        transform: translateY(-10px) rotate(-2deg);
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 5%;
    }
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 1.5rem;
}
.nav-buttons a {
    padding: 0.6rem 1.2rem !important;
    border-radius: 30px;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.nav-btn-primary {
    background: var(--primary-color);
    color: var(--white) !important;
    border: 2px solid var(--primary-color);
}
.nav-btn-outline {
    background: transparent;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color);
}
.nav-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.nav-buttons a::after {
    display: none;
}
.nav-btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
}
.nav-btn-outline:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}
@media (max-width: 950px) {
    .nav-buttons {
        margin-left: 0;
        margin-top: 1rem;
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 5%;
    }

    .logo-container {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    nav a {
        font-size: 0.95rem;
    }
    
    .page-header {
        padding: 300px 5% 40px !important;
    }

    .section {
        padding: 3rem 5%;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .two-column .section-title {
        text-align: center !important;
    }

    .image-wrapper img {
        max-height: 350px;
        object-fit: cover;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        margin-top: 280px !important;
    }
    
    .logo-text {
        font-size: 1rem;
    }

    .values-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-item img {
        height: 150px;
    }

    .value-card {
        padding: 1.5rem 1rem;
    }
    
    .value-card h3 {
        font-size: 1.2rem;
    }

    .impact-grid .value-card {
        min-height: 120px;
    }
    .impact-grid .value-card h3 {
        font-size: 2rem !important;
    }
}

@media (max-width: 600px) {
    .values-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }
}
