<!DOCTYPE html>
<html lang="en">
<head>
    <title>Sales Basket ::Indraprastha Resorts</title>
    <link rel="icon" href="images/icon.webp" type="image/gif" sizes="16x16">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="Experience luxury amidst nature at Indraprastha Resorts. Your perfect getaway in the hills.">
    <meta name="keywords" content="resort, luxury stay, nature resort, hill station, vacation">
    <meta name="author" content="Indraprastha Resorts">
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
    
    <!-- CSS Files -->
    <link href="css/bootstrap.min.css" rel="stylesheet" type="text/css" id="bootstrap">
    <link href="css/plugins.css" rel="stylesheet" type="text/css">
    <link href="css/swiper.css" rel="stylesheet" type="text/css">
    <link href="css/style.css" rel="stylesheet" type="text/css">
    <link href="css/coloring.css" rel="stylesheet" type="text/css">
    <link href="css/swiper-custom-1.css" rel="stylesheet" type="text/css">
    <link href="css/colors/scheme-01.css" id="colors" rel="stylesheet" type="text/css">
    <link href="css/datepicker.css" rel="stylesheet" type="text/css">
    <link href="css/resort-styles.css" rel="stylesheet" type="text/css">

</head>

<body>
    <?php include 'header.php'; ?>
<!-- HERO SECTION -->
<section class="lux-hero">
    <div class="lux-hero-overlay"></div>

    <div class="container">
        <div class="lux-hero-content">
            <h1 class="lux-hero-title" style="color:white;">Indraprastha Resorts</h1>
            <p class="lux-hero-subtitle">Luxury Living in the Heart of the Himalayas</p>

            <div class="lux-hero-actions">
                <a href="contact.php" class="lux-btn lux-btn-primary">Reserve Your Stay</a>
                <a href="gallery.php" class="lux-btn lux-btn-outline">Explore Gallery</a>
            </div>
        </div>
    </div>
</section>

<!-- ABOUT / WELCOME -->
<section class="lux-about">
    <div class="lux-bg-pattern"></div>

    <div class="container">
        <div class="row justify-content-center">
            <div class="col-lg-10 text-center">

                <div class="lux-header">
                    <span class="lux-eyebrow">Welcome To</span>
                    <h2 class="lux-main-title">Indraprastha Resorts</h2>
                    <div class="lux-divider"></div>
                    <span class="lux-tagline">Where Nature Meets Comfort</span>
                </div>

                <p class="lux-description">
                    Hidden amidst the pristine hills of Mukteshwar, Indraprastha Resorts is a sanctuary of peace,
                    offering breathtaking Himalayan views, lush orchards, and an unforgettable luxury experience.
                </p>

                <div class="lux-feature-grid">
                    <div class="lux-feature-card">
                        <i class="fa-solid fa-mountain"></i>
                        <h4>Himalayan Views</h4>
                    </div>

                    <div class="lux-feature-card">
                        <i class="fa-solid fa-tree"></i>
                        <h4>Nature Immersed</h4>
                    </div>

                    <div class="lux-feature-card">
                        <i class="fa-solid fa-hotel"></i>
                        <h4>Premium Rooms</h4>
                    </div>

                    <div class="lux-feature-card">
                        <i class="fa-solid fa-utensils"></i>
                        <h4>Fine Dining</h4>
                    </div>
                </div>

                <a href="#gallery" class="lux-btn lux-btn-secondary">
                    Discover More <i class="fa-solid fa-arrow-right"></i>
                </a>

            </div>
        </div>
    </div>
</section>




<!-- ===============================
     LOCATION & COTTAGE SECTION
================================ -->
<section class="location-section">
  <div class="location-container">
    <!-- IMAGE COLUMN -->
    <div class="location-image-wrapper" data-aos="fade-right" data-aos-duration="800">
      <div class="image-overlay"></div>
      <img src="images/villa-3d.jpg" alt="Luxury Cottage" class="location-img">
      <div class="location-badge">
        <i class="fas fa-map-marker-alt"></i>
        <span>Prime Location</span>
      </div>
    </div>

    <!-- CONTENT COLUMN -->
    <div class="location-content" data-aos="fade-left" data-aos-duration="800">
      <div class="section-header">
        <span class="section-tag">Why Choose Us</span>
        <h2 class="section-title">Perfect Location & Premium Living</h2>
        <div class="title-underline"></div>
      </div>

      <p class="location-desc">
        Nestled in the heart of the Himalayas, our villas and cottages offer a perfect blend of luxury and nature's tranquility. Every detail is crafted to provide unparalleled comfort and elegance.
      </p>

      <div class="features-grid">
        <!-- LOCATION FEATURES -->
        <div class="feature-group">
          <h3 class="feature-title">
            <i class="fas fa-map-marked-alt"></i>
            Prime Location
          </h3>
          <ul class="feature-list">
            <li>
              <i class="fas fa-check-circle"></i>
              <span>10 Min to Market, School & Hospital</span>
            </li>
            <li>
              <i class="fas fa-check-circle"></i>
              <span>20 Min to IVRI Campus & Temples</span>
            </li>
            <li>
              <i class="fas fa-check-circle"></i>
              <span>Mukteshwar Dham & Chauli Ki Jali nearby</span>
            </li>
            <li>
              <i class="fas fa-check-circle"></i>
              <span>2 Hrs to Nainital & Kathgodam</span>
            </li>
          </ul>
        </div>

        <!-- COTTAGE FEATURES -->
        <div class="feature-group">
          <h3 class="feature-title">
            <i class="fas fa-home"></i>
            2 BHK Cottage Features
          </h3>
          <ul class="feature-list">
            <li>
              <i class="fas fa-check-circle"></i>
              <span>1000 sq.ft Plot | 600 sq.ft Covered</span>
            </li>
            <li>
              <i class="fas fa-check-circle"></i>
              <span>Fully Furnished Living Space</span>
            </li>
            <li>
              <i class="fas fa-check-circle"></i>
              <span>Modular Kitchen with Modern Appliances</span>
            </li>
            <li>
              <i class="fas fa-check-circle"></i>
              <span>LED TV, DTH, Fridge & Wardrobe</span>
            </li>
          </ul>
        </div>
      </div>

      <div class="location-cta">
        <a href="#contact" class="cta-btn primary">
          <i class="fas fa-phone-alt"></i> Contact for Booking
        </a>
        <a href="#gallery" class="cta-btn secondary">
          <i class="fas fa-images"></i> View Gallery
        </a>
      </div>
    </div>
  </div>
</section>

<!-- Add these in your head section if not already present -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
  // Initialize AOS
  document.addEventListener('DOMContentLoaded', function() {
    AOS.init({
      duration: 800,
      once: true
    });
  });
</script>

<!-- ===============================
   NEARBY DESTINATIONS SHOWCASE
================================ -->
<style>
/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* SECTION */
.attractions-section {
  padding: 110px 20px;
  background: linear-gradient(135deg, #f8fafc, #eef4f0);
}

/* CONTAINER */
.attractions-wrap {
  max-width: 1300px;
  margin: auto;
}

/* HEADER */
.attractions-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.attractions-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 14px;
}

.attractions-subtitle {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.8;
}

/* GRID */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD */
.attraction-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  transition: all .45s ease;
  position: relative;
}

.attraction-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
}

/* IMAGE */
.attraction-media {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.attraction-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.attraction-card:hover img {
  transform: scale(1.12);
}

/* IMAGE OVERLAY */
.attraction-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent 65%);
}

/* CONTENT */
.attraction-info {
  padding: 22px;
  text-align: center;
}

.attraction-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

/* BADGES */
.attraction-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #f59e0b;
  color: #fff;
  padding: 6px 14px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}

.attraction-tag.spiritual { background: #6366f1; }
.attraction-tag.scenic { background: #10b981; }
.attraction-tag.nature { background: #22c55e; }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .attractions-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .attractions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .attractions-grid { grid-template-columns: 1fr; }
  .attraction-media { height: 210px; }
}
</style>

<section class="attractions-section">
  <div class="attractions-wrap">

    <div class="attractions-header">
      <h2 class="attractions-title">Explore Nearby Attractions</h2>
      <p class="attractions-subtitle">
        Discover spiritual landmarks, scenic lakes, hill towns, and hidden natural wonders
        located near our resort.
      </p>
    </div>

    <div class="attractions-grid">

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/kaichi-dham.jpg" alt="Kaichi Dham Temple">
        </div>
        <span class="attraction-tag spiritual">Spiritual</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Kaichi Dham Temple (Nainital)</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/mukteshwar.jpg" alt="Mukteshwar">
        </div>
        <span class="attraction-tag scenic">Hill View</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Mukteshwar</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/ivri-campus.jpg" alt="IVRI Campus">
        </div>
        <div class="attraction-info">
          <h3 class="attraction-name">IVRI Campus</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/almora.jpg" alt="Almora">
        </div>
        <span class="attraction-tag scenic">Scenic Town</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Almora</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/ranikhet.jpg" alt="Ranikhet">
        </div>
        <span class="attraction-tag scenic">Hill Station</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Ranikhet</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/jageshwar.jpg" alt="Jageshwar Dham">
        </div>
        <span class="attraction-tag spiritual">Spiritual</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Jageshwar Dham</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/bageshwar.jpg" alt="Bageshwar Dham">
        </div>
        <span class="attraction-tag spiritual">Temple Town</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Bageshwar Dham</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/dhokaney-waterfall.jpg" alt="Dhokaney Waterfall">
        </div>
        <span class="attraction-tag nature">Waterfall</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Dhokaney Waterfall</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/GulabGhati.png" alt="Gulab Ghati">
        </div>
        <span class="attraction-tag nature">Valley</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Gulab Ghati</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/bhowali.jpg" alt="Bhowali">
        </div>
        <div class="attraction-info">
          <h3 class="attraction-name">Bhowali</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/bhimtal-lake-nainital.jpg" alt="Bhimtal">
        </div>
        <span class="attraction-tag scenic">Lake</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Bhimtal</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/Naukuchiatal.jpg" alt="Naukuchiatal">
        </div>
        <span class="attraction-tag scenic">Lake</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Naukuchiatal</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/Saat Tal.png" alt="Saat Tal">
        </div>
        <span class="attraction-tag scenic">Lake Group</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Saat Tal</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/Mahadev_temple.jpg" alt="Mahadev Temple">
        </div>
        <span class="attraction-tag spiritual">Temple</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Mahadev Temple</h3>
        </div>
      </div>

      <div class="attraction-card">
        <div class="attraction-media">
          <img src="images/ChaulikiJali.png" alt="Chauli ki Jali">
        </div>
        <span class="attraction-tag nature">Adventure</span>
        <div class="attraction-info">
          <h3 class="attraction-name">Chauli ki Jali</h3>
        </div>
      </div>

    </div>
  </div>
</section>

<div class="clearfix"></div>




<!-- ===============================
   RESORT CLUB HOUSE FEATURES
================================ -->
<style>
/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* SECTION */
.clubhouse-section {
  padding: 120px 20px;
  background: linear-gradient(135deg, #0f766e, #0b4f4a);
  color: #ecfeff;
}

/* CONTAINER */
.clubhouse-wrap {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

/* LEFT GRID */
.clubhouse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* CARD */
.club-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform: translateY(40px);
  opacity: 0;
  animation: fadeUp 1s ease forwards;
  transition: transform .4s ease, box-shadow .4s ease;
}

.club-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 35px 80px rgba(0,0,0,0.35);
}

.club-card:nth-child(2) { animation-delay: .1s; }
.club-card:nth-child(3) { animation-delay: .2s; }
.club-card:nth-child(4) { animation-delay: .3s; }
.club-card:nth-child(5) { animation-delay: .4s; }
.club-card:nth-child(6) { animation-delay: .5s; }

.club-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* CARD TITLE */
.club-card h4 {
  padding: 12px;
  font-size: .9rem;
  font-weight: 700;
  color: #0b4f4a;
  background: linear-gradient(135deg, #5eead4, #ecfeff);
}

/* RIGHT CONTENT */
.clubhouse-content span {
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5eead4;
}

.clubhouse-content h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 14px 0 18px;
  color: #ffffff;
}

.clubhouse-content h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  margin-top: 10px;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 20px;
}

.clubhouse-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ecfeff;
  max-width: 520px;
  margin-bottom: 28px;
}

/* FEATURES LIST */
.clubhouse-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}

.clubhouse-features li {
  list-style: none;
  font-size: .95rem;
  position: relative;
  padding-left: 28px;
  color: #f0fdfa;
}

.clubhouse-features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #f97316;
  font-weight: 700;
}

/* ANIMATION */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .clubhouse-wrap {
    grid-template-columns: 1fr;
  }

  .clubhouse-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .clubhouse-grid {
    grid-template-columns: 1fr;
  }
}
</style>

<section class="clubhouse-section">
  <div class="clubhouse-wrap">

    <!-- LEFT GRID -->
    <div class="clubhouse-grid">
      <div class="club-card">
        <img src="images/gym.jpg" alt="Gym">
        <h4>Gymnasium</h4>
      </div>

      <div class="club-card">
        <img src="images/club-house.jpg" alt="Club House">
        <h4>Club House</h4>
      </div>

      <div class="club-card">
        <img src="images/games.jpg" alt="Games Zone">
        <h4>Games Zone</h4>
      </div>

      <div class="club-card">
        <img src="images/restaurant.jpg" alt="Restaurant">
        <h4>Restaurant</h4>
      </div>

      <div class="club-card">
        <img src="images/yoga.jpg" alt="Yoga">
        <h4>Yoga & Meditation</h4>
      </div>

      <div class="club-card">
        <img src="images/spa.jpg" alt="Spa">
        <h4>Spa & Wellness</h4>
      </div>
    </div>

    <!-- RIGHT CONTENT -->
    <div class="clubhouse-content">
      <span>Special Features Of</span>
      <h2>Indraprasth Resort Club House</h2>
      <p>
        Experience a lifestyle where luxury meets nature.
        Designed for comfort, wellness and recreation,
        our clubhouse offers world-class amenities in a serene hill environment.
      </p>

      <ul class="clubhouse-features">
        <li>Secured Gated Community</li>
        <li>24 Hours Water Supply</li>
        <li>Parking Space</li>
        <li>Green Lush Surroundings</li>
        <li>Fruit Orchards</li>
        <li>Departmental Store</li>
        <li>Open Cafeteria</li>
        <li>Eco-Friendly Infrastructure</li>
        <li>Electricity</li>
        <li>Water Connection to Each Plot</li>
        <li>Avenue Plantation</li>
        <li>Bonfire & Barbecue Area</li>
        <li>Open Park</li>
        <li>Rain Water Harvesting</li>
      </ul>
    </div>

  </div>
</section>



<section class="gallery-section">
  <h2>Nature Meets Luxury: Scenic Farmhouse Views</h2>

  <div class="gallery-grid">
    <img src="images/img1.jpg" onclick="openSlider(0)">
    <img src="images/img2.jpg" onclick="openSlider(1)">
    <img src="images/img3.jpg" onclick="openSlider(2)">
    <img src="images/img4.jpg" onclick="openSlider(3)">
  </div>
</section>

<!-- Slider Popup -->
<div class="slider-overlay" id="slider">
  <span class="close-btn" onclick="closeSlider()">×</span>
  <span class="nav prev" onclick="changeSlide(-1)">❮</span>
  <img id="slider-img">
  <span class="nav next" onclick="changeSlide(1)">❯</span>
</div>



<!-- Add Font Awesome in the head section if not already present -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">

<!-- WhatsApp CTA Section -->
<section class="whatsapp-cta py-4" style="background-color: #f8f9fa;">
    <div class="container">
        <div class="row align-items-center">
            <div class="col-md-8 text-center text-md-start">
                <h3 class="mb-3 mb-md-0" style="color: #1A9A9A; font-weight: 700; font-size: 1.5rem;">
                    <i class="fab fa-whatsapp me-2" style="color: #25D366; font-size: 1.8rem;"></i>
                    Get Residential Plot At ₹999
                </h3>
            </div>
            <div class="col-md-4 text-center text-md-end mt-3 mt-md-0">
                <a href="https://wa.me/919876543210?text=I'm%20interested%20in%20the%20Residential%20Plot%20at%20₹999" 
                   class="btn whatsapp-btn" 
                   target="_blank"
                   style="white-space: nowrap;">
                    <i class="fab fa-whatsapp me-2"></i>Know More About It
                </a>
            </div>
        </div>
    </div>
</section>

<style>
    .whatsapp-cta {
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        margin: 40px 0;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    .whatsapp-btn {
        background: linear-gradient(135deg, #1A9A9A 0%, #0D7A7A 100%);
        color: white !important;
        border: none;
        padding: 12px 25px;
        border-radius: 30px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s ease;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .whatsapp-btn:hover {
        background: linear-gradient(135deg, #FF6B35 0%, #e65c2b 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        color: white !important;
    }
    
    @media (max-width: 767px) {
        .whatsapp-cta .row > div {
            text-align: center !important;
        }
        .whatsapp-btn {
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
        }
    }
</style>




<?php include 'footer.php'; ?>
       <!-- Javascript Files
    ================================================== -->
    <script src="js/vendors.js"></script>
    <script src="js/designesia.js"></script>
    <script src="js/custom-marquee.js"></script>
    <script src="js/custom-datepicker.js"></script>
    <script src="js/validation-visit.js"></script>

    <!-- swiper slider -->
    <script src="js/swiper.js"></script>
    <script src="js/custom-swiper-1.js"></script>


    <script>
const images = [
    "images/img1.jpg",
    "images/img2.jpg",
    "images/img3.jpg",
    "images/img4.jpg"
];

let currentIndex = 0;
const slider = document.getElementById("slider");
const sliderImg = document.getElementById("slider-img");

function openSlider(index) {
    currentIndex = index;
    sliderImg.src = images[currentIndex];
    slider.style.display = "flex";
    // Trigger reflow to enable the fade-in transition
    void slider.offsetWidth;
    slider.classList.add("show");
    // Disable scroll when modal is open
    document.body.style.overflow = 'hidden';
}

function closeSlider() {
    slider.classList.remove("show");
    // Wait for the fade-out transition to complete before hiding
    setTimeout(() => {
        slider.style.display = "none";
        // Re-enable scroll
        document.body.style.overflow = 'auto';
    }, 300);
}

function changeSlide(step) {
    currentIndex += step;
    if (currentIndex < 0) currentIndex = images.length - 1;
    if (currentIndex >= images.length) currentIndex = 0;
    sliderImg.style.opacity = 0;
    setTimeout(() => {
        sliderImg.src = images[currentIndex];
        sliderImg.style.opacity = 1;
    }, 200);
}

// Close modal when clicking outside the image
slider.addEventListener('click', function(e) {
    if (e.target === slider) {
        closeSlider();
    }
});

// Keyboard navigation
document.addEventListener('keydown', function(e) {
    if (slider.style.display === "flex") {
        if (e.key === 'Escape') {
            closeSlider();
        } else if (e.key === 'ArrowLeft') {
            changeSlide(-1);
        } else if (e.key === 'ArrowRight') {
            changeSlide(1);
        }
    }
});

// Smooth image loading
sliderImg.onload = function() {
    this.style.opacity = 1;
};
</script>


</body>
</html>
