* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-links a:hover, .nav-links a.active {
    color: #3498db;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.section-title {
    color: #000;
    text-shadow:
        1px 1px 2px rgba(0, 0, 0, 0.5),
        2px 2px 6px rgba(0, 0, 0, 0.25);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 10px;
}

/* Main Content */
main {
    margin-top: 0px;
    background: white;
    min-height: calc(100vh - 80px);
}

.page {
    display: none;
    padding: 3rem 0;
    min-height: 60vh;
    animation: fadeInUp 1s ease;
}

.page.active {
    display: block;
    animation: fadeInUp 1s ease;
}

/* Home Page */
.hero {
    background: url('img/waterBG.avif') center center / cover no-repeat;
    color: black;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, white 80%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none; /* Ensures clicks go through */
    z-index: 1;
}

.hero > *:not(.hero-overlay) {
    position: relative;
    z-index: 2;
}

.hero h1 {
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    text-shadow: 1px 1px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.75rem;
    color: #111;
    margin-bottom: 2rem;
}

.cta-button {
    background: #1f358c;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    background: #182a70;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 60, 231, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1rem;
    color: #333;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-icon {
    color: #1e3a8a; /* Your blue tone */
    font-size: 1.2rem;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.service-content {
    padding: 1.5rem;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 8rem;
    color: #3498db;
    height: 100%;
}

.faded-edge {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 40px; /* optional: soft rounded corners */
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: cover;
    mask-size: cover;
}

/* Contact Page */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Booking Page */
.booking-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 2rem auto;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
}

.calendar-month-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #003366;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 1.8rem; /* slightly smaller for visual balance */
    color: #003366;
    cursor: pointer;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* ensures full flex height for alignment */
    padding-bottom: 10px;
}

.calendar-nav:disabled {
    color: #ccc;
    cursor: default;
}

.calendar-day {
    background: white;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: #ecf0f1;
}

.calendar-day.selected {
    background: #3498db;
    color: white;
}

.calendar-day.disabled {
    background: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
}

.calendar-month-heading {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: #003366;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.time-slot {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.time-slot:hover {
    background: #d5dbdb;
}

.time-slot.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    background: rgba(24, 48, 147, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    background: #182a70;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 60, 231, 0.3);
}

.chat-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: white;
}

.chat-popup {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 0;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.95),
        rgba(255, 255, 255, 0.8)
    );
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 300px;
    overflow: hidden;
}

.chat-popup.active {
    display: block;
}

.chat-header {
    background: rgba(24, 48, 147, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* for Safari */
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.chat-form {
    padding: 1rem;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.chat-submit {
    background: rgba(24, 48, 147, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* for Safari */
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

/* Chat Messages Container */
.chat-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.3); /* translucent white */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* for Safari */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Visitor message */
.chat-message.visitor {
    align-self: flex-start;
    background: #f0f0f0;
    color: #222;
    border-radius: 15px;
    padding: 0.6rem 1rem;
    width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Admin message */
.chat-message.admin {
    align-self: flex-end;
    background: linear-gradient(135deg, #003366, #004080);
    color: #fff;
    border-radius: 15px;
    padding: 0.6rem 1rem;
    width: 80%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Optional: include sender name */
.chat-message strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Chat Timestamp */
.chat-timestamp {
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 0.5rem; /* Reduced top margin */
}

/* Chat Date */
.chat-date-divider {
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    margin: 1rem 0 0.1rem; /* Tighter space to timestamp */
    font-weight: 600;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.2rem 1rem;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.chat-send-icon {
    padding: 0.5rem;
    background: #283593;
    border: none;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    cursor: pointer;
}

.chat-send-icon:hover {
    background: #1a237e;
}

.chat-send-icon .chat-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

.chat-message.visitor,
.chat-message.admin {
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.4;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        font-size: 6rem;
    }

    .chat-popup {
        width: 280px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}