/* ==========================================================================
   Luxury Resort Master Stylesheet - Dynamic Rainbow Color Shift Edition
   ========================================================================== */

:root {
    --bg-light: #fbf9f5;             /* Off-white Pearl */
    --bg-card: #ffffff;
    --text-main: #1d232a;            
    --text-muted: #5e6670;
    --accent-warm: #f4f0e8;          
    --border-light: #e2d9cc;
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .font-playfair {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= Dynamic Multi-Color Shift Animations (5+ Colors Loop) ================= */

/* 1. Full Multi-Color Background Animation (Red -> Pink -> Green -> Emerald -> Cyan -> Purple -> Red) */
@keyframes multiColorBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 2. Text / Border Multi-Color Animation */
@keyframes multiColorText {
    0%   { color: #10b981; border-color: #10b981; } /* Emerald Green */
    20%  { color: #ec4899; border-color: #ec4899; } /* Vibrant Pink */
    40%  { color: #8b5cf6; border-color: #8b5cf6; } /* Royal Purple */
    60%  { color: #3b82f6; border-color: #3b82f6; } /* Ocean Blue */
    80%  { color: #f59e0b; border-color: #f59e0b; } /* Amber Gold */
    100% { color: #10b981; border-color: #10b981; }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up-delay {
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
    opacity: 0;
}

.animate-float {
    animation: floatAnimation 4s ease-in-out infinite;
}

/* ================= 1. BUTTONS WITH DYNAMIC MULTI-COLOR SHIFT ================= */

/* Primary Button (Header & Main CTA) - Multi Color Loop */
.btn-primary {
    position: relative;
    background: linear-gradient(270deg, #10b981, #ec4899, #8b5cf6, #3b82f6, #f59e0b, #ef4444);
    background-size: 600% 600%;
    animation: multiColorBG 8s ease infinite;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.5);
}

/* Search / Availability Check Button */
.btn-search {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    background: linear-gradient(270deg, #10b981, #3b82f6, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: multiColorBG 6s ease infinite;
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Outline Button (About Us / Read More) */
.btn-outline {
    position: relative;
    border: 2px solid #10b981;
    animation: multiColorText 6s infinite;
    padding: 10px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    background: transparent;
    transition: all 0.4s ease;
}

.btn-outline:hover {
    background: linear-gradient(270deg, #ec4899, #8b5cf6, #10b981);
    background-size: 400% 400%;
    animation: multiColorBG 4s ease infinite;
    color: #ffffff !important;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

/* Card Button (View Details) - Changed from Black to Multi-Color Light Green / Pink Loop */
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(270deg, #10b981, #059669, #ec4899, #8b5cf6);
    background-size: 400% 400%;
    animation: multiColorBG 6s ease infinite;
    color: #ffffff !important;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    transition: all 0.4s ease;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.4);
}

/* ================= 2. HEADLINES & SUBTITLES DYNAMIC ANIMATION ================= */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
    animation: multiColorText 6s infinite; /* Subtitles auto color shift */
}

.section-title {
    font-size: 34px;
    color: var(--text-main);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================= 3. Header Styles ================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(251, 249, 245, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo {
    max-height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #ec4899);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    animation: multiColorText 4s infinite;
}

/* ================= 4. Hero & Centered Booking Section ================= */
.hero {
    position: relative;
    height: 85vh;
    min-height: 580px;
    background: linear-gradient(rgba(29, 35, 42, 0.35), rgba(29, 35, 42, 0.5)), url('https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
    animation: multiColorText 5s infinite;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.hero-desc {
    font-size: 16px;
    color: #f3f4f6;
    font-weight: 300;
    margin-bottom: 20px;
}

/* Desktop Booking Bar */
.booking-search-bar {
    position: absolute;
    bottom: -45px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 1050px;
    background: #ffffff;
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    border: 1.5px solid #e2d9cc;
    z-index: 10;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: end;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background-color: #fbf8f3;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: #10b981;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.hero-spacer {
    height: 90px;
}

/* ================= 5. About Section ================= */
.about-section {
    padding: 60px 0 90px 0;
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img-box {
    position: relative;
}

.about-img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: linear-gradient(270deg, #10b981, #ec4899, #8b5cf6);
    background-size: 400% 400%;
    animation: multiColorBG 6s ease infinite;
    color: #ffffff;
    padding: 22px 28px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.experience-badge h3 {
    font-size: 30px;
    line-height: 1;
}

.experience-badge p {
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 1px;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0 35px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.feature-item i {
    animation: multiColorText 5s infinite;
}

/* ================= 6. Rooms Section ================= */
.rooms-section {
    background-color: var(--accent-warm);
    padding: 90px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.room-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-soft);
}

.room-img-wrapper {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.room-card:hover .room-img {
    transform: scale(1.08);
}

.room-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(270deg, #10b981, #ec4899, #3b82f6);
    background-size: 400% 400%;
    animation: multiColorBG 5s ease infinite;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.room-body {
    padding: 25px;
}

.room-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.room-meta i {
    animation: multiColorText 5s infinite;
    margin-right: 4px;
}

.room-title {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.room-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.room-footer {
    padding: 0 25px 25px 25px;
}

/* ================= 7. Amenities Section ================= */
.amenities-section {
    padding: 90px 0;
    background-color: var(--bg-light);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.amenity-card {
    background: var(--bg-card);
    padding: 35px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.amenity-icon {
    width: 65px;
    height: 65px;
    background-color: var(--accent-warm);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 26px;
    border: 1px solid var(--border-light);
}

.amenity-icon i {
    animation: multiColorText 5s infinite;
}

.amenity-title {
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text-main);
}

.amenity-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= 8. Gallery Section ================= */
.gallery-section {
    background: var(--accent-warm);
    padding: 90px 0;
    border-top: 1px solid var(--border-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    height: 230px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ================= 9. Footer Section ================= */
.footer {
    position: relative;
    background: url('https://images.unsplash.com/photo-1540555700478-4be289fbecef?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    color: #4a423a;
    padding: 85px 0 30px 0;
    font-size: 13px;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(251, 249, 245, 0.94), rgba(244, 240, 232, 0.97));
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-site-logo {
    max-height: 45px;
    width: auto;
    margin-bottom: 15px;
}

.footer-about {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-title {
    color: var(--text-main);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    animation: multiColorText 4s infinite;
}

.contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
    color: var(--text-muted);
}

.contact-list i {
    animation: multiColorText 5s infinite;
    margin-top: 3px;
}

.newsletter-desc {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 12px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: #10b981;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(270deg, #10b981, #ec4899, #8b5cf6, #3b82f6);
    background-size: 400% 400%;
    animation: multiColorBG 6s ease infinite;
    border: none;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-light);
    padding-top: 25px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= Responsive Layout ================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    .booking-form {
        grid-template-columns: repeat(2, 1fr);
    }
    .booking-search-bar {
        bottom: -70px;
    }
    .hero-spacer {
        height: 100px;
    }
    .about-grid, .rooms-grid, .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .amenities-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .nav-menu {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 480px;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 30px;
    }

    .booking-search-bar {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 20px;
        padding: 20px 18px;
        box-shadow: var(--shadow-card);
    }

    .booking-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-spacer {
        display: none;
    }

    .about-grid, .rooms-grid, .amenities-grid, .footer-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 300px;
    }

    .experience-badge {
        right: 10px;
        bottom: -15px;
        padding: 15px 20px;
    }
}