/* --- 1. General Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: white;
    background-color: #0f0f0f;
    overflow-x: hidden;
}

/* --- 2. Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes galleryReveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 2px rgba(212, 175, 55, 0.1)); }
    100% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7)); }
}

/* --- 3. Navigation Bar --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 50px;
    background: rgba(15, 15, 15, 0.8); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: #fff;
    text-transform: lowercase;
}

.logo::after {
    content: '.';
    color: #d4af37;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d4af37;
}

/* --- 4. Mobile Menu Toggle (Hamburger) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 2px;
}

/* --- 5. Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&q=80&w=2070');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 span { color: #d4af37; }

/* --- 6. Gallery Section --- */
.gallery-container {
    padding: 140px 5% 80px;
    background-color: #0f0f0f;
}

.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 15px;
}

.gallery-header h1 span { color: #d4af37; }

.gallery-header p {
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 1px;
    max-width: 600px;
    margin: 0 auto;
}

/* --- 7. The Grid & Cards --- */
.gallery-grid {
    display: grid;
    /* Responsive Grid: Cards wrap automatically based on screen size */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background-color: #1a1a1a;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
    animation: galleryReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Staggered load animation */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.overlay span {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 12px 25px;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Card Hover Interactions */
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.6) blur(2px);
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item:hover .overlay span {
    transform: translateY(0);
    color: #d4af37;
    border-color: #d4af37;
    animation: textGlow 1.5s infinite alternate;
}

/* --- 8. Footer --- */
footer {
    padding: 60px 20px;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.8rem;
    opacity: 0.5;
    text-align: center;
}

.social-media {
    display: flex;
    gap: 30px;
}

.social-media a {
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.social-media a:hover { color: #d4af37; }

/* --- 9. Responsive Media Queries --- */

@media (max-width: 768px) {
    nav { padding: 15px 25px; }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 80%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
    }

    .nav-links.active { right: 0; }

    .nav-links a { font-size: 1.2rem; }

    /* Hamburger Animation to X */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .gallery-container { padding-top: 100px; }
    .gallery-item { height: 350px; }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small phones */
    }
}