/* ============================================
   ANGIE RANGEL - PAINTER PORTFOLIO
   Award-Winning Design System
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Color Palette - Clean Light Theme */
    --color-bg: #ffffff;
    --color-bg-secondary: #fafafa;
    --color-bg-tertiary: #f0f0f0;
    --color-surface: #e8e8e8;
    --color-accent: #e94560;
    --color-accent-light: #ff6b6b;
    --color-text: #1a1a1a;
    --color-text-muted: #555555;
    --color-text-subtle: #888888;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Layout */
    --max-width: 1400px;
    --header-height: 80px;
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-text);
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--ease-out-quart);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-text);
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease-out-expo),
                width 0.3s var(--ease-out-expo),
                height 0.3s var(--ease-out-expo);
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
    width: 60px;
    height: 60px;
    border-color: var(--color-accent);
}

/* Hide default cursor when custom cursor is active (desktop only) */
@media (pointer: fine) and (min-width: 1025px) {
    * {
        cursor: none !important;
    }
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-text);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* Images */
img, svg {
    display: block;
    max-width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 1px;
    background: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.nav-menu a {
    position: relative;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: var(--space-xs) 0;
    overflow: hidden;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.lang-toggle {
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    cursor: none;
    padding: var(--space-xs) var(--space-sm);
    transition: opacity 0.3s ease;
    font-family: var(--font-body);
}

.lang-toggle:hover {
    opacity: 0.7;
}

.lang-toggle span:first-child {
    opacity: 1;
}

.lang-toggle span:last-child {
    opacity: 0.5;
}

[lang="es"] .lang-toggle span:first-child {
    opacity: 0.5;
}

[lang="es"] .lang-toggle span:last-child {
    opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--space-xl) var(--space-lg);
    padding-top: calc(var(--header-height) + var(--space-xl));
}

.hero.hero-compact {
    min-height: auto;
    padding: var(--space-lg);
    padding-top: calc(var(--header-height) + var(--space-md));
    padding-bottom: var(--space-md);
}

.hero-compact .hero-content {
    height: auto;
    max-height: none;
}

.hero-compact .hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70vh;
    max-height: 600px;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealWord 1.2s var(--ease-out-expo) forwards;
}

.hero-title .line:nth-child(1) .word { animation-delay: 0.5s; }
.hero-title .line:nth-child(2) .word { animation-delay: 0.7s; }

.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    max-width: 400px;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    opacity: 0;
    animation: fadeUp 1s var(--ease-out-expo) 1.2s forwards;
}

.scroll-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-text-muted), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scrollLine 2s ease-in-out infinite;
}

/* ============================================
   SLIDESHOW SECTION
   ============================================ */
.slideshow-section {
    position: relative;
    width: 100%;
    background: #fafafa;
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
}

.slideshow-track-wrapper {
    flex: 1;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slideshow-track-wrapper.loaded {
    opacity: 1;
}

.slideshow-track {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.slideshow-track .slide {
    flex-shrink: 0;
    height: 400px;
    width: auto;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slideshow-track .slide:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.slideshow-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 var(--space-sm);
    transition: all 0.3s ease;
    color: #333;
    z-index: 10;
}

.slideshow-arrow:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.slideshow-arrow svg {
    stroke: currentColor;
}

.slideshow-caption {
    background: #fafafa;
    text-align: center;
    padding: var(--space-sm) var(--space-lg);
    padding-top: 0;
}

.slideshow-caption-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.slideshow-caption-details {
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.02em;
}

/* Statement Section */
.statement {
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg);
}

.statement-content {
    max-width: 800px;
    margin: 0 auto;
}

.statement .section-title {
    margin-bottom: var(--space-md);
}

.statement-text p {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.statement-text-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--ease-out-expo),
                opacity 0.4s ease;
}

.statement-text-hidden.expanded {
    max-height: 3000px;
    opacity: 1;
    padding-bottom: var(--space-md);
}

.statement-credit {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    font-style: normal;
    margin-top: var(--space-md);
}

@media (max-width: 768px) {
    .slideshow-track .slide {
        height: 250px;
    }

    .slideshow-arrow {
        width: 40px;
        height: 40px;
    }
}

.hero-image-caption {
    display: block;
    margin-top: var(--space-md);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-text-subtle);
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.section-number {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.section-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ============================================
   WORK / GALLERY SECTION
   ============================================ */
.work {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery--two-col {
    grid-template-columns: repeat(2, 1fr);
}

.gallery--two-col .gallery-item {
    grid-column: span 1;
}

/* Collection Page */
.collection-page {
    padding: var(--space-2xl) var(--space-lg);
    padding-top: calc(var(--header-height) + var(--space-xl));
    background: var(--color-bg);
    min-height: 100vh;
}

.collection-page .section-header {
    margin-bottom: var(--space-xl);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-accent);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.gallery-item {
    position: relative;
    grid-column: span 4;
    cursor: none;
    overflow: hidden;
}

.gallery-item--large {
    grid-column: span 8;
}

.gallery-item--wide {
    grid-column: span 8;
}

.gallery-item-image {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-bg-secondary);
}

.gallery-item-image img,
.gallery-item-image svg {
    width: 100%;
    height: auto;
    transition: transform 0.8s var(--ease-out-expo);
    object-fit: cover;
}

.gallery-item-image img {
    aspect-ratio: 4/5;
}

.gallery-item--large .gallery-item-image img,
.gallery-item--wide .gallery-item-image img {
    aspect-ratio: 3/2;
}

.gallery-item:hover .gallery-item-image img,
.gallery-item:hover .gallery-item-image svg {
    transform: scale(1.05);
}

.gallery-item-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-item-image::after {
    opacity: 1;
}

.gallery-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    transform: translateY(100%);
    transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover .gallery-item-content {
    transform: translateY(0);
}

.gallery-item-year {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.gallery-item-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: var(--space-xs);
}

.gallery-item-medium {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.gallery-item-collection {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 2px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-text-subtle);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.view-all:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.view-all svg {
    transition: transform 0.3s ease;
}

.view-all:hover svg {
    transform: translateX(6px);
}

/* ============================================
   SKETCHES / PROCESS SECTION
   ============================================ */
.sketches {
    background: #fafafa;
    padding: var(--space-xl) 0;
}

.sketches-header {
    padding: 0 var(--space-lg);
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.sketches .section-number {
    color: var(--color-accent);
}

.sketches .section-title {
    color: #1a1a1a;
}

.sketches .section-description {
    color: #555;
}

/* Book Component */
.book-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-lg) 0;
}

.book {
    width: 900px;
    height: 600px;
    position: relative;
    display: flex;
    background: white;
    border-radius: 2px;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(0, 0, 0, 0.05);
}

.book::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 3%;
    bottom: 3%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0,0,0,0.08) 10%,
        rgba(0,0,0,0.12) 50%,
        rgba(0,0,0,0.08) 90%,
        transparent 100%);
    transform: translateX(-50%);
    z-index: 10;
}

.book-pages {
    width: 100%;
    height: 100%;
    display: flex;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.book-page:hover {
    background: #fafafa;
}

.book-page.left {
    border-right: none;
}

.book-page.right {
    border-left: none;
}

.book-page img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.book-nav {
    background: white;
    border: 1px solid var(--color-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text);
    flex-shrink: 0;
}

.book-nav:hover {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.book-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.book-nav:disabled:hover {
    background: white;
    color: var(--color-text);
    border-color: var(--color-border);
}

.book-page-indicator {
    text-align: center;
    margin-top: var(--space-md);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

@media (max-width: 1100px) {
    .book {
        width: 700px;
        height: 500px;
    }
}

@media (max-width: 850px) {
    .book-container {
        gap: var(--space-md);
    }

    .book {
        width: 520px;
        height: 380px;
    }

    .book-nav {
        width: 40px;
        height: 40px;
    }

    .book-page {
        padding: var(--space-md);
    }
}

@media (max-width: 650px) {
    .book-container {
        flex-direction: column;
        gap: var(--space-md);
    }

    .book {
        width: 95%;
        max-width: 450px;
        height: 320px;
    }

    .book-page {
        padding: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .book {
        height: 280px;
    }
}

/* ============================================
   SUMMER SECTION
   ============================================ */
.summer {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg);
}

.summer .section-header {
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.summer-text {
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.summer-text p {
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.summer-text-visible {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text) !important;
}

.summer-text-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--ease-out-expo),
                opacity 0.4s ease,
                margin 0.4s ease;
    margin-top: 0;
}

.summer-text-hidden.expanded {
    max-height: 3000px;
    opacity: 1;
    margin-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.3s ease;
}

.read-more-btn:hover {
    opacity: 0.7;
}

/* Video Embed Styles */
.summer-video {
    max-width: var(--max-width);
    margin: 0 auto;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 2px;
    background: var(--color-bg-tertiary);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .video-wrapper {
        border-radius: 0;
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg-secondary);
}

.about-header {
    margin-bottom: var(--space-lg);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-image-wrapper {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid var(--color-accent);
    opacity: 0.3;
    border-radius: 2px;
    z-index: 1;
}

.portrait-placeholder {
    width: 100%;
    height: auto;
}

.about-content {
    padding-left: var(--space-lg);
}

.about-text {
    margin: var(--space-lg) 0;
}

.about-intro {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.about-text-hidden {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s var(--ease-out-expo),
                opacity 0.4s ease,
                margin 0.4s ease;
    margin-top: 0;
}

.about-text-hidden.expanded {
    max-height: 3000px;
    opacity: 1;
    margin-top: var(--space-sm);
    padding-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-bg-tertiary);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text);
    text-decoration: none;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cv-link:hover {
    background: var(--color-text);
    color: white;
    border-color: var(--color-text);
}

.cv-link svg {
    transition: transform 0.3s ease;
}

.cv-link:hover svg {
    transform: translate(2px, -2px);
}

/* ============================================
   RECOGNITION SECTION
   ============================================ */
.recognition {
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg);
    border-top: 1px solid var(--color-bg-tertiary);
    border-bottom: 1px solid var(--color-bg-tertiary);
}

.recognition-title {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: var(--space-lg);
}

.recognition-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.logo-text:hover {
    opacity: 1;
}

/* ============================================
   EXHIBITIONS SECTION
   ============================================ */
.exhibitions {
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg);
}

.exhibitions .section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.exhibition-item {
    display: flex;
    flex-direction: column;
}

.exhibition-image {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
    margin-bottom: var(--space-md);
}

.exhibition-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.exhibition-item:hover .exhibition-image img {
    transform: scale(1.05);
}

.exhibition-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.exhibition-date {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.exhibition-location {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.exhibition-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.exhibition-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: var(--space-xs);
}

@media (max-width: 768px) {
    .exhibitions-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news {
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-bg-secondary);
}

.news .section-header {
    margin-bottom: var(--space-lg);
    max-width: 600px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
}

.news-item {
    padding: var(--space-md);
    border-left: 2px solid var(--color-border);
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.news-year {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.news-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text);
    margin: var(--space-xs) 0 var(--space-sm);
}

.news-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--color-bg-secondary);
    overflow: hidden;
}

.contact-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.contact .section-header,
.contact .contact-grid {
    position: relative;
    z-index: 2;
}

.contact .section-header {
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin: var(--space-md) 0 var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--color-bg-tertiary);
    transition: border-color 0.3s ease;
}

.contact-link:hover {
    border-color: var(--color-accent);
}

.contact-label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}

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

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-md) 0 var(--space-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-bg-tertiary);
    outline: none;
    transition: border-color 0.3s ease;
    cursor: none;
}

.form-group textarea {
    resize: none;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
}

.form-group label {
    position: absolute;
    top: var(--space-md);
    left: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    align-self: flex-start;
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text);
    background: transparent;
    border: 1px solid var(--color-text);
    cursor: none;
    transition: all 0.4s var(--ease-out-expo);
}

.btn-submit:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    gap: var(--space-md);
}

.btn-submit svg {
    transition: transform 0.3s ease;
}

.btn-submit:hover svg {
    transform: translateX(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: var(--space-lg);
    background: var(--color-bg);
    border-top: 1px solid var(--color-bg-tertiary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.75rem;
    color: var(--color-text-subtle);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-text);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-size: 2rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .lightbox-close {
        top: var(--space-sm);
        right: var(--space-sm);
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.5s var(--ease-out-expo);
    overflow-y: auto;
    padding: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .lightbox-content {
        padding-top: calc(var(--space-lg) + 40px);
        max-height: 85vh;
    }
}

.lightbox.active .lightbox-content {
    transform: translateY(0) scale(1);
}

.lightbox-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 2px;
}

.lightbox-image img,
.lightbox-image svg {
    max-height: 65vh;
    max-width: 85vw;
    width: auto;
    object-fit: contain;
}

.lightbox-info {
    text-align: center;
}

.lightbox-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.lightbox-details {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.lightbox-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-top: var(--space-sm);
    max-width: 700px;
    text-align: center;
}

.lightbox-description:empty {
    display: none;
}

.lightbox-credit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: var(--space-xs);
}

.lightbox-credit:empty {
    display: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-bg);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    cursor: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    opacity: 1;
    border-color: var(--color-accent);
}

.lightbox-prev {
    left: var(--space-md);
}

.lightbox-next {
    right: var(--space-md);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scrollLine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 6rem;
        --space-2xl: 8rem;
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding-top: calc(var(--header-height) + var(--space-lg));
    }

    .hero-content {
        height: auto;
        max-height: none;
    }

    .gallery-item {
        grid-column: span 6;
    }

    .gallery-item--large,
    .gallery-item--wide {
        grid-column: span 12;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .about-content {
        padding-left: 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    /* Hide custom cursor on touch devices */
    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }

    a, button, input, textarea,
    .nav-toggle,
    .gallery-item,
    .btn-submit,
    .lightbox-close,
    .lightbox-nav,
    .book-nav,
    .book-page {
        cursor: pointer;
    }

    .nav-toggle {
        display: flex;
    }

    .lang-toggle {
        position: fixed;
        top: var(--space-md);
        right: calc(var(--space-md) + 50px);
        z-index: 1001;
        font-size: 0.75rem;
    }

    /* Hide hamburger menu on secondary pages */
    body.secondary-page .nav-toggle {
        display: none;
    }

    body.secondary-page .lang-toggle {
        right: var(--space-md);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: var(--color-bg);
        opacity: 0;
        visibility: hidden;
        transition: all 0.5s var(--ease-out-expo);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 2rem;
        font-family: var(--font-display);
        text-transform: none;
        letter-spacing: 0;
    }

    .nav-toggle.active span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .nav-toggle.active span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .gallery-item {
        grid-column: span 12;
    }

    .gallery-item-content {
        position: relative;
        transform: none;
        padding: var(--space-sm) 0;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .recognition-logos {
        gap: var(--space-lg);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
    }

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

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

    .stat-number {
        font-size: 2.5rem;
    }

    .about-stats {
        justify-content: space-between;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
