/* Import Normalize for Consistent Rendering */
@import 'https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css';

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Playfair+Display:wght@600;700&family=Orbitron:wght@400;700&display=swap');

/* CSS Variables for Theme Consistency */
:root {
    /* Colors */
    --primary: #006994;
    --aqua-blue: hsl(180, 70%, 45%); /* Vibrant waterfall blue */
    --teal-green: hsl(160, 50%, 20%); /* Deep forest teal */
    --coral: hsl(10, 80%, 60%); /* Warm tropical accent */
    --coral-hover: hsl(10, 80%, 50%); /* Darker coral for hover */
    --off-white: lab(95% 0 10); /* Creamy background */
    --light-off-white: lab(90% 0 5); /* Cooler off-white */
    --text-color: hsl(160, 50%, 15%); /* Readable teal */
    --header-bg: #4DD0E1; /* Medium blue-green */
    --footer-bg: #00ACC1; /* Dark blue-green */
    --feature-bg-light: #E0F7FA; /* Light aqua */
    --feature-bg-medium: #B2EBF2; /* Medium aqua */
    --testimonial-bg: #80DEEA; /* Soft teal */
    --soft-green: #E6F3E6; /* Chatbot background */
    --error: #E63946; /* Error messages */

    /* Shadows and Transitions */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.15);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.25);
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Progress Bar */
    --progress-bar-bg: var(--aqua-blue);
    --progress: 25%; /* Default progress */
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--off-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--aqua-blue);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 2rem;
}

/* Reusable Classes */
.card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.btn, .cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--coral), var(--coral-hover));
    color: #fff;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before, .cta-button:hover::before {
    left: 100%;
}

.btn:hover, .cta-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

.cta-button.secondary {
    background: var(--teal-green);
}

.cta-button.secondary:hover {
    background: hsl(160, 50%, 15%);
}

.form-input {
    padding: 1rem;
    border: 2px solid var(--teal-green);
    border-radius: 0.5rem;
    width: 100%;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--coral);
    box-shadow: 0 0 8px rgba(255, 99, 71, 0.3);
    outline: none;
}

/* Header Styles */
.sticky-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--teal-green));
    backdrop-filter: blur(6px);
    color: #fff;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sticky-header.scrolled {
    background: rgba(0, 105, 148, 0.95);
    padding: 0.5rem 1rem;
}

.sticky-header.hidden {
    transform: translateY(-100%);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transition: var(--transition-slow);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.brand h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

nav#main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav#main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

nav#main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--coral);
    transition: width 0.3s ease;
}

nav#main-nav ul li a:hover::after, nav#main-nav ul li a.active::after {
    width: 100%;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
    border-radius: 1rem;
    padding: 1rem;
    min-width: 180px;
    z-index: 1;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 0.75rem 1rem;
    display: block;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--feature-bg-light);
    color: var(--aqua-blue);
    transform: translateX(5px);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    transform: rotate(180deg);
}

/* Hero Section */
.hero, .hero-section, .hero.parallax {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero.parallax {
    background-attachment: fixed;
}

.hero-bg, .aurora-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 208, 225, 0.9), rgba(255, 99, 71, 0.7), rgba(255, 215, 0, 0.8));
    background-size: 200% 200%;
    animation: aurora 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes aurora {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay, .hero-content {
    position: relative;
    z-index: 2;
    background: rgba(0, 50, 50, 0.6);
    backdrop-filter: blur(6px);
    padding: 3rem;
    border-radius: 1.5rem;
    max-width: 800px;
    width: 90%;
    color: #fff;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 2rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 15;
}

.carousel-prev, .carousel-next {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-prev:hover, .carousel-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-5px); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

.shake-button {
    animation: shake 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .pulse, .shake-button, .btn, .cta-button, .logo, .aurora-bg {
        animation: none;
        transition: none;
    }
}

/* Booking Section */
.booking, .book-table, .book-activity {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, var(--off-white), var(--light-off-white));
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: var(--progress);
    height: 4px;
    background: var(--progress-bar-bg);
    z-index: 1;
    transition: width 0.5s ease;
}

.progress-step {
    flex: 1;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    background: var(--coral);
    color: #fff;
    border-radius: 0.5rem;
}

.progress-step.step-check.visible {
    color: var(--aqua-blue);
}

.animated-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slide-in 0.5s ease;
}

@keyframes slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#availability-calendar {
    max-width: 600px;
    margin: 0 auto;
    background: var(--feature-bg-light);
    border-radius: 0.8rem;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.room-previews {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.room-preview {
    flex: 1;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    max-width: 300px;
}

.room-preview:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.view-360, .view-ar {
    background: var(--aqua-blue);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    margin-top: 0.75rem;
    transition: var(--transition);
}

.view-ar {
    background: var(--coral);
}

.view-360:hover, .view-ar:hover {
    transform: scale(1.1);
}

.payment-details {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--feature-bg-light);
    border-radius: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.discount-wheel {
    text-align: center;
    margin: 2rem 0;
}

#discount-wheel {
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: transform 4s ease-out;
}

.discount-result {
    color: var(--aqua-blue);
    font-weight: 600;
    margin-top: 1rem;
}

.form-error {
    color: var(--error);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.form-success {
    color: var(--aqua-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Testimonials Section */
.testimonials {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--testimonial-bg), rgba(255, 255, 255, 0.5));
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    padding: 2rem;
}

.testimonial p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.author {
    font-size: 1.2rem;
    color: var(--coral);
    font-weight: 600;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.badge {
    height: 60px;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.1);
}

/* News Ticker */
.news-ticker {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ticker-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.news-ticker h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #00ff99;
    text-shadow: 0 0 15px rgba(0, 255, 153, 0.7);
    margin-bottom: 1.5rem;
}

.ticker-wrapper {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 0;
    box-shadow: 0 0 20px rgba(0, 255, 153, 0.2);
}

.ticker-content {
    display: flex;
    animation: ticker-scroll 20s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 2rem;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.ticker-item:hover {
    background: rgba(0, 255, 153, 0.2);
}

.ticker-label {
    background: #00ccff;
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: 'Orbitron', sans-serif;
}

.ticker-title {
    font-size: 1.2rem;
    color: #00ff99;
}

.ticker-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Chatbot */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

#chatbot-header {
    background: var(--aqua-blue);
    color: #fff;
    padding: 1rem;
    border-radius: 1rem 1rem 0 0;
    text-align: center;
    font-weight: 600;
}

#chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chatbot-message {
    margin: 0.5rem 0;
    padding: 0.8rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.chatbot-message.bot {
    background: var(--soft-green);
    color: #333;
}

.chatbot-message.user {
    background: var(--coral);
    color: #fff;
    margin-left: auto;
    text-align: right;
}

#chatbot-input {
    display: flex;
    padding: 0.8rem;
    border-top: 1px solid #ccc;
}

#chatbot-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem 0 0 0.5rem;
    outline: none;
}

#chatbot-input button {
    padding: 0.8rem 1.5rem;
    background: var(--aqua-blue);
    color: #fff;
    border: none;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    transition: var(--transition);
}

#chatbot-input button:hover {
    background: var(--coral);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .room-previews {
        flex-direction: column;
        align-items: center;
    }
    .room-preview {
        max-width: 100%;
    }
    .progress-bar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    nav#main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: linear-gradient(135deg, var(--teal-green), var(--aqua-blue));
        backdrop-filter: blur(6px);
        transition: right 0.4s ease;
    }
    nav#main-nav.active {
        display: block;
        right: 0;
    }
    nav#main-nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }
    .hero {
        height: 60vh;
    }
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    .booking, .testimonials {
        padding: 2rem;
        margin: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 80px;
        height: 80px;
    }
    .brand h1 {
        font-size: 1.8rem;
    }
    #chatbot-container {
        width: 280px;
        height: 360px;
    }
}