/* ============================================================
   FARAH EL GHEMARY — Main Stylesheet
   Sections:
   00. CSS Variables
   01. Reset & Base
   02. Typography Utilities
   03. Layout
   04. Header & Navigation
   05. Hero
   06. Ticker
   07. About
   08. Stats & Impact
   09. Mode Cards (What I Bring)
   10. Projects & Filters
   11. Blog
   12. Contact
   13. Timeline
   14. Modals (Album + Project)
   15. Footer
   16. Animations & Scroll Reveal
   17. Responsive
   ============================================================ */


/* ── 00. CSS Variables ──────────────────────────────────── */
:root {
  /* Colors */
  --bg-hero:   #212121;
  --bg-page:   #181818;
  --bg-cream:  #fff8e7;
  --text:      #eaeaea;
  --text-dark: #212121;
  --muted:     #bdbdbd;
  --accent:    #ffd700;
  --card:      #262626;
  --border:    #2f2f2f;

  /* Shadows */
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);

  /* Shape */
  --radius:    16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  /* Spacing */
  --space:     24px;
}

/* ── Light Theme ────────────────────────────────────────── */
[data-theme="light"] {
  --bg-hero:   #f0ede6;
  --bg-page:   #fafaf8;
  --bg-cream:  #fff8e7;
  --text:      #1a1a1a;
  --text-dark: #1a1a1a;
  --muted:     #606060;
  --accent:    #a07000;
  --card:      #ffffff;
  --border:    #dedad2;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .site-header {
  background: rgba(250, 250, 248, 0.92);
  border-bottom-color: #dedad2;
}

[data-theme="light"] .site-nav a:hover {
  background: #ede9e0;
}

[data-theme="light"] #home {
  background: #f0ede6;
}

[data-theme="light"] .hero-farah {
  color: #a07000;
}

[data-theme="light"] .hero-dash-left,
[data-theme="light"] .hero-dash-right {
  background: #a07000;
}

[data-theme="light"] .hero-el {
  color: #a07000;
}

[data-theme="light"] .hero-ghemary {
  color: var(--bg-page);
  -webkit-text-stroke: 2.5px rgba(160, 112, 0, 0.55);
}

[data-theme="light"] .hero-photo {
  border-color: #dedad2;
}

[data-theme="light"] .hero-tape {
  background: rgba(160, 112, 0, 0.18);
  border-color: rgba(140, 96, 0, 0.15);
}

[data-theme="light"] .section-tape {
  background-color: rgba(160, 112, 0, 0.07);
  background-image:
    repeating-linear-gradient(90deg, rgba(160,112,0,0.05) 0px, rgba(160,112,0,0.05) 10px, transparent 10px, transparent 20px),
    repeating-linear-gradient(0deg, rgba(160,112,0,0.05) 0px, rgba(160,112,0,0.05) 9px, transparent 9px, transparent 18px);
  border-top-color: rgba(160, 112, 0, 0.15);
  border-bottom-color: rgba(160, 112, 0, 0.15);
}

[data-theme="light"] .roles-ticker {
  background: #ede9e0;
  border-color: #dedad2;
}

[data-theme="light"] .about-p {
  color: #555;
}

[data-theme="light"] .about-sep-hint {
  color: #bbb;
}

[data-theme="light"] .about-sep-line {
  background: #dedad2;
}

[data-theme="light"] .stat-card--featured {
  background: #f5f2eb;
  border-color: rgba(160, 112, 0, 0.2);
}

[data-theme="light"] .stat-sub,
[data-theme="light"] .age-desc {
  color: #666;
}

[data-theme="light"] .age-track {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .cards-mode {
  background: #f0ede6;
}

[data-theme="light"] .mode-card {
  background: #ffffff;
  border-color: #dedad2;
}

[data-theme="light"] .mode-card-text {
  color: #444;
}

[data-theme="light"] .mode-card-sub {
  color: #777;
}

[data-theme="light"] .btn {
  background: #ede9e0;
  border-color: #dedad2;
  color: #1a1a1a;
}

[data-theme="light"] .btn-ghost {
  background: transparent;
}

[data-theme="light"] .timeline::before {
  background: #a07000;
}

[data-theme="light"] .timeline .dot {
  background: #a07000;
  box-shadow: 0 0 0 2px #a07000;
  border-color: var(--bg-page);
}

[data-theme="light"] .card-body {
  color: #444;
}

[data-theme="light"] .blog-card p {
  color: #444;
}

[data-theme="light"] .blog-card h3,
[data-theme="light"] .article-tags {
  color: #a07000;
}

[data-theme="light"] .article-date {
  color: #777;
}

[data-theme="light"] .blog-coming-soon {
  border-color: #dedad2;
}

[data-theme="light"] .contact-copy p {
  color: #444;
}

[data-theme="light"] .contact-form label {
  color: #333;
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  background: #f5f2eb;
  border-color: #dedad2;
  color: #1a1a1a;
}

[data-theme="light"] .contact-list a {
  color: #a07000;
}

[data-theme="light"] .what-i-do-content em {
  color: #a07000;
}

[data-theme="light"] .what-i-do-event-desc:hover {
  color: #1a1a1a;
}

[data-theme="light"] .presentation-link,
[data-theme="light"] .pdf-link,
[data-theme="light"] .website-link,
[data-theme="light"] .github-link,
[data-theme="light"] .submission-link,
[data-theme="light"] .instagram-link,
[data-theme="light"] .ministry-link {
  border-color: rgba(160, 112, 0, 0.35);
  color: #1a1a1a;
}

[data-theme="light"] .presentation-link:hover,
[data-theme="light"] .pdf-link:hover,
[data-theme="light"] .website-link:hover,
[data-theme="light"] .github-link:hover,
[data-theme="light"] .submission-link:hover,
[data-theme="light"] .instagram-link:hover,
[data-theme="light"] .ministry-link:hover {
  background: rgba(160, 112, 0, 0.08);
  border-color: rgba(160, 112, 0, 0.55);
  color: #a07000;
}

[data-theme="light"] .project-modal-content {
  background: #ffffff;
  border-color: #dedad2;
  color: #1a1a1a;
}

[data-theme="light"] .project-modal-content h2 {
  color: #a07000;
}

[data-theme="light"] .site-footer {
  border-top-color: #dedad2;
  color: #777;
}

/* ── Theme Toggle Button ─────────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--border);
}

/* ── Custom Cursor ──────────────────────────────────────── */
body.cursor-active,
body.cursor-active * {
  cursor: none !important;
}

.custom-cursor {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  font-size: 28px;
  line-height: 1;
  user-select: none;
  will-change: left, top;
  transition: opacity 0.2s ease;
}

.custom-cursor.img-mode {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  font-size: unset;
}

.custom-cursor.img-mode img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-cursor.bump {
  animation: cursor-bump 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cursor-bump {
  0%   { transform: translate(-50%, -50%) scale(1); }
  50%  { transform: translate(-50%, -50%) scale(1.5); }
  100% { transform: translate(-50%, -50%) scale(1); }
}


/* ── 01. Reset & Base ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}


/* ── 02. Typography Utilities ───────────────────────────── */
.section-title {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 24px;
}

.section-kicker {
  color: var(--accent);
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}


/* ── 03. Layout ─────────────────────────────────────────── */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}


/* ── 04. Header & Navigation ────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(24, 24, 24, 0.8);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  margin-right: auto;
}

.logo-mark { color: var(--accent); }
.logo-text { letter-spacing: 0.06em; }

.site-nav {
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  transition: background 0.2s ease;
}

.site-nav a:hover {
  background: #222;
}

.site-nav a.active {
  background: rgba(253, 216, 53, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: var(--border);
}


/* ── 05. Hero ───────────────────────────────────────────── */
#home {
  background: #161616;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero {
  display: flex;
  align-items: center;
  gap: 64px;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 80px 0;
  min-height: 100vh;
}

.hero-name-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.hero-farah {
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fdd835;
  line-height: 0.85;
  display: block;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  width: fit-content;
}

.hero-el-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 10px 0 8px;
}

.hero-dash-left {
  width: 28px;
  height: 2px;
  background: #fdd835;
  opacity: 0.4;
  border-radius: 2px;
  flex-shrink: 0;
  margin-right: 10px;
}

.hero-el {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #fdd835;
  opacity: 0.6;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 10px;
  font-family: 'Montserrat', sans-serif;
}

.hero-dash-right {
  flex: 1;
  height: 2px;
  background: #fdd835;
  opacity: 0.4;
  border-radius: 2px;
}

.hero-ghemary {
  font-size: clamp(56px, 8.5vw, 114px);
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: #161616;
  -webkit-text-stroke: 2.5px rgba(253, 216, 53, 0.5);
  paint-order: stroke fill;
  line-height: 0.85;
  display: block;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}

.hero-photo-col {
  flex-shrink: 0;
}

.hero-photo-wrap {
  position: relative;
  width: clamp(220px, 28vw, 380px);
  transform: rotate(2.5deg);
}

.hero-tape {
  position: absolute;
  width: 88px;
  height: 20px;
  background: rgba(253, 216, 53, 0.45);
  border: 1px solid rgba(200, 160, 0, 0.2);
  border-radius: 1px;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(-1.5deg);
  z-index: 2;
}

.hero-photo {
  width: 100%;
  height: clamp(300px, 55vh, 520px);
  object-fit: cover;
  object-position: center top;
  display: block;
  border: 1.5px solid #2f2f2f;
}

.section-tape {
  width: 100%;
  height: 18px;
  background-color: rgba(255, 215, 0, 0.12);
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255, 215, 0, 0.08) 0px,
      rgba(255, 215, 0, 0.08) 10px,
      transparent 10px,
      transparent 20px),
    repeating-linear-gradient(0deg,
      rgba(255, 215, 0, 0.08) 0px,
      rgba(255, 215, 0, 0.08) 9px,
      transparent 9px,
      transparent 18px);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  transform: rotate(-0.4deg);
  margin: -2px 0;
}


/* ── 06. Ticker ─────────────────────────────────────────── */
.roles-ticker {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #1f1f1f;
  margin-top: 24px;
  margin-bottom: 24px;
  white-space: nowrap;
}

.roles-ticker .ticker-track {
  display: inline-block;
  white-space: nowrap;
  padding: 20px 0;
  animation: ticker-scroll 120s linear infinite;
}

.roles-ticker span {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 48px;
  font-size: 48px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ── 07. About ──────────────────────────────────────────── */
.about-b3 {
  text-align: center;
}

.about-kicker {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin: 0 0 24px;
}

.about-p {
  font-size: 17px;
  color: #999;
  line-height: 1.85;
  margin: 0 auto 36px;
  max-width: 560px;
  font-weight: 300;
}

.about-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.about-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.about-sep-line {
  flex: 0 0 40px;
  height: 1px;
  background: #2a2a2a;
}

.about-sep-hint {
  font-size: 11px;
  color: #3a3a3a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* ── 08. Stats & Impact ─────────────────────────────────── */
.stats-impact {
  background: var(--bg-page);
}

.stats-toggle {
  display: flex;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  width: fit-content;
  margin-bottom: 28px;
}

.stats-toggle-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.stats-toggle-btn.active {
  background: var(--accent);
  color: #1b1b1b;
}

.stats-view          { display: none; }
.stats-view.active   { display: block; }

/* Role grid */
.stats-grid-role {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.stat-card--featured {
  grid-column: span 2;
  background: #1f1f1f;
  border-color: rgba(255, 215, 0, 0.2);
}

.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: inline;
}

.stat-card--featured .stat-num { font-size: 56px; }

.stat-suffix {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  display: inline;
  margin-left: 2px;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 4px;
  color: var(--text);
}

.stat-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Age grid */
.stats-grid-age {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.age-row:hover {
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateX(4px);
}

.age-range {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.age-label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.age-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.age-bar-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.age-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.age-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

.age-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.age-fill.animated { width: var(--pct); }


/* ── 09. Mode Cards (What I Bring) ──────────────────────── */
.cards-mode {
  background: var(--bg-hero);
}

.mode-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.mode-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.mode-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
  background: #333;
}

.mode-card:hover .mode-card-img {
  filter: grayscale(0%);
}

.mode-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  margin: 0;
}

.mode-card-sub {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.mode-card-text {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.7;
  margin: 0;
}

.mode-card-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s ease;
}

.mode-card-cta:hover {
  letter-spacing: 0.1em;
}


/* ── 10. Projects & Filters ─────────────────────────────── */
.projects {
  background: var(--bg-page);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
  background: var(--accent);
  color: #1b1b1b;
  border-color: transparent;
}

.sub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.filter-tag {
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #1f1f1f;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-tag:hover {
  transform: translateY(-1px);
  background: #2a2a2a;
}

.filter-tag.active {
  background: var(--accent);
  color: #1b1b1b;
  border-color: var(--accent);
  font-weight: 600;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0)    0%,
    rgba(0,0,0,0.55) 70%,
    rgba(0,0,0,0.8)  100%
  );
  color: #fff;
  transform: translateY(20%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-overlay h3 { margin: 0 0 4px; font-size: 15px; }
.project-overlay p  { margin: 0; font-size: 13px; opacity: 0.85; }


/* ── 11. Blog ───────────────────────────────────────────── */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.blog-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
}

.blog-card h3 {
  margin: 0 0 10px;
  color: var(--accent);
}

.blog-card p {
  margin: 0 0 15px;
  color: #ccc;
  line-height: 1.6;
}

.article-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 5px;
}

.article-tags {
  display: block;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.article-meta {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

.article-content { line-height: 1.8; }

.article-content h2 {
  color: var(--accent);
  margin-top: 30px;
  margin-bottom: 15px;
}

.article-content ul { margin-left: 20px; }
.article-content li { margin-bottom: 8px; }

.blog-coming-soon {
  margin-top: 32px;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  line-height: 1.7;
}


/* ── 12. Contact ────────────────────────────────────────── */
.contact .contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.contact-copy p { color: #cccccc; }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 6px;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
}

.contact-list a:hover { text-decoration: underline; }

/* Social icons */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--text-dark);
  border-radius: 50%;
  text-decoration: none;
  margin-right: 12px;
  margin-top: 8px;
  font-size: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.2);
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 30px rgba(255, 215, 0, 0.4);
  background: #ffc700;
}

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #d7d7d7;
}

.contact-form label.full { grid-column: 1 / -1; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #1f1f1f;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact .btn-accent { margin-top: 4px; }


/* ── Shared Card ────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.card[role="button"] { cursor: pointer; }

.what-i-do-content em {
  color: var(--accent);
}

.card h4 { margin-top: 0; }

.card-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
}

.card-body {
  margin: 0;
  color: #d1d1d1;
  line-height: 1.6;
}


/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  background: #222;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  background: var(--accent);
  color: #1b1b1b;
  border-color: transparent;
}

.btn-accent:hover {
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.35);
}

.btn-ghost {
  background: transparent;
}


/* ── 13. Timeline ───────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  width: 4px;
  height: 100%;
  background: #fdd835;
  border-radius: 2px;
  z-index: 0;
}

.timeline .dot {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  background: #fdd835;
  border-radius: 50%;
  z-index: 1;
  margin-top: 6px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #fdd835;
}

.entry {
  position: relative;
  margin-bottom: 40px;
}

.timeline-year {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 48px 0 24px;
  letter-spacing: 0.02em;
}

/* ── Year toggle (what-i-do.html) ───────────────────────── */
.year-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin: 48px 0 24px;
  letter-spacing: 0.02em;
  padding: 0;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 1;
}

.year-toggle:hover { opacity: 0.75; }

.year-toggle-icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  line-height: 1;
  flex-shrink: 0;
}

.year-toggle[aria-expanded="false"] .year-toggle-icon {
  transform: rotate(-90deg);
}

.year-hidden { display: none; }

.year-entries {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* What I Do page layout helpers */
.what-i-do-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.what-i-do-content p { flex: 2; }

.what-i-do-image {
  flex: 1;
  max-width: 45%;
  height: auto;
  border-radius: var(--radius-xs);
  box-shadow: var(--shadow);
}

.what-i-do-event {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
  cursor: pointer;
}

.what-i-do-event-month,
.entry time {
  margin-right: 26px;
  font-weight: bold;
  color: var(--accent);
  min-width: 60px;
  font-size: 18px;
}

.what-i-do-event-desc {
  text-decoration: none;
  color: inherit;
}

.what-i-do-event-desc:hover { color: #fff8e7; }


/* ── 14. Modals ─────────────────────────────────────────── */

/* Shared modal base */
.album-modal,
.project-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.album-modal.active,
.project-modal.active {
  display: flex;
}

/* Album modal */
.album-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 90vw;
  max-height: 80vh;
}

.album-image-wrapper {
  position: relative;
  width: min(80vw, 700px);
  height: min(75vh, 600px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-loading {
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.album-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.album-video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.album-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.album-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 215, 0, 0.9);
  color: #1b1b1b;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  font-weight: bold;
  z-index: 10001;
}

.album-nav-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.album-nav-btn.prev { left: -70px; }
.album-nav-btn.next { right: -70px; }

.album-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 215, 0, 0.9);
  color: #1b1b1b;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-weight: bold;
  z-index: 10002;
}

.album-close-btn:hover { background: var(--accent); }

/* Project modal */
.project-modal { overflow-y: auto; }

.project-modal-content {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}

.project-modal-content h2 {
  margin-top: 0;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
}

.project-modal-content p {
  line-height: 1.8;
  margin-bottom: 16px;
}

.project-modal-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.project-modal-images img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.project-modal-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.project-modal-links > div:empty { display: none; }

/* Modal link buttons — unified dark theme ghost style */
.presentation-link,
.pdf-link,
.website-link,
.github-link,
.submission-link,
.instagram-link,
.ministry-link {
  display: block;
  padding: 8px 16px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  background: transparent;
  border: 1px solid rgba(255,215,0,0.3);
  color: #eaeaea;
  transition: all 0.2s ease;
}

.presentation-link:hover,
.pdf-link:hover,
.website-link:hover,
.github-link:hover,
.submission-link:hover,
.instagram-link:hover,
.ministry-link:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.6);
  color: #ffd700;
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #1b1b1b;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  font-weight: bold;
}

.project-modal-close:hover { transform: scale(1.1); }


/* ── 15. Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: #a9a9a9;
}

.site-footer p {
  margin: 0;
  text-align: center;
}


/* ── 16. Animations & Scroll Reveal ─────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* noscript fallback — reveal everything if JS is unavailable */
@media (scripting: none) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}


/* ── 17. Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .container {
    width: 98%;
    padding: 0 6px;
  }

  .section { padding: 48px 0; }

  .header-content { height: 54px; }

  .section-title { font-size: 24px; }

  .roles-ticker span {
    font-size: 24px;
    padding: 0 18px;
  }

  .site-nav {
    display: none;
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    gap: 12px;
    z-index: 1000;
  }

  .nav-toggle { display: block; }

  .mode-cards { grid-template-columns: 1fr; }

  .stats-grid-role { grid-template-columns: 1fr 1fr; }
  .stat-card--featured { grid-column: span 2; }

  .age-row { grid-template-columns: 70px 1fr; }
  .age-bar-col { display: none; }

  /* Hero responsive */
  #home { min-height: 100vh; align-items: flex-start; }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 0 40px;
    gap: 32px;
    min-height: 100vh;
    justify-content: center;
  }

  .hero-farah  { font-size: clamp(72px, 18vw, 134px); }
  .hero-ghemary { font-size: clamp(50px, 13vw, 96px); }

  .hero-photo-col { align-self: flex-end; }

  .hero-photo-wrap {
    width: clamp(160px, 45vw, 260px);
    transform: rotate(2.5deg);
  }

  .hero-photo { height: clamp(220px, 40vh, 360px); }

  /* Album modal nav */
  .album-nav-btn.prev { left: -40px; }
  .album-nav-btn.next { right: -40px; }
  .album-nav-btn { width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 700px) {
  .header-content { flex-direction: row; height: 48px; }

  .section { padding: 38px 0; }
  .section-title { font-size: 18px; }

  .roles-ticker span { font-size: 18px; padding: 0 8px; }

  .project-grid,
  .behind-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .about .about-cards,
  .contact .contact-inner,
  .contact-form {
    grid-template-columns: 1fr !important;
  }

  .site-footer { padding: 16px 0; }

  .album-nav-btn.prev { left: 10px; }
  .album-nav-btn.next { right: 10px; }
  .album-container { gap: 60px; }

  .project-modal-content { padding: 20px; }
  .project-modal-images { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .hero-farah   { font-size: clamp(56px, 16vw, 90px); }
  .hero-ghemary { font-size: clamp(40px, 11vw, 65px); }
  .hero-photo-wrap { width: clamp(130px, 40vw, 200px); }
  .hero-photo { height: clamp(180px, 35vh, 280px); }
}

@media (max-width: 480px) {
  .stats-grid-role { grid-template-columns: 1fr; }
  .stat-card--featured { grid-column: span 1; }
}

/* ── Light theme: 404 page overrides ───────────────────── */
[data-theme="light"] .not-found-code  { color: #a07000; }
[data-theme="light"] .not-found-title { color: #1a1a1a; }
[data-theme="light"] .not-found-sub   { color: #666; }
