/* =========================================================
   Fatima Makhlouf — Portfolio
   Palette: deep indigo-black base, violet + warm gold dual accent,
   glass-panel surfaces. Hero visual is a "support console" mock —
   grounded in her actual day-to-day rather than a stock photo.
   ========================================================= */

:root {
  --bg:            #0A0B14;
  --bg-soft:       #0D0F1E;
  --surface:       #14172A;
  --surface-2:     #191D36;
  --border:        rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.18);
  --text:          #F5F6FB;
  --text-dim:      #A7ACC8;
  --text-faint:    #6C7192;

  --accent:        #7C6CFF;
  --accent-2:      #4F8CFF;
  --accent-warm:   #FFB648;

  --gradient-brand: linear-gradient(135deg, #7C6CFF 0%, #4F8CFF 100%);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --maxw: 1120px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------------- background orbs ---------------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}
.orb--a {
  width: 520px; height: 520px;
  top: -160px; left: -120px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}
.orb--b {
  width: 460px; height: 460px;
  top: 260px; right: -160px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation-delay: -6s;
}
.orb--c {
  width: 380px; height: 380px;
  bottom: -140px; left: 40%;
  background: radial-gradient(circle, var(--accent-warm), transparent 70%);
  opacity: 0.18;
  animation-delay: -11s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -24px); }
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ---------------- NAV ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(10, 11, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--gradient-brand);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ---------------- HERO ---------------- */
.hero {
  padding: 96px clamp(20px, 5vw, 64px) 64px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero__kicker {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(124,108,255,0.08);
}

.hero__name {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.08;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}
.hero__accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 36px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.btn--solid {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124,108,255,0.55);
}
.btn--solid:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(124,108,255,0.7); }
.btn--solid:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

.hero__stats {
  display: flex;
  gap: 36px;
}
.hero__stats div { display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-size: 20px; font-weight: 700; }
.hero__stats span { font-size: 13px; color: var(--text-faint); }

/* support console — hero visual, replaces a photo with something
   grounded in her actual work */
.console {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}

.console__head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.console__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.console__badge {
  margin-left: auto;
  font-size: 11px;
  color: #34D399;
  border: 1px solid rgba(52,211,153,0.4);
  padding: 2px 9px;
  border-radius: 20px;
}

.console__rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.console__rows li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.console__rows li:last-child { border-bottom: none; }
.ticket-id {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 12px;
}
.ticket-desc { color: var(--text); }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.chip--done {
  background: rgba(52,211,153,0.12);
  color: #34D399;
  border: 1px solid rgba(52,211,153,0.3);
}
.chip--progress {
  background: rgba(255,182,72,0.12);
  color: var(--accent-warm);
  border: 1px solid rgba(255,182,72,0.35);
}

.console__foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------------- SECTIONS ---------------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 84px clamp(20px, 5vw, 64px);
}
.section--panel {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.section--panel > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
}
.section__index {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 600;
}
.section__head h2 {
  font-size: 32px;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section__sub {
  color: var(--text-dim);
  margin: -22px 0 32px;
  font-size: 15px;
}

.about__body p {
  color: var(--text-dim);
  max-width: 70ch;
  font-size: 17px;
  margin: 0 0 18px;
}

/* ---------------- MODULES / SKILLS ---------------- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 52px;
}
.module {
  background: linear-gradient(180deg, var(--surface), rgba(20,23,42,0.4));
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px;
  transition: border-color 0.2s ease;
}
.module:hover { border-color: var(--border-strong); }
.module h3 {
  font-size: 14.5px;
  color: var(--accent-2);
  margin: 0 0 18px;
  font-weight: 700;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags span {
  font-size: 12.5px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}

.langbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
}
.langbar__item {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 500;
}
.langbar__track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.langbar__fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 3px;
}
.langbar__item b { color: var(--text-faint); text-align: right; font-family: var(--font-mono); font-size: 12px; }

/* ---------------- TIMELINE / EXPERIENCE ---------------- */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline__line {
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
  border-radius: 2px;
}
.tl-item {
  position: relative;
  padding-bottom: 44px;
  animation: tlReveal 0.6s ease both;
}
.tl-item:nth-child(1) { animation-delay: 0.05s; }
.tl-item:nth-child(2) { animation-delay: 0.1s; }
.tl-item:nth-child(3) { animation-delay: 0.15s; }
.tl-item:nth-child(4) { animation-delay: 0.2s; }
.tl-item:nth-child(5) { animation-delay: 0.25s; }
@keyframes tlReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item__marker {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(124,108,255,0.15);
}
.tl-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.tl-item__date {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 13px;
}
.tl-item__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  border: 1px solid rgba(79,140,255,0.4);
  padding: 2px 9px;
  border-radius: 20px;
}
.tl-item h3 { margin: 0 0 4px; font-size: 19.5px; font-weight: 700; }
.tl-item__org { color: var(--text-dim); margin: 0 0 14px; font-size: 14.5px; }
.tl-item ul { margin: 0; padding-left: 18px; color: var(--text-dim); }
.tl-item li { margin-bottom: 8px; font-size: 15px; }

/* ---------------- EDUCATION ---------------- */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.edu-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--surface);
}
.edu-card__date {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 13px;
}
.edu-card h3 { margin: 12px 0 6px; font-size: 18px; font-weight: 700; }
.edu-card__org { color: var(--text-dim); font-size: 14px; margin: 0 0 12px; }
.edu-card__note { color: var(--text-faint); font-size: 13.5px; margin: 0; }

.extra-note {
  border-left: 3px solid var(--accent-warm);
  padding-left: 22px;
}
.extra-note h3 { font-size: 15px; margin: 0 0 8px; color: var(--accent-warm); font-weight: 700; }
.extra-note p { color: var(--text-dim); margin: 0; max-width: 70ch; }

/* ---------------- TESTIMONIAL CAROUSEL ---------------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 6px 24px;
  margin: 0 -6px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.t-card {
  flex: 0 0 auto;
  width: min(340px, 82vw);
  scroll-snap-align: start;
  background: linear-gradient(160deg, var(--surface), rgba(20,23,42,0.5));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}
.t-card__stars { color: var(--accent-warm); font-size: 14px; letter-spacing: 2px; }
.t-card p {
  font-size: 15px;
  color: var(--text);
  margin: 0;
  flex-grow: 1;
}
.t-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.t-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--c, var(--accent));
  flex-shrink: 0;
}
.t-card__who { display: flex; flex-direction: column; gap: 1px; }
.t-card__who b { font-size: 13.5px; font-weight: 600; }
.t-card__who i { font-style: normal; font-size: 12px; color: var(--text-faint); }

.carousel__controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}
.carousel__btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.carousel__btn:hover { border-color: var(--accent-2); color: var(--accent-2); transform: translateY(-1px); }

/* ---------------- CONTACT ---------------- */
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact__info > p {
  color: var(--text-dim);
  max-width: 40ch;
  margin: 0 0 28px;
  font-size: 16px;
}
.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}
.contact__list span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: lowercase;
}
.contact__list a { text-decoration: none; font-size: 15.5px; font-weight: 500; }
.contact__list a[href]:hover { color: var(--accent-2); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.field input, .field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(79,140,255,0.15);
}
.field--hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  left: -9999px;
}
.contact__form .btn { align-self: flex-start; border: none; }
.field__note {
  font-size: 13.5px;
  font-weight: 500;
  min-height: 18px;
  margin: 0;
}
.field__note.is-error { color: #FB7185; }
.field__note.is-success { color: #34D399; }

/* ---------------- FOOTER ---------------- */
.footer {
  display: flex;
  justify-content: space-between;
  padding: 30px clamp(20px, 5vw, 64px) 44px;
  max-width: var(--maxw);
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-faint);
}
.footer__ping::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  margin-right: 6px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; gap: 24px; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px clamp(20px, 5vw, 64px) 24px;
    gap: 16px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
}

@media (max-width: 520px) {
  .hero { padding-top: 68px; }
  .section { padding: 60px clamp(18px, 5vw, 64px); }
}
