/* ============================================
   LEGO Exhibition Website - Malý svět velkých nápadů
   Modern, Clean, Playful Design with Interactive Elements
   ============================================ */

/* CSS Variables */
:root {
    /* LEGO Colors */
    --lego-red: #E3000B;
    --lego-yellow: #FFD500;
    --lego-blue: #006DB7;
    --lego-green: #00963E;
    --lego-orange: #F57C00;
    --lego-purple: #6B3FA0;

    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #FFF9E6;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --dark-gray: #424242;
    --black: #1A1A1A;

    /* Unified Background */
    --bg-main: linear-gradient(180deg, #FFF9E6 0%, #FFFDF5 50%, var(--white) 100%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--lego-red) 0%, #FF4444 100%);
    --gradient-hero: linear-gradient(180deg, #FFF9E6 0%, var(--white) 100%);

    /* Typography */
    --font-primary: 'Nunito', sans-serif;
    --font-display: 'Rubik', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-brick: 0 4px 0 rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background: var(--bg-main);
    background-attachment: fixed;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   LEGO Cutout Parallax Layer
   ============================================ */
.lego-cutout-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.cutout-brick {
    position: absolute;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
}

.cutout-brick::before {
    content: '';
    position: absolute;
    top: -12px;
    border-radius: 6px;
    background: inherit;
    filter: brightness(1.1);
}

.cutout-brick-1 {
    width: 120px;
    height: 72px;
    background: var(--lego-red);
    top: -20px;
    left: -30px;
    transform: rotate(-15deg);
}

.cutout-brick-1::before {
    left: 15px;
    width: 30px;
    height: 12px;
    box-shadow: 45px 0 0 var(--lego-red);
}

.cutout-brick-2 {
    width: 100px;
    height: 60px;
    background: var(--lego-yellow);
    top: 60%;
    right: -25px;
    transform: rotate(20deg);
}

.cutout-brick-2::before {
    left: 12px;
    width: 25px;
    height: 10px;
    box-shadow: 38px 0 0 var(--lego-yellow);
}

.cutout-brick-3 {
    width: 80px;
    height: 48px;
    background: var(--lego-blue);
    bottom: 20%;
    left: -20px;
    transform: rotate(10deg);
}

.cutout-brick-3::before {
    left: 10px;
    width: 20px;
    height: 8px;
    box-shadow: 30px 0 0 var(--lego-blue);
}

.cutout-minifig {
    position: absolute;
    top: 30%;
    right: 5%;
    transform: scale(0.8) rotate(5deg);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

.minifig-head {
    width: 50px;
    height: 50px;
    background: var(--lego-yellow);
    border-radius: 6px;
    margin: 0 auto 5px;
    position: relative;
}

.minifig-head::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: var(--lego-yellow);
    border-radius: 4px;
}

.minifig-head::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 10px;
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
    box-shadow: 22px 0 0 var(--black);
}

.minifig-body {
    width: 60px;
    height: 50px;
    background: var(--lego-red);
    border-radius: 4px;
    margin: 0 auto;
}

.minifig-legs {
    width: 55px;
    height: 45px;
    background: var(--lego-blue);
    border-radius: 0 0 4px 4px;
    margin: 3px auto 0;
    position: relative;
}

.minifig-legs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

/* Hide cutout on scroll */
.lego-cutout-layer.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   Floating LEGO Bricks Background Animation
   ============================================ */
.floating-bricks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.brick {
    position: absolute;
    width: 40px;
    height: 24px;
    border-radius: 4px;
    opacity: 0.12;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.brick::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 8px;
    background: inherit;
    border-radius: 4px 4px 0 0;
}

.brick-1 { background: var(--lego-red); top: 5%; left: 3%; animation-delay: 0s; }
.brick-2 { background: var(--lego-yellow); top: 15%; right: 8%; animation-delay: -2s; }
.brick-3 { background: var(--lego-blue); top: 25%; left: 12%; animation-delay: -4s; }
.brick-4 { background: var(--lego-green); top: 35%; right: 15%; animation-delay: -6s; }
.brick-5 { background: var(--lego-orange); top: 45%; left: 5%; animation-delay: -8s; }
.brick-6 { background: var(--lego-purple); top: 55%; right: 3%; animation-delay: -10s; }
.brick-7 { background: var(--lego-red); top: 65%; left: 18%; animation-delay: -12s; }
.brick-8 { background: var(--lego-yellow); top: 75%; right: 12%; animation-delay: -14s; }
.brick-9 { background: var(--lego-blue); top: 85%; left: 8%; animation-delay: -16s; }
.brick-10 { background: var(--lego-green); top: 10%; right: 25%; animation-delay: -1s; }
.brick-11 { background: var(--lego-orange); top: 50%; right: 22%; animation-delay: -5s; }
.brick-12 { background: var(--lego-purple); top: 90%; right: 5%; animation-delay: -9s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(-3deg); }
    75% { transform: translateY(15px) rotate(3deg); }
}

/* ============================================
   Interactive Clickable Bricks
   ============================================ */
.interactive-bricks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.click-brick {
    position: absolute;
    width: 50px;
    height: 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.15);
}

.click-brick::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 8px;
    width: 14px;
    height: 10px;
    background: inherit;
    border-radius: 4px;
    filter: brightness(1.1);
    box-shadow: 20px 0 0 currentColor;
}

.click-brick:hover {
    transform: scale(1.2) rotate(-5deg);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2), 0 12px 30px rgba(0, 0, 0, 0.2);
}

.click-brick:active {
    transform: scale(0.95);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.click-brick-1 { background: var(--lego-red); color: var(--lego-red); top: 20%; left: 5%; }
.click-brick-2 { background: var(--lego-yellow); color: var(--lego-yellow); top: 40%; right: 8%; }
.click-brick-3 { background: var(--lego-blue); color: var(--lego-blue); top: 60%; left: 3%; }
.click-brick-4 { background: var(--lego-green); color: var(--lego-green); top: 75%; right: 5%; }
.click-brick-5 { background: var(--lego-orange); color: var(--lego-orange); top: 85%; left: 10%; }

/* Brick Pop Animation Container */
.brick-pop-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 60;
}

.brick-pop {
    position: absolute;
    width: 20px;
    height: 12px;
    border-radius: 3px;
    animation: brickPop 0.8s ease-out forwards;
}

@keyframes brickPop {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-100px) rotate(180deg);
    }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-medium);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--black);
}

.logo-brick {
    width: 32px;
    height: 20px;
    background: var(--lego-red);
    border-radius: 4px;
    position: relative;
    box-shadow: var(--shadow-brick);
    transition: var(--transition-medium);
}

.logo-brick::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 4px;
    width: 10px;
    height: 6px;
    background: var(--lego-red);
    border-radius: 3px;
    box-shadow: 14px 0 0 var(--lego-red);
}

.nav-logo:hover .logo-brick,
.footer-logo:hover .logo-brick {
    transform: rotate(-5deg) scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-gray);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.8);
    color: var(--lego-red);
}

.nav-link.nav-cta {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-brick);
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}

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

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 120px 24px 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    padding-left: 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-gray);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--lego-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 16px;
}

.title-line {
    display: block;
}

.highlight {
    color: var(--lego-red);
    position: relative;
}

.hero-tagline {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 16px;
    opacity: 0.8;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 0 #B30000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 0 #B30000;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 #B30000;
}

.btn-secondary {
    background: var(--white);
    color: var(--dark-gray);
    border: 2px solid var(--medium-gray);
}

.btn-secondary:hover {
    border-color: var(--lego-red);
    color: var(--lego-red);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05);
}

.hero-image-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--lego-yellow);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--lego-red);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--dark-gray);
    border-radius: 13px;
    position: relative;
    opacity: 0.5;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--dark-gray);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    background: var(--lego-yellow);
    color: var(--black);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    display: flex;
    gap: 20px;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.card-icon-red { background: var(--lego-red); }
.card-icon-yellow { background: var(--lego-yellow); }
.card-icon-yellow svg { stroke: var(--black); }
.card-icon-blue { background: var(--lego-blue); }

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 8px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Visual Stack */
.about-visual {
    position: relative;
}

.visual-stack {
    position: relative;
    padding: 40px;
}

.stack-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-medium);
}

.stack-1 {
    width: 100%;
    position: relative;
    z-index: 2;
}

.stack-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    z-index: 3;
    transform: translateY(20%);
}

.stack-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: var(--lego-blue);
    border-radius: var(--radius-lg);
    z-index: 1;
}

.visual-stack:hover .stack-1 {
    transform: rotate(-2deg);
}

.visual-stack:hover .stack-2 {
    transform: translateY(20%) rotate(2deg);
}

/* ============================================
   Features Section - Different Icons
   ============================================ */
.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: var(--transition-medium);
}

.feature-card[data-color="red"]::before { background: var(--lego-red); }
.feature-card[data-color="blue"]::before { background: var(--lego-blue); }
.feature-card[data-color="yellow"]::before { background: var(--lego-yellow); }
.feature-card[data-color="green"]::before { background: var(--lego-green); }
.feature-card[data-color="orange"]::before { background: var(--lego-orange); }
.feature-card[data-color="purple"]::before { background: var(--lego-purple); }

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    height: 8px;
}

/* Feature Icons - SVG based */
.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.feature-card[data-color="red"] .feature-icon { background: rgba(227, 0, 11, 0.1); }
.feature-card[data-color="blue"] .feature-icon { background: rgba(0, 109, 183, 0.1); }
.feature-card[data-color="yellow"] .feature-icon { background: rgba(255, 213, 0, 0.2); }
.feature-card[data-color="green"] .feature-icon { background: rgba(0, 150, 62, 0.1); }
.feature-card[data-color="orange"] .feature-icon { background: rgba(245, 124, 0, 0.1); }
.feature-card[data-color="purple"] .feature-icon { background: rgba(107, 63, 160, 0.1); }

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card[data-color="red"] .feature-icon svg { stroke: var(--lego-red); }
.feature-card[data-color="blue"] .feature-icon svg { stroke: var(--lego-blue); }
.feature-card[data-color="yellow"] .feature-icon svg { stroke: #CC9900; }
.feature-card[data-color="green"] .feature-icon svg { stroke: var(--lego-green); }
.feature-card[data-color="orange"] .feature-icon svg { stroke: var(--lego-orange); }
.feature-card[data-color="purple"] .feature-icon svg { stroke: var(--lego-purple); }

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* LEGO Brick Icon - Only for LEGO card */
.feature-icon-lego {
    background: var(--lego-red) !important;
}

.lego-brick-icon {
    width: 40px;
    height: 24px;
    background: var(--white);
    border-radius: 4px;
    position: relative;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.lego-brick-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 6px;
    width: 12px;
    height: 8px;
    background: var(--white);
    border-radius: 3px;
    box-shadow: 16px 0 0 var(--white);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--black);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(227, 0, 11, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-medium);
}

.gallery-zoom {
    font-size: 3rem;
    color: var(--white);
    font-weight: 300;
    transform: scale(0.5);
    transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-zoom {
    transform: scale(1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================
   Exhibitions Section
   ============================================ */
.exhibitions {
    background: transparent;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.exhibition-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.exhibition-card:hover {
    box-shadow: var(--shadow-lg);
}

.exhibition-featured {
    border: 3px solid var(--lego-yellow);
}

.exhibition-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--lego-red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exhibition-date {
    background: var(--lego-red);
    color: var(--white);
    padding: 32px;
    text-align: center;
}

.exhibition-featured .exhibition-date {
    background: var(--gradient-primary);
}

.date-day {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 4px 0;
}

.date-year {
    display: block;
    font-size: 1rem;
    opacity: 0.8;
}

.exhibition-info {
    padding: 32px;
}

.exhibition-edition {
    display: inline-block;
    background: var(--lego-yellow);
    color: var(--black);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.exhibition-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 16px;
}

.exhibition-location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.exhibition-location svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--lego-red);
}

.exhibition-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.detail-item svg {
    width: 24px;
    height: 24px;
    stroke: var(--lego-blue);
    flex-shrink: 0;
}

.detail-item strong {
    color: var(--black);
}

.exhibition-subtitle {
    font-size: 0.95rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.exhibition-note {
    font-size: 0.875rem;
    color: var(--dark-gray);
    opacity: 0.7;
    font-style: italic;
}

/* Past exhibition - black and white */
.exhibition-past {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* ============================================
   Partners Section
   ============================================ */
.partners {
    background: transparent;
    padding: 80px 0;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.partner-item {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    filter: grayscale(100%);
    opacity: 0.6;
}

.partner-item:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.partners-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--dark-gray);
    opacity: 0.6;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: transparent;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin: 16px 0 32px;
    max-width: 400px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.contact-method:hover {
    background: var(--lego-yellow);
    transform: translateX(8px);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method:hover .method-icon {
    background: var(--white);
}

.method-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--lego-red);
}

.method-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dark-gray);
    opacity: 0.7;
}

.method-value {
    font-weight: 600;
    color: var(--black);
}

/* LEGO Figure Animation */
.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lego-figure {
    position: relative;
    width: 200px;
    height: 300px;
    animation: figureWave 3s ease-in-out infinite;
}

@keyframes figureWave {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

.figure-head {
    width: 80px;
    height: 80px;
    background: var(--lego-yellow);
    border-radius: 8px;
    margin: 0 auto 8px;
    position: relative;
    box-shadow: var(--shadow-brick);
}

.figure-head::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: var(--lego-yellow);
    border-radius: 6px;
}

.figure-head::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: var(--black);
    border-radius: 50%;
    box-shadow: 38px 0 0 var(--black);
}

.figure-body {
    width: 100px;
    height: 80px;
    background: var(--lego-red);
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: var(--shadow-brick);
}

.figure-arm {
    position: absolute;
    width: 25px;
    height: 60px;
    background: var(--lego-yellow);
    border-radius: 6px;
    top: 88px;
    box-shadow: var(--shadow-brick);
}

.figure-arm-left {
    left: 25px;
    transform: rotate(20deg);
    transform-origin: top center;
    animation: armWaveLeft 1.5s ease-in-out infinite;
}

.figure-arm-right {
    right: 25px;
    transform: rotate(-45deg);
    transform-origin: top center;
    animation: armWaveRight 1.5s ease-in-out infinite;
}

@keyframes armWaveLeft {
    0%, 100% { transform: rotate(20deg); }
    50% { transform: rotate(10deg); }
}

@keyframes armWaveRight {
    0%, 100% { transform: rotate(-45deg); }
    50% { transform: rotate(-60deg); }
}

.figure-legs {
    width: 90px;
    height: 70px;
    background: var(--lego-blue);
    margin: 8px auto 0;
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: var(--shadow-brick);
}

.figure-legs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.speech-bubble {
    position: absolute;
    top: -20px;
    right: -60px;
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    animation: bubbleBounce 2s ease-in-out infinite;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--white);
}

@keyframes bubbleBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 60px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.6;
    font-style: italic;
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--lego-yellow);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--lego-yellow);
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.social-link:hover {
    background: var(--lego-blue);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Footer Bricks */
.footer-bricks {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.footer-brick {
    width: 60px;
    height: 36px;
    border-radius: 6px;
    position: relative;
    transform: translateY(50%);
}

.footer-brick::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 8px;
    width: 18px;
    height: 10px;
    background: inherit;
    border-radius: 5px;
    box-shadow: 26px 0 0 currentColor;
}

.footer-brick:nth-child(1) { background: var(--lego-red); }
.footer-brick:nth-child(2) { background: var(--lego-yellow); }
.footer-brick:nth-child(3) { background: var(--lego-blue); }
.footer-brick:nth-child(4) { background: var(--lego-green); }
.footer-brick:nth-child(5) { background: var(--lego-orange); }

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

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

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.9);
    transition: var(--transition-medium);
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 16px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* ============================================
   Scroll Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design - Mobile Optimization
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .lego-cutout-layer {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding-top: 100px;
    }

    .hero-content {
        padding: 0;
    }

    .hero-description {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

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

    .about-visual {
        order: -1;
    }

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

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info p {
        margin: 16px auto 32px;
    }

    .contact-visual {
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .interactive-bricks {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-medium);
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .nav-logo span {
        font-size: 0.9rem;
    }

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

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

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

    .exhibition-details {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .lego-figure {
        transform: scale(0.8);
    }

    .speech-bubble {
        right: -40px;
        font-size: 0.8rem;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
    }

    .card-icon {
        margin: 0 auto;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-item {
        padding: 12px 0;
        border-bottom: 1px solid var(--medium-gray);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .partners-grid {
        gap: 24px;
    }

    .partner-item {
        width: 80px;
        height: 80px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

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

    .method-value {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .exhibition-date {
        padding: 24px;
    }

    .date-day {
        font-size: 2.5rem;
    }

    .exhibition-info {
        padding: 24px;
    }

    .feature-card {
        padding: 24px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .lego-figure {
        transform: scale(0.65);
    }

    .speech-bubble {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .gallery-item .gallery-overlay {
        opacity: 0;
    }

    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }

    .click-brick {
        display: none;
    }

    .feature-card:hover {
        transform: none;
    }

    .about-card:hover {
        transform: none;
    }
}

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

    .floating-bricks,
    .lego-cutout-layer,
    .interactive-bricks {
        display: none;
    }
}
