:root {
  --navy: #12275c;
  --navy-2: #1b3a7a;
  --navy-dark: #0a1636;
  --orange: #f7941d;
  --orange-2: #e2720c;
  --black: #16181d;
  --white: #ffffff;
  --teal: #2fb6c4;
  --bg: #f7f8fc;
  --text: #232842;
  --text-soft: #5b6180;
  --radius: 18px;
  --shadow: 0 20px 45px -20px rgba(18, 39, 92, 0.35);
  --font-fr: 'Poppins', sans-serif;
  --font-ar: 'Cairo', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-fr);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: var(--font-ar); }
html[dir="rtl"] { direction: rtl; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 800; margin: 0; color: var(--navy); }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18, 39, 92, 0.08);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px -12px rgba(18,39,92,.25); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { color: var(--navy); font-size: 1.1rem; }
.brand-text small { color: var(--orange); font-size: .7rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }

.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 999px;
  padding: 7px 14px; font-weight: 700; font-size: .8rem;
  cursor: pointer;
}
.lang-toggle .lang-opt { opacity: .55; transition: opacity .2s; }
.lang-toggle .lang-opt.active { opacity: 1; color: var(--orange); }
.lang-sep { opacity: .4; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; transition: transform .2s ease, box-shadow .2s ease;
  border: 2px solid transparent; white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .82rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(247, 148, 29, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(247,148,29,.6); }
.btn-ghost {
  background: transparent; color: var(--navy); border-color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
  padding: 140px 0 130px;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-bg .slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,22,54,.94) 0%, rgba(10,22,54,.82) 32%, rgba(18,39,92,.55) 60%, rgba(10,22,54,.4) 100%),
    linear-gradient(to top, rgba(10,22,54,.9), transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.hero-dots .dot.active { background: var(--orange); border-color: var(--orange); transform: scale(1.15); }

.eyebrow {
  display: inline-block;
  background: rgba(247,148,29,.15);
  color: var(--orange);
  border: 1px solid rgba(247,148,29,.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: 18px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero .lead {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.hero .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ============ FLOATING SOCIAL BUTTONS ============ */
.floating-social {
  position: fixed;
  inset-block-end: 26px;
  inset-inline-end: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,.45);
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab-whatsapp { background: #25d366; }
.fab-instagram { background: radial-gradient(circle at 30% 110%, #ffdb73, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

.fab-tooltip {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy-dark);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.fab:hover .fab-tooltip { opacity: 1; }

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section-alt { background: #eef1fb; }

.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.tag {
  display: inline-block;
  background: rgba(18,39,92,.08);
  color: var(--navy);
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tag-light { background: rgba(255,255,255,.15); color: #fff; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

.section-note {
  text-align: center;
  max-width: 620px;
  margin: 40px auto 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

/* ============ SKILLS ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.skill-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.skill-card:hover { transform: translateY(-8px); }
.skill-icon { font-size: 2.4rem; margin-bottom: 14px; }
.skill-card h3 { font-size: 1rem; }

/* ============ PROGRAMS ============ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--orange);
  transition: transform .25s ease;
}
.program-card:hover { transform: translateY(-8px); }
.program-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.program-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.program-card p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ============ STORY ============ */
.story {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: #fff;
}
.story-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.story h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 16px 0 20px; }
.story p { color: rgba(255,255,255,.85); font-size: 1.02rem; }
.story blockquote {
  margin: 26px 0;
  padding: 20px 24px;
  border-inline-start: 4px solid var(--orange);
  background: rgba(255,255,255,.06);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  font-weight: 600;
}
.story-signoff { font-weight: 700; color: var(--orange) !important; }

.story-visual { position: relative; height: 300px; }
.story-frame {
  position: absolute;
  width: 130px; height: 130px;
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  backdrop-filter: blur(6px);
}
.story-frame { top: 10px; left: 30%; transform: rotate(-6deg); }
.frame-2 { top: 90px; left: 5%; transform: rotate(5deg); background: rgba(247,148,29,.15); }
.frame-3 { top: 130px; right: 5%; transform: rotate(-4deg); background: rgba(47,182,196,.15); }

/* ============ GALLERY ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.gallery-card {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 20px; text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}
.gallery-card:hover { transform: scale(1.03) rotate(-.5deg); }
.gallery-card h4 { color: #fff; font-size: .95rem; }
.gallery-emoji { font-size: 2.8rem; }
.g-1 { background: linear-gradient(150deg, var(--navy), var(--navy-2)); }
.g-2 { background: linear-gradient(150deg, var(--orange), var(--orange-2)); }
.g-3 { background: linear-gradient(150deg, var(--teal), #1a7f8c); }
.g-4 { background: linear-gradient(150deg, var(--navy-2), var(--black)); }

.gallery-note { text-align: center; margin-top: 30px; color: var(--text-soft); font-size: .9rem; font-style: italic; }

/* ============ CONTACT ============ */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info .tag { }
.contact-info h2 { margin: 16px 0 14px; }
.contact-info p { color: var(--text-soft); margin-bottom: 26px; }

.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ci { width: 40px; height: 40px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }

.social-row { display: flex; gap: 12px; margin-bottom: 26px; }
.social-btn {
  width: 46px; height: 46px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: transform .2s ease;
}
.social-btn:hover { transform: translateY(-4px); }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 220px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

.contact-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 18px;
}
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--navy); }
.contact-form input, .contact-form textarea {
  border: 2px solid #e5e8f5; border-radius: 12px;
  padding: 12px 14px; font-family: inherit; font-size: .95rem;
  resize: vertical; transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form .btn { margin-top: 6px; }
.form-hint { font-size: .78rem; color: var(--text-soft); margin: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.8); padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 30px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-logo { width: 56px; height: 56px; }
.footer-brand p { font-size: .9rem; color: rgba(255,255,255,.6); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .92rem; color: rgba(255,255,255,.75); }
.footer-links a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 10px; align-items: flex-start; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom { text-align: center; padding: 22px 0; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .hero { padding: 100px 0 80px; min-height: 0; }
  .hero-inner { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .floating-social { inset-inline-end: 16px; inset-block-end: 16px; }
  .fab { width: 48px; height: 48px; }
  .fab-tooltip { display: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { max-width: none; align-items: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 980px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 20px 24px;
    box-shadow: 0 20px 30px -20px rgba(18,39,92,.3);
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .header-actions .btn-sm { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: .95rem; }
  .brand-text small { font-size: .6rem; white-space: nowrap; }
  .header-inner { gap: 10px; }
  .lang-toggle { padding: 6px 10px; font-size: .75rem; }
  .hero { padding: 72px 0 48px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 14px; }
  .hero .lead { font-size: .92rem; margin: 0 0 16px; }
  .hero-cta { gap: 10px; }
  .btn { padding: 12px 22px; font-size: .88rem; }
  .section { padding: 60px 0; }
}

@media (max-width: 400px) {
  .skills-grid, .gallery-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
}
