/* =======================
   Global styles
======================= */

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

html{
  scroll-behavior:smooth;
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:#050816;
  color:#e5e7eb;
  line-height:1.6;
}

/* =======================
   Layout
======================= */

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 16px 40px;
}

/* =======================
   Navbar
======================= */

.navbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,8,22,0.9);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(148,163,184,0.2);
}

.navbar-inner{
  max-width:1100px;
  margin:0 auto;
  padding:10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.logo{
  font-weight:700;
  font-size:1.05rem;
  letter-spacing:0.04em;
  color:#e5e7eb;
}

.nav-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.nav-links a{
  text-decoration:none;
  font-size:0.9rem;
  color:#9ca3af;
  padding:6px 10px;
  border-radius:999px;
  transition:all 0.2s ease;
}

.nav-links a:hover{
  color:#e5e7eb;
  background:rgba(148,163,184,0.12);
}

.nav-links a.active{
  background:rgba(79,70,229,0.9);
  color:#f9fafb;
}

/* =======================
   Language toggle
======================= */

.lang-toggle{
  display:flex;
  align-items:center;
  gap:4px;
  font-size:0.8rem;
  color:#9ca3af;
}

.lang-toggle button{
  border:none;
  background:transparent;
  color:#9ca3af;
  cursor:pointer;
  padding:4px 8px;
  border-radius:999px;
  font-size:0.8rem;
  transition:all 0.2s ease;
}

.lang-toggle button.active{
  background:#4f46e5;
  color:#f9fafb;
}

/* =======================
   Hero (الصورة ثابتة و كاملة)
======================= */

.hero{
  position:relative;
  text-align:center;
  overflow:hidden;
  padding:20px 0 32px;
}

/* الصورة كاملة في كل مكان بدون تقطيع */
.hero img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:18px;
  border:1px solid rgba(148,163,184,0.4);
  box-shadow:0 18px 45px rgba(15,23,42,0.9);
}

.hero-content{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  padding:16px;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom,rgba(15,23,42,0.85),rgba(15,23,42,0.85));
  border-radius:18px;
}

.hero-text{
  position:relative;
  z-index:1;
  max-width:650px;
  pointer-events:auto;
}

.hero-title{
  font-size:1.9rem;
  font-weight:800;
  margin-bottom:8px;
}

.hero-subtitle{
  font-size:1.05rem;
  color:#cbd5f5;
  margin-bottom:12px;
}

.hero-tagline{
  font-size:0.95rem;
  color:#9ca3af;
}

/* =======================
   Buttons
======================= */

.btn-row{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:center;
  margin-top:18px;
}

.btn-primary,
.btn-outline{
  pointer-events:auto;
  border-radius:999px;
  padding:9px 16px;
  font-size:0.9rem;
  border:1px solid transparent;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  transition:all 0.2s ease;
}

.btn-primary{
  background:linear-gradient(135deg,#4f46e5,#7c3aed);
  color:#f9fafb;
  box-shadow:0 12px 30px rgba(88,80,236,0.4);
}

.btn-primary:hover{
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 16px 40px rgba(88,80,236,0.55);
}

.btn-outline{
  background:rgba(15,23,42,0.85);
  border-color:rgba(148,163,184,0.5);
  color:#e5e7eb;
}

.btn-outline:hover{
  background:rgba(30,64,175,0.25);
  border-color:#6366f1;
}

/* =======================
   Sections
======================= */

.section{
  margin-top:28px;
}

.section-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
  gap:8px;
  flex-wrap:wrap;
}

.section-title{
  font-size:1.2rem;
  font-weight:700;
}

.section-subtitle{
  font-size:0.85rem;
  color:#9ca3af;
}

/* Cards */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;
}

.card{
  background:radial-gradient(circle at top left,rgba(79,70,229,0.16),rgba(15,23,42,0.95));
  border:1px solid rgba(148,163,184,0.35);
  border-radius:18px;
  padding:16px 14px;
  box-shadow:0 16px 40px rgba(15,23,42,0.85);
}

.card h3{
  font-size:1rem;
  margin-bottom:6px;
}

.card p{
  font-size:0.88rem;
  color:#cbd5f5;
}

.card ul{
  margin-top:6px;
  padding-left:18px;
  font-size:0.85rem;
  color:#9ca3af;
}

/* =======================
   Contact block
======================= */

.contact-block{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
  font-size:0.92rem;
}

.contact-item{
  display:flex;
  align-items:center;
  gap:8px;
}

.contact-item span.label{
  min-width:70px;
  color:#9ca3af;
  font-size:0.85rem;
}

.contact-link{
  color:#e5e7eb;
  text-decoration:none;
  word-break:break-all;
}

.contact-link:hover{
  text-decoration:underline;
}

/* =======================
   Social links row
======================= */

.social-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.social-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.5);
  font-size:0.85rem;
  text-decoration:none;
  color:#e5e7eb;
  background:rgba(15,23,42,0.85);
  transition:all 0.2s ease;
}

.social-pill:hover{
  border-color:#6366f1;
  background:rgba(37,99,235,0.25);
}

/* =======================
   Color theme toggle
======================= */

.theme-toggle{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:40;
}

.theme-toggle button{
  border:none;
  border-radius:999px;
  padding:8px 14px;
  font-size:0.85rem;
  cursor:pointer;
  background:#111827;
  color:#e5e7eb;
  border:1px solid rgba(148,163,184,0.5);
  box-shadow:0 10px 30px rgba(15,23,42,0.9);
  transition:all 0.2s ease;
}

.theme-toggle button:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 40px rgba(15,23,42,0.95);
}

/* Light theme */

body.light{
  background:#f3f4f6;
  color:#111827;
}

body.light .navbar{
  background:rgba(243,244,246,0.9);
  border-bottom-color:rgba(148,163,184,0.5);
}

body.light .logo{
  color:#111827;
}

body.light .nav-links a{
  color:#4b5563;
}

body.light .nav-links a:hover{
  color:#111827;
  background:rgba(209,213,219,0.8);
}

body.light .nav-links a.active{
  background:#4f46e5;
  color:#f9fafb;
}

body.light .card{
  background:#ffffff;
  border-color:rgba(209,213,219,0.9);
  box-shadow:0 16px 40px rgba(148,163,184,0.35);
}

body.light .social-pill{
  background:#ffffff;
  border-color:rgba(209,213,219,0.9);
  color:#111827;
}

body.light .contact-link{
  color:#1f2937;
}

body.light .section-subtitle{
  color:#6b7280;
}

/* =======================
   Responsive
======================= */

@media (max-width:700px){
  .navbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .nav-links{
    width:100%;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .hero-content{
    position:static;
    margin-top:10px;
  }

  .hero-overlay{
    display:none;
  }

  .hero-text{
    text-align:center;
  }

  .hero-title{
    font-size:1.5rem;
  }
}
