/* ===== General Styles ===== */

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: linear-gradient(180deg, #e8f5e9, #fff);
    scroll-behavior: smooth;
}


/* ===== Navbar ===== */

header {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
}

header .logo {
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #c8e6c9;
}


/* ===== Sections ===== */

.section {
    padding: 60px 20px;
    text-align: center;
}

.section.alt {
    background: #f1f8e9;
}

.container {
    max-width: 1000px;
    margin: auto;
}

h1,
h2 {
    color: #1b5e20;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
    margin-bottom: 20px;
}


/* ===== Masonry / Gallery Grid ===== */

.masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.masonry img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s, box-shadow 0.3s;
}

.masonry img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}


/* ===== Footer ===== */

footer {
    text-align: center;
    background: #2e7d32;
    color: white;
    padding: 15px;
    font-size: 0.9rem;
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        background: #388e3c;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none;
    }
    nav ul.active {
        display: flex;
    }
    header {
        flex-wrap: wrap;
    }
}