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

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --highlight-color: #e94560;
    --text-color: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
}

.logo-container {
    margin-bottom: 1rem;
}

.logo-img {
    max-width: 200px;
    height: auto;
    filter: brightness(100);
}

.tagline p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

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

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

.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--highlight-color);
    margin: 0.5rem auto 0;
}

/* Gallery Grid - 3 columns on desktop */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.gallery-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Placeholder pattern for empty images */
.gallery-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    opacity: 0.5;
}

/* Footer Section */
.footer-section {
    text-align: center;
    padding: 3rem 0;
}

.footer-text {
    color: var(--text-muted);
    font-size: 1rem;
}

.footer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-link:hover {
    color: var(--highlight-color);
    background: var(--bg-light);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.875rem;

    width: 100vw;
    position: fixed;
    bottom: 0px;
    left: 0px;
}

.footer-copyright {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 1rem;
    }

    .logo-img {
        max-width: 150px;
    }

    .tagline p {
        font-size: 1.25rem;
    }

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

    .section-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .header {
        padding: 1rem 0.5rem;
    }

    .logo-img {
        max-width: 120px;
    }

    .tagline p {
        font-size: 1rem;
    }

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

    .footer-text {
        font-size: 0.9rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--highlight-color);
    color: var(--white);
}

/* Focus States for Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

/* Back navigation */
.back-nav {
    margin-top: auto;
    padding: 1.5rem 0;
    text-align: center;
}

.back-nav a {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
}

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