/* 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: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

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-color: rgba(244, 239, 230, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
}

header.scrolled {
    border-bottom: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: rgba(244, 239, 230, 0.98);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    padding-bottom: 6px;
    text-align: center;
    line-height: 1.2;
    display: inline-block;
    transition: color 0.3s ease;
}

.nav-link span {
    color: var(--secondary-text);
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:hover span {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Account for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.95) contrast(0.95); 
}

/* 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;
    }
}

/* Mobile Menu Specifics */
#mobile-menu {
    background-color: var(--bg-accent) !important;
}
