/* ================================================
   FATIMA BITEYE — PORTFOLIO
   Design: Editorial luxury — warm ivory + deep teal
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ================================================ */

:root {
  --ivory: #f8f5ef;
  --ivory-dark: #ede9e0;
  --teal: #0d4b52;
  --teal-mid: #1a6b75;
  --teal-light: #2a8e9b;
  --gold: #c4963a;
  --gold-light: #e8c97a;
  --charcoal: #1c1c1c;
  --muted: #6b6b6b;
  --white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 12px rgba(13, 75, 82, 0.08);
  --shadow-md: 0 8px 40px rgba(13, 75, 82, 0.12);
  --shadow-lg: 0 24px 80px rgba(13, 75, 82, 0.18);

  --trans: 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: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ────────────────────────────────────────── */
.fb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(248, 245, 239, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13, 75, 82, 0.06);
  transition: var(--trans);
}

.fb-nav.scrolled {
  padding: 0.75rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.fb-nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}

.fb-nav__links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.fb-nav__links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--trans);
}

.fb-nav__links a:hover { color: var(--teal-light); }

.fb-nav__cta {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.3rem !important;
  border-radius: var(--radius-pill) !important;
  transition: background var(--trans) !important;
}

.fb-nav__cta:hover { background: var(--teal-light) !important; }

.fb-nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.fb-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--trans);
}

@media (max-width: 767px) {
  .fb-nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 1.5rem 2.5rem 2rem;
    border-bottom: 1px solid var(--ivory-dark);
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

  .fb-nav__links.open { display: flex; }
}

/* ── HERO ───────────────────────────────────────── */
.fb-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
}

.fb-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fb-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.fb-hero__orb--1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, #2a8e9b 0%, transparent 70%);
  top: -120px; right: -100px;
  animation: drift1 14s ease-in-out infinite alternate;
}

.fb-hero__orb--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #c4963a 0%, transparent 70%);
  bottom: 0; left: -80px;
  animation: drift2 18s ease-in-out infinite alternate;
}

.fb-hero__orb--3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, #0d4b52 0%, transparent 70%);
  top: 40%; left: 40%;
  opacity: 0.15;
  animation: drift3 22s ease-in-out infinite alternate;
}

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(30px, -25px) scale(1.05); } }
@keyframes drift3 { from { transform: translate(0,0); } to { transform: translate(20px, -20px); } }

.fb-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 75, 82, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 75, 82, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.fb-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.fb-hero__left {
  flex: 1;
  max-width: 600px;
  animation: slideUp 0.9s ease both;
}

.fb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 150, 58, 0.1);
  border: 1px solid rgba(196, 150, 58, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.5rem;
}

.fb-hero__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

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

.fb-hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--teal);
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
}

.fb-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.fb-hero__tagline {
  font-size: 0.95rem;
  color: var(--charcoal);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.fb-hero__location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.fb-hero__location::before {
  content: '⌖';
  color: var(--teal-light);
  font-size: 1rem;
}

.fb-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* PHOTO */
.fb-hero__right {
  flex-shrink: 0;
  animation: slideUp 0.9s 0.15s ease both;
}

.fb-hero__photo-wrap {
  position: relative;
  width: 300px;
  height: 360px;
}

.fb-hero__photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  border: 2px solid rgba(13, 75, 82, 0.2);
  animation: morphRing 8s ease-in-out infinite alternate;
}

@keyframes morphRing {
  from { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  to   { border-radius: 40% 60% 45% 55% / 60% 40% 55% 45%; }
}

.fb-hero__photo {
  width: 100%;
  height: 100%;
  border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  box-shadow: var(--shadow-lg);
  animation: morphPhoto 8s ease-in-out infinite alternate;
}

@keyframes morphPhoto {
  from { border-radius: 55% 45% 50% 50% / 45% 55% 50% 50%; }
  to   { border-radius: 45% 55% 50% 50% / 55% 45% 50% 50%; }
}

.fb-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.fb-hero__photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  letter-spacing: -0.02em;
}

.fb-hero__photo-badge {
  position: absolute;
  bottom: 16px;
  right: -16px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.fb-hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeInUp 1.2s 1s ease both;
}

.fb-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

@media (max-width: 991px) {
  .fb-hero__inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .fb-hero__left { max-width: 100%; }
  .fb-hero__tagline { margin: 0 auto 1.5rem; }
  .fb-hero__location { justify-content: center; }
  .fb-hero__actions { justify-content: center; }
  .fb-hero__photo-wrap { width: 220px; height: 260px; }
  .fb-hero__photo-badge { right: 0; }
}

/* ── BUTTONS ────────────────────────────────────── */
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: var(--trans);
  white-space: nowrap;
}

.fb-btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(13, 75, 82, 0.3);
}

.fb-btn--primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 75, 82, 0.35);
  color: var(--white);
}

.fb-btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid rgba(13, 75, 82, 0.3);
}

.fb-btn--ghost:hover {
  background: rgba(13, 75, 82, 0.06);
  transform: translateY(-2px);
  color: var(--teal);
}

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px) translateX(-50%); }
  to   { opacity: 1; transform: translateY(0) translateX(-50%); }
}

.fb-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fb-reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── SECTION SHARED ─────────────────────────────── */
section { padding: 6rem 0; }

.fb-section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.fb-section-header__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  background: rgba(196, 150, 58, 0.1);
  border: 1px solid rgba(196, 150, 58, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.fb-section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--teal);
  line-height: 1.1;
}

.fb-section-header--light .fb-section-header__title { color: var(--white); }
.fb-section-header--light .fb-section-header__num {
  color: var(--gold-light);
  background: rgba(232, 201, 122, 0.15);
  border-color: rgba(232, 201, 122, 0.3);
}

/* ── SUMMARY ────────────────────────────────────── */
.fb-summary {
  padding: 4rem 0;
  background: var(--teal);
}

.fb-summary__inner {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.fb-summary__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
  padding-top: 0.35rem;
}

.fb-summary__text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.8;
}

@media (max-width: 767px) {
  .fb-summary__inner { flex-direction: column; gap: 1rem; }
}

/* ── COMPETENCIES ───────────────────────────────── */
.fb-competencies { background: var(--ivory-dark); }

.fb-competencies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.fb-competency-card {
  background: var(--white);
  border: 1px solid rgba(13, 75, 82, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--charcoal);
  transition: var(--trans);
  box-shadow: var(--shadow-sm);
}

.fb-competency-card:hover {
  border-color: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--teal);
}

.fb-competency-card__icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── TIMELINE (EXPERIENCE) ──────────────────────── */
.fb-experience { background: var(--ivory); }

.fb-timeline {
  position: relative;
  padding-left: 2rem;
}

.fb-timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--teal), rgba(13, 75, 82, 0.1));
}

.fb-timeline-item {
  position: relative;
  padding: 0 0 3.5rem 2.5rem;
}

.fb-timeline-item::before {
  content: '';
  position: absolute;
  left: -7.5px;
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 2px var(--teal);
}

.fb-timeline-item:last-child { padding-bottom: 0; }

.fb-timeline-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.fb-timeline-role {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--teal);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.fb-timeline-company {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fb-timeline-company::before {
  content: '◆';
  font-size: 0.5rem;
  color: var(--teal-light);
}

.fb-timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.fb-timeline-highlights li {
  font-size: 0.9rem;
  color: var(--charcoal);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.65;
}

.fb-timeline-highlights li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal-light);
  font-size: 0.8rem;
}

/* ── EDUCATION ──────────────────────────────────── */
.fb-education { background: var(--ivory-dark); }

.fb-edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.fb-edu-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(13, 75, 82, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.fb-edu-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.fb-edu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fb-edu-card__period {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.fb-edu-card__degree {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.fb-edu-card__field {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.fb-edu-card__institution {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── SKILLS ─────────────────────────────────────── */
.fb-skills { background: var(--ivory); }

.fb-skills__subheading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
  color: var(--teal);
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ivory-dark);
}

.fb-skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fb-skill-tag {
  background: var(--white);
  border: 1px solid rgba(13, 75, 82, 0.15);
  color: var(--teal);
  font-size: 0.82rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  transition: var(--trans);
  cursor: default;
  font-weight: 400;
}

.fb-skill-tag:hover {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Language bars */
.fb-lang-item {
  margin-bottom: 1.4rem;
}

.fb-lang-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

.fb-lang-name { font-weight: 500; color: var(--charcoal); }

.fb-lang-level {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.fb-lang-bar {
  height: 5px;
  background: var(--ivory-dark);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.fb-lang-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open To */
.fb-opento {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fb-opento li {
  font-size: 0.88rem;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.fb-opento li::before {
  content: '✓';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(13, 75, 82, 0.08);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ── CONTACT ────────────────────────────────────── */
.fb-contact {
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

.fb-contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fb-contact__orb {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 142, 155, 0.4), transparent 70%);
  top: -150px; right: -150px;
}

.fb-contact__inner { position: relative; z-index: 1; }

.fb-contact__sub {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.fb-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.fb-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  transition: var(--trans);
  backdrop-filter: blur(8px);
}

.fb-contact-link:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.fb-contact-link i { font-size: 1rem; }

/* ── FOOTER ─────────────────────────────────────── */
.fb-footer {
  padding: 1.5rem 0;
  background: var(--charcoal);
  font-size: 0.8rem;
}

.fb-footer__name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

.fb-footer__credit {
  color: rgba(255,255,255,0.3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
