/* =====================================================
   DALELAK PROFESSIONAL CSS THEME PACKAGE
   Luxury Real Estate UI Theme
   Dark Purple + Gold Edition
===================================================== */

/* =========================
   ROOT VARIABLES
========================= */

:root {

  /* Main Colors */
  --bg-main: #0F1115;
  --bg-secondary: #1A1D24;
  --bg-card: rgba(255,255,255,0.04);

  --primary: #6C4DFF;
  --primary-light: #8B5CF6;
  --gold: #F4B942;
  --gold-light: #FFD978;

  --white: #FFFFFF;
  --text-secondary: #B8BCC8;
  --border: rgba(255,255,255,0.08);

  --success: #10B981;
  --danger: #EF4444;

  /* Shadows */
  --shadow-primary: 0 10px 40px rgba(108,77,255,.35);
  --shadow-gold: 0 10px 40px rgba(244,185,66,.25);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transition */
  --transition: .35s ease;

}

/* =========================
   GLOBAL STYLES
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--white);
  font-family: 'Poppins', 'Cairo', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 92%;
  max-width: 1400px;
  margin: auto;
}

.section-padding {
  padding: 120px 0;
}

/* =========================
   CUSTOM SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    var(--primary),
    var(--gold)
  );
  border-radius: 20px;
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(20px);
  background: rgba(15,17,21,.65);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--gold);
}

/* =========================
   HERO SECTION
========================= */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.45),
    rgba(0,0,0,.75)
  );
  z-index: 1;
}

.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero-title {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 25px;
}

.hero-title span {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--gold)
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 20px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );

  color: var(--white);
  border: none;
  padding: 16px 34px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-4px);
}

.btn-secondary {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 16px 34px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--gold);
}

.btn-gold {
  background: linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light)
  );

  color: #111827;
  border: none;
  padding: 16px 34px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
}

/* =========================
   GLASS CARD
========================= */

.glass-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* =========================
   SEARCH BOX
========================= */

.search-box {
  margin-top: 50px;
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 18px;
}

.input-modern {
  height: 58px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--white);
  padding: 0 18px;
  outline: none;
}

.input-modern:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,77,255,.15);
}

/* =========================
   SECTION TITLES
========================= */

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 700px;
  margin-bottom: 60px;
}

/* =========================
   PROPERTY CARDS
========================= */

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
  gap: 30px;
}

.property-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(20px);
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-primary);
}

.property-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover img {
  transform: scale(1.08);
}

.property-price {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light)
  );

  color: #111827;
  padding: 10px 18px;
  border-radius: 14px;
  font-weight: 700;
}

.property-content {
  padding: 24px;
}

.property-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.property-location {
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.property-features {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  color: var(--text-secondary);
}

/* =========================
   CITY CARDS
========================= */

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
}

.city-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
}

.city-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.city-card:hover img {
  transform: scale(1.08);
}

.city-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0,0,0,.85)
  );

  display: flex;
  align-items: flex-end;
  padding: 30px;
}

.city-name {
  font-size: 32px;
  font-weight: 700;
}

/* =========================
   STATS SECTION
========================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 25px;
}

.stat-box {
  padding: 40px;
  text-align: center;
}

.stat-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--gold);
}

.stat-title {
  color: var(--text-secondary);
  margin-top: 12px;
}

/* =========================
   APP SECTION
========================= */

.app-section {
  position: relative;
  overflow: hidden;
}

.app-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}

.app-content {
  max-width: 550px;
}

.app-phones {
  position: relative;
}

.phone-mockup {
  width: 280px;
  border-radius: 40px;
  box-shadow: var(--shadow-primary);
}

/* =========================
   FOOTER
========================= */

.footer {
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 40px;
}

.footer-title {
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
}

/* =========================
   ANIMATIONS
========================= */

.fade-up {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glow {
  animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 0 rgba(108,77,255,.4);
  }

  50% {
    box-shadow: 0 0 40px rgba(108,77,255,.55);
  }

  100% {
    box-shadow: 0 0 0 rgba(108,77,255,.4);
  }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media(max-width: 1200px) {

  .hero-title {
    font-size: 58px;
  }

  .search-box {
    grid-template-columns: repeat(2,1fr);
  }

}

@media(max-width: 992px) {

  .navbar-inner {
    flex-direction: column;
    gap: 20px;
  }

  .app-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: 48px;
  }

}

@media(max-width: 768px) {

  .section-padding {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary,
  .btn-gold {
    width: 100%;
  }

  .section-title {
    font-size: 36px;
  }

}

@media(max-width: 480px) {

  .hero-title {
    font-size: 34px;
  }

  .section-title {
    font-size: 30px;
  }

  .property-title {
    font-size: 20px;
  }

}
