/* =========================================
   VARIABLES & GLOBAL THEME LOGIC
   ========================================= */
:root {
    --gold: #dcb358;
    --gold-dark: #b89547;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --bg-primary: #fdfbf7;
    --bg-secondary: #ffffff;
    --text-main: #4a4a4a;
    --text-heading: #1a1a1a;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --border-color: rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --text-main: #cccccc;
    --text-heading: #ffffff;
    --nav-bg: rgba(10, 10, 10, 0.95);
    --card-bg: #141414;
    --border-color: rgba(255,255,255,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-primary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); font-weight: 600; transition: color 0.4s ease; }
span { font-style: italic; color: var(--gold); }

.section-subtitle {
    font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
    margin-bottom: 1rem; display: flex; align-items: center; gap: 10px;
}
.section-subtitle::before, .center-subtitle::after {
    content: ""; width: 30px; height: 1px; background-color: var(--gold);
}
.center-subtitle { justify-content: center; }

/* --- Buttons --- */
.btn {
    padding: 12px 30px; border-radius: 30px; text-decoration: none; font-size: 0.9rem;
    font-weight: 600; letter-spacing: 1px; transition: all 0.3s ease; display: inline-block; cursor: pointer;
}
.btn-primary { background-color: var(--gold); color: #1a1a1a; border: 1px solid var(--gold); }
.btn-primary:hover { background-color: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(220,179,88,0.4); }
.btn-outline { background-color: transparent; color: #ffffff; border: 1px solid #ffffff; }
.btn-outline:hover { background-color: #ffffff; color: #1a1a1a; transform: translateY(-3px); }
.btn-outline-dark { background-color: transparent; color: var(--text-heading); border: 1px solid var(--text-heading); }
.btn-outline-dark:hover { background-color: var(--text-heading); color: var(--bg-primary); transform: translateY(-3px); }
.btn-dark { background-color: #1a1a1a; color: #ffffff; border: 1px solid #1a1a1a; }
.btn-dark:hover { background-color: #333; transform: translateY(-3px); }
.btn-text { color: var(--text-heading); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.btn-text:hover { color: var(--gold); }

/* --- Floating Buttons --- */
.floating-btn { position: fixed; bottom: 30px; z-index: 1000; text-decoration: none; border-radius: 50px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.left-btn { left: 30px; background-color: var(--gold); color: #1a1a1a; padding: 12px 25px; font-weight: 600; font-size: 0.9rem; transition: transform 0.3s ease; }
.left-btn:hover { transform: translateY(-5px); }

.whatsapp-float { 
    right: 30px; background-color: #25D366; padding: 15px; display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}
.whatsapp-float:hover { transform: scale(1.1) translateY(-5px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

/* =========================================
   SCROLL REVEAL ANIMATIONS (NEW)
   ========================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }


/* =========================================
   NAVIGATION & HEADER
   ========================================= */
.navbar { position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: var(--nav-bg); backdrop-filter: blur(10px); z-index: 999; border-bottom: 1px solid var(--border-color); transition: background-color 0.4s, padding 0.4s ease; }
.navbar.scrolled { padding: 10px 5%; box-shadow: 0 5px 20px rgba(0,0,0,0.05); } /* Nice shrink effect on scroll */

.logo-link { display: flex; align-items: center; text-decoration: none; gap: 15px; }
.nav-logo-img { height: 70px; width: auto; border-radius: 4px; transition: height 0.4s; }
.navbar.scrolled .nav-logo-img { height: 50px; }
.logo-text { font-family: var(--font-heading); font-size: 2.2rem; transition: font-size 0.4s; }
.navbar.scrolled .logo-text { font-size: 1.8rem; }
.logo-raj { color: var(--text-heading); font-weight: 700; transition: color 0.4s; }
.logo-resort { color: var(--gold); font-style: normal; }

.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.85rem; font-weight: 600; letter-spacing: 1px; transition: color 0.3s; position: relative; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--gold); transition: width 0.3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-btn { padding: 10px 25px; border: 1px solid var(--gold); border-radius: 30px; text-decoration: none; color: var(--gold); font-size: 0.85rem; font-weight: 600; transition: all 0.3s ease; }
.nav-btn:hover { background-color: var(--gold); color: #1a1a1a; transform: scale(1.05); }

/* Theme Toggle Button */
.theme-btn-custom {
    display: flex; align-items: center; justify-content: space-between; width: 140px; height: 44px;
    border-radius: 40px; border: none; cursor: pointer; padding: 4px; font-family: var(--font-body);
    font-weight: 700; font-size: 0.75rem; transition: all 0.4s ease; outline: none;
}
.theme-text { padding: 0 12px; letter-spacing: 1px; }
.theme-circle { width: 36px; height: 36px; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.4s ease; }
.theme-circle svg { width: 18px; height: 18px; stroke: currentColor; }

[data-theme="light"] .theme-btn-custom { background-color: #eeeeee; color: #1a1a1a; flex-direction: row; }
[data-theme="light"] .theme-circle { background-color: #ffffff; color: #1a1a1a; border: 1px solid #dddddd; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
[data-theme="dark"] .theme-btn-custom { background-color: #1a1a1a; color: #ffffff; flex-direction: row-reverse; border: 1px solid #333333; }
[data-theme="dark"] .theme-circle { background-color: #ffffff; color: #1a1a1a; border: 2px solid #1a1a1a; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; z-index: 1001; }
.menu-toggle .bar { width: 25px; height: 2px; background-color: var(--text-heading); margin: 4px 0; transition: all 0.3s ease; }

/* =========================================
   HERO SECTION & IMAGE SLIDER (NEW)
   ========================================= */
.hero { 
    height: 100vh; 
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; padding-top: 80px; position: relative; 
    overflow: hidden; /* Important for slider */
}

/* Background Slider container */
.hero-slider {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1); /* Starts slightly zoomed in */
    transition: opacity 1.5s ease-in-out, transform 6s linear; /* Smooth crossfade and slow pan */
}

.slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7)); /* Dark overlay for text readability */
}

.slide.active {
    opacity: 1;
    transform: scale(1); /* Smoothly zooms out */
}

/* Ensure text sits on top of slider */
.relative-z { position: relative; z-index: 2; }

.hero h1 { font-size: 5rem; color: #ffffff; line-height: 1.1; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: #ffffff; }
.hero-actions { display: flex; gap: 20px; justify-content: center; }

.stats-bar { position: absolute; bottom: 0; width: 100%; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 5%; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-item { text-align: center; color: #ffffff; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-item h3 { color: var(--gold); font-size: 2rem; margin-bottom: 5px; }
.stat-item p { font-size: 0.75rem; letter-spacing: 1px; }

/* =========================================
   PAGE SECTIONS
   ========================================= */
section { padding: 100px 5%; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-inline: auto; }
.section-header.left-align { text-align: left; margin-inline: 0; max-width: 100%; }
.section-header h2 { font-size: 3rem; margin-bottom: 20px; }

/* --- About Section --- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-images { position: relative; }
.about-images .main-img { width: 100%; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); transition: transform 0.5s ease; }
.about-images:hover .main-img { transform: scale(1.02); }
.img-badge { position: absolute; top: -20px; left: -20px; background: var(--gold); width: 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #1a1a1a; font-family: var(--font-heading); font-size: 2rem; text-align: center; line-height: 1; z-index: 3; box-shadow: 0 10px 20px rgba(220, 179, 88, 0.3); animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
.img-badge span { font-size: 0.7rem; font-family: var(--font-body); font-style: normal; letter-spacing: 1px; margin-top: 5px; }
.about-text h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 30px; }
.about-stats { display: flex; gap: 40px; margin: 40px 0; }
.about-stats strong { font-size: 1.8rem; color: var(--gold); font-family: var(--font-heading); }
.about-stats span { font-size: 0.75rem; letter-spacing: 1px; color: var(--text-main); }

/* --- Rooms Section --- */
.rooms { background: var(--bg-primary); transition: background-color 0.4s ease; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.room-card { position: relative; overflow: hidden; border-radius: 15px; background: var(--card-bg); border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; }
.room-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.room-card img, .room-card video { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.room-card:hover img, .room-card:hover video { transform: scale(1.08); }
.room-info { position: absolute; bottom: 0; width: 100%; padding: 25px; color: #fff; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); transition: padding-bottom 0.4s ease; }
.room-card:hover .room-info { padding-bottom: 35px; }
.room-info h3 { margin: 0; font-size: 22px; font-weight: 600; color: #fff; }
.badge { position: absolute; top: 15px; left: 15px; background: var(--gold); color: #1a1a1a; padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: 20px; z-index: 2; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

/* --- Events Section --- */
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.event-card { height: 400px; border-radius: 20px; background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 40px; color: #ffffff; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; cursor: pointer; }
.event-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.event-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); transition: background 0.4s ease; }
.event-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.2)); }
.event-info { position: relative; z-index: 2; transition: transform 0.4s ease; }
.event-card:hover .event-info { transform: translateY(-10px); }
.event-info p { color: var(--gold); font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 10px; }
.event-info h3 { color: #ffffff; font-size: 2rem; }

/* --- Zorko Section --- */
.zorko { padding: 0 5%; }
.zorko-container { display: grid; grid-template-columns: 1fr 1fr; background: #111111; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.zorko-image { overflow: hidden; }
.zorko-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.zorko-container:hover .zorko-image img { transform: scale(1.05); }
.zorko-content { padding: 80px 60px; color: #ffffff; display: flex; flex-direction: column; justify-content: center; }
.zorko-content h2 { color: #ffffff; font-size: 3.5rem; margin-bottom: 20px; }
.zorko-content p { color: #cccccc; margin-bottom: 30px; }
.features-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 40px; color: #dddddd; font-size: 0.9rem; }
.features-list li { color: #ffffff; display: flex; gap: 10px; align-items: center; }
.features-list li::before { content: '✦'; color: var(--gold); }
.zorko-actions { display: flex; gap: 20px; }

/* --- Testimonials Section --- */
.testimonials { background-color: var(--bg-secondary); transition: background-color 0.4s; }
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 30px; padding: 60px 80px; text-align: center; max-width: 800px; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,0.05); transition: transform 0.4s ease, background-color 0.4s, border-color 0.4s; }
.testimonial-card:hover { transform: translateY(-5px); }
.testimonial-card .stars { color: var(--gold); font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 5px; }
.testimonial-card .quote { font-family: var(--font-heading); font-size: 1.4rem; font-style: italic; color: var(--text-main); margin-bottom: 30px; line-height: 1.8; transition: color 0.4s; }
.testimonial-card .author h4 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; margin-bottom: 5px; text-transform: uppercase; color: var(--text-heading); transition: color 0.4s; }
.testimonial-card .author p { color: var(--gold); font-size: 0.8rem; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.slider-dots .dot { width: 25px; height: 8px; background: var(--border-color); border-radius: 10px; display: inline-block; cursor: pointer; transition: background 0.3s, width 0.3s; }
.slider-dots .dot.active { background: var(--gold); width: 40px; }

/* --- CTA Banner Section --- */
.cta-section { padding: 100px 5%; }
.cta-container { background: var(--gold); border-radius: 30px; padding: 80px 5%; text-align: center; box-shadow: 0 20px 40px rgba(220,179,88,0.2); }
.cta-container h2 { font-size: 3rem; margin-bottom: 20px; color: #1a1a1a; }
.cta-container p { margin-bottom: 40px; color: #1a1a1a; font-size: 1.1rem; }
.cta-buttons { display: flex; justify-content: center; align-items: center; gap: 30px; }

/* --- Footer --- */
.footer { background: #111111; color: #ffffff; padding: 80px 5% 40px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #ffffff; margin-bottom: 20px; font-family: var(--font-body); letter-spacing: 1px; font-size: 1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: #aaaaaa; text-decoration: none; transition: color 0.3s, padding-left 0.3s; display: inline-block; }
.footer ul a:hover { color: var(--gold); padding-left: 5px; }
.footer p { color: #aaaaaa; margin-bottom: 10px; }
.footer .logo-raj { color: #ffffff; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media screen and (max-width: 992px) {
    .navbar { justify-content: flex-end; }
    .logo { margin-right: auto; order: 1; }
    .nav-actions { order: 2; margin-right: 25px; } 
    .menu-toggle { display: flex; order: 3; }
    .desktop-only { display: none; }
    
    .theme-text { display: none; } 
    .theme-btn-custom { width: 44px; justify-content: center; padding: 0; }
    .theme-circle { margin: 0; }
    
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh;
        background-color: var(--bg-primary); flex-direction: column; justify-content: center;
        align-items: center; gap: 40px; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 1000;
    }
    .nav-links.active { right: 0; }
    
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    .about-grid, .zorko-container { grid-template-columns: 1fr; gap: 40px; }
    .rooms-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 3.5rem; }
    .section-header h2 { font-size: 2.5rem; }
}

@media screen and (max-width: 768px) {
    section { padding: 60px 5%; }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; padding: 0 15px; }
    .section-header h2, .about-text h2, .zorko-content h2, .cta-container h2 { font-size: 2rem; }
    .hero-actions { flex-direction: column; width: 100%; padding: 0 20px; }
    .btn { width: 100%; text-align: center; }
    
    .stats-bar { grid-template-columns: 1fr 1fr; padding: 20px 5%; row-gap: 20px; }
    .stat-item { border-right: none; }
    .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
    
    .rooms-grid, .events-grid, .footer-grid { grid-template-columns: 1fr; }
    .about-images .img-badge { width: 90px; height: 90px; font-size: 1.5rem; left: -10px; }
    .zorko-content { padding: 40px 30px; }
    .zorko-actions { flex-direction: column; }
    .cta-buttons { flex-direction: column; gap: 15px; }
    
    .testimonial-card { padding: 40px 20px; }
    .testimonial-card .quote { font-size: 1.1rem; }
    
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; padding: 10px; }
    .left-btn { display: none; }
}