/* أنماط CSS محسنة ومفخمة مع التناسق التلقائي */
:root {
  --primary-color: #00bcd4;
  --primary-dark: #0288a7;
  --secondary-color: #ff4081;
  --dark-bg: #0f172a;
  --darker-bg: #0a0e1a;
  --header-bg: #111827;
  --text-color: #ffffff;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #00bcd4 0%, #0288a7 100%);
  --gold: #ffd700;
  --transition: all 0.3s ease;

  /* متغيرات التناسق التلقائي */
  --base-size: 1rem;
  --scale: 1.25;
  --h1: calc(var(--h2) * var(--scale));
  --h2: calc(var(--h3) * var(--scale));
  --h3: calc(var(--h4) * var(--scale));
  --h4: calc(var(--h5) * var(--scale));
  --h5: calc(var(--h6) * var(--scale));
  --h6: var(--base-size);
  --spacing: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--dark-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: var(--base-size);
}

/* نظام التناسق التلقائي للخطوط */
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
h4 { font-size: var(--h4); }
h5 { font-size: var(--h5); }
h6 { font-size: var(--h6); }

/* نظام التناسق التلقائي للمسافات */
.mt-1 { margin-top: calc(var(--spacing) * 0.25); }
.mt-2 { margin-top: calc(var(--spacing) * 0.5); }
.mt-3 { margin-top: var(--spacing); }
.mt-4 { margin-top: calc(var(--spacing) * 1.5); }
.mt-5 { margin-top: calc(var(--spacing) * 3); }

.mb-1 { margin-bottom: calc(var(--spacing) * 0.25); }
.mb-2 { margin-bottom: calc(var(--spacing) * 0.5); }
.mb-3 { margin-bottom: var(--spacing); }
.mb-4 { margin-bottom: calc(var(--spacing) * 1.5); }
.mb-5 { margin-bottom: calc(var(--spacing) * 3); }

.p-1 { padding: calc(var(--spacing) * 0.25); }
.p-2 { padding: calc(var(--spacing) * 0.5); }
.p-3 { padding: var(--spacing); }
.p-4 { padding: calc(var(--spacing) * 1.5); }
.p-5 { padding: calc(var(--spacing) * 3); }

/* شريط التمرير المخصص */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* الهيدر الفاخر */
header {
  background: rgba(17, 24, 39, 0.95);
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  text-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.logo i {
  margin-left: 10px;
  color: var(--gold);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-links a:hover:after,
.nav-links a.active:after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* محتوى الصفحة */
.page-content {
  padding: 60px 5%;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: var(--gradient);
  bottom: -10px;
  left: 25%;
  border-radius: 3px;
}

/* النموذج الفاخر */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 40px auto;
  background: rgba(17, 24, 39, 0.7);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 188, 212, 0.1);
}

form input, form textarea {
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-color);
  font-family: 'Tajawal', sans-serif;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: inherit;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

form button {
  background: var(--gradient);
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

/* قسم الهيرو الفاخر */
.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)), url('https://cdn.discordapp.com/attachments/1408753476846223370/1417949532767125587/LOGO.png?ex=68cc57e8&is=68cb0668&hm=7c12e7531232c8c75e4e6e930449cb8c25a980aa3ea5a062f6ae41451ed8101f&') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, transparent 20%, #0f172a 70%);
  transform: rotate(0deg);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #00bcd4, #00ff95);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.btn {
  background: var(--gradient);
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover:before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 188, 212, 0.4);
}

/* الفوتر الفاخر */
footer {
  background: var(--header-bg);
  padding: 40px 5%;
  text-align: center;
  margin-top: 60px;
  position: relative;
  border-top: 1px solid rgba(0, 188, 212, 0.1);
}

footer:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--gradient);
  transform: translateY(-5px);
}

.copyright {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* تأثيرات للعناصر */
.glow {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.8), 0 0 30px rgba(0, 188, 212, 0.6);
  }
}

/* قواعد اللائحة */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.rules-list li {
  background: rgba(17, 24, 39, 0.7);
  padding: 15px 20px;
  margin: 15px 0;
  border-radius: 8px;
  font-size: 18px;
  display: flex;
  align-items: center;
  transition: var(--transition);
  text-align: right;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.rules-list li i {
  color: var(--primary-color);
  margin-left: 15px;
  font-size: 20px;
}

.rules-list li:hover {
  background: rgba(17, 24, 39, 0.9);
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* فريق العمل */
.team {
  padding: 50px 5%;
  text-align: center;
}

.team h2 {
  margin: 30px 0 40px;
  font-size: 2.2rem;
  color: var(--text-color);
}

.team-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.card {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 15px;
  padding: 25px;
  width: 240px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.card h3 {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* أطلس */
.atlas {
  padding: 50px 5%;
  text-align: center;
}

.atlas h2 {
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--text-color);
}

.atlas .card {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 15px;
  padding: 25px;
  width: 260px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.atlas .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.atlas .card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid var(--gold);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.atlas .card h3 {
  font-size: 20px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.atlas-btn {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  transition: var(--transition);
  font-size: 16px;
  margin-top: 10px;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.atlas-btn i {
  margin-right: 8px;
}

.atlas-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

/* ممتلكات العائلة */
.properties {
  padding: 50px 5%;
  text-align: center;
}

.properties h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: var(--text-color);
}

.properties-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.property-card {
  background: rgba(17, 24, 39, 0.7);
  border-radius: 15px;
  width: 320px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.property-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.property-card h3 {
  margin: 20px 0 10px;
  font-size: 22px;
  color: var(--text-color);
  padding: 0 20px;
}

.property-card p {
  font-size: 16px;
  color: var(--text-muted);
  padding: 0 20px 25px;
}

/* اللوجو */
.logo img {
  height: 50px;
  width: auto;
}

/* زر القائمة للموبايل */
.menu-toggle {
  font-size: 24px;
  cursor: pointer;
  display: none;
  color: var(--primary-color);
  transition: var(--transition);
}

.menu-toggle:hover {
  color: var(--secondary-color);
}

/* نظام التناسق التلقائي للشاشات المختلفة */
@keyframes glow {
      from {
        text-shadow: 0 0 5px rgba(0, 188, 212, 0.5);
      }
      to {
        text-shadow: 0 0 20px rgba(0, 188, 212, 0.8), 0 0 30px rgba(0, 188, 212, 0.6);
      }
    }

@media (min-width: 1600px) {
  :root {
    --base-size: 1.1rem;
    --scale: 1.3;
  }

  .hero h1 {
    font-size: 5rem;
  }
  .page-content h2 {
          font-size: 3rem;
        }

  .card, .atlas .card {
    width: 280px;
  }

  .property-card {
    width: 360px;
  }
}

@media (max-width: 1200px) {
  :root {
    --base-size: 1rem;
    --scale: 1.2;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
  .page-content h2 {
            font-size: 2.5rem;
          }
}

@media (max-width: 992px) {
  :root {
    --base-size: 0.95rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
  .page-content h2 {
          font-size: 2rem;
        }

  .page-content a {
    margin-top: 10px;
  }
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
}

@media (max-width: 768px) {
  :root {
    --base-size: 0.9rem;
    --scale: 1.15;
    --spacing: 0.8rem;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card, .atlas .card {
    width: 100%;
    max-width: 300px;
  }

  .property-card {
    width: 100%;
    max-width: 350px;
  }

  .rules-list li {
    font-size: 16px;
    padding: 12px 15px;
  }

  .navbar {
    flex-direction: column;
    gap: 15px;
  }

  form {
    padding: 20px;
  }

  .page-content {
    padding: 40px 5%;
  }

  .hero {
    height: 80vh;
  }

  /* إخفاء وإظهار القائمة */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(17, 24, 39, 0.95);
    position: absolute;
    top: 70px;
    right: 5%;
    width: 200px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    animation: fadeIn 0.3s ease;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
    text-align: right;
  }
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}

@media (max-width: 576px) {
  :root {
    --base-size: 0.85rem;
    --scale: 1.1;
    --spacing: 0.7rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .btn {
    padding: 12px 30px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  :root {
    --base-size: 0.8rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .card, .atlas .card, .property-card {
    width: 100%;
  }
}