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

:root {
    --primary-color: #5c4a3a;
    --secondary-color: #9b8474;
    --accent-color: #c9a87c;
    --text-color: #4a4035;
    --light-bg: #f5f0eb;
    --white: #faf8f5;
    --gray: #8b7d6b;
    --light-gray: #e8dfd5;
    --beige-light: #f2e9e1;
    --beige-medium: #d4c4b0;
    --warm-beige: #e6ddd3;
}

/* Dark Mode Colors */
body.dark-mode {
    --primary-color: #d4c4b0;
    --secondary-color: #b8a392;
    --accent-color: #c9a87c;
    --text-color: #e8dfd5;
    --light-bg: #1a1612;
    --white: #0f0d0a;
    --gray: #a89888;
    --light-gray: #2a2520;
    --beige-light: #1f1b17;
    --beige-medium: #3a3530;
    --warm-beige: #2d2925;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.logo:hover h1 {
    color: var(--accent-color);
}

.subtitle {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.logo:hover .subtitle {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* Dark Mode Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.theme-toggle:hover {
    transform: rotate(20deg);
    background: var(--accent-color);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.theme-toggle svg.moon-icon {
    fill: var(--primary-color);
    stroke: none;
}

.theme-toggle:hover svg {
    stroke: var(--white);
}

.theme-toggle:hover svg.moon-icon {
    fill: var(--white);
    stroke: none;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, #d4c4b0 0%, #9b8474 100%);
    color: var(--white);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 600;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-style: italic;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1.4s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

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

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Gallery Section */
.gallery-section {
    background: var(--light-bg);
}

.gallery-social {
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-instagram {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    background: var(--white);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.gallery-instagram:hover {
    opacity: 1;
    background: var(--white);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-instagram svg {
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.gallery-instagram:hover svg {
    transform: scale(1.05);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--secondary-color);
    background: var(--white);
    color: var(--secondary-color);
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
}

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

.gallery-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.item-info {
    padding: 1.5rem;
}

.item-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.item-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Exhibitions Section */
.exhibitions-section {
    background: var(--white);
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-color) 5%, var(--accent-color) 95%, transparent);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    align-items: stretch;
    opacity: 0;
    transform: translateY(30px);
}

.timeline-item.animate-in {
    animation: slideIn 0.6s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: flex-start;
    padding-left: 50%;
}

.timeline-year {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    padding: 1rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-year:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.timeline-content {
    flex: 1;
    background: var(--light-bg);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Left side items (odd) - arrow points left */
.timeline-item:nth-child(odd) .timeline-content {
    border-left: 4px solid var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-content:hover {
    transform: translateX(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-left-color: var(--secondary-color);
}

/* Right side items (even) - arrow points right */
.timeline-item:nth-child(even) .timeline-content {
    border-right: 4px solid var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 12px solid var(--accent-color);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-right-color: var(--secondary-color);
}


.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-content p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* About Section */
.about-section {
    background: var(--light-bg);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-photo {
    text-align: center;
    margin-bottom: 3rem;
}

.artist-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 5px solid var(--white);
    transition: all 0.3s ease;
}

.artist-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.quote {
    font-size: 1.8rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.4;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--gray);
}

.about-story {
    margin-bottom: 3rem;
    text-align: center;
}

.about-story h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-story p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-themes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.theme-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.theme-card h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.theme-card p {
    color: var(--gray);
    line-height: 1.8;
}

.about-closing {
    text-align: center;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #d4c4b0 0%, #9b8474 100%);
    border-radius: 10px;
    margin-top: 2rem;
}

.welcome-text {
    font-size: 1.5rem;
    color: var(--white);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

/* Store Section */
.store-section {
    background: var(--white);
}

.store-content {
    max-width: 600px;
    margin: 0 auto;
}

.store-card {
    background: var(--light-bg);
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.store-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.store-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.store-card p {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.store-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Learn Section */
.learn-section {
    background: var(--light-bg);
}

.learn-content {
    max-width: 700px;
    margin: 0 auto;
}

.learn-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 5px solid var(--accent-color);
}

.learn-icon {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.learn-card h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.coming-soon-text {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.8;
    font-style: italic;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    stroke: var(--white);
}

.footer-content p {
    margin: 0;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery-instagram {
        font-size: 0.8rem;
        padding: 0.35rem 0.75rem;
    }

    .timeline::before {
        left: 50px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .timeline-year {
        width: 80px;
        height: 80px;
        flex: 0 0 80px;
        font-size: 1.1rem;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        display: none;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        border-left: 4px solid var(--accent-color);
        border-right: none;
    }

    .timeline-item:nth-child(odd) .timeline-content:hover,
    .timeline-item:nth-child(even) .timeline-content:hover {
        transform: translateY(-5px);
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .about-themes {
        grid-template-columns: 1fr;
    }

    .artist-photo {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 60px 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery filter animation */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
