* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --bg: #06090f;
  --fg: #e6f2ff;
  --muted: #9fb5cc;
  --accent: #4fe0b5;
  --accent-2: #f7b23b;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --font-base: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-ar: 'Cairo', 'Tajawal', system-ui;
}

body {
  font-family: var(--font-base);
  background: radial-gradient(circle at 20% 20%, rgba(79, 224, 181, 0.08), transparent 35%),
              radial-gradient(circle at 80% 10%, rgba(247, 178, 59, 0.1), transparent 30%),
              var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.6;
  padding: 0 24px 60px;
}

[dir="rtl"] body {
  font-family: var(--font-ar);
}

.bg-texture {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2240%22 height=%2240%22%3E%3Cg fill=%22none%22 stroke=%22%23ffffff%22 stroke-opacity=%220.05%22%3E%3Cpath d=%22M0 0h40v40H0z%22/%3E%3Cpath d=%22M0 20h40M20 0v40%22/%3E%3C/g%3E%3C/svg%3E');
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.topbar {
  max-width: 1200px;
  margin: 24px auto 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 16px;
  backdrop-filter: blur(18px);
  background: rgba(6, 9, 15, 0.85);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  z-index: 100;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { 
  color: var(--fg);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: all 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.hero {
  max-width: 1200px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero__visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.laptop {
  width: min(520px, 90vw);
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 30px 60px rgba(8, 18, 32, 0.55));
}

.laptop__lid {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border-radius: 18px 18px 10px 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.laptop__bezel {
  position: relative;
  background: #0a101a;
  border-radius: 12px;
  padding: 18px 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.laptop__camera {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, rgba(79, 224, 181, 0.9), rgba(79, 224, 181, 0.2));
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(79, 224, 181, 0.6);
}

.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(79, 224, 181, 0.15), transparent 45%),
              radial-gradient(circle at 80% 10%, rgba(80, 120, 255, 0.18), transparent 35%),
              #06101b;
  border: 1px solid rgba(79, 224, 181, 0.3);
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 55%, rgba(79, 224, 181, 0.12) 56%),
    linear-gradient(90deg, transparent 55%, rgba(79, 224, 181, 0.12) 56%);
  background-size: 40px 40px;
  opacity: 0.35;
  animation: gridShift 12s linear infinite;
  z-index: 1;
}

.lottie-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.8;
  pointer-events: none;
}

.cyber-lines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(79, 224, 181, 0.08) 0,
    rgba(79, 224, 181, 0.08) 1px,
    transparent 1px,
    transparent 6px
  );
  opacity: 0.6;
  animation: scanMove 4s ease-in-out infinite;
  z-index: 3;
}

.cyber-code {
  position: absolute;
  inset: 18px 20px;
  display: grid;
  gap: 8px;
  color: rgba(165, 255, 225, 0.7);
  font-size: 0.7rem;
  font-family: 'Space Grotesk', monospace;
  z-index: 4;
}

.cyber-code span {
  display: block;
  height: 8px;
  background: linear-gradient(90deg, rgba(79, 224, 181, 0.6), transparent);
  border-radius: 999px;
  animation: codeFlicker 2.8s ease-in-out infinite;
}

.cyber-code span:nth-child(2) { width: 75%; animation-delay: 0.4s; }
.cyber-code span:nth-child(3) { width: 55%; animation-delay: 0.8s; }
.cyber-code span:nth-child(4) { width: 90%; animation-delay: 1.2s; }
.cyber-code span:nth-child(5) { width: 65%; animation-delay: 1.6s; }
.cyber-code span:nth-child(6) { width: 85%; animation-delay: 2s; }

.cyber-terminal {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 6px;
  z-index: 6;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  color: rgba(230, 255, 248, 0.75);
}

.terminal-line {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(10, 20, 32, 0.6);
  border: 1px solid rgba(79, 224, 181, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  box-shadow: inset 0 0 12px rgba(79, 224, 181, 0.12);
}

.terminal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(79, 224, 181, 0.7);
}

.terminal-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(79, 224, 181, 0.15);
  color: rgba(165, 255, 225, 0.85);
  font-weight: 600;
  font-size: 0.6rem;
}

.cyber-pulse {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(79, 224, 181, 0.25), transparent 50%);
  animation: pulseGlow 3.5s ease-in-out infinite;
  z-index: 5;
}

.laptop__base {
  position: relative;
  height: 28px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border-radius: 0 0 22px 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-top: none;
  box-shadow: inset 0 8px 18px rgba(0, 0, 0, 0.35);
}

.laptop__trackpad {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.orb {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(79, 224, 181, 0.18), transparent);
  filter: blur(28px);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero h1 span:last-child { 
  color: var(--accent); 
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 20px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s;
  cursor: pointer;
}

.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04100a;
  box-shadow: 0 10px 30px rgba(79, 224, 181, 0.25);
}

.primary:hover { 
  transform: translateY(-2px);
}

.ghost {
  border-color: var(--border);
  color: var(--fg);
  background: rgba(255, 255, 255, 0.03);
}

.ghost:hover { 
  border-color: var(--fg);
}

.hero__badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.section {
  max-width: 1100px;
  margin: 0 auto 96px;
  position: relative;
  z-index: 1;
}

.section__header { 
  margin-bottom: 18px; 
}

.section h2 {
  font-size: 2.2rem;
  letter-spacing: -0.01em;
}

.text { 
  color: var(--muted); 
  max-width: 820px; 
}

.about__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.about__image {
  display: flex;
  justify-content: center;
}

.profile-img {
  width: 100%;
  max-width: 400px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 20px 60px rgba(79, 224, 181, 0.3);
  object-fit: cover;
  aspect-ratio: 1;
  transition: transform 0.3s;
}

.profile-img:hover {
  transform: scale(1.05);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  min-height: 160px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 224, 181, 0.4);
}

.card h3 { 
  margin-bottom: 10px; 
  font-size: 1.2rem;
  font-weight: 700;
}

.card p { 
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  border-left: 1px solid var(--border);
  padding-left: 24px;
  display: grid;
  gap: 28px;
  margin-top: 10px;
}

.timeline__item {
  display: grid;
  gap: 6px;
  position: relative;
}

.dot {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(79, 224, 181, 0.08);
}

.kicker { 
  font-weight: 700; 
  color: var(--fg);
  font-size: 1rem;
}

.muted { 
  color: var(--muted);
  font-size: 0.9rem;
}

.cert-title {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

[dir="rtl"] .cert-title {
  text-align: right;
}

.cert-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

[dir="rtl"] .cert-actions {
  justify-content: flex-end;
}

.cert-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cert-link:hover {
  border-color: var(--accent);
  color: var(--fg);
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.hall-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hall-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.hall-card:hover::before {
  transform: scaleX(1);
}

.hall-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.hall-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  transition: transform 0.2s, color 0.2s;
}

.hall-card:hover .hall-icon svg {
  transform: scale(1.15);
  color: var(--accent-2);
}

.hall-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
}

.hall-link:hover {
  gap: 10px;
}

.contact {
  text-align: center;
  background: linear-gradient(120deg, rgba(79, 224, 181, 0.09), rgba(247, 178, 59, 0.07));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 28px;
}

.contact-box {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-direction: column;
}

.contact-box a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.contact-box a:hover { 
  color: var(--accent);
}

.force-ltr {
  direction: ltr;
  unicode-bidi: bidi-override;
  text-align: left;
  display: inline-block;
}

.footer {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 200;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal__overlay {
  position: absolute;
  inset: 0;
}

.modal__content {
  position: relative;
  background: #0b1220;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.modal__content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 12px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
}

.modal__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.modal__link:hover {
  color: var(--accent-2);
}

[dir="rtl"] .timeline {
  border-left: none;
  border-right: 1px solid var(--border);
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .dot {
  left: auto;
  right: -31px;
}

@media (max-width: 768px) {
  body { padding: 0 16px 40px; }
  
  .topbar { 
    margin: 12px auto 32px; 
    padding: 12px 16px;
    flex-wrap: nowrap;
  }

  .hamburger {
    display: flex;
    order: 3;
  }

  .nav {
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(6, 9, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    gap: 16px;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 99;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav a {
    font-size: 1.1rem;
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .topbar-actions {
    order: 2;
  }

  .lang-toggle {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .hero { 
    grid-template-columns: 1fr; 
    gap: 24px; 
    margin: 20px auto 60px; 
  }
  
  .hero__content { text-align: center; }
  .hero__visual { min-height: 260px; order: -1; }
  .laptop { width: min(420px, 92vw); }
  .hero__actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
  .hero__badges { justify-content: center; }
  .section { margin-bottom: 64px; }
  .about__container { grid-template-columns: 1fr; gap: 24px; }
  .about__image { order: -1; }
  .grid { grid-template-columns: 1fr; }
  .hall-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
  body { padding: 0 12px 32px; }
  .topbar { padding: 10px 12px; }
  .laptop { width: min(320px, 94vw); }
  .btn { max-width: 100%; padding: 10px 16px; }
  .section h2 { font-size: 1.5rem; }
  .hall-grid { grid-template-columns: 1fr; }
}

@keyframes gridShift {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 120px 120px, -120px -120px; }
}

@keyframes scanMove {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@keyframes codeFlicker {
  0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}
