/* ============================================
   Anti-Gravity Luxury Real Estate — Stylesheet
   Dark theme, glassmorphism, floating UI
   ============================================ */

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

:root {
    /* Colors */
    --bg-primary: #050510;
    --bg-secondary: #0a0a1f;
    --bg-card: rgba(15, 15, 40, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.08);

    --text-primary: #f0f0ff;
    --text-secondary: rgba(200, 200, 240, 0.7);
    --text-muted: rgba(160, 160, 200, 0.5);

    --accent-primary: #7c5cfc;
    --accent-secondary: #00d4ff;
    --accent-glow: rgba(124, 92, 252, 0.3);
    --accent-gradient: linear-gradient(135deg, #7c5cfc, #00d4ff);

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(124, 92, 252, 0.2);

    --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(124, 92, 252, 0.08);
    --shadow-hover: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(124, 92, 252, 0.15);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-float: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section Headers ---- */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(5, 5, 16, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 1001;
    flex: 1;
}

.nav-actions {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.logo-icon {
    font-size: 1.6rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float-rotate 4s ease-in-out infinite;
}

.logo-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-link.active {
    background: rgba(124, 92, 252, 0.12);
    color: var(--accent-primary);
}

/* ============================================
   Button Hover Effect (Uiverse.io by Wendell47)
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10rem;
  transition: all 0.02s;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  color: rgb(37, 37, 37);
  background: #fff;
  z-index: 0;
  box-shadow: 0 0px 7px -5px rgba(0, 0, 0, 0.5);
  text-decoration: none;
}

.button:hover {
  background: rgb(193, 228, 248);
  color: rgb(33, 0, 85);
}

.button:active {
  transform: scale(0.97);
}

.hoverEffect {
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1;
}

.hoverEffect div {
  background: rgb(222, 0, 75);
  background: linear-gradient(
    90deg,
    rgba(222, 0, 75, 1) 0%,
    rgba(191, 70, 255, 1) 49%,
    rgba(0, 212, 255, 1) 100%
  );
  border-radius: 40rem;
  width: 10rem;
  height: 10rem;
  transition: 0.4s;
  filter: blur(20px);
  animation: effect infinite 3s linear;
  opacity: 0.5;
}

.button:hover .hoverEffect div {
  width: 8rem;
  height: 8rem;
}

@keyframes effect {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(124, 92, 252, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        url('../images/hero-bg.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 5, 16, 0.4) 0%, rgba(5, 5, 16, 0.8) 60%, var(--bg-primary) 100%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    z-index: 20;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: float-card 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .hero-floating-card {
        bottom: 24px;
        top: auto;
        right: 20px;
        left: 20px;
        padding: 12px 20px;
    }
}

.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    animation: particle-float linear infinite;
    pointer-events: none;
}

/* Orbs — glowing circles that float up */
.hero-particles .particle-orb {
    border-radius: 50%;
}

/* Sparks — thin streaks shooting up */
.hero-particles .particle-spark {
    border-radius: 2px;
    animation-name: spark-shoot;
}

/* Rings — hollow expanding circles, burst effect */
.particle-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: burst-ring ease-out infinite;
}

/* Stars — fixed twinkling dots */
.particle-star {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: star-twinkle ease-in-out infinite;
}


.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 6s ease-in-out infinite;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--accent-secondary);
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 60px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 8px 30px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(124, 92, 252, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glow);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -100px;
    right: -100px;
    animation: float-slow 12s ease-in-out infinite;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    bottom: -50px;
    left: -80px;
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-primary);
    top: 40%;
    right: 10%;
    animation: float-slow 8s ease-in-out infinite 2s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

/* ============================================
   PROPERTIES SECTION
   ============================================ */
.properties-section {
    padding: var(--section-padding);
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 92, 252, 0.04) 0%, transparent 50%),
        var(--bg-primary);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 0;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-subtle);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Property Card */
.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-float);
    position: relative;
    animation: float-card 6s ease-in-out infinite;
}

.property-card:nth-child(2) { animation-delay: -2s; }
.property-card:nth-child(3) { animation-delay: -4s; }

.property-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
}

.property-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--accent-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition-smooth);
}

.property-card:hover::before {
    opacity: 0.3;
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.property-card:hover .card-image img {
    transform: scale(1.08);
}

.card-price {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
        display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.card-price-label {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 212, 255, 0.7);
    margin-bottom: 2px;
}

.card-badge-hot {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    animation: pulse-hot 2s ease-in-out infinite;
}

@keyframes pulse-hot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.card-location svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.card-specs-mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.spec-mini-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    background: var(--bg-glass);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.spec-mini-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
    opacity: 0.8;
}

.card-actions-full {
    display: flex;
    width: 100%;
}

.btn-details {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 92, 252, 0.35);
}

/* ============================================
   MORTGAGE SECTION
   ============================================ */
.mortgage-section {
    padding: var(--section-padding);
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 50%),
        var(--bg-secondary);
}

.mortgage-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-float);
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 14px 18px;
    padding-right: 48px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.input-group textarea {
    padding-right: 18px;
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(124, 92, 252, 0.1);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 42px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.mortgage-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
    background:
        radial-gradient(ellipse at center, rgba(124, 92, 252, 0.08) 0%, transparent 70%);
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.result-amount {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 32px;
}

.result-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.detail-value {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-float);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 96px 0 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    text-align: justify;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-glass);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: rgba(124, 92, 252, 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Footer Contact Column */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.agent-footer-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.agent-avatar-footer {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.agent-info-footer {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-info-footer strong {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.agent-info-footer span {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    font-weight: 500;
}

.footer-contact .contact-item svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--accent-primary);
}

/* Footer Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    padding: 24px;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-float);
    height: auto;
    margin: auto 0;
    position: relative;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-subtle);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(124, 92, 252, 0.3);
}

.modal-image {
    position: relative;
    height: 280px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 32px;
}

.modal-body h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-location {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.modal-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.modal-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

.modal-spec .spec-value {
    font-size: 1.1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float-rotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(180deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -30px); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

@keyframes particle-float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(var(--drift)); opacity: 0; }
}

/* Scroll reveal */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero entrance animations */
.hero.loaded .hero-subtitle,
.hero.loaded .hero-title,
.hero.loaded .hero-desc,
.hero.loaded .hero-cta {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero.loaded .hero-subtitle { transition-delay: 0.2s; }
.hero.loaded .hero-title   { transition-delay: 0.4s; }
.hero.loaded .hero-desc    { transition-delay: 0.6s; }
.hero.loaded .hero-cta     { transition-delay: 0.8s; }


/* ============================================
   RESPONSIVE (Original Updated)
   ============================================ */
@media (max-width: 900px) {
    .mortgage-card {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    /* Use solid bg on mobile to avoid backdrop-filter containing block issue */
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(5, 5, 16, 0.98);
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1001;
        background: rgba(5, 5, 16, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 14px 32px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-actions .button {
        display: none;
    }

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

    .card-specs {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .contact-card {
        padding: 28px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        padding: 14px 28px;
    }

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


/* ============================================
   PARTICLE KEYFRAMES — Explosive Hero Effects
   ============================================ */

/* Main orb float — faster, with horizontal drift */
@keyframes particle-float {
    0% {
        transform: translateY(110vh) translateX(0) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(calc(var(--drift) * 0.2)) scale(1);
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--drift)) scale(0.7);
        opacity: 0;
    }
}

/* Spark streaks — diagonal fast shoot */
@keyframes spark-shoot {
    0% {
        transform: translateY(110vh) translateX(0) rotate(-30deg) scaleX(0.5);
        opacity: 0;
    }
    8% {
        opacity: 1;
        transform: translateY(90vh) translateX(calc(var(--drift) * 0.3)) rotate(-30deg) scaleX(1);
    }
    85% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-10vh) translateX(var(--drift)) rotate(-30deg) scaleX(0.3);
        opacity: 0;
    }
}

/* Burst rings — expand from a point outward, flash then fade */
@keyframes burst-ring {
    0% {
        transform: scale(0.2);
        opacity: 0.9;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Star twinkle — rapid bright flicker */
@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.1;
        transform: scale(0.6);
    }
    30% {
        opacity: 1;
        transform: scale(1.4);
    }
    60% {
        opacity: 0.4;
        transform: scale(0.9);
    }
    80% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

