/* CSS Variables for Premium Aesthetic */
:root {
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #000000;
    --color-gray: #f4f4f4;
    --color-gray-dark: #666666;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    color: #fff; /* White initially for hero */
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    color: var(--color-text);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 10px var(--space-md);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.header-left, .header-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-center {
    flex: 1;
    text-align: center;
}

.header-right {
    justify-content: flex-end;
    gap: var(--space-md);
}

.nav-link {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 500;
}

.nav-link:hover {
    opacity: 0.7;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    transition: var(--transition);
}

.search-btn {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
}

/* Hero Parallax */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Taller for parallax effect */
    background-size: cover;
    background-position: center;
    z-index: -1;
    transform: translateZ(0); /* Hardware accel */
    will-change: transform;
}

/* Add an overlay to make text readable */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: var(--space-md);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 6rem);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    font-weight: 300;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 40px;
}

.btn-primary:hover {
    background: #000;
    color: #fff;
}

/* Categories Nav */
.categories-nav {
    padding: var(--space-md) 0;
    border-bottom: 1px solid #eee;
    margin-bottom: var(--space-lg);
    background: #fff;
    position: sticky;
    top: 60px; /* Below sticky header */
    z-index: 90;
}

.categories-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: var(--space-lg);
    overflow-x: auto;
    padding: 0 var(--space-md);
}

.categories-list a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--color-gray-dark);
    padding-bottom: 5px;
}

.categories-list a.active, .categories-list a:hover {
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
}

/* Masonry Grid */
.gallery-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 var(--space-md) var(--space-xl);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-auto-rows: 20px;
    gap: var(--space-md);
}

.grid-item {
    grid-row-end: span 22; /* Default height */
    display: flex;
    flex-direction: column;
}

.grid-item.tall {
    grid-row-end: span 30; /* Taller item for asymmetric look */
}

.item-img-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-sm);
    background: var(--color-gray);
}

.item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.item-info {
    padding-top: 10px;
}

.category {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--color-gray-dark);
    margin-bottom: 5px;
    display: block;
}

.item-info .title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 5px;
}

.artist {
    font-size: 0.9rem;
    color: var(--color-gray-dark);
}

/* Carousel Section */
.carousel-section {
    background-color: var(--color-gray);
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
}

.section-header {
    max-width: 1600px;
    margin: 0 auto var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
}

.carousel-controls {
    display: flex;
    gap: 15px;
}

.swiper-button-prev-custom, .swiper-button-next-custom {
    background: none;
    border: 1px solid var(--color-text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
    background: var(--color-text);
    color: #fff;
}

.featured-swiper {
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 50px; /* Space for scrollbar if needed */
}

.slide-content .img-wrapper {
    aspect-ratio: 3/4;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
}

.slide-info span {
    font-size: 0.8rem;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: #fff;
    padding: var(--space-xl) var(--space-md) var(--space-md);
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 100px;
}

.link-column h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.link-column a {
    display: block;
    color: #999;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.link-column a:hover {
    color: #fff;
}

.footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: var(--space-sm);
    font-weight: 400;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.newsletter-form input {
    background: none;
    border: none;
    color: #fff;
    flex: 1;
    outline: none;
    font-family: var(--font-body);
}

.newsletter-form button {
    background: none;
    border: none;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1600px;
    margin: 0 auto;
    border-top: 1px solid #333;
    padding-top: var(--space-md);
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .categories-list {
        justify-content: flex-start;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .footer-links {
        justify-content: flex-start;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .header-right .nav-link {
        display: none;
    }
    .masonry-grid {
        grid-template-columns: 1fr;
    }
    .grid-item, .grid-item.tall {
        grid-row-end: auto;
        margin-bottom: var(--space-md);
    }
    .item-img-wrapper {
        aspect-ratio: 4/5;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}
