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


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}


header {
    background-color: #3e2723;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4a574;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #d4a574;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}


.hero {
    height: 70vh;
    background: linear-gradient(rgba(62, 39, 35, 0.5), rgba(62, 39, 35, 0.5)),
                url('https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?w=1200') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s;
}


.btn {
    display: inline-block;
    background-color: #d4a574;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s, background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #b8935f;
    transform: translateY(-3px);
}


.intro {
    display: flex;
    gap: 2rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.intro article {
    flex: 1;
    padding: 2rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.intro h2 {
    color: #3e2723;
    margin-bottom: 1rem;
}


.page-content {
    min-height: auto;
}

.about-hero,
.gallery-header,
.contact-header {
    background-color: #3e2723;
    color: #fff;
    text-align: center;
    padding: 3rem 5%;
}

.about-text {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 5%;
}

.about-text h2 {
    color: #3e2723;
    margin-bottom: 1rem;
}


.timeline {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 5%;
}

.timeline h2 {
    text-align: center;
    color: #3e2723;
    margin-bottom: 2rem;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-left: 4px solid #d4a574;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateX(10px);
}

.year {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4a574;
    min-width: 80px;
}

.event h3 {
    color: #3e2723;
    margin-bottom: 0.5rem;
}


.team {
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.team h2 {
    text-align: center;
    color: #3e2723;
    margin-bottom: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: transform 0.3s;
}

.team-member:hover {
    transform: scale(1.05);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a574, #8d6e63);
    margin: 0 auto 1rem;
}


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

.filter-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #d4a574;
    border-color: #d4a574;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 1.2rem;
}


.contact-container {
    display: flex;
    gap: 3rem;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info,
.contact-form-container {
    flex: 1;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h3 {
    color: #3e2723;
    margin-bottom: 0.5rem;
}


.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #3e2723;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.3rem;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: #d32f2f;
}

.form-group.error .error-message {
    display: block;
}

.success-message {
    color: #388e3c;
    font-weight: 600;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}


footer {
    background-color: #3e2723;
    color: #fff;
    padding: 2rem 5%;
    text-align: center;
    margin-top: 0;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: #d4a574;
    text-decoration: none;
    margin: 0 1rem;
}


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


@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #3e2723;
        width: 100%;
        padding: 2rem;
        transition: right 0.3s;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .intro {
        flex-direction: column;
    }

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

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

    .contact-container {
        flex-direction: column;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 3%;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .filter-buttons {
        flex-direction: column;
    }
}