/* ===================================
   Gallery/Museum Design System
   CSS Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gallery Color Palette */
    --bg-main: #fcfbf9;                 /* Soft warm off-white */
    --bg-white: #ffffff;
    --text-primary: #121212;            /* Stark charcoal */
    --text-secondary: #666666;          /* Muted gray */
    --text-light: #999999;
    --accent-color: #b89b72;            /* Sophisticated muted bronze/gold */
    --border-light: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-normal: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
}

h1 { 
    font-size: 4rem; 
    letter-spacing: -0.02em;
}

h2 { 
    font-size: 3rem; 
    letter-spacing: -0.01em;
}

h3 { 
    font-size: 1.75rem; 
    font-weight: 500;
}

p { 
    margin-bottom: var(--spacing-sm); 
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1400px; /* Wider for gallery feel */
    margin: 0 auto;
    padding: 0 5vw;
}

/* ===================================
   Header
   =================================== */
.header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 2rem 0;
}

.header.scrolled {
    background-color: rgba(252, 251, 249, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 1px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 4.5vw; /* Responsive typography */
    margin-bottom: var(--spacing-md);
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 80%;
    margin-bottom: var(--spacing-lg);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-main);
}

.cta-button:hover::before {
    transform: scaleX(1);
}

.hero-visual {
    height: 70vh;
    width: 100%;
    overflow: hidden;
}

.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('Catalogue/Main.png'); /* Using an actual image from the catalogue */
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* Slight scale for slow zoom effect via JS */
    transition: transform 10s ease-out;
}

/* ===================================
   Products & Filtering
   =================================== */
.products {
    padding: var(--spacing-xl) 0;
}

.products-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.products-header .section-title {
    margin-bottom: var(--spacing-md);
}

.filter-tabs {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
}

.filter-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.filter-tab:hover,
.filter-tab.active {
    color: var(--text-primary);
}

.filter-tab.active::after {
    width: 100%;
}

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

.product-card {
    background: none;
    border: none;
    cursor: pointer;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
    background-color: transparent; /* Removed the grey placeholder BG */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Show the full contents of all images without zooming/cropping */
    object-position: bottom;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08); /* Slow, elegant zoom */
}

.product-info {
    padding: 0;
}

.product-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Hide product badges to keep it minimal */
.product-badge {
    display: none;
}

/* Category Description block for Basic Tab */
.category-description {
    margin-top: var(--spacing-lg);
    max-width: 800px;
    text-align: center;
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.category-description.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
}

.category-description.visible {
    opacity: 1;
    transform: translateY(0);
}

.category-subtitle {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-style: italic;
}

.category-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text .section-title {
    margin-bottom: var(--spacing-md);
}

.about-visual {
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.about-image-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('Catalogue/Main2.jpg');
    background-size: cover;
    background-position: center;
}

/* ===================================
   Contact / Footer
   =================================== */
.contact {
    padding: var(--spacing-xl) 0 4rem;
    text-align: center;
}

.contact .section-title {
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

.contact-item h3 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Hide the complex form for a cleaner look */
.contact-form {
    display: none;
}

.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-main);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.social-link:hover {
    color: var(--text-primary);
}

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

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* ===================================
   Animations
   =================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Filter animation overrides for JS */
.product-card {
    opacity: 0;
    transform: translateY(30px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    .hero-title {
        font-size: 6vw;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 0;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 1000;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-visual {
        height: 50vh;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        height: 50vh;
        order: -1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }

    .lightbox-nav {
        padding: 1rem;
    }
    
    .lightbox-content-wrapper {
        padding: 5%;
    }
    
    .lightbox-image-container img {
        max-height: 70vh;
    }
}

/* ===================================
   Lightbox / Image Carousel
   =================================== */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Dark cinematic backdrop */
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 85%;
    max-height: 85%;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 80vh; /* Keeps the main subject fully visible */
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-radius: 4px; /* Slight softening for elegance */
    transition: opacity 0.3s ease;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: var(--bg-main);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Lightbox Navigation */
.lightbox-close,
.lightbox-nav {
    background: none;
    border: none;
    color: var(--bg-main);
    font-size: 2.5rem;
    cursor: pointer;
    position: absolute;
    transition: color var(--transition-fast), transform var(--transition-fast);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2010;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-nav:hover {
    color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
    font-family: var(--font-body);
    font-weight: 300;
    z-index: 2020; /* Ensure it stays above the next button */
    padding: 1rem; /* slightly less padding so it doesn't overlap excessively */
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    height: 80%; /* Leave room at top/bottom */
}

.lightbox-prev {
    left: 0;
}

.lightbox-next {
    right: 0;
}

