/* style.css */

/* ------------------- */
/* 1. Global Styles & Variables
/* ------------------- */
:root {
    --primary: #000B16;
    --secondary: #D4AF37;
    --accent: #FFD700;
    --dark: #061017;
    --light: #071826;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--light) 100%);
    color: #f9f9f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-playfair {
    font-family: 'Playfair Display', serif;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------- */
/* 2. Common Components
/* ------------------- */

/* Glass Morphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-dark {
    background: rgba(0, 11, 22, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Header & Navigation */
header {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background-color: rgba(0, 11, 22, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.current-page {
    color: var(--secondary) !important;
    font-weight: 600;
    position: relative;
}

.current-page::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Mobile Menu */
#mobileMenu {
    background: linear-gradient(135deg, var(--dark) 0%, var(--light) 100%);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenu.active {
    transform: translateX(0);
}

#mobileMenuBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#mobileMenuBackdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Floating Buttons */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.whatsapp-btn {
    left: 30px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    animation: pulse-whatsapp 2s infinite;
}

.misty-bot-btn {
    right: 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    animation: float-bot 3s ease-in-out infinite;
}

/* CTA Button */
.cta-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.cta-btn:hover::before {
    width: 300px;
    height: 300px;
}


/* ------------------- */
/* 3. Page-Specific Styles
/* ------------------- */

/* --- Index Page (index.html) --- */
.room-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.room-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.room-card:hover::before {
    left: 100%;
}

.room-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
}

.room-card-image {
    transition: transform 0.6s ease;
}

.room-card:hover .room-card-image {
    transform: scale(1.1);
}

.amenity-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.attraction-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
}

.attraction-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.3);
}

.attraction-card img {
    transition: transform 0.5s ease;
}

.attraction-card:hover img {
    transform: scale(1.1);
}

/* --- Rooms Page (rooms.html) --- */
.room-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
}

.room-gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.room-gallery img:hover {
    transform: scale(1.05);
}

.room-gallery img:first-child {
    grid-column: span 2;
    grid-row: span 2;
    height: 368px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.amenity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.amenity-icon i {
    color: var(--secondary);
    font-size: 18px;
}

.highlight-tag {
    padding: 8px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}


/* --- Gallery Page (gallery.html) --- */
.gallery-page-main {
    padding-top: 150px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
}

.filter-section {
    position: sticky;
    top: 80px;
    z-index: 40;
    background: rgba(6, 16, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.filter-btn {
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #f9f9f9;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary), #FFD700);
    color: var(--primary);
    border-color: var(--secondary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* --- Cafe Page (cafe.html) --- */
.menu-item {
    transition: all 0.3s ease;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:last-child {
    border-bottom: none;
}

/* --- FAQ Page (faq.html) --- */
.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #d1d5db;
    padding: 0 10px;
}

.faq-answer.active {
    max-height: 500px; /* Adjust as needed */
    padding-bottom: 20px;
}

mark {
    background-color: var(--secondary);
    color: var(--primary);
    border-radius: 3px;
    padding: 0 4px;
}

/* --- Policy Page (policy.html) --- */
.toc {
    position: sticky;
    top: 120px;
}

.toc a {
    display: block;
    padding: 12px 18px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 8px 8px 0;
}

.toc a.active {
    color: var(--secondary);
    border-color: var(--secondary);
    background: rgba(212, 175, 55, 0.1);
}

.policy-section {
    scroll-margin-top: 120px;
}

.policy-section h2 {
    color: var(--secondary);
}

.policy-section li:before {
    content: '•';
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Events Page (events.html) --- */
.event-card {
    transition: all 0.4s ease;
    position: relative;
}

/* ------------------- */
/* 4. Animations
/* ------------------- */
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

@keyframes float-bot {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ------------------- */
/* 5. Media Queries
/* ------------------- */
@media (max-width: 1024px) {
    .toc {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .floating-btn {
        width: 55px;
        height: 55px;
    }
    .room-gallery {
        grid-template-columns: 1fr;
    }
    .room-gallery img:first-child {
        grid-column: 1;
        grid-row: 1;
        height: 250px;
    }
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    .gallery-page-main {
        padding-top: 200px; /* More padding for mobile filter */
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.75rem;
    }
    .filter-section {
        top: 80px;
    }
}