/* الأساسيات */
:root {
  --primary-color: #c62828; /* أحمر داكن */
  --secondary-color: #212121; /* أسود */
  --dark-color: #121212; /* أسود داكن */
  --darker-color: #0a0a0a; /* أسود أغمق */
  --light-color: #f5f5f5; /* أبيض فاتح */
  --text-color: #e0e0e0; /* رمادي فاتح */
  --text-dark: #333;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Tajawal', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--dark-color);
  color: var(--text-color);
  direction: rtl;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  box-shadow: none;
  color: inherit;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-icon {
  gap: 8px;
}

.btn-icon .hover-effect {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  top: 0;
  left: -100%;
  transition: all 0.3s ease;
}

.btn-icon:hover .hover-effect {
  left: 0;
}

/* القسم الرئيسي */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-align: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.8), rgba(10, 10, 10, 0.9));
}

.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/pattern.png') repeat;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #c62828, #212121, #c62828);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite alternate, gradientMove 6s linear infinite;
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.3);
    position: relative;
    display: block;
    z-index: 10;
    order: 1;
    margin-top: 0;
    transform: translateZ(0);
}

@keyframes glow {
    0% {
        text-shadow: 0 0 10px rgba(198, 40, 40, 0.5),
                     0 0 20px rgba(198, 40, 40, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(198, 40, 40, 0.8),
                     0 0 30px rgba(33, 33, 33, 0.6),
                     0 0 40px rgba(33, 33, 33, 0.4);
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #c62828, #212121, #c62828);
    background-size: 200% auto;
    z-index: -1;
    opacity: 0.2;
    border-radius: 15px;
    padding: 0 15px;
    box-sizing: content-box;
    animation: gradientMove 6s linear infinite;
    filter: blur(15px);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.9;
  transition: opacity 0.5s ease;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* تأثيرات النص المتحرك */
#dynamic-subtitle {
    min-height: 2.5rem;
    display: inline-block;
    position: relative;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
}

#dynamic-subtitle::after {
    content: '|';
    position: absolute;
    right: -5px;
    animation: blink 0.7s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* قسم عن العائلة */
.about-section {
  padding: 80px 0;
  background-color: var(--darker-color);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header .section-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-color);
  opacity: 0.8;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.family-values {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.value-item {
  background-color: rgba(198, 40, 40, 0.1);
  border: 1px solid rgba(198, 40, 40, 0.3);
  padding: 10px 15px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.value-item:hover {
  background-color: rgba(198, 40, 40, 0.2);
  transform: translateY(-3px);
}

.value-item i {
  color: var(--primary-color);
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 5px solid rgba(198, 40, 40, 0.2);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Joining Terms Section Styles */
.joining-terms-section {
  padding: 80px 0;
  background-color: var(--dark-color);
  position: relative;
  overflow: hidden;
}

.joining-terms-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(233, 69, 96, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.terms-container {
  display: grid;
  grid-template-areas: 
    "left-term center-note right-term"
    "bottom-term bottom-term bottom-term";
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.term-card {
  background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(20, 20, 40, 0.9));
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(198, 40, 40, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.term-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(198, 40, 40, 0.3);
  border-color: rgba(198, 40, 40, 0.5);
}

.left-term {
  grid-area: left-term;
  text-align: left;
}

.right-term {
  grid-area: right-term;
  text-align: right;
}

.bottom-term {
  grid-area: bottom-term;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.term-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.term-card:hover .term-icon {
  transform: scale(1.2);
}

.term-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
}

.term-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.term-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.term-card:hover .term-wave {
  transform: scaleX(1);
}

.terms-note {
  grid-area: center-note;
  background: rgba(25, 25, 45, 0.7);
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px dashed var(--primary-color);
  transition: all 0.4s ease;
}

.terms-note:hover {
  background: rgba(30, 30, 55, 0.9);
  transform: scale(1.05);
}

.note-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.note-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .terms-container {
    grid-template-areas: 
      "left-term"
      "right-term"
      "bottom-term"
      "center-note";
    gap: 20px;
  }
  
  .term-card, .terms-note {
    max-width: 100%;
  }
  
  .left-term, .right-term {
    text-align: center;
  }
}

/* قسم ممتلكات العائلة - نسخة سوداء */
.properties-section {
  padding: 100px 0;
  background-color: var(--darker-color);
  position: relative;
  overflow: hidden;
}

.properties-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/diamond-pattern.png') repeat;
  opacity: 0.03;
  pointer-events: none;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.property-card {
  background: var(--dark-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(198, 40, 40, 0.1);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(198, 40, 40, 0.2);
  border-color: rgba(198, 40, 40, 0.3);
}

.property-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.property-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.property-duration, .property-age {
  background: rgba(198, 40, 40, 0.7);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: white;
}

.property-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
}

.property-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.property-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

.property-meta i {
  margin-left: 5px;
  color: var(--primary-color);
}

.property-desc {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.property-features span {
  background: rgba(198, 40, 40, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--text-color);
  border: 1px solid rgba(198, 40, 40, 0.2);
}

.property-features i {
  margin-left: 5px;
  color: var(--primary-color);
}

/* تخصيصات لكل ممتلك */
.palace-card .property-badge {
  background: rgba(212, 175, 55, 0.8);
}

.hotel-card .property-badge {
  background: rgba(198, 40, 40, 0.8);
}

.garage-card .property-badge {
  background: rgba(51, 51, 51, 0.8);
}

/* أزرار خاصة */
.btn-gold {
  background: var(--gold-color);
  color: #333;
  border: none;
  margin-top: auto;
}

.btn-gold:hover {
  background: #d4af37;
  color: white;
}

.btn-dark {
  background: #333;
  color: white;
  border: none;
  margin-top: auto;
}

.btn-dark:hover {
  background: #444;
}

.properties-footer {
  text-align: center;
  margin-top: 50px;
  color: var(--text-color);
  opacity: 0.6;
  font-size: 0.9rem;
}

.properties-footer i {
  margin-left: 5px;
  color: var(--primary-color);
}

/* تأثيرات خاصة للهواتف */
@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
  }
  
  .property-card {
    margin-bottom: 30px;
  }
}
/* قسم شجرة العائلة */
.family-tree-section {
  padding: 80px 0;
  background-color: var(--dark-color);
  color: var(--text-color);
}

.tree-container {
  background-color: var(--darker-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(198, 40, 40, 0.1);
}

.tree-main {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.tree-person {
  text-align: center;
  margin: 0 20px;
  transition: all 0.3s ease;
  padding: 20px;
  background-color: rgba(198, 40, 40, 0.1);
  border-radius: 8px;
  min-width: 180px;
}

.tree-person h4, .tree-person h5 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

.tree-person h4 {
  font-size: 1.5rem;
}

.tree-person h5 {
  font-size: 1.2rem;
}

.tree-person p {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-top: 5px;
}

.tree-person:hover {
  transform: translateY(-5px);
  background-color: rgba(198, 40, 40, 0.2);
}

.founder {
  padding: 25px 30px;
  background-color: rgba(198, 40, 40, 0.2);
}

.tree-branches {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.tree-branch {
  flex: 1;
  min-width: 300px;
  margin-bottom: 30px;
}

.tree-branch h4 {
  color: var(--text-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(198, 40, 40, 0.3);
  text-align: center;
  font-size: 1.3rem;
}

.branch-members {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.tree-cta {
  text-align: center;
  margin-top: 30px;
}






@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background-color: var(--darker-color);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    transition: right 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .auth-buttons {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .tree-branch {
    min-width: 100%;
  }
}