:root {
  --color-beige: #F5F1E9;
  --color-sand: #E3D9C6;
  --color-earth: #B3A18E;
  --color-charcoal: #1C1B19;
  --color-dark-brown: #403A36;
  --color-white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  background-color: var(--color-beige);
  color: var(--color-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography Custom Weights */
.font-thin-thai {
  font-weight: 100;
}

.font-light-thai {
  font-weight: 200;
}

.font-medium-thai {
  font-weight: 400;
}

h1,
h2,
h3,
.font-heading {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 200;
  letter-spacing: 0.03em;
}

/* Glass Navigation */
.glass-nav {
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.glass-nav.scrolled {
  height: 80px;
  background: rgba(249, 247, 242, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Premium Button */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.8s;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  letter-spacing: 0.5em;
  transform: translateY(-2px);
}

/* Reveal Animation - Handled by GSAP, CSS as fallback/structure */
.reveal {
  /* opacity: 0; */
  /* transform: translateY(40px); */
  will-change: transform, opacity;
}

/* Responsive Grid Adjustments */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem !important;
  }

  .py-32 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .py-40 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Custom Nav spacing */
.glass-nav {
  background: transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.glass-nav.scrolled {
  height: 80px;
  background: rgba(245, 241, 233, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-earth);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Carousel Placeholder Styling (Swiper handles mostly, keeping overrides here) */
.swiper-pagination-bullet {
  background: var(--color-dark-brown) !important;
  opacity: 0.3 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: var(--color-earth) !important;
  opacity: 1 !important;
  transform: scale(1.5);
}

.villaSwiper {
  padding-bottom: 50px !important;
}

/* Parallax Container */
.parallax-container {
  perspective: 1000px;
}

.parallax-img {
  transform-origin: center center;
  will-change: transform;
}

/* --- FUTURISTIC EFFECTS --- */

/* Magnetic Button Wrapper */
.magnetic-btn {
  display: inline-block;
  cursor: pointer;
}

/* Custom Cursor Aura */
* {
  /* hide default cursor on desktop when custom is active */
  cursor: auto;
}

@media (min-width: 1024px) {

  body.custom-cursor-active,
  body.custom-cursor-active * {
    cursor: none !important;
  }
}

.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) {

  .cursor-dot,
  .cursor-outline {
    display: block;
  }
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-earth);
  transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
  mix-blend-mode: difference;
}

.cursor-outline {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(179, 161, 142, 0.4);
  /* Earth color with low opacity */
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: difference;
}

/* Cursor Hover States */
.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
}

.cursor-hover .cursor-outline {
  width: 50px;
  height: 50px;
  background-color: rgba(179, 161, 142, 0.05);
  border-color: rgba(179, 161, 142, 0.3);
  backdrop-filter: blur(1px);
  /* Futuristic aura effect */
}

/* Glass Input Panels */
.glass-panel {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}