/* Variables */
:root {
    --primary-color: #FF6B6B; /* Vibrant Coral/Red */
    --secondary-color: #4ECDC4; /* Turquoise/Teal */
    --accent-color: #FFE66D; /* Sunny Yellow/Gold */
    --dark-color: #2C3E50; /* Deep Navy/Charcoal */
    --light-color: #F7F7F7; /* Off-white */
    --text-color: #333;
    --heading-color: var(--dark-color);

    --gradient-primary: linear-gradient(45deg, #FF6B6B, #FF9A8B); /* Coral to lighter coral */
    --gradient-secondary: linear-gradient(135deg, #4ECDC4, #6DEDD3); /* Teal to lighter teal */
    --gradient-overlay: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --header-height: 80px;
    --header-height-scrolled: 60px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --border-radius: 12px;
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }

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

.section-padding {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.15rem;
    color: #666;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bg-light {
    background-color: #F0F4F8; /* A slightly darker light color */
}

/* Header */
.main-header {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.main-header.scrolled {
    background-color: rgba(44, 62, 80, 0.95);
    height: var(--header-height-scrolled);
    box-shadow: var(--shadow-medium);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

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

.main-nav .nav-list {
    display: flex;
}

.main-nav .nav-list li {
    margin-left: var(--spacing-md);
}

.main-nav .nav-list a {
    color: var(--light-color);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

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

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.main-nav .nav-list a:hover {
    color: var(--primary-color);
}

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

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    background: url('images/image_14.jpg') center/cover no-repeat fixed; /* Parallax effect */
    margin-top: calc(-1 * var(--header-height)); /* Account for header height */
    padding-top: var(--header-height); /* Push content down */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    backdrop-filter: blur(2px); /* Subtle blur for modern feel */
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.hero-content p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* General Layout Grids (for About, Games & Treats) */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.layout-grid.reversed {
    grid-template-columns: 1fr 1fr; /* Default for desktop */
}
.layout-grid.reversed > *:first-child { /* Content */
    order: 2;
}
.layout-grid.reversed > *:last-child { /* Image */
    order: 1;
}

.about-image, .games-image, .food-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image img, .games-image img, .food-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.about-image:hover img, .games-image:hover img, .food-image:hover img {
    transform: scale(1.05);
}
.about-image:hover .image-overlay, .games-image:hover .image-overlay, .food-image:hover .image-overlay {
    opacity: 0.1;
}


/* Attractions Section */
.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.attraction-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.attraction-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.attraction-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.attraction-card:hover img {
    transform: scale(1.05);
}

.attraction-card .card-content {
    padding: var(--spacing-md);
}

.attraction-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* Games & Treats Section */
.games-content ul, .food-content ul {
    list-style: none;
    margin-top: var(--spacing-sm);
    padding-left: 0;
}

.games-content li, .food-content li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.games-content li i, .food-content li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
    transform: rotate(-15deg);
    display: inline-block;
}

.food-section {
    margin-top: var(--spacing-lg); /* Space between games and food */
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: var(--spacing-lg);
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: brightness(0.9);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

.gallery-item:hover::before {
    opacity: 0.2;
}


/* Visit Section */
.visit-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.info-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.info-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.info-card h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    font-size: 1rem;
    color: #555;
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: var(--spacing-md) 0;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.footer-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-links a {
    color: var(--light-color);
    font-size: 1.4rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Scroll-to-top button */
#scroll-to-top {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    opacity: 1;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: var(--gradient-secondary); /* Change gradient on hover */
    transform: translateY(-3px);
}

/* Advanced UI: Scroll Reveal Animations */
.reveal-element {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific delays for child elements to create staggered effect */
.attraction-card.is-visible { transition-delay: var(--transition-delay, 0s); }
.gallery-item.is-visible { transition-delay: var(--transition-delay, 0s); }
.info-card.is-visible { transition-delay: var(--transition-delay, 0s); }


/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .main-nav .nav-list {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--dark-color);
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-medium);
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        transform: translateY(-100%);
        opacity: 1;
    }

    .main-nav .nav-list li {
        margin: 0;
        text-align: center;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
    }
    .main-nav .nav-list a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-toggle {
        display: flex;
    }

    body.nav-open .main-nav .nav-list {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-toggle .bar {
        background-color: var(--light-color);
    }

    body.nav-open .nav-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    body.nav-open .nav-toggle .bar:nth-child(2) {
        opacity: 1;
    }
    body.nav-open .nav-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .layout-grid, .layout-grid.reversed {
        grid-template-columns: 1fr;
    }
    .layout-grid.reversed > *:first-child,
    .layout-grid.reversed > *:last-child {
        order: unset; /* Reset order for mobile */
    }

    .about-image img, .games-image img, .food-image img {
        height: 300px;
    }

    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }
    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
    .section-padding {
        padding: var(--spacing-md) 0;
    }
    .attraction-grid, .gallery-grid, .visit-info-grid {
        grid-template-columns: 1fr;
    }
    .main-header {
        height: var(--header-height-scrolled); /* Make header smaller on mobile by default */
    }
    .hero-section {
        margin-top: calc(-1 * var(--header-height-scrolled));
        padding-top: var(--header-height-scrolled);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    .main-header .container {
        padding: 0 var(--spacing-sm);
    }
    .logo {
        font-size: 1.5rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .footer-content {
        gap: 10px;
    }
    .social-links a {
        font-size: 1.2rem;
        margin: 0 8px;
    }
}
/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
