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

:root {
    --primary-gold: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-dark: #B8952E;
    --dark-bg: #0A0A0F;
    --dark-secondary: #151520;
    --dark-card: #1A1A28;
    --text-primary: #FFFFFF;
    --text-secondary: #C0C0D0;
    --glass-bg: rgba(26, 26, 40, 0.7);
    --glass-border: rgba(212, 175, 55, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}


/* Container */

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
}


/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

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

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    padding: 0.7rem 2rem;
    border-radius: 50px;
    color: var(--dark-bg) !important;
    font-weight: 600;
}


/* Mobile Menu */

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* Hero Section */

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10rem 5% 6rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9), rgba(21, 21, 32, 0.85)), url('https://images.unsplash.com/photo-1492684223066-81342ee5ff30?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.15) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

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


/* Filter Section */

.filter-section {
    padding: 4rem 0 2rem;
    background: var(--dark-bg);
}

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

.filter-btn {
    padding: 0.8rem 2rem;
    background: var(--dark-card);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--dark-bg);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}


/* Gallery Section */

.gallery-section {
    padding: 4rem 0 8rem;
    background: var(--dark-bg);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    background: var(--dark-card);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Responsive Grid Variations */

.gallery-wide {
    grid-column: span 2;
}

.gallery-tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient( to top, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

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

.gallery-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.gallery-info p {
    font-size: 0.95rem;
    color: var(--primary-gold);
    transform: translateY(20px);
    transition: transform 0.4s ease 0.2s;
}

.gallery-item:hover .gallery-info h3,
.gallery-item:hover .gallery-info p {
    transform: translateY(0);
}

.view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.gallery-item:hover .view-btn {
    transform: translate(-50%, -50%) scale(1);
}

.view-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}


/* Hidden items for load more */

.gallery-item.hidden {
    display: none;
}


/* Load More Button */

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.load-more-btn {
    padding: 1.2rem 3rem;
    background: var(--dark-card);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--primary-gold), var(--gold-dark));
    color: var(--dark-bg);
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.load-more-btn.hidden {
    display: none;
}


/* Modal Lightbox */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalZoom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
}

.modal-info {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
}

.modal-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-info p {
    font-size: 1rem;
    color: var(--primary-gold);
}

.modal-counter {
    position: absolute;
    top: -50px;
    right: 0;
    padding: 0.8rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-close,
.modal-prev,
.modal-next {
    position: fixed;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
}

.modal-close:hover,
.modal-prev:hover,
.modal-next:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
    transform: scale(1.1);
}

.modal-close {
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    line-height: 1;
}

.modal-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.modal-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.modal-next:hover {
    transform: translateY(-50%) scale(1.1);
}


/* Footer */

footer {
    background: var(--dark-secondary);
    padding: 3rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-gold);
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    line-height: 2;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}


/* Responsive Design */

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        grid-auto-rows: 300px;
    }
    .gallery-wide {
        grid-column: span 1;
    }
    .gallery-tall {
        grid-row: span 1;
    }
    .hero {
        background-attachment: scroll;
        padding: 8rem 5% 4rem;
    }
    .modal-prev,
    .modal-next {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    .modal-prev {
        left: 1rem;
    }
    .modal-next {
        right: 1rem;
    }
    .modal-close {
        top: 1rem;
        right: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .filter-buttons {
        gap: 0.8rem;
    }
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        grid-auto-rows: 280px;
    }
    .modal-content {
        max-width: 95%;
    }
    .modal-content img {
        max-height: 60vh;
    }
    .modal-info {
        margin-top: 1.5rem;
        padding: 1rem 1.5rem;
    }
    .modal-info h3 {
        font-size: 1.3rem;
    }
    .modal-counter {
        top: -40px;
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    .nav-links {
        width: 85%;
    }
    .load-more-btn {
        padding: 1rem 2.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-auto-rows: 250px;
    }
}


/* Loading Animation */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.gallery-item.loading {
    background: linear-gradient( 90deg, var(--dark-card) 0%, var(--dark-secondary) 50%, var(--dark-card) 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}


/* Performance Optimization */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}