:root {
  --primary: #b69535; /* درجات الأصفر الغامق */
  --primary-dark: #9a7d2b;
  --primary-light: #d4b95d;
  --text: #333;
  --light: #f8f8f8;
  --dark: #222;
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--light);
  overflow-x: hidden;
}

.header-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-container {
  padding: 20px 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--primary);
  color: white;
  border-radius: 12px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--primary);
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--dark);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav ul li a:hover:after {
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: white;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  text-align: center;
}

.hero-content {
  position: absolute;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--overlay), var(--overlay));
  z-index: 1;
}




.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* About Section */
.about {
  background-color: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  color: var(--primary-dark);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature i {
  color: var(--primary);
  font-size: 1.5rem;
  margin-top: 5px;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Apartments Section */
.apartments {
  background-color: #f9f9f9;
}

.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.apartment-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.apartment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.swiper {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  font-size: 10px;
}

.slider-btn:hover {
  background: white;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.apartment-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.apartment-features span {
  background: #f0f0f0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.card-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-weight: 600;
}

.price {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Nearby Locations Section */
.nearby-locations {
  background-color: white;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.location-card {
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.location-image {
  height: 200px;
  overflow: hidden;
}

.location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.location-card:hover .location-image img {
  transform: scale(1.1);
}

.location-info {
  padding: 20px;
}

.location-info h3 {
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.location-info p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0;
}

/* Guest Lens Section */
.guest-lens {
  background-color: #f9f9f9;
}

.guest-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.guest-image {
  border-radius: 10px;
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.guest-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.guest-image:hover {
  transform: translateY(-5px);
}

.guest-image:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  background: #f9f9f9;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-10px);
}

.service-card:hover h3,
.service-card:hover i {
  color: white;
}

.service-card i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary);
  transition: var(--transition);
}

.service-card h3 {
  margin-bottom: 15px;
  transition: var(--transition);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(var(--overlay), var(--overlay)),
    url("https://images.unsplash.com/photo-1533450718592-29d45635fa0a?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1740&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
  text-align: center;
}

.testimonials .section-title {
  color: white;
}

.testimonials .section-title:after {
  background: white;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  margin: 20px;
}

.testimonial-content {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.author-info h4 {
  margin-bottom: 5px;
  color: white;
}

/* Contact Section */
.contact {
  background-color: white;
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.contact-info h2 {
  color: var(--primary-dark);
}

.contact-details {
  margin: 30px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

.map-container {
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating Buttons */
.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 100;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.floating-btn2 {
  animation: pulse2 2s infinite;
}

.whatsapp-btn {
  background-color: #25d366;
}

.map-btn {
  background-color: #dbdbdb;
}

.map-btn img {
  width: 20px;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.1);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@keyframes pulse2 {
  0% {
    box-shadow: 0 0 0 0 rgba(219, 219, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer */
footer {
  background-color: var(--dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.footer-about p {
  color: #aaa;
}

.footer-links h3,
.footer-contact h3 {
  color: white;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: #aaa;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary);
  padding-right: 5px;
}

.footer-contact .contact-item {
  color: #aaa;
  margin-bottom: 15px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #333;
  color: white;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid #333;
  color: #777;
}

/* Animation Styles */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: block;
  }

  nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
  }

  nav.active {
    max-height: 500px;
    padding: 20px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  nav ul li {
    margin-left: 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }

  .slider-container {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .guest-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* إخفاء social-icons داخل nav في الشاشات الكبيرة */
.social-icons.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .social-icons.mobile-only {
    display: flex;
    margin-top: 20px;
  }

  /* نخفي السوشيال الأصلية إذا كانت موجودة في الهيدر */
  .header-container > .social-icons {
    display: none;
  }
}

.swiper-button-next,
.swiper-button-prev {
  background-color: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}
