/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none; /* WebKit */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Cairo', 'Amiri', 'Arial', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(
    211deg, #467379c2 0%, rgba(70, 115, 121, 0.05) 25%, #467379b8 50%, rgba(70, 115, 121, 0.05) 75%, #467379bd 100%);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, 
    rgba(70, 115, 121, 0.08) 0%, 
    rgba(70, 115, 121, 0.03) 30%, 
    transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ===== ANIMATION STATES ===== */
.animate-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.animate-hidden-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  will-change: transform, opacity;
}

.animate-hidden-card,
.animate-hidden-description,
.animate-hidden-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.animate-visible,
.animate-visible-subtitle,
.animate-visible-card,
.animate-visible-description,
.animate-visible-item {
  opacity: 1;
  transform: translateY(0);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes progressPulse {
  0% { 
    width: 0%; 
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
  }
  50% { 
    width: 75%; 
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  }
  100% { 
    width: 100%; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(60px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}


/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  /* تحسينات لـ iOS Safari */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-container {
  text-align: center;
  color: white;
  min-width: 300px;
  padding: 20px;
}

/* Loading Spinner */
.loading-spinner {
  margin-bottom: 40px;
  position: relative;
  height: 80px;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top: 4px solid #467379;
  border-right: 4px solid #4673793b;
  animation-duration: 1.2s;
}

.spinner-ring:nth-child(2) {
  width: 80px;
  height: 80px;
  border: 3px solid transparent;
  border-bottom: 3px solid #467379;
  border-left: 3px solid rgba(70, 115, 121, 0.8);
  animation-duration: 1.8s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 100px;
  height: 100px;
  border: 2px solid transparent;
  border-top: 2px solid #467379;
  border-bottom: 2px solid rgba(70, 115, 121, 0.8);
  animation-duration: 2.4s;
}

/* Progress Bar */
.loading-progress {
  margin-top: 30px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #467379;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(70, 115, 121, 0.8);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.7) 50%, 
    rgba(255, 255, 255, 0.9) 100%);
  border-radius: 10px;
  width: 0%;
  animation: progressPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.progress-text {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(207deg, #2c5f63, #2c5f63, #2c5f63)  ;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0.4px rgba(255,255,255,0.2);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.3),
    0 2px 3px rgba(0,0,0,0.1);
}

/* ===== FLOATING NAVIGATION ===== */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgb(255 255 255 / 50%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}


.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #2c5f63;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  will-change: transform, color;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #467379, #2c5f63);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: width;
}

.nav-logo:hover .logo-text::after {
  width: 100%;
}

.nav-logo:hover .logo-text {
  color: #467379;
  transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav-link {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  color: #2c5f63;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  will-change: transform, background-color, box-shadow;
}


.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #467379;
  background-color: rgba(70, 115, 121, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(70, 115, 121, 0.2);
}




/* WhatsApp Button */
.whatsapp-btn {
  display: none;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 5px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.whatsapp-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: left;
}

.whatsapp-btn:hover::before {
  left: 100%;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}




/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100vw;
  height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Video Container */
.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  filter: brightness(0.7) contrast(1.1);
  /* تحسينات الأداء للفيديو */
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* تحسينات التوافق */
  -webkit-transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  /* إخفاء controls الافتراضية */
  -webkit-media-controls: none;
  -webkit-media-controls-panel: none;
  -webkit-media-controls-play-button: none;
  -webkit-media-controls-timeline: none;
  -webkit-media-controls-current-time-display: none;
  -webkit-media-controls-time-remaining-display: none;
  -webkit-media-controls-mute-button: none;
  -webkit-media-controls-volume-slider: none;
  -webkit-media-controls-fullscreen-button: none;
  /* إخفاء controls في جميع المتصفحات */
  &::-webkit-media-controls {
    display: none !important;
  }
  &::-webkit-media-controls-panel {
    display: none !important;
  }
  &::-webkit-media-controls-play-button {
    display: none !important;
  }
  &::-webkit-media-controls-timeline {
    display: none !important;
  }
  &::-webkit-media-controls-current-time-display {
    display: none !important;
  }
  &::-webkit-media-controls-time-remaining-display {
    display: none !important;
  }
  &::-webkit-media-controls-mute-button {
    display: none !important;
  }
  &::-webkit-media-controls-volume-slider {
    display: none !important;
  }
  &::-webkit-media-controls-fullscreen-button {
    display: none !important;
  }
  /* Firefox */
  &::-moz-media-controls {
    display: none !important;
  }
  /* Edge/IE */
  &::-ms-media-controls {
    display: none !important;
  }
}

/* إخفاء controls الافتراضية للفيديو */
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-panel {
  display: none !important;
}

video::-webkit-media-controls-play-button {
  display: none !important;
}

video::-webkit-media-controls-timeline {
  display: none !important;
}

video::-webkit-media-controls-current-time-display {
  display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

video::-webkit-media-controls-mute-button {
  display: none !important;
}

video::-webkit-media-controls-volume-slider {
  display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

/* Firefox */
video::-moz-media-controls {
  display: none !important;
}

/* Edge/IE */
video::-ms-media-controls {
  display: none !important;
}

/* Video Fallback */
.video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #467379 0%, #2c5f63 50%, #467379 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.fallback-content {
  text-align: center;
  color: white;
  z-index: 3;
}

.fallback-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.fallback-content p {
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Video Loading */
.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 3;
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.video-loading p {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Video Controls */
.video-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
  opacity: 1;
}

.play-pause-btn,
.mute-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.play-pause-btn:hover,
.mute-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.video-progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-bar {
  width: 100%;
  height: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #467379, #2c5f63);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}


.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
   rgba(255, 255, 255, 0.623) 0%,
    rgba(255, 255, 255, 0.63) 25%,
     rgba(255, 255, 255, 0.575) 50%,
      rgba(255, 255, 255, 0.521) 75%,
       rgba(255, 255, 255, 0.568) 100%);
  backdrop-filter: blur(1px);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 1000px;
  padding: 40px;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  color: #2c5f63;
  text-shadow: 0px 0px 4px rgb(255 255 255);
  line-height: 1.5;
  letter-spacing: 1px;
  will-change: transform, opacity;
}

.hero-title.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  color: #467379;
  text-shadow: 0px 0px 4px rgb(255 255 255);
  letter-spacing: 0.5px;
  will-change: transform, opacity;
}

.hero-subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: auto;
  will-change: transform, opacity;
}

.scroll-indicator.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(30px) scale(0.9);
  pointer-events: none;
}

.scroll-text {
  font-size: 1rem;
  font-weight: 600;
  color: #2c5f63;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  text-align: center;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(70, 115, 121, 0.2);
  box-shadow: 0 4px 15px rgba(70, 115, 121, 0.15);
}

.scroll-arrow {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #467379, #2c5f63);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 6px 20px rgba(70, 115, 121, 0.3),
    0 2px 8px rgba(70, 115, 121, 0.2);
  animation: bounceArrow 2s infinite;
  will-change: transform, box-shadow;
}

.scroll-arrow:hover {
  transform: scale(1.15);
  box-shadow: 
    0 10px 30px rgba(70, 115, 121, 0.5),
    0 6px 15px rgba(70, 115, 121, 0.4);
  animation: none;
}

.scroll-arrow svg {
  width: 24px;
  height: 24px;
  stroke: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.scroll-arrow:hover svg {
  transform: translateY(2px);
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* ===== SERVICES SECTION ===== */
.services {
  position: relative;
  min-height: 100vh;
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.services.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-header {
  text-align: center;
  margin-bottom: 80px;
}

.services-title,
.residential-title,
.sales-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  color: #2c5f63;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.2;
  letter-spacing: 1px;
  will-change: transform, opacity;
}

.services-title.show,
.residential-title.show,
.sales-title.show {
  opacity: 1;
  transform: translateY(0);
}

.services-subtitle,
.residential-subtitle,
.sales-subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  color: #467379;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
  will-change: transform, opacity;
}

.services-subtitle.show,
.residential-subtitle.show,
.sales-subtitle.show {
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.8) 25%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(255, 255, 255, 0.8) 75%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(70, 115, 121, 0.2);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 
    0 8px 32px rgba(70, 115, 121, 0.15),
    0 0 0 1px rgba(70, 115, 121, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 15px 35px rgba(70, 115, 121, 0.2),
    0 0 0 1px rgba(70, 115, 121, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(70, 115, 121, 0.3);
}



.service-icon,
.contact-icon {
  background: linear-gradient(135deg, rgba(70, 115, 121, 0.1), rgba(70, 115, 121, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(70, 115, 121, 0.2);
  will-change: transform, border-color, box-shadow;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.service-card:hover .service-icon,
.contact-item:hover .contact-icon {
  transform: scale(1.05);
  border-color: rgba(70, 115, 121, 0.4);
  box-shadow: 0 0 15px rgba(70, 115, 121, 0.2);
}

.service-icon svg,
.contact-icon svg {
  stroke: rgba(70, 115, 121, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: stroke;
}

.service-icon svg {
  width: 40px;
  height: 40px;
}

.contact-icon svg {
  width: 30px;
  height: 30px;
}

.service-card:hover .service-icon svg,


.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c5f63;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


.service-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #467379;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


/* ===== RESIDENTIAL UNITS SECTION ===== */
.residential-units {
  position: relative;
  min-height: 100vh;
  padding: 120px 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(248, 250, 252, 0.9) 25%, 
    rgba(255, 255, 255, 0.95) 50%, 
    rgba(248, 250, 252, 0.9) 75%, 
    rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(20px);
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  overflow: hidden;
}

.residential-units::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, 
    rgba(70, 115, 121, 0.1) 0%, 
    transparent 50%),
    radial-gradient(circle at 70% 80%, 
    rgba(44, 95, 99, 0.08) 0%, 
    transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.residential-units.visible {
  opacity: 1;
  transform: translateY(0);
}

.residential-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.residential-header {
  text-align: center;
  margin-bottom: 80px;
}





.units-showcase {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
}

.unit-showcase {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(70, 115, 121, 0.1);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 20px 60px rgba(70, 115, 121, 0.2),
    0 10px 30px rgba(70, 115, 121, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  will-change: transform, box-shadow;
  min-height: 400px;
}

.unit-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.unit-image-container {
  position: relative;
  width: 100%;
  height: 300px; /* زيادة الارتفاع لتناسب نسبة 1080×720 */
  overflow: hidden;
  border-radius: 30px 0 0 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unit-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.9) contrast(1.1);
  will-change: transform, filter;
}

.unit-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(70, 115, 121, 0.3) 0%, 
    rgba(44, 95, 99, 0.5) 50%, 
    rgba(70, 115, 121, 0.3) 100%);
  z-index: 2;
}

.unit-size-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #2c5f63, #467379);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 
    0 8px 25px rgba(70, 115, 121, 0.4),
    0 4px 12px rgba(70, 115, 121, 0.3);
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.unit-stats {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(70, 115, 121, 0.1) 0%, 
    rgba(44, 95, 99, 0.15) 100%);
  border-top: 1px solid rgba(70, 115, 121, 0.2);
}

.stat-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-number {
  font-size: 24px;
  font-weight: 800;
  color: #2c5f63;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #467379;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.unit-info {
  flex: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(248, 250, 252, 0.8) 100%);
}

.unit-name {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: #2c5f63;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.3;
  text-align: center;
}

.unit-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #467379;
  margin-bottom: 25px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-align: center;
}

.unit-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: linear-gradient(135deg, 
    rgba(70, 115, 121, 0.08) 0%, 
    rgba(44, 95, 99, 0.12) 100%);
  border-radius: 15px;
  border: 1px solid rgba(70, 115, 121, 0.15);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(70, 115, 121, 0.12) 0%, 
    rgba(44, 95, 99, 0.18) 100%);
  border-color: rgba(70, 115, 121, 0.25);
}

.feature-icon {
  font-size: 20px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-text {
  font-size: 14px;
  font-weight: 600;
  color: #2c5f63;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.unit-showcase:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 30px 80px rgba(70, 115, 121, 0.3),
    0 15px 40px rgba(70, 115, 121, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(70, 115, 121, 0.3);
}

.unit-showcase:hover .unit-size-badge {
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(70, 115, 121, 0.5),
    0 6px 18px rgba(70, 115, 121, 0.4);
}

.unit-showcase:hover .unit-overlay-gradient {
  background: linear-gradient(135deg, 
    rgba(70, 115, 121, 0.4) 0%, 
    rgba(44, 95, 99, 0.6) 50%, 
    rgba(70, 115, 121, 0.4) 100%);
}

.unit-showcase:hover .unit-image-container img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.2);
}

/* ===== IMAGE MODAL ===== */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 15px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active .image-modal-content {
  transform: scale(1);
}

.image-modal img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.image-modal img[src=""] {
  opacity: 0;
}

.image-modal img:not([src=""]) {
  opacity: 1;
}

.image-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  z-index: 10001;
}

.image-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.image-modal-info {
  padding: 20px;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.image-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5f63;
  margin-bottom: 10px;
  text-align: center;
}

.image-modal-description {
  font-size: 1rem;
  color: #467379;
  text-align: center;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

body.modal-open .floating-nav,
body.modal-open .residential-units,
body.modal-open .services,
body.modal-open .sales-center,
body.modal-open .footer {
  filter: blur(5px);
  transition: filter 0.4s ease;
}



.unit-image {
  position: relative;
  width: 40%;
  min-height: 400px;
  overflow: hidden;
  border-radius: 25px 0 0 25px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

  .unit-image img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9) contrast(1.1);
    will-change: transform, filter;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    transform: translateZ(0);
  }

.unit-card:hover .unit-image img {
  transform: scale(1.08);
  filter: brightness(1) contrast(1.2);
}


.unit-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(44, 95, 99, 0.1) 0%, 
    rgba(70, 115, 121, 0.2) 50%, 
    rgba(90, 138, 143, 0.1) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 20px;
}

.unit-badge {
  background: linear-gradient(135deg, #2c5f63, #467379);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 
    0 6px 20px rgba(70, 115, 121, 0.3),
    0 2px 8px rgba(70, 115, 121, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse 2s infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
  will-change: transform, box-shadow;
}

.unit-card:hover .unit-badge {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 
    0 8px 25px rgba(70, 115, 121, 0.4),
    0 4px 12px rgba(70, 115, 121, 0.3);
  animation: none;
  background: linear-gradient(135deg, #467379, #2c5f63);
}

.unit-content {
  padding: 35px 30px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(248, 250, 252, 0.6) 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.unit-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #2c5f63;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.3;
  letter-spacing: 0.5px;
}


.unit-details {
  margin-bottom: 20px;
}

.unit-detail {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(70, 115, 121, 0.1);
}


.detail-value {
  text-align: center;
  width: 100%;
  font-weight: 600;
  color: #467379;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  font-size: 1.1rem;
}

.unit-features {
  margin-top: 15px;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(70, 115, 121, 0.05) 0%, 
    rgba(44, 95, 99, 0.08) 100%);
  border-radius: 18px;
  border: 1px solid rgba(70, 115, 121, 0.1);
  flex: 1;
}

.features-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c5f63;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  text-align: center;
  letter-spacing: 0.5px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  padding: 6px 0;
  position: relative;
  padding-right: 25px;
  color: #467379;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  font-weight: 500;
  border-bottom: 1px solid rgba(70, 115, 121, 0.1);
  font-size: 0.95rem;
  will-change: transform, background-color;
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li:hover {
  transform: translateX(8px);
  color: #2c5f63;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding-left: 10px;
  margin: 0 -10px;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  top: 8px;
  color: #467379;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #467379, #2c5f63);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  will-change: transform;
}

.features-list li:hover::before {
  transform: scale(1.3) rotate(5deg);
  -webkit-text-fill-color: #2c5f63;
}

/* ===== SALES CENTER SECTION ===== */
.sales-center {
  position: relative;
  min-height: 100vh;
  padding: 100px 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.sales-center.visible {
  opacity: 1;
  transform: translateY(0);
}

.sales-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.sales-header {
  text-align: center;
  margin-bottom: 80px;
}





.sales-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.sales-description {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.8) 25%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(255, 255, 255, 0.8) 75%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(70, 115, 121, 0.2);
  border-radius: 25px;
  box-shadow: 
    0 8px 32px rgba(70, 115, 121, 0.15),
    0 0 0 1px rgba(70, 115, 121, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}


.sales-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #467379;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.8) 25%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(255, 255, 255, 0.8) 75%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(25px);
  border: 2px solid rgba(70, 115, 121, 0.2);
  border-radius: 20px;
  box-shadow: 
    0 8px 32px rgba(70, 115, 121, 0.15),
    0 0 0 1px rgba(70, 115, 121, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  will-change: transform, box-shadow;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 12px 30px rgba(70, 115, 121, 0.2),
    0 0 0 1px rgba(70, 115, 121, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(70, 115, 121, 0.3);
}





.contact-details {
  flex: 1;
}

.contact-label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c5f63;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.contact-value {
  font-size: 1rem;
  margin: 0;
  color: #467379;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


.sales-cta {
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 18px 35px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.cta-button svg {
  width: 24px;
  height: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.cta-button:hover {
  background: #128C7E;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
}

/* ===== FOOTER SECTION ===== */
.footer {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 255, 255, 0.8) 25%, 
    rgba(255, 255, 255, 0.9) 50%, 
    rgba(255, 255, 255, 0.8) 75%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(25px);
  border-top: 2px solid rgba(70, 115, 121, 0.2);
  z-index: 1;
  padding: 40px 0 20px;
  opacity: 1;
  transform: translateY(0);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  text-align: center;
  margin-bottom: 30px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c5f63;
  margin-bottom: 10px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.footer-title:hover {
  color: #467379;
}

.footer-description {
  font-size: 1rem;
  color: #467379;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.footer-description:hover {
  color: #2c5f63;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 850px) {
  /* Navigation */
  .floating-nav {
    top: 15px;
    width: 95%;
    padding: 12px 20px;
  }
  
  html {
    scroll-padding-top: 80px;
  }
  
  body {
    scroll-behavior: smooth;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .logo-image {
    width: 35px;
    height: 35px;
  }
  
  /* Hero */
  .hero-content {
    padding: 20px;
    max-width: 90%;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  /* Services */
  .services {
    padding: 60px 0;
  }
  
  .services-title {
    font-size: 2.2rem;
    opacity: 0;
    transform: translateY(50px);
  }
  
  .services-subtitle {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
  }
  
  .service-icon svg {
    width: 35px;
    height: 35px;
  }
  
  .service-title {
    font-size: 1.2rem;
  }
  
  .service-description {
    font-size: 0.9rem;
  }
  
  /* Residential Units */
  .residential-units {
    padding: 60px 0;
  }
  
  .residential-title {
    font-size: 2.2rem;
    opacity: 0;
    transform: translateY(50px);
  }
  
  .residential-subtitle {
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .units-showcase {
    gap: 40px;
    margin-top: 50px;
    padding: 0 15px;
  }
  
  .unit-showcase {
    flex-direction: column;
    min-height: auto;
    gap: 20px;
  }
  
  .unit-image-container {
    width: 100%;
    height: 375px; 
    border-radius: 25px;
  }
  
  .unit-info {
    padding: 25px 20px;
  }
  
  .unit-name {
    font-size: 1.6rem;
  }
  
  .unit-description {
    font-size: 1rem;
  }
  
  .unit-features-grid {
    gap: 12px;
  }
  
  .unit-title {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2c5f63;
    position: relative;
  }
  
  .unit-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #467379, #2c5f63);
    border-radius: 2px;
  }
  
  .features-title {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #467379;
    font-weight: 600;
  }
  
  .unit-features {
    margin-top: 15px;
    padding: 20px;
    background: linear-gradient(135deg, 
      rgba(70, 115, 121, 0.08) 0%, 
      rgba(44, 95, 99, 0.12) 100%);
    border-radius: 20px;
    border: 1px solid rgba(70, 115, 121, 0.15);
    transition: all 0.3s ease;
  }
  
  .unit-card:hover .unit-image {
    transform: translateY(-5px);
    box-shadow: 
      0 20px 50px rgba(70, 115, 121, 0.3),
      0 12px 25px rgba(70, 115, 121, 0.2);
  }
  
  .unit-card:hover .unit-content {
    transform: translateY(-5px);
    box-shadow: 
      0 20px 50px rgba(70, 115, 121, 0.3),
      0 12px 25px rgba(70, 115, 121, 0.2);
  }
  
  .unit-card:hover .unit-features {
    background: linear-gradient(135deg, 
      rgba(70, 115, 121, 0.12) 0%, 
      rgba(44, 95, 99, 0.18) 100%);
    border-color: rgba(70, 115, 121, 0.25);
    transform: translateY(-2px);
  }
  
  .unit-card:hover .unit-title::after {
    width: 80px;
    background: linear-gradient(90deg, #2c5f63, #467379);
  }
  
  /* Loading */
  .loading-container {
    max-width: 300px;
    padding: 15px;
  }
  
  /* Footer */
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer-content {
    margin-bottom: 25px;
  }
  
  .footer-title {
    font-size: 1.3rem;
  }
  
  .footer-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 60px;
  }
  
  body {
    scroll-behavior: smooth;
  }
  
  .hero-content {
    padding: 15px;
    max-width: 95%;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  /* Scroll Indicator - Mobile */
  .scroll-indicator {
    bottom: 20px;
    gap: 12px;
  }
  
  .scroll-text {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
  
  .scroll-arrow {
    width: 45px;
    height: 45px;
  }
  
  .scroll-arrow svg {
    width: 20px;
    height: 20px;
  }
  
  /* Services */
  .services {
    padding: 40px 0;
  }
  
  .services-title {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(50px);
  }
  
  .services-subtitle {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }
  
  .service-card {
    padding: 25px 15px;
  }
  
  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }
  
  .service-icon svg {
    width: 30px;
    height: 30px;
  }
  
  .service-title {
    font-size: 1.1rem;
  }
  
  .service-description {
    font-size: 0.85rem;
  }
  
  /* Residential Units */
  .residential-units {
    padding: 40px 0;
  }
  
  .residential-title {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(50px);
  }
  
  .residential-subtitle {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .units-showcase {
    gap: 30px;
    margin-top: 30px;
    padding: 0 10px;
  }
  
  .unit-showcase {
    flex-direction: column;
    min-height: auto;
    gap: 15px;
  }
  
  .unit-image-container {
    width: 100%;
    height: 225px;
    border-radius: 25px;
  }
  
  .unit-info {
    padding: 20px 15px;
  }
  
  .unit-name {
    font-size: 1.4rem;
  }
  
  .unit-description {
    font-size: 0.95rem;
  }
  
  .unit-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .feature-item {
    padding: 10px 12px;
  }
  
  .feature-text {
    font-size: 13px;
  }
  
  .unit-title {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 15px;
    color: #2c5f63;
    position: relative;
    font-weight: 700;
  }
  
  .unit-title::before {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
  }
  
  .features-title {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 12px;
    color: #467379;
    font-weight: 600;
    position: relative;
  }
  
  .features-title::before {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
  }
  
  .unit-features {
    margin-top: 12px;
    padding: 15px;
    background: linear-gradient(135deg, 
      rgba(70, 115, 121, 0.1) 0%, 
      rgba(44, 95, 99, 0.15) 100%);
    border-radius: 15px;
    border: 1px solid rgba(70, 115, 121, 0.2);
  }
  
  .features-list li {
    font-size: 0.9rem;
    padding: 6px 0;
    position: relative;
    padding-right: 20px;
    transition: all 0.3s ease;
  }
  
  .features-list li::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 6px;
    color: #467379;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .features-list li:hover {
    transform: translateX(5px);
    color: #2c5f63;
  }
  
  .features-list li:hover::before {
    transform: scale(1.2);
    color: #2c5f63;
  }
  
  .unit-details {
    margin-bottom: 15px;
    text-align: center;
  }
  
  .detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #467379;
    background: linear-gradient(135deg, 
      rgba(70, 115, 121, 0.1) 0%, 
      rgba(44, 95, 99, 0.15) 100%);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
  }
  
  /* Sales Center */
  .sales-center {
    padding: 40px 0;
  }
  
  .sales-title {
    font-size: 1.8rem;
    opacity: 0;
    transform: translateY(50px);
  }
  
  .sales-subtitle {
    font-size: 1rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .sales-content {
    gap: 30px;
    margin-bottom: 40px;
    max-width: 100%;
  }
  
  .sales-description {
    padding: 20px;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-item {
    padding: 15px;
    gap: 15px;
  }
  
  .contact-icon {
    width: 50px;
    height: 50px;
  }
  
  .contact-icon svg {
    width: 25px;
    height: 25px;
  }
  
  .contact-label {
    font-size: 1rem;
  }
  
  .contact-value {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 15px 25px;
    font-size: 1rem;
  }
  
  .cta-button svg {
    width: 20px;
    height: 20px;
  }
  
  .footer {
    padding: 25px 0 15px;
  }
  
  .footer-content {
    margin-bottom: 20px;
  }
  
  .footer-title {
    font-size: 1.2rem;
  }
  
  .footer-description {
    font-size: 0.85rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .footer {
    padding: 20px 0 10px;
  }
  
  .footer-content {
    margin-bottom: 15px;
  }
  
  .footer-title {
    font-size: 1.1rem;
  }
  
  .footer-description {
    font-size: 0.8rem;
  }
}

/* ===== iOS SAFARI SPECIFIC FIXES ===== */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari specific styles */
  .loading-overlay {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    will-change: opacity, visibility;
  }
  
  .loading-overlay.hidden {
    -webkit-animation: fadeOut 0.8s ease-out both;
    animation: fadeOut 0.8s ease-out both;
  }
  
  .hero-video {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  
  /* تحسين الأداء على iOS */
  .floating-nav,
  .hero-content,
  .services,
  .residential-units,
  .sales-center {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
}