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

:root {
  --primary: #4F46E5;
  --accent:  #7C3AED;
  --dark:    #0A0A0A;
  --dark2:   #111111;
  --dark3:   #1a1a1a;
  --light:   #F9FAFB;
  --muted:   #9CA3AF;
  --border:  #2a2a2a;
  --gold:    #F59E0B;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--dark);
  color: #fff;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-cta:hover { opacity: 0.9; }

/* ===== HERO / STORY ===== */
.hero {
  min-height: 100vh;
  background: #000;
  padding: 100px 40px 60px;
  display: flex;
  flex-direction: column;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
}

.hero-title h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: 4px;
}

/* NYU Badge */
.nyu-badge {
  text-align: right;
}

.nyu-arabic {
  display: block;
  font-size: 1rem;
  color: #fff;
  direction: rtl;
  margin-bottom: 4px;
  font-weight: 500;
}

.nyu-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #57068c;
  padding: 8px 16px;
  border-radius: 6px;
}

.nyu-text {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

/* ===== HERO MAIN ===== */
.hero-main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  flex: 1;
}

/* ===== MOSAIC ===== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 180px);
  gap: 6px;
  grid-template-areas:
    "a  b  c  d  d"
    "a  g  g  d  e"
    "f  g  g  i  j";
}

.mosaic-item {
  overflow: hidden;
  border-radius: 6px;
  background: #1a1a1a;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mosaic-item:hover img { transform: scale(1.05); }

/* ===== STORY TEXT ===== */
.story-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 8px;
}

.story-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.story-label.love { color: #a78bfa; }

.story-item {
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color 0.2s;
  cursor: default;
}

.story-item:hover { color: #a78bfa; }
.story-item.love { color: #a78bfa; }
.story-item.love:hover { color: #fff; }

/* ===== SECTIONS ===== */
.section-light {
  background: #fff;
  color: #111;
  padding: 80px 40px;
}

.section-dark {
  background: var(--dark2);
  color: #fff;
  padding: 80px 40px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
  margin-bottom: 40px;
  display: inline-block;
}

.section-heading.light {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  color: #374151;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.about-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
  padding: 6px 14px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  transition: all 0.2s;
}

.about-links a:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-card {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-card i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-card strong {
  display: block;
  font-size: 0.82rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.info-card p {
  font-size: 0.88rem;
  color: #111;
  margin: 2px 0 0;
}

.info-card.highlight {
  background: #EDE9FE;
  border-color: #C4B5FD;
}

.info-card.highlight i { color: var(--accent); }

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-group {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.skill-group h3 {
  font-size: 0.95rem;
  color: #a78bfa;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tags span {
  background: #1f1f2e;
  color: #C4B5FD;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #3730a3;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 2px;
  background: #E5E7EB;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 2px solid #fff;
}

.timeline-dot.featured {
  background: var(--primary);
  width: 18px;
  height: 18px;
  left: -30px;
}

.timeline-content {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.tl-company {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.tl-company.lockheed { background: #FEF3C7; color: #92400E; }
.tl-company.ebrain   { background: #EDE9FE; color: #5B21B6; }
.tl-company.nyuad    { background: #EFF6FF; color: #1D4ED8; }
.tl-company.exchange { background: #F0FDF4; color: #166534; }

.tl-date {
  font-size: 0.82rem;
  color: #6B7280;
}

.timeline-content h3 {
  font-size: 1rem;
  color: #111;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: #4B5563;
  margin-bottom: 10px;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tl-tags span {
  background: #F3F4F6;
  color: #374151;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 50%, #0f172a 100%);
  border-top: 1px solid #3730a3;
  border-bottom: 1px solid #3730a3;
  padding: 60px 40px;
}

.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 6px;
}

.cta-banner p { color: #a78bfa; }

.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4);
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.9; text-decoration: none; }

.btn-secondary {
  background: transparent;
  color: #a78bfa;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid #a78bfa;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #a78bfa;
  color: #fff;
  text-decoration: none;
}

/* ===== CERTIFICATIONS ===== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cert-card {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.cert-card i {
  font-size: 1.8rem;
  color: #a78bfa;
}

.cert-card strong {
  font-size: 0.92rem;
  color: #fff;
}

.cert-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.cert-card.gold { border-color: var(--gold); }
.cert-card.gold i { color: var(--gold); }

.cert-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 4px;
}

/* ===== FOOTER ===== */
.site-footer-main {
  background: #050505;
  padding: 48px 40px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.footer-brand p { color: var(--muted); font-size: 0.88rem; }

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.footer-social a {
  color: var(--muted);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.footer-social a:hover { color: #fff; }

.footer-copy {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-main { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; grid-template-areas: none; }
  .mosaic-item { grid-area: auto !important; height: 160px; }
  .story-text { flex-direction: row; flex-wrap: wrap; }
  .story-item { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { justify-content: flex-start; }
}

@media (max-width: 600px) {
  .topnav { padding: 12px 20px; }
  .nav-links { gap: 12px; font-size: 0.82rem; }
  .hero { padding: 90px 20px 40px; }
  .hero-title h1 { font-size: 2rem; }
  .section-light, .section-dark, .cta-banner { padding: 60px 20px; }
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .about-cards { grid-template-columns: 1fr; }
}
