:root {
  --bg: #222831;
  --bg-soft: #2a3445;
  --bg-lighter: #30475e;
  --accent: #f05454;
  --text: #dddddd;
  --muted: #a9b0bb;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.22);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Inter', 'Cairo', sans-serif;
  background: radial-gradient(circle at 15% 10%, #324863 0%, #222831 44%) fixed;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(240, 84, 84, 0.2), transparent 42%),
    radial-gradient(circle at 80% 20%, rgba(92, 168, 255, 0.13), transparent 48%);
  z-index: -2;
}

[dir='rtl'] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.2rem;
  box-sizing: border-box;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-head {
  max-width: 780px;
  margin-bottom: 2.2rem;
}

.section-head span {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.section-head p {
  color: var(--muted);
  margin-top: 1rem;
}

.glass-panel {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 1000px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #ff7f7f);
  color: #fff;
  box-shadow: 0 14px 26px rgba(240, 84, 84, 0.35);
}

.btn-ghost {
  border-color: rgba(221, 221, 221, 0.45);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #151a22;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-glow {
  position: absolute;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 84, 84, 0.42), transparent 68%);
  filter: blur(18px);
  animation: pulse 2.2s ease-in-out infinite;
}

.loader-content {
  position: relative;
  text-align: center;
}

.loader-brand {
  margin: 0;
  font-size: 3rem;
  letter-spacing: 0.2em;
  font-family: 'Space Grotesk', sans-serif;
}

.loader-subtitle {
  margin: 0.4rem 0 1rem;
  color: var(--muted);
}

.loader-track {
  width: min(300px, 72vw);
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

#loader-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff8f8f);
  transition: width 0.2s ease;
}

.site-header {
  position: fixed;
  top: 1.1rem;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 40;
  transition: transform 0.3s ease;
  overflow-x: clip;
}

.site-header.scrolled .header-inner {
  background: rgba(34, 40, 49, 0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;

  width: 100%;
  max-width: 100%;

  padding: 0.65rem 1rem;

  overflow: hidden;
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;

  flex-shrink: 1;
  min-width: 0;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: 100%;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;

  min-width: 0;
  max-width: 100%;
}

.main-nav a {
  color: #f2f2f2;
  font-size: 0.92rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.lang-switch {
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #171d25;
}

.hero-video,
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.52) hue-rotate(165deg);
}

#hero-canvas {
  opacity: 0.42;
  mix-blend-mode: screen;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 84, 84, 0.25), transparent 40%),
    radial-gradient(circle at 85% 22%, rgba(92, 168, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(23, 29, 37, 0.45) 0%, rgba(16, 20, 26, 0.82) 100%);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(240, 84, 84, 0.18), transparent 38%),
    linear-gradient(to top, rgba(20, 24, 30, 0.88), rgba(26, 32, 40, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 7rem;
}

.hero-kicker {
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0.8rem 0 1rem;
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 1.06;
}

.hero p {
  margin: 0;
  max-width: 620px;
  color: #c9d0d9;
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-scroll-indicator {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(221, 221, 221, 0.8);
}

.about-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

.about-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-cards article {
  padding: 1.2rem;
}

.about-cards ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.about-cards li + li {
  margin-top: 0.55rem;
}

.stats-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.services-grid,
.why-grid,
.process-grid {
  display: grid;
  gap: 1rem;
}

.services-grid,
.why-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.why-card,
.process-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.2rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover,
.why-card:hover,
.process-card:hover {
  border-color: rgba(240, 84, 84, 0.65);
  transform: translateY(-3px);
}

.service-index,
.process-number {
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.16em;
}

.property-swiper {
  padding-bottom: 2.6rem;
}

.property-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
}

.property-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48%;
  background: linear-gradient(to top, rgba(12, 15, 19, 0.9), transparent);
  pointer-events: none;
}

.property-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.property-content {
  padding: 1rem;
  position: relative;
  z-index: 2;
  margin-top: -4.2rem;
}

.property-content h3 {
  margin: 0;
}

.property-content p {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.story-section {
  background:
    radial-gradient(circle at 82% 30%, rgba(240, 84, 84, 0.2), transparent 38%),
    linear-gradient(140deg, #171d25, #253146);
  overflow: hidden;
}

.story-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(34, 40, 49, 0.1), rgba(34, 40, 49, 0.8));
}

.story-wrap {
  position: relative;
  z-index: 2;
}

.story-lines {
  display: grid;
  gap: 1rem;
}

.story-line {
  max-width: 720px;
  padding: 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
}

.forms-section .form-tabs {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.28rem;
  gap: 0.25rem;
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(240, 84, 84, 0.22);
}

.form-panels {
  margin-top: 1.2rem;
}

.premium-form {
  display: none;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.premium-form.active {
  display: block;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.premium-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.premium-form input,
.premium-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(11, 15, 20, 0.4);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font-family: inherit;
}

.premium-form textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.flash-message {
  margin: 0.8rem 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.flash-message.success {
  background: rgba(59, 191, 117, 0.18);
  border: 1px solid rgba(59, 191, 117, 0.45);
}

.flash-message.error {
  background: rgba(240, 84, 84, 0.18);
  border: 1px solid rgba(240, 84, 84, 0.5);
}

.location-section .map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
}

.location-section iframe {
  border: 0;
  width: 100%;
  min-height: 420px;
  display: block;
  filter: saturate(0.7) hue-rotate(182deg) brightness(0.78) contrast(1.1);
}

.inner-hero {
  padding-top: 10rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-card {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.timeline-card span {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

.cta-section .glass-panel {
  padding: 2rem;
  text-align: center;
}

.contact-cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-cards article {
  padding: 1.1rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 20, 26, 0.88);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-links {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 0.5rem;
}

.social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--text);
}

.swiper-pagination-bullet {
  background: rgba(221, 221, 221, 0.5);
}

.swiper-pagination-bullet-active {
  background: var(--accent);
}


.visuals-section {
  padding-top: 3rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visual-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-height: 430px;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: saturate(0.72) contrast(1.02) brightness(0.78);
}

.visual-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 16, 0.88), rgba(10, 12, 16, 0.2));
  z-index: 1;
}

.visual-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.visual-copy h3 {
  margin: 0;
  font-size: 1.2rem;
}

.visual-copy p {
  margin: 0.45rem 0 0;
  color: #c7cdd6;
}

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

@media (max-width: 1120px) {
  .services-grid,
  .why-grid,
  .timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(22, 27, 35, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .services-grid,
  .why-grid,
  .process-grid,
  .timeline-grid,
  .contact-cards,
  .about-cards,
  .visual-grid,
  .footer-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    gap: 0.5rem;
  }

  .lang-switch {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }

  .hero-content {
    padding-top: 8rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ==========================================
   MOBILE HEADER OVERFLOW FIX
========================================== */

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.site-header,
.header-inner,
.container {
  max-width: 100vw;
}

@media (max-width: 880px) {

  .site-header {
    left: 0;
    right: 0;
    width: 100%;
  }

  .header-inner {
    overflow: visible;
  }

  .main-nav {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    box-sizing: border-box;
  }
}
