/* CSS Variables */
:root {
    --primary-red: #E84A5F;
    --primary-yellow: #FFD700;
    --dark-charcoal: #2A363B;
    --light-grey: #F8F8F8;
    --medium-grey: #5B5B5B;
    --deep-violet: #6A057F;
    --teal-accent: #00A896;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --font-alt: 'Montserrat', sans-serif;

    --max-width: 1200px;
    --section-padding-lg: 8rem 0;
    --section-padding-md: 5rem 0;
    --section-padding-sm: 3rem 0;
}

/* 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(--dark-charcoal);
    background-color: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

a {
    text-decoration: none;
    color: var(--primary-red);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--deep-violet);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-charcoal);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

p {
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px; /* Consistent subtle rounding for images */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding-md);
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-red), var(--primary-yellow));
    border-radius: 2px;
}
/* For titles that need to be left-aligned in grid layouts */
.section-title.left-aligned {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}
.section-title.left-aligned::after {
    left: 0;
    transform: translateX(0);
}

.section-description {
    font-family: var(--font-alt);
    font-size: 1.15rem;
    color: var(--medium-grey);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-description.left-aligned {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1.5rem; /* Adjust spacing when not centered */
}


.text-center { text-align: center; }
.text-light { color: var(--light-grey); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 600px; }


/* Utility Classes for effects */
.card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-shadow:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-zoom img {
    transition: transform 0.5s ease;
}

.hover-zoom:hover img {
    transform: scale(1.05);
}

.bg-light {
    background-color: var(--light-grey);
}

.bg-dark {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, #3a4750 100%);
    color: var(--light-grey);
}

/* Header */
.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-red);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--deep-violet);
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-family: var(--font-alt);
    font-weight: 600;
    color: var(--dark-charcoal);
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.2rem;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-red);
    transition: width 0.3s ease;
    border-radius: 1.5px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001; /* Ensure it's above other elements */
}

.hamburger {
    width: 28px;
    height: 3px;
    background-color: var(--dark-charcoal);
    position: relative;
    transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--dark-charcoal);
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Animation for menu toggle */
.menu-toggle[aria-expanded="true"] .hamburger {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    animation: zoomOut 20s infinite alternate ease-in-out;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding-top: 5rem; /* Space for fixed header */
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 5.5rem);
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    animation: fadeInSlideUp 1.5s ease-out forwards;
}

.hero-subtitle {
    font-family: var(--font-alt);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--light-grey);
    margin-bottom: 2.5rem;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-out 0.5s forwards;
    opacity: 1;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: bounce 2s infinite, fadeIn 1.5s ease-out 1s forwards;
    opacity: 1;
    cursor: default; /* Not an interactive element, purely visual */
}

.scroll-down .arrow-down {
    width: 30px;
    height: 30px;
    margin-top: 0.5rem;
    color: var(--primary-yellow);
    stroke: currentColor;
    stroke-width: 2;
}

/* Animations */
@keyframes zoomOut {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeInSlideUp {
    0% { opacity: 1; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* Layouts */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* About Section */
.about-section .grid-layout {
    padding: var(--section-padding-md) 0;
}

.about-image-wrapper {
    position: relative;
    min-height: 300px; /* Ensure image wrapper has height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image-wrapper img {
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.about-image-wrapper .animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.about-content p {
    font-size: 1.1rem;
    color: var(--medium-grey);
}


/* Attractions Section */
.attraction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.attraction-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.attraction-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.attraction-card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.attraction-card h3 {
    font-family: var(--font-alt);
    font-weight: 700;
    color: var(--dark-charcoal);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
}

.attraction-card p {
    font-size: 0.95rem;
    color: var(--medium-grey);
    margin-bottom: 0;
}


/* Schedule Section */
.schedule-section .grid-layout {
    padding: var(--section-padding-md) 0;
}

.schedule-content {
    order: 2; /* Content after image on mobile by default */
}

.schedule-details h3 {
    font-family: var(--font-alt);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.schedule-details ul {
    margin-bottom: 2rem;
}

.schedule-details li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-charcoal);
}

.schedule-details li strong {
    color: var(--deep-violet);
}

.schedule-image-wrapper {
    order: 1;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.schedule-image-wrapper img {
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s ease;
}

.schedule-image-wrapper .animate-pulse {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.note {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--medium-grey);
    border-left: 3px solid var(--primary-yellow);
    padding-left: 1rem;
    margin-top: 2rem;
}

/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, var(--dark-charcoal) 0%, #3a4750 100%);
    color: var(--light-grey);
}

.gallery-section .section-title::after {
    background: linear-gradient(to right, var(--primary-yellow), var(--teal-accent));
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.gallery-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in; /* Indicate hover effect */
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}

.gallery-item:hover img {
    filter: brightness(1);
}

/* Visit Us Section */
.visit-us-section .grid-layout {
    padding: var(--section-padding-md) 0;
}

.visit-us-image-wrapper {
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visit-us-image-wrapper img {
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
}

.address-details {
    font-style: normal;
    font-size: 1.1rem;
    color: var(--dark-charcoal);
    margin-bottom: 2rem;
}

.address-details p {
    margin-bottom: 0.5rem;
}

.address-details strong {
    color: var(--primary-red);
    font-family: var(--font-alt);
}


/* Footer */
.site-footer {
    background: linear-gradient(to right, var(--dark-charcoal), #3a4750);
    color: var(--light-grey);
    padding: var(--section-padding-sm) 0;
    font-size: 0.95rem;
}

.site-footer .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-grid h3 {
    color: var(--primary-yellow);
    font-family: var(--font-alt);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-nav ul li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--primary-red);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--light-grey);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
    color: #fff;
}

.social-icons svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0.8rem 1.5rem;
    }

    .main-nav ul {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        gap: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 1;
        pointer-events: none;
        transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    }

    .main-nav ul[data-visible="true"] {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .main-nav ul a {
        padding: 0.5rem 0;
        display: block;
        text-align: center;
        font-size: 1.1rem;
    }

    .main-nav a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-toggle {
        display: block;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 9vw, 4rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }

    .grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-section .grid-layout,
    .schedule-section .grid-layout,
    .visit-us-section .grid-layout {
        padding: var(--section-padding-sm) 0;
    }

    /* Adjust text alignment for mobile in grid sections */
    .about-content h2.section-title.left-aligned,
    .schedule-content h2.section-title.left-aligned,
    .visit-us-content h2.section-title.left-aligned {
        text-align: center;
    }
    .about-content h2.section-title.left-aligned::after,
    .schedule-content h2.section-title.left-aligned::after,
    .visit-us-content h2.section-title.left-aligned::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-content .section-description.left-aligned,
    .schedule-content .section-description.left-aligned,
    .visit-us-content .section-description.left-aligned {
        text-align: center;
    }

    .schedule-section .grid-layout.reverse-on-mobile {
        grid-template-areas:
            "image"
            "content";
    }

    .schedule-image-wrapper {
        grid-area: image;
    }

    .schedule-content {
        grid-area: content;
    }

    .attraction-grid, .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-nav ul, .social-icons {
        justify-content: center;
    }

    .section-padding {
        padding: var(--section-padding-sm);
    }
}

/* Animation states when visible - FIXED: Only opacity: 1 */
.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,
.reveal-item.visible,
.scroll-reveal.visible,
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in-up.visible.fade-in,
.section-scroll-animate.visible.fade-in {
    opacity: 1;
}

.animate-fade-in-up.visible.slide-up,
.section-scroll-animate.visible.slide-up {
    transform: translateY(0);
}
/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
