/* css/styles.css */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-gold: #d4af37;
  --accent-gold-hover: #b5952f;
  --border-color: #333333;
  --font-main: 'Outfit', sans-serif;
  --transition-normal: 0.3s ease;
}

[data-theme="light"] {
  --bg-primary: #f5f5f5;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #121212;
  --text-secondary: #555555;
  --border-color: #dddddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  /* Hide default cursor on desktop */
  cursor: none;
}

/* Fallback for touch devices or if cursor.js doesn't load */
@media (pointer: coarse) {
  body {
    cursor: auto;
  }
}

/* Custom Cursor Styles */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border-color 0.2s;
}

.custom-cursor-dot.cursor-hover {
  width: 50px;
  height: 50px;
  background-color: rgba(212, 175, 55, 0.2);
  mix-blend-mode: exclusion;
}

.custom-cursor-ring.cursor-hover {
  width: 60px;
  height: 60px;
  border-color: rgba(212, 175, 55, 1);
}

a,
button,
input,
select,
textarea {
  cursor: none;
}

@media (pointer: coarse) {

  a,
  button,
  input,
  select,
  textarea {
    cursor: pointer;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h1 .gold-text,
h2 .gold-text {
  color: var(--accent-gold);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Buttons with Magnetic & Glow Effects */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  outline: none;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Glowing background effect for primary buttons */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-gold), #fff, var(--accent-gold), #ffdf00);
  background-size: 400%;
  z-index: -2;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: glowingGlow 20s linear infinite;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: #000;
  border-radius: 3px;
  z-index: -1;
  transition: background 0.3s ease;
}

.btn-primary {
  color: var(--accent-gold);
  background: transparent;
}

@keyframes glowingGlow {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

.btn-primary:hover {
  color: #000;
  transform: translateY(-3px) scale(1.02);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover::after {
  background: var(--accent-gold);
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
}

.btn-outline:hover {
  background-color: var(--accent-gold);
  color: #000;
}

.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-whatsapp:hover {
  background-color: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

/* Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Header & Nav (Glassmorphism) */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  background: rgba(10, 10, 10, 0.14);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
  background: rgba(10, 10, 10, 0.7);
  padding: 1rem 5%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.023);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav ul li a {
  font-size: 0.95rem;
  transition: color var(--transition-normal);
}

nav ul li a:hover {
  color: var(--accent-gold);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes the video fill the screen without stretching */
  z-index: -2;
  pointer-events: none; /* Prevents users from clicking or pausing it */
}

/* Optional: If you want to keep the parallax/fixed effect for the video */
/* Note: fixed attachments on videos can sometimes be jittery on mobile, test carefully */
@media (min-width: 768px) {
  .hero-bg-video {
    position: fixed; 
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.6), var(--bg-primary));
  z-index: -1;
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), var(--bg-primary));
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
}

.hero-content h1 {
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  color: #eeeeee;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .hero-content p {
  color: #333;
  text-shadow: none;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================
   Enhanced About Section
   ========================================== */
.about {
    padding: 8rem 5%;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    max-width: 1300px;
    margin: 0 auto;
    align-items: center;
}

.about-content {
    padding-right: 2rem;
}

.section-subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

/* Override the default h2 centering for this specific title */
.about-title {
    font-size: 3.5rem;
    text-align: left;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.about-text .lead {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.mini-stat span {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.mini-stat p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 0;
}

/* Image Composition */
.about-visuals {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-main {
    width: 80%;
    height: 85%;
    border-radius: 12px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

[data-theme="light"] .img-main {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.img-float {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 45%;
    height: 50%;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    border: 6px solid var(--bg-primary); /* Creates a seamless cutout effect against the background */
    transition: border-color var(--transition-normal);
}

[data-theme="light"] .img-float {
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.gold-accent-square {
    position: absolute;
    top: 5%;
    right: 5%;
    width: 40%;
    height: 40%;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    z-index: 0;
    opacity: 0.5;
    transform: translate(20px, -20px);
}

/* Responsive adjustment for tablets and mobile */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .section-subtitle, .about-text, .about-stats {
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }
    
    .about-content {
        padding-right: 0;
    }

    .about-visuals {
        height: 450px;
        width: 100%;
    }
}

/* Filters & Search (Glassmorphism) */
.filters-container {
  padding: 1.5rem 5%;
  margin-bottom: 3rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .filters-container {
  background: rgba(245, 245, 245, 0.6);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-input,
.filter-select {
  padding: 0.8rem;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: var(--font-main);
  outline: none;
  min-width: 200px;
  transition: all 0.3s ease;
}

[data-theme="light"] .filter-input,
[data-theme="light"] .filter-select {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.filter-input:focus,
.filter-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Plots Section */
.plots-section {
  padding: 5rem 5%;
}

.plots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.plot-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  will-change: transform;
  z-index: 1;
  /* Premium Inner shadow */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Animated Gradient Border pseudo-element */
.plot-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.05), rgba(212, 175, 55, 0.3), rgba(255, 255, 255, 0.05));
  background-size: 200% 200%;
  z-index: -2;
  border-radius: 18px;
  animation: glowingGlow 10s linear infinite;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

/* Inner Background cover to mask the center of the gradient border */
.plot-card::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: rgba(20, 20, 20, 0.85);
  /* Darker, slightly transparent for glassmorphism */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 15px;
  z-index: -1;
}

[data-theme="light"] .plot-card::after {
  background: rgba(255, 255, 255, 0.85);
}

.plot-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(212, 175, 55, 0.3);
  z-index: 2;
}

.plot-card:hover::before {
  opacity: 1;
  background: linear-gradient(45deg, var(--accent-gold), rgba(255, 255, 255, 0.2), var(--accent-gold-hover), rgba(255, 255, 255, 0.2));
  background-size: 300% 300%;
}

[data-theme="light"] .plot-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.plot-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.plot-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plot-card:hover .plot-img-wrapper img {
  transform: scale(1.1);
}

.plot-price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent-gold);
  color: #000;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.plot-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.plot-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.plot-location {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.plot-details-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-item span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  opacity: 0.8;
}

.meta-item strong {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
}

.plot-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.plot-actions .btn {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 5%;
  background: var(--bg-secondary);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--accent-gold);
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 4px;
  font-family: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-gold);
}

.map-container {
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 5%;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
}

footer a:hover { color: rgb(243, 224, 23); padding-left: 5px; }


.social-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  font-size: 1.2rem;
  transition: color var(--transition-normal);
}

.social-links a:hover {
  color: var(--accent-gold);
}

/* Skeleton UI Animations */
.skeleton {
  background: linear-gradient(-90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
  background-size: 400% 400%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
}

[data-theme="light"] .skeleton {
  background: linear-gradient(-90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
  background-size: 400% 400%;
}

@keyframes shimmer {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: -135% 0%;
  }
}

.skeleton-card {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 450px;
}

[data-theme="light"] .skeleton-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.skeleton-img {
  height: 220px;
  width: 100%;
}

.skeleton-text {
  height: 20px;
  margin: 1rem 1.5rem 0;
  width: 80%;
}

.skeleton-text.short {
  width: 50%;
  margin-top: 0.5rem;
  height: 15px;
}

.skeleton-btns {
  margin-top: auto;
  padding: 1.5rem;
  display: flex;
  gap: 0.5rem;
}

.skeleton-btn {
  height: 40px;
  flex: 1;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  /* Hide desktop nav on mobile */
  .desktop-nav {
    display: none;
  }
}


/* ==========================================
   Partners Marquee
   ========================================== */
.partners-marquee {
    width: 100%;
    overflow: hidden;
    background: var(--bg-secondary);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
}

.marquee-content {
    display: flex;
    gap: 5rem;
    min-width: 200%;
    /* 20s controls the speed. Lower = faster */
    animation: scrollMarquee 25s linear infinite; 
}

.partner-logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.5;
    transition: opacity var(--transition-normal), color var(--transition-normal);
}

.partner-logo i {
    font-size: 1.5rem;
}

.partner-logo:hover {
    opacity: 1;
    color: var(--accent-gold);
}

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================
   Legacy in Numbers (Animated Counter)
   ========================================== */
.legacy-stats {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 4rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .stats-container {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Subtle gold glow behind the container */
.stats-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.stat-item h3 {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Spotlight Overlay */
.plot-card .spotlight {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(
        circle 250px at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(212, 175, 55, 0.15), /* Gold glow */
        transparent 80%
    );
    transition: opacity 0.4s ease;
    z-index: 1; /* Above background, below text/images */
    pointer-events: none;
}

.plot-card:hover .spotlight {
    opacity: 1;
}

/* Ensure card text stays above the spotlight */
.plot-card .plot-img-wrapper,
.plot-card .plot-info {
    z-index: 2;
}

/* Page Transition Curtain */
.page-transition-curtain {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-card); /* Matches your dark theme */
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: top 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition-curtain.slide-up {
    top: 0;
}

/* Optional: Add a gold logo inside the curtain */
.page-transition-curtain::after {
    content: 'ELEGANCE';
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-gold);
    letter-spacing: 5px;
    opacity: 0;
    transition: opacity 0.3s ease 0.3s;
}

.page-transition-curtain.slide-up::after {
    opacity: 1;
}


/* Text Masking Reveal Utilities */
.mask-wrap {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
    line-height: 1.1; /* Keeps the invisible box tight around the text */
}

.mask-text {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

/* When the parent wrapper gets the .active class, trigger the animation */
.mask-wrap.active .mask-text {
    transform: translateY(0);
    opacity: 1;
}

/* Staggering for multiple words */
.mask-wrap.delay-1 .mask-text { transition-delay: 0.1s; }
.mask-wrap.delay-2 .mask-text { transition-delay: 0.2s; }

/* Advanced Parallax Utilities */
.parallax-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px; /* Optional: smooth corners */
}

.parallax-img {
    width: 100%;
    height: 130%; /* Must be taller than the container to allow for movement */
    object-fit: cover;
    position: absolute;
    top: -15%; /* Offset it initially so we have room to move up and down */
    left: 0;
    will-change: transform;
}


.brand-logo {
    height: 60px; /* Adjust this to make it bigger or smaller */
    width: auto;
    display: block;
    transition: transform var(--transition-normal);
}

/* Optional: Add a smooth little hover effect */
.logo:hover .brand-logo {
    transform: scale(1.05);
}

/* ==========================================
   Investment Edge Section
   ========================================== */
.investment-edge {
    background: var(--bg-primary);
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    letter-spacing: 1px;
}

.edge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start; /* Crucial for the staggered height effect */
    padding: 0 5%;
}

/* Create the asymmetric, staggered layout on desktop */
@media (min-width: 768px) {
    .edge-card.push-down {
        margin-top: 4rem; 
    }
}

.edge-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
    /* Subtle inner glow to match the plot cards */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .edge-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.edge-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .edge-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
}

.edge-icon-wrap {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    position: relative;
}

/* Subtle glowing aura behind the icon */
.edge-icon-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: var(--accent-gold);
    filter: blur(25px);
    opacity: 0.15;
    border-radius: 50%;
    transition: opacity 0.5s ease;
}

.edge-card:hover .edge-icon-wrap::after {
    opacity: 0.4;
}

.edge-icon-wrap svg {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
}

/* ==========================================
   SVG Line Drawing Animation
   ========================================== */
.draw-path {
    /* 150 is long enough to cover the length of these specific SVG paths */
    stroke-dasharray: 150; 
    stroke-dashoffset: 150;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When the Intersection Observer adds the .active class to .reveal, trigger the draw */
.edge-card.active .draw-path {
    stroke-dashoffset: 0;
}

.edge-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.edge-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Reveal Animation Delays for the cascading effect */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* ==============================================
   GLASSMORPHIC CURTAIN MOBILE MENU
   ============================================== */

/* Hamburger Button — only visible on mobile */
.mobile-controls {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .mobile-controls {
        display: flex;
    }
}

.hamburger {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hamburger:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

.ham-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease,
                width 0.3s ease;
    transform-origin: center;
}

/* Animate to X when active */
.hamburger.is-active .ham-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active .ham-line:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.is-active .ham-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backdrop Overlay */
.curtain-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.curtain-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

/* Prevent body scroll while menu open */
body.curtain-open {
    overflow: hidden;
}

/* ---- The Curtain Panel ---- */
.curtain-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100dvh;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    padding: 2rem 2rem 2.5rem;
    overflow-y: auto;
    /* Glassmorphism */
    background: linear-gradient(
        135deg,
        rgba(15, 12, 8, 0.82) 0%,
        rgba(22, 18, 10, 0.90) 50%,
        rgba(10, 8, 4, 0.88) 100%
    );
    backdrop-filter: blur(28px) saturate(1.6);
    -webkit-backdrop-filter: blur(28px) saturate(1.6);
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.7),
                inset 1px 0 0 rgba(212, 175, 55, 0.08);
    /* Hidden state — slides off to the right */
    transform: translateX(110%);
    transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.curtain-menu.is-open {
    transform: translateX(0);
}

/* Decorative glowing orbs */
.curtain-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(45px);
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
}

.curtain-menu.is-open .curtain-orb {
    opacity: 1;
}

.curtain-orb-1 {
    width: 240px;
    height: 240px;
    top: -80px;
    right: -80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25), transparent 70%);
}

.curtain-orb-2 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    left: -60px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
}

.curtain-orb-3 {
    width: 120px;
    height: 120px;
    top: 45%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 220, 100, 0.12), transparent 70%);
}

/* Close Button */
.curtain-close {
    align-self: flex-end;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.curtain-close:hover {
    background: rgba(212, 175, 55, 0.25);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Brand inside menu */
.curtain-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.curtain-logo {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.4));
}

.curtain-tagline {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-top: 0.5rem;
    opacity: 0.75;
}

/* Divider line */
.curtain-brand::after {
    content: '';
    display: block;
    width: 48px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
    margin-top: 1.2rem;
}

/* Nav Links */
.curtain-nav {
    flex: 1;
    position: relative;
    z-index: 2;
}

.curtain-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.curtain-link-item {
    opacity: 0;
    transform: translateX(30px);
    transition:
        opacity 0.45s ease calc(var(--i) * 0.08s + 0.25s),
        transform 0.45s cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i) * 0.08s + 0.25s);
}

.curtain-menu.is-open .curtain-link-item {
    opacity: 1;
    transform: translateX(0);
}

.curtain-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        padding-left 0.3s ease;
    border: 1px solid transparent;
}

.curtain-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.08),
        rgba(212, 175, 55, 0.03));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.curtain-link:hover {
    color: var(--accent-gold);
    padding-left: 1.6rem;
    border-color: rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.06);
}

.curtain-link:hover::before {
    opacity: 1;
}

.curtain-link-num {
    font-size: 0.65rem;
    color: var(--accent-gold);
    opacity: 0.55;
    font-weight: 600;
    letter-spacing: 1.5px;
    min-width: 20px;
    transition: opacity 0.3s ease;
}

.curtain-link:hover .curtain-link-num {
    opacity: 1;
}

.curtain-link-text {
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    flex: 1;
    line-height: 1;
}

.curtain-link-arrow {
    font-size: 0.75rem;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--accent-gold);
}

.curtain-link:hover .curtain-link-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* WhatsApp CTA */
.curtain-cta {
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease 0.55s, transform 0.45s ease 0.55s;
}

.curtain-menu.is-open .curtain-cta {
    opacity: 1;
    transform: translateY(0);
}

.curtain-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, #25D366, #1ebe57);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 24px rgba(37, 211, 102, 0.3);
}

.curtain-whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

/* Social Links */
.curtain-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease 0.65s, transform 0.45s ease 0.65s;
}

.curtain-menu.is-open .curtain-socials {
    opacity: 1;
    transform: translateY(0);
}

.curtain-social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.curtain-social-link:hover {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

/* Light theme overrides for curtain */
[data-theme="light"] .curtain-menu {
    background: linear-gradient(
        135deg,
        rgba(255, 252, 245, 0.88) 0%,
        rgba(250, 245, 230, 0.94) 50%,
        rgba(255, 250, 240, 0.92) 100%
    );
    border-left-color: rgba(212, 175, 55, 0.3);
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.15),
                inset 1px 0 0 rgba(212, 175, 55, 0.15);
}

[data-theme="light"] .curtain-link {
    color: rgba(20, 20, 20, 0.8);
}

[data-theme="light"] .curtain-link:hover {
    color: var(--accent-gold-hover);
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .curtain-social-link {
    color: rgba(30, 30, 30, 0.6);
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(212, 175, 55, 0.05);
}

[data-theme="light"] .curtain-social-link:hover {
    color: var(--accent-gold-hover);
    background: rgba(212, 175, 55, 0.12);
}

/* Scrollbar inside curtain */
.curtain-menu::-webkit-scrollbar {
    width: 4px;
}
.curtain-menu::-webkit-scrollbar-track {
    background: transparent;
}
.curtain-menu::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 4px;
}