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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header and Navigation Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #555;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    margin-left: 2rem;
    position: relative;
}

nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #000;
}

nav a.active {
    color: #000;
    font-weight: 600;
    position: relative;
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Gallery Header */
.gallery-header {
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gallery-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #666;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 250px;
    background-color: #eee;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

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

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

/* Lightbox styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox.transitioning .lightbox-content {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.lightbox .lightbox-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border: 5px solid white;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    padding: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-lightbox:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Footer Styles */
footer {
    background-color: #222;
    color: #ddd;
    padding: 2rem 0 0.1rem;
    margin-top: 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    min-width: 300px;
    margin-bottom: 0.5rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #fff;
}

.footer-section p {
    padding: 0.5rem;
}

.footer-section-small {
    flex: 0.4;
    min-width: 300px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links h3 {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #fff;
}

.social-icons {
    padding-left: 1rem;
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.facebook {
    background-color: #3b5998;
}

.social-icon.facebook:hover {
    background-color: #4c70ba;
}

.social-icon.twitter {
    background-color: #000000;
}

.social-icon.twitter:hover {
    background-color: #333333;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.copyright {
    width: 100%;
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #444;
}

/* Footer Form */
.footer-form {
    margin-top: 0.5rem;
}

.footer-form .form-group {
    margin-bottom: 0.5rem;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    background-color: #333;
    color: #ddd;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    transition: background-color 0.3s ease;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: #999;
}

.footer-form input:focus,
.footer-form textarea:focus {
    background-color: #444;
    outline: none;
}

.footer-form textarea {
    resize: vertical;
    min-height: 70px;
}

.footer-submit {
    background: linear-gradient(135deg, #888, #555);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(136, 136, 136, 0.3);
    margin-top: 0.5rem;
}

.footer-submit:hover {
    background: linear-gradient(135deg, #555, #333);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(136, 136, 136, 0.4);
}

.footer-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(136, 136, 136, 0.3);
}

.footer-submit:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.footer-submit:hover:before {
    left: 100%;
}

/* About Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-header img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
}

.about-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-header p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-member-info {
    padding: 1.5rem;
}

.team-member h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.team-member .role {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

.contact-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Gallery Index Styles */
.gallery-index {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.gallery-index h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-index > p {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: #666;
}

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

.gallery-preview {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-preview:hover {
    transform: translateY(-5px);
}

.gallery-preview a {
    color: inherit;
    text-decoration: none;
}

.gallery-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-preview h2 {
    padding: 1rem 1rem 0.5rem 1rem;
    font-size: 1.5rem;
}

.gallery-preview p {
    padding: 0 1rem 1rem 1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 0;
        flex-direction: column;
    }

    header {
        padding: 0.1rem;
    }
    
    .logo {
        margin-bottom: 0.2rem;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.3rem;
        font-size: 1.8rem;
    }
    
    nav {
        width: 100%;
    }
    
    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
    }
    
    nav li {
        margin: 0.1rem 0.3rem;
    }
    
    nav a {
        padding: 0.2rem;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
    
    .gallery-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-form textarea {
        min-height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .team-grid,
    .gallery-list {
        grid-template-columns: 1fr;
    }
    
    .gallery-header h1,
    .about-header h1 {
        font-size: 2rem;
    }

    .footer-section {
        min-width: 100%;
    }
}