@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --primary: #15a7a0;
  --primary-bright: #24cfc7;
  --primary-dim: rgba(21, 167, 160, 0.14);
  --bg-obsidian: #060911;
  --bg-navy: #0b1324;
  --surface: rgba(13, 22, 41, 0.82);
  --surface-elevated: rgba(18, 30, 56, 0.92);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(21, 167, 160, 0.45);
  --shadow-lux: 0 24px 60px -15px rgba(0, 0, 0, 0.75);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', sans-serif;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(21, 167, 160, 0.14), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(15, 39, 82, 0.55), transparent 42%),
    linear-gradient(180deg, var(--bg-obsidian) 0%, var(--bg-navy) 55%, var(--bg-obsidian) 100%);
  color: var(--text-light);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* الهيدر الفخم */
header {
  background: rgba(6, 9, 17, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.05rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.logo {
  font-size: 1.38rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  border-bottom-color: var(--primary);
}

/* المحتوى الرئيسي */
main {
  flex: 1;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 3.2rem 5% 4rem;
}

/* قسم الترحيب الفخم */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4.5rem 2rem;
  background: linear-gradient(155deg, rgba(16, 28, 52, 0.92) 0%, rgba(7, 12, 24, 0.96) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-lux);
  margin-bottom: 3.5rem;
}

.hero::after {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 440px;
  height: 220px;
  background: radial-gradient(circle, rgba(21, 167, 160, 0.22), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--primary-dim);
  border: 1px solid var(--border-glow);
  color: var(--primary-bright);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 1.1rem;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: var(--primary-bright);
}

.hero p {
  color: var(--text-muted);
  max-width: 670px;
  margin: 0 auto 2.2rem;
  font-size: 1.08rem;
  position: relative;
  z-index: 1;
}

/* الأزرار */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, #0f8a84 100%);
  color: #ffffff;
  padding: 0.85rem 2.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 25px -6px rgba(21, 167, 160, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px -6px rgba(21, 167, 160, 0.6);
}

/* العناوين والشبكة */
.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2.6rem;
  color: #ffffff;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.75rem;
}

/* البطاقات الفخمة */
.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.2rem 1.9rem;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  background: var(--surface-elevated);
}

.card-icon {
  width: 54px;
  height: 54px;
  background: var(--primary-dim);
  border: 1px solid var(--border-glow);
  color: var(--primary-bright);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.card h3 {
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* صفحة التواصل */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
}

.info-item {
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.info-item:last-of-type {
  border-bottom: none;
}

.info-item strong {
  display: block;
  color: var(--primary-bright);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background-color: rgba(6, 9, 17, 0.85);
  color: var(--text-light);
  font-family: 'Cairo', sans-serif;
  font-size: 0.96rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 167, 160, 0.18);
}

/* الفوتر */
footer {
  background: rgba(6, 9, 17, 0.9);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  padding: 1.6rem;
  color: var(--text-muted);
  font-size: 0.93rem;
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.3rem;
    border-radius: 18px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .navbar {
    justify-content: center;
  }
  .nav-links {
    gap: 1.2rem;
  }
}
