* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------- HEADER ---------------- */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 110px;
    width: auto;
    object-fit: contain;
}

nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

nav button {
    background: none;
    border: none;
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 5px;
}

nav button:hover,
nav button.active {
    background: #4CAF50;
    color: white;
}

/* ---------------- MAIN ---------------- */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.content-section {
    display: none;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-width: 1200px;
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- HOME PAGE LAYOUT ---------------- */
.home-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.home-text {
    flex: 1;
    min-width: 0;
}

.home-image {
    flex: 0 0 40%;
    max-width: 450px;
}

.home-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* ---------------- TYPOGRAPHY ---------------- */
h1 {
    color: #4CAF50;
    margin-bottom: 1.5rem;
    font-size: 2.4rem;
}

h2 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.9rem;
}

p {
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* ---------------- PROJECTS ---------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4CAF50;
}

.project-card h3 {
    color: #4CAF50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Team Section - Gallery Style */

.team-category {
    margin-bottom: 4rem;
}

.team-category h3 {
    font-size: 2.2rem;
    color: #2c5f2d;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.team-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #97bc62, #2c5f2d);
    border-radius: 2px;
}

.team-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 200;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #97bc62 0%, #2c5f2d 100%);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.gallery-info h4 {
    font-size: 1.4rem;
    color: #2c5f2d;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.gallery-info .role {
    font-size: 0.9rem;
    color: #97bc62;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.gallery-info .bio {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    flex-grow: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .team-gallery {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .team-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-category h3 {
        font-size: 1.8rem;
    }
    
    .gallery-image {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .gallery-image {
        height: 80px;
    }
    
    .gallery-info {
        padding: 1.5rem;
    }
}

/* ---------------- FOOTER ---------------- */
footer {
    background: rgba(0, 0, 0, 0.85);
    color: #eee;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------------- MOBILE RESPONSIVE ---------------- */
@media (max-width: 768px) {

    .logo img {
        height: 90px;
    }

    /* Stack home page content vertically on mobile */
    .home-content {
        flex-direction: column;
        gap: 2rem;
    }

    .home-image {
        flex: 1;
        max-width: 100%;
        order: 2;
    }

    .home-text {
        order: 1;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .content-section {
        padding: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    header {
        padding: 1rem;
    }

    nav button {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    h1 {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
    }

    .home-content {
        gap: 1.5rem;
    }
}