@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth; /* For smooth scrolling on nav link clicks */
}

body {
    background-color: #f0f0f0; /* Light background for content below hero */
    color: #333; /* Default text color for sections */
    line-height: 1.6;
    /* overflow-x: hidden; Prevents horizontal scroll if any element slightly overflows */
}

.hero-container {
    width: 100%; /* Make hero take full width initially */
    min-height: 100vh; /* Ensure hero fills the viewport height */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1536098561742-ca998e48cbcc?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1436&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-like effect */
    color: #fff;
    position: relative; /* Needed for absolute positioning of children */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Crucial for card animation within hero */
    padding: 30px 5%; /* Use percentage padding */
}

/* Header & Navigation */
header {
    width: 100%;
    z-index: 100; /* Ensure header stays above other content if needed */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-weight: 700;
    font-size: 1.8em;
    letter-spacing: 1px;
    color: #fff; /* Ensure logo is white */
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    font-size: 0.9em;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block; /* Needed for transform */
}

nav ul li a.active,
nav ul li a:hover {
    color: #fff;
    transform: translateY(-2px); /* Simple hover effect */
}

.search-icon {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    color: #fff;
    transition: background-color 0.3s ease;
}
.search-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.hamburger-menu {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 110; /* Above nav links when open */
}

/* Main Content (within Hero) */
main {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}

.hero-text {
    max-width: 50%;
}

.hero-text h1 {
    font-size: 5em;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-text p {
    font-size: 1.2em; /* Slightly larger */
    font-weight: 300;
    color: #ddd;
    max-width: 500px; /* Limit width of subtitle */
}

/* Side Cards Area */
.side-cards-container {
    position: absolute;
    right: 5%; /* Use percentage */
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 80%;
    min-height: 450px; /* Ensure enough space for cards */
    pointer-events: none;
}

.card {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    width: 220px; /* Slightly wider cards */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: right 0.8s ease-in-out, opacity 0.6s ease-in-out, transform 0.8s ease-in-out;
    cursor: pointer;
    pointer-events: all;
    right: -280px; /* Adjust initial off-screen position */
    color: #fff; /* Ensure text is white */
}

.card:hover {
    transform: scale(1.03) translateY(-5px); /* Hover effect for clickable cards */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card-content h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 2px;
}

.card-content p {
    font-size: 0.8em;
    color: #eee;
}
.card-description.hidden {
    display: none; /* Hide description used for modal */
}


/* Card Active States */
.card.active-main {
    right: 0;
    opacity: 1;
    z-index: 10;
    transform: scale(1.0);
}

.card.active-secondary {
    right: 130px; /* Adjust secondary position */
    opacity: 0.7; /* Slightly more faded */
    z-index: 5;
    transform: scale(0.9);
}

/* Side Navigation Dots */
.side-nav {
    position: absolute;
    right: 20px; /* Adjust position */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 15; /* Above cards */
}

.side-nav .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    margin: 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.side-nav .dot:hover {
     background-color: rgba(255, 255, 255, 0.7);
}

.side-nav .dot.active {
    background-color: #fff;
    transform: scale(1.3);
}


/* Footer (within Hero) */
footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto; /* Pushes footer to bottom */
    padding-bottom: 20px; /* More padding */
    padding-top: 20px; /* Add some space above */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Subtle separator */

    .event-info p#event-description {
    font-size: 0.75em; /* Or your existing size */
    color: #bbb;
    line-height: 1.5; /* Make sure line-height is defined */
    margin-bottom: 8px; /* Or your existing margin */

    /* Default: Show full text */
    /* display: block;  Ensure it's block for reliable layout */
    overflow: visible; /* Show all content */
    max-height: none; /* No height restriction */
    
}
}

.event-info {
    max-width: 40%;
}

.event-info h4 {
    font-weight: 600;
    margin-bottom: 3px;
}

.event-info span {
    font-size: 0.8em;
    color: #ccc;
    display: block;
    margin-bottom: 5px;
}

.event-info p {
    font-size: 0.75em;
    color: #bbb;
    line-height: 1.5;
    margin-bottom: 8px; /* Space before learn more */
}
.event-info .learn-more-link {
    color: #fff;
    font-size: 0.8em;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.event-info .learn-more-link:hover {
    color: #ddd;
}

.social-icons {
    display: flex;
    gap: 20px; /* Increased gap */
}

.social-icons a {
    font-size: 1.3em; /* Larger icons */
    cursor: pointer;
    color: #ccc;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px); /* Lift icon on hover */
}

/* Content Sections (Below Hero) */
.content-section {
    padding: 60px 5%; /* Consistent padding */
    max-width: 1200px; /* Limit content width */
    margin: 0 auto; /* Center content */
}

.content-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2a0a4b; /* Use theme color */
    text-align: center;
}

/* About Us Section */
#about-us {
    background-color: #fff; /* White background */
}
#about-us p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 15px auto;
    color: #555;
}


/* Packages Section */
#packages {
     background: linear-gradient(to bottom right, #8e44ad, #512e5f); 
}
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.package-item {
    background-color: #D8BFD8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.package-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.package-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.package-item h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin: 15px 20px 5px 20px;
    color: #333;
}

.package-item p {
    font-size: 0.9em;
    margin: 0 20px 10px 20px;
    color: #666;
}
.package-item p:last-of-type { /* Last paragraph before button */
     margin-bottom: 20px;
}


.btn { /* Basic Button Style */
    display: inline-block;
    background-color: #e60073; /* Vibrant pink/magenta */
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 0 20px 20px 20px;
}

.btn:hover {
    background-color: #c00060; /* Darker shade */
    transform: scale(1.05);
}


/* Map Section */
#map-section {
    background-color: #fff;
}

#map-placeholder {
    width: 100%;
    height: 450px;
    background-color: #e0e0e0; /* Placeholder background */
    border-radius: 10px;
    display: flex;
    flex-direction: column; /* Stack text and icon */
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #777;
    font-size: 1.1em;
}

/* Attempt to hide the Leaflet link specifically within the attribution */
.leaflet-control-attribution a[href^="https://leafletjs.com"] {
    display: none !important;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001; /* Above everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is long */
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
    align-items: center;
    justify-content: center;
    padding: 20px; /* Padding for smaller screens */
    animation: fadeIn 0.3s ease; /* Fade in animation */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(5px);
    margin: auto;
    padding: 30px;
    border-radius: 15px;
    max-width: 600px; /* Limit modal width */
    width: 90%; /* Responsive width */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333; /* Text color inside modal */
    animation: slideIn 0.4s ease-out; /* Slide in animation */
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


.modal-close {
    color: #555;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    color: #e60073; /* Match button color */
    text-decoration: none;
}

.modal-img {
    width: 100%;
    height: 300px; /* Fixed height for modal image */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #2a0a4b;
}

.modal-text {
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-container {
        min-height: 100vh; /* Keep minimum height */
        /* padding-bottom: 250px; */
        display: flex; /* Ensure flex behavior */
        flex-direction: column; /* Stack header/main/footer */
    }
    .hero-text {
        max-width: 80%;
        text-align: center;
        margin: 40px auto 0 auto; /* Reset bottom margin */
        padding-bottom: 340px; 
    }
     .hero-text h1 {
        font-size: 3.5em;
    }
    main {
        flex-direction: column;
        align-items: center; /* Center hero text horizontally */
        margin-top: 10px;
        flex-grow: 1; /* Ensure main takes space */
        width: 100%; /* Ensure main takes full width */
        position: relative; /* Ensure this is still set */
    }

    /* Reposition cards container for tablets/mobile */
    .side-cards-container {
        width: 90%;
        max-width: 450px;
        height: 300px;
        position: absolute; /* Keep absolute positioning */
        bottom: 50px; 
        left: 50%;
        transform: translateX(-50%);
        top: auto; /* Ensure top is auto */
        /* background: rgba(0, 255, 0, 0.2); */ /* Uncomment temporarily to visualize */
    }
     .card {
       width: 180px;
       right: -220px;
    }
     .card img { height: 130px; }
    .card.active-main { right: 50%; transform: translate(5%, 0); } /* Re-center based on new container pos */
    .card.active-secondary { right: 50%; transform: translate(-105%, 0); } /* Re-center based on new container pos */

    nav ul.nav-active {
        display: flex;
        transform: translateX(0);
    }
    .hamburger-menu {
        display: block;
    }
    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
        padding: 20px 5% 20px 5%; /* Add horizontal padding */
        width: auto; /* Let it fit content */
        position: relative; /* Ensure footer stacks correctly */
        margin-top: 0; /* Footer should be pushed by main */
    }
     .event-info { max-width: 90%; }
     .side-nav { right: 10px; }
     .content-section h2 { font-size: 2em;}
}

@media (max-width: 576px) {

    main {
     padding-bottom: 160px; }
    /* No need to override hero-container padding here if removed above */
     .hero-text {
         padding-bottom: 10px; 
     }
    .hero-text h1 { font-size: 2.8em; }
    .hero-text p { font-size: 1em; }

    .side-cards-container {
        height: 250px;
        top:150px; 
        max-width: 95%; /* Allow slightly more width */
    }
    .card {
        width: 140px;
        padding: 10px;
        right: -180px;
    }
    .card img { height: 100px; }
    .card-content h3 { font-size: 0.9em;}
    .card-content p { font-size: 0.7em;}
    /* Re-center cards */
    .card.active-main { right: 50%; transform: translate(0%, 0); }
    .card.active-secondary { right: 50%; transform: translate(-110%, 0);} /* Adjust offset slightly */
     .card[data-index="0"] .card-content p {
        display: none;
    }

    .event-info p { font-size: 0.75em; }
    .social-icons a { font-size: 1.2em; }
    .side-nav { display: none; }

    .package-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 20px; }
    .modal-img { height: 200px; }
    footer { padding: 15px 5% 15px 5%; } /* Consistent padding */
}

@media (max-width: 992px) {

    /* Hide standard nav links and prepare mobile menu */
    nav ul {
        /* IMPORTANT: Ensure this rule hides the list initially */
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(42, 10, 75, 0.98);
        backdrop-filter: blur(5px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 105;
        transform: translateX(-100%); /* Keep for transition */
        transition: transform 0.4s ease-in-out, display 0s 0.4s; /* Delay display change */
    }

    /* Show mobile menu ONLY when .nav-active class is added */
    nav ul.nav-active {
        display: flex; /* Use flex to enable centering */
        transform: translateX(0);
         transition: transform 0.4s ease-in-out; /* Transition for showing */
    }

    nav ul li {
        margin: 25px 0;
    }
    nav ul li a {
        font-size: 1.4em;
        color: #fff;
    }
     nav ul li a:hover, nav ul li a.active {
         color: #f0a5d8;
     }

    .hamburger-menu {
        display: block; /* IMPORTANT: Ensure this shows the button */
    }

     .search-icon {
        display: none;
    } 
}
