@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #0A3A47;
  --primary-mid: #0F4C5C;
  --secondary: #1B9AAA;
  --accent: #00D4E8;
  --light: #f0f9fb;
  --dark: #061E26;
  --text: #1a2e35;
  --text-muted: #5a7a84;
  --white: #ffffff;
  --card-bg: #ffffff;
  --border: rgba(27,154,170,0.15);
  --shadow: 0 8px 32px rgba(10,58,71,0.12);
  --shadow-hover: 0 20px 50px rgba(10,58,71,0.2);
  --gradient: linear-gradient(135deg, #0A3A47 0%, #0F4C5C 50%, #1B9AAA 100%);
  --gradient-accent: linear-gradient(135deg, #1B9AAA, #00D4E8);
  --radius: 16px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  background: #f5f9fa;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(6,30,38,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(27,154,170,0.2);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(6,30,38,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  padding: 8px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

.nav-logo img { height: 36px; filter: brightness(0) invert(1); transition: var(--transition); }
.nav-logo img:hover { transform: scale(1.05); }

.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.nav-link {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-link:hover { background: rgba(255,255,255,0.15); color: #fff; }
.nav-link.active { background: rgba(255,255,255,0.2); color: #fff; }

.nav-cta {
  background: var(--gradient-accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(27,154,170,0.4);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,154,170,0.5); background: rgba(255,255,255,0.15) !important; }

.lang-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff !important;
  font-size: 12px;
}
.lang-btn:hover { background: rgba(255,255,255,0.25) !important; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 60% at 20% 40%, rgba(27,154,170,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(15,76,92,0.3) 0%, transparent 50%),
    linear-gradient(160deg, #061E26 0%, #0A3A47 40%, #0d4a5a 70%, #0F4C5C 100%);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 600px at 50% 50%, rgba(27,154,170,0.08) 0%, transparent 70%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero .container { position: relative; z-index: 2; }
.hero .row { min-height: 100vh; align-items: center; padding: 100px 0 60px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27,154,170,0.2);
  border: 1px solid rgba(27,154,170,0.4);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease both;
}
.hero-badge span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:0.5;transform:scale(1.5);} }

.hero-title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  max-width: 500px;
  margin-bottom: 36px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.btn-primary-hero {
  background: var(--gradient-accent);
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 6px 25px rgba(27,154,170,0.45);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(27,154,170,0.55); color: #fff; }

.btn-outline-hero {
  background: transparent;
  color: #fff;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: var(--transition);
}
.btn-outline-hero:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); color: #fff; transform: translateY(-3px); }

/* Hero Visual Box */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-card {
  width: 340px;
  height: 340px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 80px rgba(27,154,170,0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(27,154,170,0.1) 60deg, transparent 120deg);
  animation: rotateBg 8s linear infinite;
}
@keyframes rotateBg { to { transform: rotate(360deg); } }

.hero-card img { width: 82%; max-width: 280px; position: relative; z-index: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }
.hero-card:hover { transform: translateY(-8px) scale(1.02); }

/* Stats row */
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  animation: fadeInUp 0.7s ease 0.4s both;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 26px; font-weight: 900; color: var(--accent); display: block; }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); }

/* ─── SECTION COMMON ─── */
.section { padding: 90px 0; }
.section-alt { background: #f0f9fb; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(27,154,170,0.12), rgba(0,212,232,0.12));
  color: var(--secondary);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  border: 1px solid rgba(27,154,170,0.2);
}
.section-title { font-size: clamp(24px, 4vw, 38px); font-weight: 900; color: var(--primary); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: auto; }

/* ─── SERVICE CARDS ─── */
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: rgba(27,154,170,0.3); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 8px 25px rgba(27,154,170,0.3);
  transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); }

.service-card h5 { font-size: 16px; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }

.btn-service {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--secondary), #138A99);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-service:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,154,170,0.4); color: #fff; }

/* ─── PAGE HERO ─── */
.page-hero {
  background: var(--gradient);
  padding: 130px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(27,154,170,0.3), transparent 60%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.8); font-size: 16px; max-width: 550px; margin: auto; }

.breadcrumb-nav {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}
.breadcrumb-nav a { color: var(--accent); text-decoration: none; }

/* ─── CONTENT ARTICLE ─── */
.article-content { padding: 70px 0; }
.article-content h3 { font-size: 22px; font-weight: 800; color: var(--primary); margin: 36px 0 14px; }
.article-content p { color: #4a6670; line-height: 1.9; margin-bottom: 16px; }
.article-img {
  width: 100%;
  border-radius: 20px;
  margin: 24px 0;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.article-img:hover { transform: scale(1.01); }

/* Feature list */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  width: 26px; height: 26px;
  background: var(--gradient-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Info box */
.info-box {
  background: linear-gradient(135deg, rgba(27,154,170,0.08), rgba(0,212,232,0.06));
  border: 1px solid rgba(27,154,170,0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 30px 0;
}
.info-box h4 { color: var(--primary); font-weight: 800; margin-bottom: 16px; font-size: 18px; }

/* CTA Section */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, rgba(27,154,170,0.25), transparent);
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { color: #fff; font-size: 32px; font-weight: 900; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 30px; font-size: 16px; }

/* ─── CONTACT ─── */
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(27,154,170,0.15);
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #f8fbfc;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--secondary); background: #fff; box-shadow: 0 0 0 4px rgba(27,154,170,0.1); }
textarea.form-control { resize: vertical; min-height: 130px; }

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--gradient-accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(27,154,170,0.4);
}
.btn-submit:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(27,154,170,0.5); }

/* Contact info */
.contact-info-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  background: #f5f9fa;
  border-radius: 14px;
  margin-bottom: 14px;
}
.contact-info-icon {
  width: 46px; height: 46px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  flex-shrink: 0;
}
.contact-info-text span { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-text strong { font-size: 15px; color: var(--primary); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 50px 0 20px;
}
.footer-logo img { height: 50px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-desc { font-size: 13px; line-height: 1.8; max-width: 280px; }
.footer-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-link { display: block; color: rgba(255,255,255,0.55); text-decoration: none; font-size: 13px; padding: 4px 0; transition: var(--transition); }
.footer-link:hover { color: var(--accent); padding-inline-start: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12px; }

/* ─── BACK BUTTON ─── */
.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  margin-bottom: 24px;
}
.btn-back:hover { background: rgba(255,255,255,0.25); color: #fff; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.2s; }
.fade-in-3 { animation-delay: 0.3s; }
.fade-in-4 { animation-delay: 0.4s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero .row { padding: 90px 0 40px; }
  .hero-title { font-size: 30px; }
  .hero-card { width: 260px; height: 260px; margin-top: 30px; }
  .hero-stats { gap: 20px; }
  .nav-links { gap: 4px; }
  .nav-link { padding: 6px 10px; font-size: 12px; }
  .section { padding: 60px 0; }
}

/* RTL adjustments */
[dir="rtl"] .btn-back i { transform: scaleX(-1); }
[dir="rtl"] .footer-link:hover { padding-inline-start: 6px; padding-inline-end: 0; }

/* ─── ALERT MESSAGES ─── */
.alert-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}
.alert-msg i { font-size: 20px; flex-shrink: 0; }

.alert-success {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.08));
  border: 1px solid rgba(16,185,129,0.35);
  color: #065f46;
}
.alert-success i { color: #10b981; }

.alert-error {
  background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(220,38,38,0.07));
  border: 1px solid rgba(239,68,68,0.3);
  color: #991b1b;
}
.alert-error i { color: #ef4444; }
