/* General Styles */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #f39c12;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --bg-color: #fff;
  --section-padding: 80px 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
.hidden {
  display: none !important;
}
body {
  font-family: "Tajawal", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  direction: rtl;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

p {
  margin-bottom: 15px;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--secondary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary-color);
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
}

.section-header p {
  font-size: 18px;
  color: #777;
}

.btn {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
}

header.sticky {
  padding: 10px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 24px;
  margin-bottom: 0;
  color: var(--primary-color);
}

.logo p {
  font-size: 14px;
  margin-bottom: 0;
  color: var(--secondary-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu li a {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-color);
  padding: 5px 0;
  position: relative;
}

.nav-menu li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-image: url("./images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
  animation: fadeInDown 1s ease;
}

.hero-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease 0.2s;
  animation-fill-mode: both;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: both;
}

.hero-content .btn {
  animation: fadeInUp 1s ease 0.6s;
  animation-fill-mode: both;
}

/* About Section */
.about {
  padding: var(--section-padding);
  background-color: #f9f9f9;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.feature {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 30px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 0;
}

/* Apartments Section */
.apartments {
  padding: var(--section-padding);
}

.apartment-types {
  max-width: 600px;
  margin: 0 auto 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.type-header {
  display: flex;
  background-color: var(--primary-color);
  color: white;
  padding: 15px 20px;
  font-weight: 700;
}

.type-header .type,
.type-item .type {
  flex: 1;
}

.type-header .size,
.type-item .size {
  flex: 2;
}

.type-item {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background-color: white;
  transition: all 0.3s ease;
}

.type-item:last-child {
  border-bottom: none;
}

.type-item:hover {
  background-color: #f9f9f9;
}

.type-item .type {
  font-weight: 700;
  color: var(--primary-color);
}

.apartment-details {
  margin-top: 50px;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 25px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.3s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.apartment-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.floor-plan {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specs {
  flex: 1;
  min-width: 300px;
}

.specs h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.specs ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.specs ul li i {
  color: var(--secondary-color);
  margin-left: 10px;
}

/* Amenities Section */
.amenities {
  padding: var(--section-padding);
  background-color: #f9f9f9;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.amenity-item {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.amenity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.amenity-icon i {
  font-size: 30px;
  color: var(--secondary-color);
}

.amenity-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* Master Plan Section */
.master-plan {
  padding: var(--section-padding);
}

.plan-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.plan-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.plan-details {
  flex: 1;
  min-width: 300px;
}

.plan-item {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.plan-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Location Section */
.location {
  padding: var(--section-padding);
  background-color: #f9f9f9;
}

.location-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.location-map {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.location-info {
  flex: 1;
  min-width: 300px;
}

.location-info h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  margin-top: 30px;
}

.location-info h3:first-child {
  margin-top: 0;
}

.location-info ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.location-info ul li i {
  color: var(--secondary-color);
  margin-left: 10px;
}

/* Contact Section */
.contact {
  padding: var(--section-padding);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.info-item {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.info-item i {
  font-size: 30px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.info-item h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.info-item p {
  margin-bottom: 0;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: "Tajawal", sans-serif;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-social {
  flex: 1;
  min-width: 200px;
}

.footer-logo h2 {
  color: white;
  margin-bottom: 10px;
}

.footer-logo p {
  color: #bbb;
}

.footer-links h3,
.footer-social h3 {
  color: white;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #bbb;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-right: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: #bbb;
  margin-bottom: 0;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 0 0 20px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-content h2 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 18px;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .hero-content h2 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

@media screen and (max-width: 576px) {
  .section-header h2 {
    font-size: 26px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-content h2 {
    font-size: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
