/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: linear-gradient(120deg, #eef2f7, #ffffff);
    color: #333;
}

/* ================= HEADER ================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* TOP BAR (logo + hamburger) */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* LOGO */
.logo img {
    height: 50px;
    width: auto;
    display: block;
}

img {
    max-width: 100%;
    height: auto;
}

/* HAMBURGER */
.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
}

/* ROTATE ON ACTIVE */
.hamburger.active {
    transform: rotate(90deg);
}

/* ================= NAVBAR ================= */
nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* NAV LINKS */
nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #3498db;
}

nav a.active {
    color: #3498db;
    font-weight: 600;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    nav {
        display: block;           /* block layout for mobile */
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-top: 1px solid #eee;
    }

    nav.active {
        max-height: 500px;        /* enough for all links */
    }

    nav a {
        display: block;           /* full width */
        min-height: 50px;         /* equal row height */
        line-height: 50px;        /* vertically center text */
        padding: 0 20px;          /* horizontal padding */
        border-bottom: 1px solid #eee;
        text-align: left;
        box-sizing: border-box;   /* includes padding in height */
    }

    nav a:last-child {
        border-bottom: none;
    }
    
    .hero h1{
        font-size: 30px;
    }

    .grid{
        flex-direction: column;
        align-items: center;
    }

    .card{
        width: 90%;
    }

    .steps{
        flex-direction: column;
        align-items: center;
    }

    .package-card { padding: 12px; }
}

/* HERO */
.hero {
    height: auto;
    min-height: 300px;
    background-size: cover;
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('../images/background/background.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 46px;
    margin-bottom: 15px;
    animation: fadeDown 1s;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    animation: fadeUp 1.2s;
}

.location { text-align: center; font-size: 14px; color: gray; }

.search-box { display: flex; justify-content: center; padding: 10px; }
.search-container { display: flex; background: white; border-radius: 40px; width: 90%; max-width: 600px; padding: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.search-container input { flex: 1; border: none; outline: none; padding: 10px; }
.search-btn { background: #25D366; color: white; border: none; border-radius: 50%; padding: 12px; cursor: pointer; }

/* Horizontal categories with wrapping */
/*.horizontal-categories {
    display: flex;
    flex-wrap: wrap; /* wrap to next line if not enough space */
    padding: 10px 15px;
    gap: 12px;
    justify-content: center; /* center categories */
}
.category-card {
    flex: 0 1 180px; /* responsive width */
    min-width: 140px;
    max-width: 200px;
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.category-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.category-card.active { background-color: #f0f4ff; }
.category-card i { transition: transform 0.3s ease; }
.category-card.active i { transform: rotate(180deg); }*/

.category-section {
    margin: 20px 10px 0 10px;   /* 👈 adds gap from hero */
    padding: 25px;
    background: #f6f7fb;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.category-card {
    background: #ffffff;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: 0.25s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.category-card .icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.category-card h3 {
    font-size: 16px;
    margin: 5px 0;
    color: #333;
}

.category-card p {
    font-size: 13px;
    color: #777;
}

.subcategory-section {
    padding: 25px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.sub-card {
    border-radius: 12px;
    padding: 18px;
    background: #f9fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.sub-card:hover {
    transform: translateY(-5px);
}

.sub-card h3 {
    margin-bottom: 8px;
}

.sub-card p {
    font-size: 13px;
    color: #555;
    margin: 4px 0;
}

.sub-card button {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background: #ff6b6b;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

#subCategorySection:empty {
    display: none;
}

/* Badge */
.badge {
    background: linear-gradient(45deg, #ff6b6b, #ff9f43);
    color: white;
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 8px;
}

/* Includes */
.includes {
    font-size: 13px;
    margin: 10px 0;
    color: #555;
}

/* Meta info */
.sub-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* Price styling */
.price del {
    color: #999;
    margin-right: 5px;
}

.price b {
    color: #2ecc71;
    font-size: 16px;
}

/* Package cards */
.package-container {
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 15px;
}
.package-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    margin: 10px;
}
.package-card:hover { transform: translateY(-7px); box-shadow: 0 6px 20px rgba(0,0,0,0.2);}
.package-card img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 10px; }
.package-card h4 { margin: 5px 0; font-size: 16px; }
.package-card p { margin: 3px 0; font-size: 13px; color: #4b5563; }

#packageContainer {
    display: none;                  /* hidden by default */
    padding: 25px;                  /* same as subcategory section */
    background: #ffffff;            /* same as subcategory */
    box-sizing: border-box;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#packageContainer {
    display: none;
}

#packageContainer.show {
    display: grid;
    padding: 25px;
    background: #ffffff;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

#packageContainer.active {
    display: grid;
}

#packageContainer.active:empty {
    display: none;
}

/* Booking Form */
.form-popup { display: none; position: fixed; bottom: 0; background: white; width: 100%; padding: 20px; box-shadow: 0 -2px 10px rgba(0,0,0,0.2); z-index: 100; }
.form-popup input { width: 100%; padding: 10px; margin: 5px 0; box-sizing: border-box; font-size: 16px; }

@media(max-width:600px){
    .package-card { padding: 12px; }
}

/* BUTTON */
button {
    background: #25D366;
    border: none;
    padding: 12px 22px;
    color: white;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    transform: scale(1.05);
    background: #1ebe57;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

.container h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* GRID */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* CARDS */
.card {
    width: 260px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.35s, box-shadow 0.35s;
    animation: fadeUp 0.8s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
}

.card-content h3 {
    margin-bottom: 10px;
}

.card-content p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* HOW IT WORKS */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.step {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* FOOTER */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

/* FLOATING BUTTONS WITH ICONS AND ANIMATION */
.contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.contact-buttons a {
    padding: 15px 22px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    font-size: 18px;
    position: relative;
    overflow: hidden;
}

.contact-buttons a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    top: 0;
    left: -100%;
    transition: all 0.5s;
}
.contact-buttons a:hover::before {
    left: 0;
}

#callNowBtn {
    background: #0d6efd;
    color: white;
}
#whatsappBtn {
    background: #25d366;
    color: white;
}

/* Bounce animation on load */
@keyframes bounceIn {
    0% { transform: translateY(100px); opacity: 0; }
    60% { transform: translateY(-10px); opacity: 1; }
    80% { transform: translateY(5px); }
    100% { transform: translateY(0); }
}

#callNowBtn, #whatsappBtn {
    animation: bounceIn 1s ease forwards;
}

/* Add icons using pseudo-elements */
#callNowBtn::before {
    content: "📞";
    margin-right: 8px;
}
#whatsappBtn::before {
    content: "💬";
    margin-right: 8px;
}

/* ===== Modal Styles ===== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: fadeUp 0.5s;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #25d366;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
}

.modal-content button:hover {
    background: #1ebe57;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {opacity: 0; transform: translateY(30px);}
    to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeDown {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
}
