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

:root {
    --primary-color: #2d5016;
    --secondary-color: #4a7c2a;
    --accent-color: #6b9f3d;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: inline-block;
    font-family: 'Racing Sans One', cursive;
    letter-spacing: 0.5px;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section.intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.content-section h1,
.content-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.content-section h2 {
    font-size: 2.5rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Horizontal Sections */
.horizontal-section {
    padding: 5rem 0;
}

.horizontal-section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content.image-left .section-image {
    order: 1;
}

.section-content.image-left .section-text {
    order: 2;
}

.section-content.image-right .section-image {
    order: 2;
}

.section-content.image-right .section-text {
    order: 1;
}

.section-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.section-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.section-body p {
    margin-bottom: 1rem;
}

/* Gallery */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.site-footer a {
    color: var(--white);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Page Content */
.page-content {
    min-height: 60vh;
}

/* People Cards */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.person-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.person-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-light);
}

.person-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.person-card:hover .person-card-image img {
    transform: scale(1.1);
}

.person-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: var(--bg-light);
}

.person-placeholder.large {
    min-height: 300px;
}

.person-card-info {
    padding: 1.5rem;
    text-align: center;
}

.person-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.person-view-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.person-view-btn:hover {
    background: var(--secondary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    animation: slideUp 0.3s;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
    z-index: 2002;
}

.modal-close:hover {
    background: var(--white);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.modal-image {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.modal-info {
    text-align: center;
}

.modal-name {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal-bio {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.modal-social {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: transform 0.3s, opacity 0.3s;
    font-size: 0.9rem;
}

.social-link:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.social-link.email {
    background: #6c757d;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link svg {
    flex-shrink: 0;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-content .section-image {
        order: 1 !important;
    }

    .section-content .section-text {
        order: 2 !important;
    }

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

    .content-section {
        padding: 2rem 0;
    }

    .horizontal-section {
        padding: 3rem 0;
    }

    .people-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-image img {
        width: 150px;
        height: 150px;
    }

    .modal-name {
        font-size: 1.5rem;
    }

    .modal-social {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }
}
