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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #e0e0e0; /* Changed from dark gray to light gray for readability on black */
    background-color: #000000; /* Changed background to black */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background-color: #000;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222; /* Added a subtle border to separate header from body */
}

header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header h1 a {
    text-decoration: none;
    color: #fff;
}

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

nav a {
    text-decoration: none;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #fff;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 5%;
    width: 100%;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
    font-size: 2.5rem;
    letter-spacing: 1px;
    color: #fff; /* Changed from black to white */
}

/* Masonry-style Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    grid-auto-rows: 350px;
    grid-gap: 15px;
}

/* Make some images span multiple columns/rows for dynamic feel */
.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #111; /* Darkened from light gray */
    border-radius: 4px;
}

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

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

/* Overlay and Caption */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); /* Darkened gradient slightly */
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    height: 100%;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-caption h3 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* About Page */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-container img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #bbb; /* Changed from dark gray to light gray */
    text-align: left;
}

/* Footer */
footer {
    background-color: #000;
    color: #888;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: auto;
    font-size: 0.85rem;
    border-top: 1px solid #222; /* Added subtle border */
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-content a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .gallery-item.wide, .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Hero Section (Full Screen) */
.hero-section {
    height: calc(100vh - 70px); 
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
}

.hero-content h2 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.scroll-indicator {
    margin-top: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.galleries-section {
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
}