/* --- Global Settings & CSS Variables --- */
:root {
    --primary-color: #00b4d8;
    --primary-hover: #0096b3;
    --dark-bg: #f0f0f0; /* Switched to white */
    --light-bg: #e9e9e9; /* Switched to light grey */
    --card-bg: #ffffff;  /* Switched to white */
    --text-light: #2e2e2e; /* Switched to dark */
    --text-muted: #3d3d3d; /* Switched to a darker muted grey */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --border-radius: 10px;
}

/* --- Global & Body Styles --- */
html {
    scroll-behavior: smooth;
}

body,
html {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* --- Hero Section Container --- */
.hero-container {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text-light); /* Will now be dark */
    opacity: 0;
    animation: fadeInPage 1s forwards;
}

/* --- Background Image & Gradient Overlay --- */
.hero-bg-img {
    background-image: url('../img/homepagebg.jpg'); /* Ensure this path is correct */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: zoomIn 40s infinite alternate;
}

.hero-bg-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Black overlay with same transparency values */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.274),
        rgba(0, 0, 0, 0.596)
    );
    z-index: 2;
}

/* --- Hero Content Layout (Centered) --- */
.hero-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    z-index: 3;
    text-align: center;
}

/* --- Typography with Staggered Animation --- */
.hero-title, .hero-subtitle, .hero-slogan {
    opacity: 0;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);

}

.hero-title {
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
    line-height: 1.2;
    animation: animateUp 0.8s forwards;
    animation-delay: 0.5s;
}
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 100;
    color: white; /* Adjusted for light theme */
    animation: animateUp 0.8s forwards;
    animation-delay: 0.7s;
}
.hero-slogan {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: white; /* Adjusted for light theme */
    animation: animateUp 0.8s forwards;
    animation-delay: 0.9s;
}
.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: animateUp 0.8s forwards;
    animation-delay: 1.1s;
}

/* --- Button Styles --- */
.btn-hero {
    display: inline-block;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(103, 221, 250, 0.521); /* Solid background */
    color: #ffffff; /* White text for contrast */
}
.btn-hero:hover {
    transform: translateY(-3px);
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* --- GENERAL CONTENT SECTIONS --- */
.content-section {
    padding: 80px 20px;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 50px;
    color: var(--text-light);
    text-align: center;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.7;
    text-align: center;
}

/* --- What to Expect Section --- */
.content-section:first-of-type {
    background-color: var(--dark-bg);
}
.expect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}
.expect-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* Softer shadow for light theme */
}

.expect-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.expect-item h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 15px;
}
.expect-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Location Section --- */
.location-section {
    background-color: var(--light-bg);
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}
.location-details {
    text-align: left;
}
.location-details h3 {
    font-family: var(--font-heading);
    color: var(--text-light);
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}
.location-details p {
    color: var(--text-muted);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}
.location-details .btn-event {
    margin-top: 20px;
}

/* --- Events Section --- */
.events-section {
    background-color: var(--dark-bg);
}
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.event-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.event-content {
    padding: 25px;
}
.event-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}
.event-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-light);
    margin: 0 0 10px 0;
}
.event-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.btn-event {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: #ffffff; /* White text for contrast */
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}
.btn-event:hover {
    background-color: var(--primary-hover);
}

/* ========================================
    TESTIMONIAL CAROUSEL STYLES
========================================
*/
.testimonials-section-carousel {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.testimonial-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    transition: transform 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth slide transition */
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
}

/* Animate content when slide becomes active */
.carousel-slide .testimonial-card > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.carousel-slide.current-slide .testimonial-card > * {
    opacity: 1;
    transform: translateY(0);
}
.carousel-slide.current-slide .testimonial-card blockquote { transition-delay: 0.3s; }
.carousel-slide.current-slide .testimonial-card .testimonial-author { transition-delay: 0.4s; }


.testimonial-card {
    background: var(--card-bg);
    padding: 40px;
    margin: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 320px; /* Ensures all cards have same height */
    text-align: center;
}

.testimonial-card blockquote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Pushes author to the bottom */
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author cite {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-light);
    font-style: normal;
}

/* Carousel Buttons (Prev/Next Arrows) */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.carousel-button:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: -25px;
}

.carousel-button.next {
    right: -25px;
}

.carousel-button i {
    font-size: 1.2rem;
    color: #333;
}

/* Carousel Navigation (Dots) */
.carousel-nav {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.4);
}

.carousel-indicator.current-slide {
    background: var(--primary-color);
    transform: scale(1.2);
}
/*
========================================
    END OF CAROUSEL STYLES
========================================
*/

/* --- Mission & Vision Section --- */
.mission-vision-section {
    background-color: var(--dark-bg);
}
.mv-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.mv-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 450px;
    flex-grow: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mv-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.mv-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}
.mv-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Keyframe Animations --- */
@keyframes fadeInPage { to { opacity: 1; } }

@keyframes animateUp {
    from {
        transform: translateY(40px);
        opacity: 0;
        filter: blur(5px);
    }
    to {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes zoomIn {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}

/* --- NEW Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    /* The "before" state */
    filter: blur(5px);
    transform: translateY(40px) scale(0.98);
    /* The animation applied when the 'is-visible' class is added */
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    /* The "after" state */
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Staggered animation delays for cards */
.is-visible .card-delay-1 { transition-delay: 0.2s; }
.is-visible .card-delay-2 { transition-delay: 0.4s; }
.is-visible .card-delay-3 { transition-delay: 0.6s; }


.footer{
        padding-left: 0 !important; 
}


/* --- Responsive Design --- */
@media (max-width: 900px) {
    .carousel-button {
        display: none; /* Hide arrows on smaller screens for a cleaner look */
    }
    .testimonial-card {
        margin: 10px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 4rem 1rem;
    }
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    .location-grid {
        grid-template-columns: 1fr;
    }
    .location-details {
        text-align: center;
    }
    .location-details p {
        justify-content: center;
    }
    
    .footer{
        padding-left: 0 !important; 
    }
    
    .location-grid img {
    width: 100%;
    height: auto; /* Ensures the image scales proportionally */
    object-fit: contain; /* Prevents stretching and shows the whole image */
    }
}