/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Roboto', 'Inter', sans-serif;
  background: #050510;
  color: #e2e8f0;
  overflow-x: hidden;
  cursor: none;
}

/* ── Custom Cursor ────────────────────────────────────────────────────────── */
#cursorDot {
  width: 8px; height: 8px; background: #a78bfa;
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9999; transform: translate(-50%,-50%);
  transition: transform 0.05s, background 0.2s;
}
#cursorRing {
  width: 30px; height: 30px;
  border: 2px solid rgba(167,139,250,0.5);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 9998; transform: translate(-50%,-50%);
  transition: transform 0.12s ease-out, border-color 0.2s;
}
#cursorGlow {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%);
  border-radius: 50%; position: fixed; pointer-events: none;
  z-index: 1; top: 0; left: 0;
}

/* ── Loading Screen ───────────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #050510;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.7s ease;
}
.loader-logo { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; }
.loader-logo span { background: linear-gradient(135deg,#a78bfa,#60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.loader-bar { width: 220px; height: 3px; background: rgba(255,255,255,0.1); border-radius: 99px; margin-top: 2rem; overflow: hidden; }
.loader-fill { height: 100%; background: linear-gradient(90deg,#a78bfa,#60a5fa,#34d399); border-radius: 99px; animation: loadFill 2s ease forwards; }
@keyframes loadFill { from { width: 0; } to { width: 100%; } }
.loader-text { margin-top: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.4); letter-spacing: 3px; animation: pulse 1s ease infinite alternate; }
@keyframes pulse { from { opacity: 0.4; } to { opacity: 1; } }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.25rem 2rem;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}
#navbar.scrolled {
  background: rgba(5,5,16,0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(139,92,246,0.12);
}
.nav-link {
  position: relative; color: rgba(226,232,240,0.75);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,#a78bfa,#60a5fa);
  transform: scaleX(0); transition: transform 0.25s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#starCanvas { position: absolute; inset: 0; z-index: 0; }

.blob-1 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.18) 0%, transparent 70%);
  top: -200px; right: -200px; z-index: 0;
  animation: blobMove 12s ease-in-out infinite alternate;
}
.blob-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.14) 0%, transparent 70%);
  bottom: -100px; left: -100px; z-index: 0;
  animation: blobMove2 9s ease-in-out infinite alternate;
}
@keyframes blobMove { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,60px) scale(1.15); } }
@keyframes blobMove2 { from { transform: translate(0,0) scale(1); } to { transform: translate(50px,-50px) scale(1.1); } }

.hero-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem; border-radius: 99px;
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3);
  font-size: 0.8rem; color: #c4b5fd;
  animation: floatChip 4s ease-in-out infinite;
  backdrop-filter: blur(8px);
}
.hero-chip:nth-child(2) { animation-delay: 1s; }
.hero-chip:nth-child(3) { animation-delay: 2s; }
.hero-chip:nth-child(4) { animation-delay: 3s; }
@keyframes floatChip { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 40%, #34d399 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 99px;
  background: linear-gradient(135deg,#7c3aed,#2563eb);
  color: #fff; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,#6d28d9,#1d4ed8);
  opacity: 0; transition: opacity 0.2s;
}
.btn-primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 32px rgba(124,58,237,0.55); }
.btn-primary:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: 99px;
  background: transparent;
  border: 1.5px solid rgba(167,139,250,0.5);
  color: #c4b5fd; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: all 0.2s; backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(167,139,250,0.12); border-color: #a78bfa; color: #fff; transform: translateY(-3px); }

/* ── Stats ────────────────────────────────────────────────────────────────── */
.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem; padding: 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s;
}
.stat-card:hover { transform: translateY(-6px); border-color: rgba(167,139,250,0.35); }

/* ── Section Titles ───────────────────────────────────────────────────────── */
.section-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; }
.section-subtitle { color: rgba(226,232,240,0.6); font-size: 1.05rem; max-width: 580px; }

/* ── Property Cards ───────────────────────────────────────────────────────── */
.property-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.5rem; overflow: hidden;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.property-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(37,99,235,0.08));
  opacity: 0; transition: opacity 0.35s; border-radius: 1.5rem; z-index: 0;
}
.property-card:hover::before { opacity: 1; }
.property-card:hover { box-shadow: 0 0 0 1px rgba(167,139,250,0.4), 0 20px 60px rgba(124,58,237,0.2); }

.property-img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.5s ease; display: block; }
.property-card:hover .property-img { transform: scale(1.07); }

.tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.65rem; border-radius: 99px;
  background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25);
  font-size: 0.72rem; color: #c4b5fd; font-weight: 500;
}

/* ── Feature Cards ────────────────────────────────────────────────────────── */
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1.25rem; padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.feature-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(124,58,237,0.08),transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-8px); border-color: rgba(167,139,250,0.3); box-shadow: 0 12px 40px rgba(124,58,237,0.15); }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 64px; height: 64px; border-radius: 1.25rem; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,rgba(124,58,237,0.2),rgba(37,99,235,0.2));
  border: 1px solid rgba(167,139,250,0.2);
  transition: transform 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }

/* ── Experience Horizontal Scroll ─────────────────────────────────────────── */
#experience { overflow: hidden; }
.h-scroll-track { display: flex; gap: 2rem; width: max-content; padding: 2rem; }
.h-panel {
  width: 360px; flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem; overflow: hidden;
  transition: transform 0.3s;
}
.h-panel:hover { transform: translateY(-8px); border-color: rgba(167,139,250,0.3); }
.h-panel img { width: 100%; height: 230px; object-fit: cover; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem; padding: 2rem;
  backdrop-filter: blur(12px);
  transition: all 0.5s ease;
  position: relative; overflow: hidden;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: -10px; left: 16px;
  font-size: 8rem; color: rgba(167,139,250,0.08); font-family: Georgia;
  line-height: 1;
}
.testimonial-card:hover { border-color: rgba(167,139,250,0.35); box-shadow: 0 0 40px rgba(124,58,237,0.15); }

/* ── Form ────────────────────────────────────────────────────────────────── */
.form-input {
  width: 100%; padding: 0.9rem 1.2rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.9rem; color: #e2e8f0;
  font-size: 0.95rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: rgba(167,139,250,0.6); box-shadow: 0 0 0 3px rgba(167,139,250,0.1); }
.form-input::placeholder { color: rgba(226,232,240,0.3); }
.form-input option { background: #0f0f25; }

/* ── Gallery Masonry ─────────────────────────────────────────────────────── */
.masonry { columns: 3; gap: 1rem; }
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 540px) { .masonry { columns: 1; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; position: relative; border-radius: 1rem; overflow: hidden; cursor: pointer; }
.masonry-item img { width: 100%; display: block; border-radius: 1rem; transition: transform 0.4s ease; }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top,rgba(5,5,16,0.8),transparent);
  opacity: 0; transition: opacity 0.3s; display: flex; align-items: flex-end; padding: 1rem; border-radius: 1rem;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 9990;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(10px);
  align-items: center; justify-content: center;
}
#lightboxImg { max-width: 90vw; max-height: 85vh; border-radius: 1rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem; overflow: hidden; margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(167,139,250,0.25); }
.faq-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; background: transparent; border: none; color: #e2e8f0; font-size: 1rem; font-weight: 600; cursor: pointer; }
.faq-body { padding: 0 1.5rem 1.25rem; color: rgba(226,232,240,0.7); font-size: 0.95rem; line-height: 1.7; }
.faq-icon { font-size: 1.4rem; color: #a78bfa; transition: transform 0.3s; flex-shrink: 0; }

/* ── Contact Cards ───────────────────────────────────────────────────────── */
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.5rem; padding: 2rem;
  backdrop-filter: blur(16px);
  text-align: center;
  transition: all 0.35s ease;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,#a78bfa,#60a5fa);
  transform: scaleX(0); transition: transform 0.35s;
}
.contact-card:hover { transform: translateY(-8px); border-color: rgba(167,139,250,0.3); box-shadow: 0 20px 60px rgba(124,58,237,0.15); }
.contact-card:hover::before { transform: scaleX(1); }

.avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 1rem;
  border: 2px solid rgba(167,139,250,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg,rgba(124,58,237,0.3),rgba(37,99,235,0.3));
  animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(167,139,250,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(167,139,250,0); }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
footer {
  background: rgba(0,0,0,0.5); border-top: 1px solid rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
}
.footer-glow {
  position: absolute; width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle,rgba(139,92,246,0.08),transparent 70%);
  bottom: -100px; left: 50%; transform: translateX(-50%);
  pointer-events: none;
}

/* ── Gradient Border ─────────────────────────────────────────────────────── */
.grad-border {
  position: relative;
}
.grad-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  background: linear-gradient(135deg,#a78bfa,#60a5fa,#34d399);
  z-index: -1;
  padding: 1px;
}
/* ── Sticky Mobile CTA ───────────────────────────────────────────────────── */
#mobileCTA {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 800;
  background: rgba(5,5,16,0.95); backdrop-filter: blur(20px);
  padding: 0.9rem 1.5rem;
  border-top: 1px solid rgba(167,139,250,0.2);
}
@media (max-width: 768px) { #mobileCTA { display: flex; gap: 0.75rem; } }


/* ── Utility ─────────────────────────────────────────────────────────────── */
.glow-text { text-shadow: 0 0 40px rgba(167,139,250,0.5); }
.divider { height: 1px; background: linear-gradient(90deg,transparent,rgba(167,139,250,0.3),transparent); margin: 1px 0; }
.section-pad { padding: 6rem 0; }
@media (max-width: 768px) { .section-pad { padding: 4rem 0; } }

/* ── Scroll reveal (initial state) ──────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(60px); }

/* ── Animated Grid BG ────────────────────────────────────────────────────── */
.grid-bg {
  background-image: linear-gradient(rgba(167,139,250,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(167,139,250,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Back to Top ─────────────────────────────────────────────────────────── */
#backToTop {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg,#7c3aed,#2563eb);
  border: none; color: #fff; font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
  transition: opacity 0.3s, transform 0.2s;
}
#backToTop:hover { transform: translateY(-4px); }

/* ── Star Rating ─────────────────────────────────────────────────────────── */
.stars { color: #fbbf24; letter-spacing: 2px; }
