/* Minimalist Gallery Style - Refined Artist Portfolio */

/* Base Setup */
:root {
    --bg-color: #F4EFE6;
    --bg-secondary: #EDE6DA;
    --bg-accent: #F8F3EA;
    --text-color: #3B2F2F;
    --secondary-text: #5D4D4D;
    --accent-color: #8B6F5A;
    --border-color: #D6CEC5;
    --spacing-unit: 2.5rem;
    --paper-texture: none;
}

body {
    background-color: var(--bg-color);
    background-image: var(--paper-texture);
    color: var(--text-color);
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: var(--text-color);
}

h1 {
    letter-spacing: 0.05em;
}

h2 {
    letter-spacing: 0.03em;
}

.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

p {
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* Alternating Backgrounds */
section:nth-child(even) {
    background-color: var(--bg-accent);
    background-image: var(--paper-texture);
}

section:nth-child(odd) {
    background-color: transparent;
}

/* Navigation */
header {
    background: rgba(248, 245, 240, 0.85) !important;
    backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 0.5px solid rgba(74, 59, 50, 0.1);
    transition: all 0.4s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: 80px;
    display: flex;
    align-items: center;
}

header .container {
    padding: 0 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: relative;
}

header.scrolled {
    background: rgba(248, 245, 240, 0.95) !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* Navigation Items */
.nav-link {
    color: #4a3b32 !important;
    text-decoration: none;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: center;
    line-height: 1.2;
    display: block;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em !important;
    padding: 0 !important;
    text-transform: none !important;
}

.nav-link span {
    color: #4a3b32 !important;
    font-size: 10px !important;
    letter-spacing: 2px !important;
    display: block;
    margin-top: 4px;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
}

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

/* Center Desktop Nav */
@media (min-width: 768px) {
    header nav.hidden.md\:flex {
        display: flex !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        align-items: center;
        gap: 40px !important;
        margin: 0 !important;
    }
    
    /* Reset Tailwind Margins */
    header nav.hidden.md\:flex > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0 !important;
    }
}

/* Header Logo */
header a.text-2xl {
    color: #4a3b32 !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.15em !important;
    font-weight: 600 !important;
    text-shadow: none;
    z-index: 20;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 0; 
    background: transparent;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1; 
    background-color: transparent; 
    filter: brightness(0.7) contrast(1.1) sepia(10%);
    animation: kenBurns 15s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero h1 {
    font-weight: 300 !important;
    letter-spacing: 0.15em !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    color: #ffffff !important;
}

.hero p {
    letter-spacing: 0.5em !important;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    color: #ffffff !important;
}

/* Mobile Menu Refined */
#mobile-menu {
    background-color: #f5f1ea !important;
    backdrop-filter: none; /* User didn't ask for blur on mobile, but "soft beige". */
    width: 70% !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05) !important;
    padding-top: 80px;
    right: 0;
    top: 0;
    bottom: 0;
    position: fixed;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

#mobile-menu nav {
    text-align: center !important;
    padding: 0 2rem;
    align-items: center !important;
    justify-content: center;
    width: 100%;
}

#mobile-menu nav a {
    display: block;
    margin-bottom: 18px; /* 14-18px spacing */
    color: #3B2F2F !important;
}

#mobile-menu nav a span {
    font-weight: 300 !important;
    letter-spacing: 0.2em !important;
    font-size: 17px !important; /* 16-18px */
}

#mobile-menu nav a div {
    display: none; 
}

/* Hamburger Menu Logic */
/* Desktop: Hide Hamburger */
@media (min-width: 768px) {
    #mobile-menu-btn {
        display: none !important;
    }
    nav.hidden.md\:flex {
        display: flex !important;
    }
}

/* Mobile: Show Hamburger, Hide Desktop Nav */
@media (max-width: 767px) {
    nav.hidden.md\:flex {
        display: none !important;
    }
    
    #mobile-menu-btn {
        display: flex !important;
        font-weight: 100;
        color: #3B2F2F !important; /* Dark icon for light header */
        transform: scale(1);
        border: 1px solid rgba(59, 47, 47, 0.2); 
        border-radius: 50%;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        backdrop-filter: none;
    }
}

#mobile-menu-close {
    font-weight: 100;
    opacity: 0.8;
    color: #3B2F2F !important;
    font-size: 2rem;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 60px; /* Increased gap */
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 80px;
    }
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 47, 47, 0.05);
}

.gallery-item:hover img {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(59, 47, 47, 0.1);
}

.gallery-caption {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--secondary-text);
    text-align: left;
}

.gallery-title {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    font-family: 'Playfair Display', serif;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(244, 239, 230, 0.98);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    box-shadow: 0 30px 60px rgba(59, 47, 47, 0.15);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    border: none;
    padding: 10px;
    transition: color 0.3s ease;
}

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

/* Exhibitions Timeline */
.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.timeline-year {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Contact Form */
.minimal-input {
    width: 100%;
    padding: 20px 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
    border-radius: 0;
    font-family: 'Playfair Display', serif;
}

.minimal-input::placeholder {
    color: rgba(59, 47, 47, 0.3);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.minimal-input:focus {
    outline: none;
    border-bottom-color: var(--accent-color);
}

.minimal-btn {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 16px 50px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 3rem;
    display: inline-block;
}

.minimal-btn:hover {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

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

/* About Layout */
.about-split {
    display: grid;
    gap: 80px;
}

@media (min-width: 768px) {
    .about-split {
        grid-template-columns: 1fr 1.2fr;
        align-items: center;
    }
}
