/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Color Palette */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #ec4899;
    --color-secondary-dark: #db2777;
    --color-accent: #f59e0b;
    --color-success: #10b981;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-hero: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Mobile-optimized spacing variables */
@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.25rem;
        --spacing-sm: 0.5rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
}

body {
    font-family: var(--font-secondary);
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================
   Starry Canvas Background
   =================================== */
#starryCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}



/* ===================================
   Floating Decorative Miniature
   =================================== */
.floating-miniature {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 10;
    /* Animation removed - now static */
}

.miniature-image {
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    transition: filter 0.4s ease;
    cursor: pointer;
}

.miniature-image:hover {
    filter: drop-shadow(0 8px 20px rgba(255, 255, 255, 0.15)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.1));
}

/* Responsive - adjust size on smaller screens */
@media (max-width: 768px) {
    .floating-miniature {
        max-width: 150px;
        bottom: 0;
        right: 0;
    }

    .miniature-image {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .floating-miniature {
        max-width: 100px;
    }

    .miniature-image {
        max-width: 150px;
    }
}

/* ===================================
   Main Content
   =================================== */
.main-content {
    position: relative;
    z-index: 10;
    /* Ensure content is above full-screen background */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Clouds System
   =================================== */
.clouds-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    /* Above stars (0/1), below moon (5) and content */
    overflow: hidden;
}

.cloud {
    position: absolute;
    opacity: 0.15;
    /* Subtle by default */
    filter: blur(1px);
    animation: floatClouds 60s infinite linear;
    will-change: transform;
}

/* Individual Cloud Styling */
/* Cloud 1 - Top Left (Beside Logo) */
.cloud-1 {
    top: 15%;
    left: 5%;
    width: 350px;
    opacity: 0.35;
    animation: floatClouds 140s infinite linear, pulseCloud 15s infinite ease-in-out alternate;
}

/* Cloud 2 - Top Right (Beside Logo) */
.cloud-2 {
    top: 18%;
    right: 5%;
    width: 320px;
    opacity: 0.4;
    animation: floatClouds 160s infinite linear, pulseCloud 18s infinite ease-in-out alternate-reverse;
    animation-delay: -20s, -5s;
}

/* Cloud 3 - Bottom Left (Near Text) */
.cloud-3 {
    top: 45%;
    left: 8%;
    width: 400px;
    opacity: 0.3;
    animation: floatClouds 180s infinite linear, pulseCloud 20s infinite ease-in-out alternate;
    animation-delay: -40s, -10s;
}

/* Cloud 4 - Bottom Right (Near Text/Buttons - Larger) */
.cloud-4 {
    top: 50%;
    right: 2%;
    width: 550px;
    opacity: 0.35;
    animation: floatClouds 200s infinite linear, pulseCloud 22s infinite ease-in-out alternate-reverse;
    animation-delay: -10s, -8s;
}

/* Cloud 5 - Extra subtle backing center/bottom */
.cloud-5 {
    top: 60%;
    left: 30%;
    width: 600px;
    opacity: 0.25;
    animation: floatClouds 220s infinite linear, pulseCloud 25s infinite ease-in-out alternate;
    animation-delay: -60s, -12s;
}

@keyframes floatClouds {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(50px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes pulseCloud {
    0% {
        opacity: 0.1;
    }

    /* Faded out state */
    100% {
        opacity: 0.4;
    }

    /* Fully visible state (max based on individual tweaked slightly via CSS if needed, but this drives the pulse) */
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    position: relative;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-logo {
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease, logoFloat 3s ease-in-out infinite;
}

.logo-image {
    max-width: min(600px, 90vw);
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(255, 255, 255, 0.2));
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(255, 255, 255, 0.6));
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.title-line {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.title-main {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #f093fb 50%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #cbd5e1;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #FFD700;
    /* Solid Gold - Simpler and Objective */
    color: #0f172a;
    /* Dark text for contrast */
    text-shadow: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #F4C430;
    /* Slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    filter: none;
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.15), rgba(185, 28, 28, 0.15));
    color: #ffffff;
    border: 2px solid #FFD700;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.3), rgba(185, 28, 28, 0.3));
    border-color: #FDB931;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), 0 4px 20px rgba(220, 20, 60, 0.4);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-icon {
    position: relative;
    z-index: 1;
}

/* ===================================
   Vertical Miniature Section
   =================================== */
/* ===================================
   Fixed Gallery Section
   =================================== */
.gallery-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

.fixed-gallery-container {
    position: absolute;
    top: 0;
    width: 45%;
    /* Adjusted to share space */
    height: 100%;
    display: flex;
    align-items: flex-end;
    z-index: 5;
}

.fixed-gallery-container.right {
    right: 0;
    justify-content: flex-end;
}

.fixed-gallery-container.left {
    left: 0;
    justify-content: flex-start;
    z-index: 6;
    /* Higher than bottom to overlap if needed */
}

.fixed-gallery-container.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 50vh;
    /* Reduced height to be less overwhelming */
    justify-content: center;
    align-items: flex-end;
    z-index: 4;
}

.gallery-image {
    position: absolute;
    bottom: 0;
    right: auto;
    /* Reset */
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 -4px 20px rgba(0, 0, 0, 0.5));
    /* Enhanced shadow for blending */
}

.fixed-gallery-container.right-full {
    position: absolute;
    top: 0;
    left: 0;
    /* Change right:0 to left:0 to span full width */
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* Center instead of right align */
    z-index: 2;
    /* Lower z-index to be background */
}

/* Interactive Light Effect */
.light-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through */
    z-index: 3;
    /* Above image (2), below text (10) */
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 200, 100, 0.4),
            /* Warm glow center */
            transparent 40%);
    mix-blend-mode: color-dodge;
    /* Makes bright pixels glow intensely */
    opacity: 0;
    /* Hidden by default until JS creates brightness */
    transition: opacity 0.3s ease;
}

.gallery-section:hover .light-overlay {
    opacity: 1;
}

.gallery-image.right-side {
    position: relative;
    height: 100vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center bottom;
    right: 0;
    margin-right: 0;

    /* VAZADA EFFECT: Fade out bottom to blend with background */
    -webkit-mask-image: linear-gradient(to bottom, black 98%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 98%, transparent 100%);
}

.gallery-image.full-width {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 80vh;
    /* Allow more height so top isn't cut */
    object-fit: contain;
    /* Ensure nothing is cropped */
    object-position: bottom center;
    left: 0;
    transform: none;
}

.gallery-image.static-image {
    opacity: 1;
}



/* Make images responsive */
@media (max-width: 900px) {
    .fixed-gallery-container {
        width: 100%;
        opacity: 0.8;
        justify-content: center;
    }

    .gallery-image {
        max-height: 50vh;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .vertical-scroll-section {
        flex-direction: column;
    }

    .fixed-miniature-container {
        position: fixed;
        bottom: 0;
        top: auto;
        right: 0;
        width: auto;
        height: auto;
        z-index: 5;
    }

    .fixed-miniature-image {
        max-width: 250px;
    }

    .scroll-content {
        width: 100%;
        padding-bottom: 300px;
        /* Space for fixed image */
    }
}

@media (max-width: 480px) {
    .fixed-miniature-image {
        max-width: 180px;
    }
}

/* ===================================
   Theme Cards
   =================================== */
.theme-card {
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 0;
}

.theme-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.3);
}

.theme-card:hover::before {
    opacity: 0.1;
}

.theme-image {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.theme-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.theme-card:hover .theme-image img {
    transform: scale(1.1);
}

.theme-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

.theme-content {
    padding: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.theme-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.theme-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
}

.theme-description {
    color: #cbd5e1;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.theme-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 0.375rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: #a5b4fc;
}

.theme-card-soon {
    opacity: 0.8;
}

.theme-card-soon .theme-icon {
    animation: pulse 2s ease-in-out infinite;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.cta-content {
    text-align: center;
    background: var(--gradient-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-bottom: var(--spacing-lg);
}

.cta-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.cta-feature {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.cta-feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.cta-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-feature h4 {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.cta-feature p {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ===================================
   Guide Image Decoration
   =================================== */
.guide-decoration {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    z-index: 20;
    pointer-events: none;
    overflow: visible;
    transform: translateY(-87%);
}

.guide-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    filter: drop-shadow(2px 4px 10px rgba(0, 0, 0, 0.3));
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .guide-decoration {
        opacity: 0.9;
    }
}

@media (max-width: 480px) {
    .guide-decoration {
        opacity: 0.8;
    }
}


/* ===================================
   Nina Decoration
   =================================== */
.nina-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
    /* Absolute positioning within section */
}

.nina-image {
    width: 40.5vw;
    /* Responsive width relative to viewport */
    max-width: 850px;
    min-width: 320px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    transform-origin: bottom right;
}

@media (max-width: 1400px) {
    .nina-image {
        width: 46vw;
    }
}

@media (max-width: 768px) {
    .nina-decoration {
        right: -10px;
    }

    .nina-image {
        width: 58vw;
        /* Larger relative size on mobile */
        min-width: 250px;
    }
}

/* ===================================
   Prepare-se para sua visita Section
   =================================== */
.prepare-section {
    padding: var(--spacing-xl) 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 10;
}

.prepare-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    text-align: center;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.prepare-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    text-align: center;
    color: #cbd5e1;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.prepare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    max-width: 1100px;
    margin: 0 auto;
}

.prepare-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.prepare-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.75);
}

.prepare-card-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0;
    min-height: 250px;
    overflow: hidden;
}

.prepare-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2) contrast(1.1);
    transition: transform var(--transition-normal);
}

.prepare-card:hover .prepare-card-image img {
    transform: scale(1.05);
}

.prepare-card-content {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.prepare-card-title {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.prepare-card-text {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #cbd5e1;
    margin: 0;
}

/* Responsive Design for Prepare Section */
@media (max-width: 900px) {
    .prepare-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .prepare-card {
        flex-direction: row;
    }

    .prepare-card-image {
        flex: 0 0 150px;
        min-height: auto;
    }

    .prepare-card-image img {
        max-height: 120px;
    }
}

@media (max-width: 480px) {
    .prepare-section {
        padding: var(--spacing-lg) 0;
    }

    .prepare-card-image {
        min-height: 150px;
    }

    .prepare-card-content {
        padding: var(--spacing-sm);
    }
}

/* ===================================
   Middle Panoramic Section
   =================================== */
.middle-panorama-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.middle-panorama-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.middle-panorama-image {
    height: 100vh;
    width: 100%;
    /* Fill width completely */
    max-width: none;
    object-fit: fill;
    /* Stretch to fit exact dimensions (no cropping, no gaps) */
    object-position: center;
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 0;
    /* Remove padding to let image sit flush if needed, or adjust */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-xl);
    position: relative;
    /* Anchor for the image */
    overflow: hidden;
    /* Contains the huge image */
    min-height: 80vh;
    /* Give enough height for the image to show */
    display: flex;
    align-items: flex-end;
    /* Align content to bottom */
}

.footer-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-bottom: var(--spacing-sm);
    padding-top: var(--spacing-lg);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

/* Adjusted Gallery Container for Footer */
.fixed-gallery-container.right-full {
    position: absolute;
    bottom: 0;
    /* Align to bottom */
    left: 0;
    top: auto;
    /* Remove top alignment */
    width: 100%;
    height: 100vh;
    /* Maintain tall height for the visual */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1;
    /* Behind text */
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.footer-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.25rem;
    display: block;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #64748b;
    font-size: 0.875rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(236, 72, 153, 0.4));
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(1deg);
    }

    50% {
        transform: translateY(-12px) rotate(0deg);
    }

    75% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .cta-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    .scroll-indicator {
        bottom: var(--spacing-md);
    }
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.stat-card {
    background: var(--gradient-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5));
    transition: transform var(--transition-normal);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(99, 102, 241, 0.3));
}

.stat-label {
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */
@media (max-width: 768px) {

    /* Hero Section - Reduce height */
    .hero-section {
        min-height: 70vh;
        padding: var(--spacing-md);
    }

    .logo-image {
        max-width: 70vw;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Prepare Section - Compact cards */
    .prepare-section {
        padding: var(--spacing-lg) 0;
    }

    .prepare-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-xs);
    }

    .prepare-subtitle {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-md);
    }

    .prepare-grid {
        gap: var(--spacing-lg);
    }

    .prepare-card {
        flex-direction: column;
    }

    .prepare-card-image {
        flex: 0 0 auto;
        min-height: 250px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(15, 23, 42, 0.2);
        overflow: hidden;
    }

    .prepare-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .prepare-card-content {
        padding: var(--spacing-md);
        text-align: center;
    }

    .prepare-card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .prepare-card-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Nina Decoration - Reduce size */
    .nina-image {
        width: 45vw;
        min-width: 200px;
        max-width: 300px;
    }

    /* Guide Decoration - Reduce size */
    .guide-decoration {
        transform: translateY(-85%) scale(0.8);
    }

    /* Stats Section - Compact */
    .stats-section {
        padding: var(--spacing-lg) 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: var(--spacing-md);
    }

    .stat-card {
        padding: var(--spacing-md);
    }

    /* Footer - Compact */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .footer-content {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

@media (max-width: 480px) {

    /* Extra small devices - even more compact */
    .hero-section {
        min-height: 65vh;
        padding: var(--spacing-sm);
    }

    .logo-image {
        max-width: 80vw;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .prepare-title {
        font-size: 1.5rem;
    }

    .prepare-card-image {
        min-height: 90px;
    }

    .prepare-card-image img {
        max-height: 70px;
    }

    .nina-image {
        width: 50vw;
        min-width: 180px;
    }

    .guide-decoration {
        transform: translateY(-85%) scale(0.7);
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }
}

/* ===================================
   Custom Button Styles
   =================================== */
.button-container {
    display: flex;
    flex-direction: column;
    /* Back to vertical stack */
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.btn-primary {
    background: #FFD700;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #FDB931;
}

.btn-primary:hover {
    background: #F4C430;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-hero-large {
    display: flex;
    /* Ensure flex behavior */
    justify-content: center;
    /* Center content horizontally */
    padding: 1rem 1.5rem;
    /* Reduced horizontal padding */
    height: auto;
    font-size: 1.2rem;
    /* Reduced base font size */
    letter-spacing: 0.5px;
    align-items: center;
    width: 100%;
    max-width: 600px;
    /* Increased max-width significantly */
}

.btn-hero-small {
    display: flex;
    /* Ensure flex behavior */
    justify-content: center;
    /* Center content horizontally */
    padding: 0.8rem 1.5rem;
    height: auto;
    font-size: 1rem;
    align-items: center;
    width: 100%;
    max-width: 320px;
    /* Increased from 250px to fit new text */
}

.btn-text-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    /* Increased line-height for better wrapping */
    margin-left: 0;
    text-align: center;
    position: relative;
    top: -1px;
}

.btn-main-text {
    font-weight: 800;
    font-size: 1.25rem;
    /* Reduced from 1.6rem to fit long text */
    /* Restored larger size */
    display: block;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    white-space: normal;
    /* Allow wrapping */
}

.btn-hero-small .btn-main-text {
    font-size: 0.9rem;
    white-space: normal;
    /* Allow wrapping */
    line-height: 1.2;
    /* Smaller text for small button */
}

.btn-hero-small .parksnet-text {
    font-size: 0.6rem;
}

.parksnet-text {
    font-size: 0.75rem;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
    display: block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* Red Button Style for Alles Park */
.btn-allespark {
    background: #C41E3A;
    /* Brand Red */
    border: 2px solid #FFD700;
    /* Gold Border */
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

.btn-allespark:hover {
    background: #A01830;
    /* Darker red on hover */
    border-color: #FDB931;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
}

/* Mobile Optimizations for Buttons */
@media (max-width: 480px) {
    .btn-hero-large {
        width: 90%;
        /* Responsive width */
        max-width: 100%;
        /* Allow full width minus padding */
        padding: 1rem 1.5rem;
        /* Reduced padding */
        font-size: 1.1rem;
    }

    .btn-hero-large .btn-main-text {
        font-size: 1rem;
        /* Smaller text on mobile to fit long text */
    }

    .btn-hero-small {
        width: 80%;
        padding: 0.6rem 1rem;
    }

    .parksnet-text {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* Fix for Guia 1 / Background Images on mobile */
    .guide-decoration {
        transform: none !important;
        width: 100% !important;
        height: auto !important;
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        /* Pull content up slightly if needed */
        z-index: 5;
    }

    .guide-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Ensure sitting dolls/scenery spans full width without distortion */
    .gallery-image,
    .static-image {
        object-fit: cover !important;
        object-position: center bottom !important;
        height: 100vh !important;
    }
}