/* ============================================
   SOUL STAYS - Ultra Premium Luxury Website
   Advanced Animations & Modern Design
   ============================================ */

/* ===== CSS Variables ===== */
:root {
  --primary: #1a1a1a;
  --primary-light: #2d2d2d;
  --gold: #c9a227;
  --gold-light: #d4b445;
  --gold-dark: #a68a1f;
  --cream: #f5f0e8;
  --white: #ffffff;
  --off-white: #fafafa;
  --text-dark: #1a1a1a;
  --text-medium: #555555;
  --text-light: #888888;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 25px 80px rgba(0,0,0,0.15);
  --shadow-gold: 0 10px 40px rgba(201, 162, 39, 0.3);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Selection */
::selection {
  background: var(--gold);
  color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1.5rem;
  color: var(--text-medium);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.4s var(--ease-out-quart);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 4rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
}

/* ===== Magnetic Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
}

.btn-primary {
  background: var(--gold);
  color: var(--primary);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn-primary:hover {
  color: var(--gold);
}

.btn-primary:hover::before {
  transform: translateY(0);
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn-outline:hover {
  color: var(--primary);
  border-color: var(--white);
}

.btn-outline:hover::before {
  transform: translateY(0);
}

.btn-outline span {
  position: relative;
  z-index: 1;
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn-dark:hover {
  color: var(--primary);
}

.btn-dark:hover::before {
  transform: translateY(0);
}

.btn-dark span {
  position: relative;
  z-index: 1;
}

.btn-icon {
  transition: transform 0.5s var(--ease-out-expo);
}

.btn:hover .btn-icon {
  transform: translateX(5px);
}

/* ===== Cursor ===== */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(2);
  background: rgba(201, 162, 39, 0.1);
}

/* ===== Loader ===== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 120px;
  filter: brightness(0) invert(1);
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  background: var(--gold);
  animation: loading 2s var(--ease-out-expo) forwards;
}

@keyframes loading {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 2rem 0;
  transition: all 0.5s var(--ease-out-expo);
}

.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.header.scrolled .nav-link {
  color: var(--text-dark);
}

.header.scrolled .logo {
  filter: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: all 0.5s var(--ease-out-expo);
}

.header.scrolled .logo {
  height: 40px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.nav-link {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta .btn {
  padding: 1rem 2rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 30px;
  height: 1px;
  background: var(--white);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.header.scrolled .mobile-toggle span {
  background: var(--text-dark);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s var(--ease-out-expo);
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 1000px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1;
  font-weight: 400;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-title span {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out-expo) 1.1s forwards;
}

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

/* Hero Slider Navigation */
.hero-nav {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.5rem;
}

.hero-nav-dot {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.hero-nav-dot::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  transition: transform 5s linear;
}

.hero-nav-dot.active::after {
  transform: translateX(0);
}

.hero-nav-dot:hover {
  background: rgba(255,255,255,0.5);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 4rem;
  right: 4rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--white);
}

.scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background: var(--gold);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

/* ===== Section Styles ===== */
.section {
  padding: 10rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== About Section ===== */
.about {
  background: var(--cream);
  overflow: hidden;
}

.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  align-items: center;
}

.about-images {
  position: relative;
  height: 700px;
}

.about-img {
  position: absolute;
  overflow: hidden;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.about-img:hover img {
  transform: scale(1.05);
}

.about-img-1 {
  width: 60%;
  height: 70%;
  top: 0;
  left: 0;
  z-index: 2;
}

.about-img-2 {
  width: 50%;
  height: 50%;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.about-img-accent {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 1px solid var(--gold);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.about-content {
  padding: 2rem 0;
}

.about-content .section-eyebrow {
  justify-content: flex-start;
}

.about-content .section-eyebrow::before {
  display: none;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: 1.0625rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ===== Villas Section ===== */
.villas-showcase {
  background: var(--white);
}

.villas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.villa-card {
  position: relative;
  background: var(--white);
  overflow: hidden;
  transition: all 0.6s var(--ease-out-expo);
}

.villa-card:hover {
  transform: translateY(-10px);
}

.villa-image {
  position: relative;
  height: 450px;
  overflow: hidden;
}

.villa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo);
}

.villa-card:hover .villa-image img {
  transform: scale(1.1);
}

.villa-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0) 50%
  );
  opacity: 0;
  transition: opacity 0.6s var(--ease-out-expo);
}

.villa-card:hover .villa-image-overlay {
  opacity: 1;
}

.villa-quick-view {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out-expo);
}

.villa-card:hover .villa-quick-view {
  opacity: 1;
  transform: translateY(0);
}

.villa-quick-view .btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.65rem;
}

.villa-badge {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: var(--gold);
  color: var(--primary);
  padding: 0.5rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.villa-content {
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  border-top: none;
}

.villa-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.villa-name {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 1rem;
  transition: color 0.4s var(--ease-out-quart);
}

.villa-card:hover .villa-name {
  color: var(--gold);
}

.villa-description {
  font-size: 0.9375rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.villa-features {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.villa-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-medium);
}

.villa-feature svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* Featured Villa (Large) */
.villa-card.featured {
  grid-column: span 2;
}

.villa-card.featured .villa-image {
  height: 600px;
}

.villa-card.featured .villa-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.villa-card.featured .villa-info {
  max-width: 600px;
}

/* ===== Amenities Section ===== */
.amenities {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.amenities::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border: 1px solid rgba(201, 162, 39, 0.1);
  border-radius: 50%;
}

.amenities .section-eyebrow {
  color: var(--gold);
}

.amenities .section-eyebrow::before,
.amenities .section-eyebrow::after {
  background: var(--gold);
}

.amenities .section-title {
  color: var(--white);
}

.amenities .section-description {
  color: rgba(255,255,255,0.7);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
}

.amenity-item {
  background: var(--primary);
  padding: 4rem 2rem;
  text-align: center;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
}

.amenity-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.amenity-item:hover::before {
  opacity: 1;
}

.amenity-item:hover {
  color: var(--primary);
}

.amenity-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 2rem;
  color: var(--gold);
  transition: color 0.5s var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.amenity-item:hover .amenity-icon {
  color: var(--primary);
}

.amenity-item h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  transition: color 0.5s var(--ease-out-expo);
}

.amenity-item:hover h4 {
  color: var(--primary);
}

.amenity-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  transition: color 0.5s var(--ease-out-expo);
}

.amenity-item:hover p {
  color: rgba(0,0,0,0.6);
}

/* ===== Gallery Section ===== */
.gallery {
  padding: 0;
  overflow: hidden;
}

.gallery-header {
  padding: 8rem 0 4rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 0.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(2) {
  grid-column: span 2;
}

.gallery-item:nth-child(3) {
  grid-column: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 2;
}

.gallery-item:nth-child(5) {
  grid-column: span 2;
}

.gallery-item:nth-child(6) {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transform: scale(0.5);
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-item:hover .gallery-icon {
  transform: scale(1);
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--cream);
}

.testimonial-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 3rem;
  position: relative;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  color: var(--gold);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-author-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 1px;
}

.testimonial-author-title {
  font-size: 0.8125rem;
  color: var(--text-light);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

/* ===== CTA Section ===== */
.cta {
  position: relative;
  padding: 12rem 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta .section-eyebrow {
  color: var(--gold);
}

.cta .section-eyebrow::before,
.cta .section-eyebrow::after {
  background: var(--gold);
}

.cta .section-title {
  color: var(--white);
}

.cta .section-description {
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
}

/* ===== Contact Section ===== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}

.contact-info h3 {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s var(--ease-out-expo);
}

.contact-item:hover .contact-icon {
  background: var(--gold);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  transition: color 0.4s var(--ease-out-expo);
}

.contact-item:hover .contact-icon svg {
  color: var(--white);
}

.contact-item h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-item p {
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-dark);
}

.contact-item a {
  color: var(--text-dark);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-form {
  background: var(--cream);
  padding: 4rem;
}

.contact-form h3 {
  margin-bottom: 0.5rem;
}

.contact-form > p {
  margin-bottom: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  transition: all 0.4s var(--ease-out-expo);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.5);
}

.form-group textarea {
  resize: none;
  min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 8rem 0 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  filter: brightness(0) invert(1);
  height: 45px;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s var(--ease-out-expo);
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.4s var(--ease-out-expo);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* Pulse Animation */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ===== Page Header ===== */
.page-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.page-hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
}

.breadcrumb a {
  color: var(--gold);
}

.breadcrumb span {
  color: rgba(255,255,255,0.5);
}

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-wrapper {
    gap: 4rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.6s var(--ease-out-expo);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu .nav-link {
    color: var(--white);
    font-size: 0.875rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-images {
    height: 500px;
  }

  .villas-grid {
    grid-template-columns: 1fr;
  }

  .villa-card.featured {
    grid-column: span 1;
  }

  .villa-card.featured .villa-image {
    height: 450px;
  }

  .villa-card.featured .villa-content {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gallery-item {
    grid-column: span 1 !important;
    height: 250px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 6rem 0;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .about-images {
    height: 400px;
  }

  .about-img-1 {
    width: 70%;
  }

  .about-img-2 {
    width: 60%;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .villa-image {
    height: 350px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-nav {
    bottom: 2rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor,
  .cursor-dot {
    display: none;
  }
}

/* ========================================
   Lightbox
======================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out-expo);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 768px) {
  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: -40px;
    font-size: 2rem;
  }
}

/* ========================================
   Villas Page Specific Styles
======================================== */
.page-hero {
  height: 60vh;
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* Dark overlay for page hero to ensure text visibility */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.4) 50%,
    rgba(0,0,0,0.5) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 400;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  color: var(--gold);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 1;
}

/* Villa Filters */
.villa-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.8rem 2rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Full Villas Grid */
.villas-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 5rem;
}

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

@media (max-width: 600px) {
  .villas-full-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-title {
    font-size: 2.5rem;
  }
}

/* Villa Card Expanded */
.villa-card-full {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.5s var(--ease-out-expo);
}

.villa-card-full:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.villa-card-full .villa-image {
  height: 280px;
}

.villa-card-full .villa-content {
  padding: 2rem;
}

.villa-card-full .villa-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.villa-card-full .villa-type {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.villa-card-full .villa-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.villa-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.villa-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.villa-feature svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.villa-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.villa-price-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

.villa-price-period {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ========================================
   Contact Page Specific Styles
======================================== */
.contact-section {
  padding: 6rem 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  padding-right: 2rem;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contact-info-text {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-details {
  margin-bottom: 2.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.contact-detail-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--primary);
}

.contact-detail-content p,
.contact-detail-content a {
  color: var(--text-light);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail-content a:hover {
  color: var(--gold);
}

.contact-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--gold);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Enhanced Contact Form */
.contact-form-wrapper {
  background: white;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--primary);
}

/* Map Section */
.map-section {
  height: 450px;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.3s ease;
}

.map-section:hover iframe {
  filter: grayscale(0%);
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    padding-right: 0;
  }
}

/* Form Error State */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #e74c3c;
}

.form-group.error label {
  color: #e74c3c;
}

/* Success Button State */
.submit-btn.success {
  background: #27ae60;
  border-color: #27ae60;
}

/* ========================================
   Booking Quick Widget
======================================== */
.booking-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.booking-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: var(--gold);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.4);
  transition: all 0.3s ease;
}

.booking-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(201, 162, 39, 0.5);
}

.booking-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .booking-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .booking-btn span {
    display: none;
  }

  .booking-btn {
    width: 55px;
    height: 55px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}
