/* ===== Variables ===== */
:root {
  --primary: #173954;
  --primary-2: #365671;
  --primary-light: #4a7593;
  --accent: #d4a857;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #1a2735;
  --text-soft: #4a5868;
  --muted: #7a8898;
  --border: #e3e8ee;
  --shadow-sm: 0 4px 12px rgba(23, 57, 84, 0.08);
  --shadow-md: 0 10px 30px rgba(23, 57, 84, 0.12);
  --shadow-lg: 0 20px 50px rgba(23, 57, 84, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --transition: 0.3s cubic-bezier(.4,.2,.2,1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 100;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { font-size: 17px; font-weight: 800; color: var(--primary); transition: color var(--transition); }
.brand-sub { font-size: 11.5px; color: var(--text-soft); font-weight: 500; transition: color var(--transition); }

/* Transparent header (over hero) — light text */
.site-header:not(.scrolled) .brand-title { color: #fff; }
.site-header:not(.scrolled) .brand-sub { color: rgba(255,255,255,0.85); }
.site-header:not(.scrolled) .nav a { color: #fff; }
.site-header:not(.scrolled) .nav a:hover { color: var(--accent); background: rgba(255,255,255,0.10); }
.site-header:not(.scrolled) .menu-btn span { background: #fff; }

.nav { display: flex; gap: 6px; }
.nav a {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}
.nav a:hover { color: var(--primary); background: var(--bg-soft); }

/* Header Actions & Language Switcher */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.lang-switch-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.lang-switch-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(23, 57, 84, 0.2);
}
.lang-switch-btn:hover svg {
  transform: rotate(20deg);
}

.site-header:not(.scrolled) .lang-switch-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header:not(.scrolled) .lang-switch-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}


.menu-btn {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-btn span {
  width: 24px; height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.menu-btn.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(23,57,84,0.82), rgba(54,86,113,0.75)),
    url("../images/hero-port.jpg") center/cover no-repeat;
  z-index: -2;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(212,168,87,0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(54,86,113,0.4), transparent 50%);
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero-text {
  font-size: clamp(15px, 2vw, 19px);
  max-width: 720px;
  margin: 0 auto 36px;
  color: rgba(255,255,255,0.92);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 10px 25px rgba(212,168,87,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(212,168,87,0.55); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(15px);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.85); font-weight: 500; }

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  width: 100%;
  height: 80px;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  position: relative;
}
.section-light { background: var(--bg-soft); }
.section-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
}
.section-contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  position: relative;
}
.section-contact::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(212,168,87,0.12), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,0.06), transparent 40%);
  pointer-events: none;
}
.section-contact .container { position: relative; }

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.section-head.light h2 { color: #fff; }
.section-sub {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto 16px;
}
.section-head.light .section-sub { color: rgba(255,255,255,0.85); }
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-text p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 24px;
}
.about-text strong { color: var(--primary); font-weight: 700; }
.check-list li {
  position: relative;
  padding-right: 36px;
  margin-bottom: 14px;
  font-size: 16px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 7px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.about-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: "";
  position: absolute;
  top: -50px; left: -50px;
  width: 200px; height: 200px;
  background: rgba(212,168,87,0.15);
  border-radius: 50%;
}
.about-card::after {
  content: "";
  position: absolute;
  bottom: -80px; right: -80px;
  width: 250px; height: 250px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.about-card-inner { position: relative; }
.year {
  font-size: 88px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
}
.about-card p { font-size: 16px; color: rgba(255,255,255,0.9); }

/* ===== Vision/Mission/Values ===== */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.vmv-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
}
.vmv-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
}
.vmv-icon {
  width: 70px; height: 70px;
  margin: 0 auto 24px;
  background: rgba(212,168,87,0.15);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.vmv-icon svg { width: 32px; height: 32px; }
.vmv-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.vmv-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0;
  height: 5px;
  background: linear-gradient(to left, var(--primary), var(--accent));
  transition: width 0.5s cubic-bezier(.4,.2,.2,1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card:hover::before { width: 100%; }
.service-num {
  position: absolute;
  top: 28px;
  left: 32px;
  font-size: 56px;
  font-weight: 800;
  color: var(--bg-soft);
  line-height: 1;
}
.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-icon svg { width: 30px; height: 30px; }
.service-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.service-card ul li {
  position: relative;
  padding-right: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
}
.service-card ul li::before {
  content: "";
  position: absolute;
  right: 0; top: 11px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===== Why ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  box-shadow: var(--shadow-sm);
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.why-icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  transition: var(--transition);
}
.why-card:hover .why-icon { transform: rotate(-6deg) scale(1.05); }
.why-icon svg { width: 36px; height: 36px; }
.why-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.why-card p { font-size: 14.5px; color: var(--text-soft); }

/* ===== Showcase ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.showcase-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.showcase-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.4,.2,.2,1);
}
.showcase-card:hover .showcase-media img { transform: scale(1.06); }
.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23,57,84,0.35), transparent 55%);
  pointer-events: none;
}
.showcase-body {
  padding: 26px 28px 30px;
}
.showcase-body h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}
.showcase-body p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.contact-role {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.contact-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
  color: rgba(255,255,255,0.92);
  transition: var(--transition);
  word-break: break-word;
}
.contact-line:hover { color: var(--accent); }
.contact-line svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-card-general { grid-column: span 1; }
.contact-location {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.contact-location svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent);
}

/* ===== Footer ===== */
.site-footer {
  background: #0f2537;
  color: rgba(255,255,255,0.85);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.brand-footer .brand-title { color: #fff; }
.brand-footer .brand-sub { color: rgba(255,255,255,0.65); }
.footer-about {
  margin-top: 18px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  max-width: 360px;
  line-height: 1.8;
}
.site-footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.site-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a, .footer-links li {
  font-size: 14.5px;
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-right: 4px; }
.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ===== Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .vmv-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav {
    position: fixed;
    top: 78px;
    right: 0;
    left: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: var(--transition);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 14px 12px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav a:last-child { border-bottom: none; }
  /* Keep dropdown links dark even when header is transparent over hero */
  .site-header:not(.scrolled) .nav a { color: var(--text); }
  .site-header:not(.scrolled) .nav a:hover { color: var(--primary); background: var(--bg-soft); }
  .menu-btn { display: flex; }
  .brand-sub { display: none; }
  .hero { padding: 120px 0 100px; min-height: auto; }
  .hero-stats { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .vmv-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }
  .service-num { font-size: 44px; top: 20px; left: 24px; }
  .year { font-size: 64px; }
  .about-card { padding: 40px 28px; }

  .lang-switch-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ===== LTR (English) Adjustments ===== */
html[dir="ltr"],
html[lang="en"] body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -0.01em;
}

html[dir="ltr"] .check-list li {
  padding-right: 0;
  padding-left: 36px;
}
html[dir="ltr"] .check-list li::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .service-card ul li {
  padding-right: 0;
  padding-left: 22px;
}
html[dir="ltr"] .service-card ul li::before {
  right: auto;
  left: 0;
}

html[dir="ltr"] .service-card::before {
  right: auto;
  left: 0;
  background: linear-gradient(to right, var(--primary), var(--accent));
}

html[dir="ltr"] .service-num {
  left: auto;
  right: 32px;
}

html[dir="ltr"] .site-footer h4::after {
  right: auto;
  left: 0;
}

html[dir="ltr"] .footer-links a:hover {
  padding-right: 0;
  padding-left: 4px;
}

@media (max-width: 720px) {
  html[dir="ltr"] .service-num {
    left: auto;
    right: 24px;
  }
}
