/* ─────────────────────────────────────────────────────────────
   PORTFOLIO — Dark Professional
   Dark + Red  |  Inter
───────────────────────────────────────────────────────────── */

/* ── VARIABLES ───────────────────────────────────────────── */
:root {
  --bg:           #111111;
  --surface:      #1a1a1a;
  --surface-2:    #1e1e1e;
  --border:       #2a2a2a;
  --primary:      #861313;
  --accent:       #c41e1e;
  --accent-light: #e53535;
  --featured:     #e07a1e;
  --featured-light: #f5942f;
  --text:         #e0e0e0;
  --text-muted:   #aaaaaa;
  --text-bright:  #f0f0f0;
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Consolas', monospace;
  --nav-h:        64px;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
  --transition:   0.2s ease;
}

/* ── RESET & BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--surface);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

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

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section:nth-child(even) { background: var(--surface-2); }

/* ── SECTION HEADINGS ────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.section-rule {
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2.5rem;
}

/* ── NAVIGATION ──────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(17, 17, 17, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text-bright);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent-light);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 16px;
  transition: border-color var(--transition), color var(--transition);
}

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

/* ── HERO ────────────────────────────────────────────────── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 100px; /* space for wave */
  background: #0d0d0d;
  position: relative;
  overflow: hidden;
}

/* Subtle background gradient */
#home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 40%, rgba(134, 19, 19, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

/* ── HERO WAVE ────────────────────────────────────────────── */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.hero-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 90px;
}

.hero-wave .wave-fill {
  fill: var(--bg);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

.hero-text { flex: 1; max-width: 700px; }

.hero-greeting {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.hero-role {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.hero-school {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.hero-nav-links a {
  font-size: 15px;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.hero-nav-links a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(196, 30, 30, 0.06);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Profile image */
.hero-image {
  flex-shrink: 0;
}

.profile-ring {
  width: 340px;
  height: 440px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  box-shadow: 0 0 50px rgba(196, 30, 30, 0.3);
}

.profile-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--bg);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--text-bright);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  box-shadow: 0 4px 16px rgba(196, 30, 30, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-bright);
  transform: translateY(-1px);
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
  max-width: 660px;
}

.about-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ── SKILLS ──────────────────────────────────────────────── */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(196, 30, 30, 0.12);
  border: 1px solid rgba(196, 30, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.skill-group-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-bright);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}


/* ── PROJECTS ────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  align-self: flex-start;
}


.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.35;
}

.project-status {
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-complete {
  background: rgba(134, 19, 19, 0.15);
  color: #e05555;
  border: 1px solid rgba(134, 19, 19, 0.35);
}

.status-wip {
  background: rgba(120, 100, 0, 0.15);
  color: #c8a822;
  border: 1px solid rgba(120, 100, 0, 0.35);
}

.status-cancelled {
  background: rgba(80, 80, 80, 0.15);
  color: #888888;
  border: 1px solid rgba(80, 80, 80, 0.35);
}

.project-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(196, 30, 30, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.project-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(196, 30, 30, 0.08);
}

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition),
              box-shadow var(--transition);
}

.cert-card-clickable {
  cursor: pointer;
}

/* Cert cards hold links, so a subtle lift on hover is intentional here */
.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cert-card:hover .cert-badge {
  transform: scale(1.08) rotate(-3deg);
}

/* Staggered reveal when "Show more" expands a grid (certs + skills) */
.cert-card.cert-revealing,
.skill-card.skill-revealing {
  animation: card-reveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Staggered fade-out when "Show fewer" collapses a grid (certs + skills) */
.cert-card.cert-hiding,
.skill-card.skill-hiding {
  animation: card-hide 0.32s cubic-bezier(0.4, 0, 0.6, 1) both;
}

@keyframes card-reveal {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes card-hide {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(12px) scale(0.96); }
}

.cert-badge {
  width: 80px;
  height: 80px;
  object-fit: contain;
  transition: transform var(--transition);
}

.cert-issuer {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.cert-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.cert-link {
  font-size: 13px;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.cert-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Show more certs */
.show-more-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.55rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.show-more-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-bright);
}

/* ── WORKSHOPS ───────────────────────────────────────────── */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
}

.list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}


.list-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(196, 30, 30, 0.12);
  border: 1px solid rgba(196, 30, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 16px;
  flex-shrink: 0;
}

.list-body { flex: 1; }

.list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.list-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── SPLIT COLUMNS (Workshops & Learning Path) ───────────── */
.split-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.split-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.split-col > .list-card,
.split-col > .edu-card {
  flex: 1;
}

.split-col-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

/* ── EDUCATION ───────────────────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}


.edu-years {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.edu-school {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.3rem;
}

.edu-degree {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.edu-location {
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.7;
}

.edu-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}


.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(196, 30, 30, 0.1);
  border: 1px solid rgba(196, 30, 30, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.contact-value a {
  color: var(--text);
  transition: color var(--transition);
}

.contact-value a:hover { color: var(--accent-light); }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── SCROLL ANIMATIONS ───────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { flex-direction: column-reverse; align-items: flex-start; gap: 2.5rem; }
  .profile-ring { width: 240px; height: 310px; }
  .projects-grid { grid-template-columns: 1fr; }

}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(17, 17, 17, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.5rem 1rem;
    gap: 0.25rem;
  }

  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.7rem 0.5rem; }
  .nav-toggle { display: block; }

  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: 1fr; }
  .split-columns { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2rem; }
  .profile-ring { width: 180px; height: 230px; }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 1.6rem; }
}

/* ── Section CTA (home page "View All" button) ───────────── */
.section-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Explore (home page redirection cards) ───────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.explore-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.explore-card:hover {
  border-color: rgba(196, 30, 30, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
  color: inherit;
}

.explore-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(196, 30, 30, 0.1);
  color: var(--accent);
  font-size: 20px;
}

.explore-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-bright);
}

.explore-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.explore-card-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: color var(--transition);
}

.explore-card:hover .explore-card-link { color: var(--accent-light); }
.explore-card:hover .explore-card-link span { padding-left: 0.25rem; transition: padding-left var(--transition); }

/* ═══════════════════════════════════════════════════════════
   PROJECTS PAGE
═══════════════════════════════════════════════════════════ */

/* ── Page hero (shorter than home hero) ──────────────────── */
.page-hero {
  background: #0d0d0d;
  padding: calc(var(--nav-h) + 4rem) 0 100px;
  position: relative;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 20% 50%, rgba(134, 19, 19, 0.13) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner { position: relative; }

.page-hero-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.page-hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-hero-rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.page-hero-sub {
  font-size: 16px;
  color: var(--text-muted);
}

/* ── Content area below hero ─────────────────────────────── */
.projects-content {
  padding: 4rem 0 6rem;
  min-height: 50vh;
}

/* ── Search bar ──────────────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.1rem;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  transition: border-color var(--transition);
}

.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--accent); outline: none; }

.adv-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Advanced tag panel ──────────────────────────────────── */
.adv-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.adv-panel-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  user-select: none;
}

.tag-pill:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.tag-pill.active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(196, 30, 30, 0.1);
}

.clear-filters {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.clear-filters:hover { color: var(--accent-light); }

/* ── Project rows ────────────────────────────────────────── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

/* Row with image: add a fixed thumbnail column on the left */
.project-row.has-img {
  grid-template-columns: 100px 2fr 1.5fr 1fr;
}

.proj-img-wrap {
  width: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  align-self: center;
  flex-shrink: 0;
}

.proj-img {
  width: 100%;
  height: auto;
  display: block;
}

.project-row:hover {
  border-color: rgba(196, 30, 30, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

/* Featured projects — sorted first and tinted orange to stand out */
.project-row.featured {
  border-color: rgba(224, 122, 30, 0.45);
  border-left: 3px solid var(--featured);
  background: linear-gradient(180deg, rgba(224, 122, 30, 0.06), rgba(224, 122, 30, 0.02));
}

.project-row.featured:hover {
  border-color: var(--featured);
  box-shadow: 0 8px 32px rgba(224, 122, 30, 0.12);
}

.proj-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--featured-light);
  margin-bottom: 0.5rem;
}

.proj-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.proj-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Matches .wshop-small-date — keep date/meta typography consistent site-wide */
.proj-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

.proj-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-content: flex-start;
}

.proj-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* ── No results ──────────────────────────────────────────── */
.no-results {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  padding: 4rem 0;
}

/* ── Project detail modal ────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(196, 30, 30, 0.25),
    0 0 40px rgba(196, 30, 30, 0.18),
    0 0 90px rgba(196, 30, 30, 0.07);
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem 2.25rem 2.25rem;
  transform: translateY(14px) scale(0.99);
  transition: transform 0.2s ease;
}

.modal-backdrop.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem 0.45rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.modal-close:hover {
  color: var(--text-bright);
  background: var(--surface-2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-right: 2rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
}

.modal-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
}

.modal-left {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.modal-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.modal-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.modal-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

/* Stacked download buttons in the modal (main + optional secondary) */
.modal-downloads {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: auto;
}

/* ── Modal reflection block ──────────────────────────────── */
.modal-reflection-block {
  background: rgba(196, 30, 30, 0.05);
  border: 1px solid rgba(196, 30, 30, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
}

.modal-reflection-block .modal-section-label {
  margin-bottom: 0.5rem;
}

.modal-reflection-block .modal-text {
  font-style: italic;
}

/* ── Modal preview gallery ───────────────────────────────── */
/* Thumbnails stacked in a single full-width column; as many as fit
   the available height are shown, the rest summarised as "+N more". */
.modal-preview-strip {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 22rem;
  overflow: hidden;
}

.modal-preview-thumb {
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
  transition: border-color var(--transition), transform var(--transition);
}

.modal-preview-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.modal-preview-thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter var(--transition);
}

/* Dim the image on hover */
.modal-preview-thumb:hover img {
  filter: brightness(0.55);
}

/* "Click to expand" hint overlay — hidden until hover */
.modal-preview-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-bright);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.modal-preview-thumb:hover .modal-preview-hint {
  opacity: 1;
}

.modal-preview-more {
  margin-top: 0.5rem;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Lightbox (full-screen image viewer) ─────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

/* Big view — capped to the viewport, never enlarged past natural size */
.lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.8rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-box  { padding: 1.5rem; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ── CV SUMMARY MODAL ────────────────────────────────────── */
.cv-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cv-summary-card--wide {
  grid-column: 1 / -1;
}

.cv-summary-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cv-summary-card-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.cv-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cv-summary-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cv-summary-list-item {
  font-size: 14px;
  color: var(--text);
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  line-height: 1.4;
}

.cv-summary-edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cv-summary-edu-school {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
}

.cv-summary-edu-degree {
  font-size: 14px;
  color: var(--text-muted);
}

.cv-summary-edu-years {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cv-summary-work-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0.2rem;
}

.cv-summary-lang-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.cv-summary-lang-row:last-child {
  border-bottom: none;
}

.cv-summary-lang-name {
  color: var(--text-bright);
  font-weight: 500;
}

.cv-summary-lang-level {
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .cv-summary-grid { grid-template-columns: 1fr; }
}

/* ── Projects page responsive ────────────────────────────── */
@media (max-width: 960px) {
  .project-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .proj-left { grid-column: 1 / -1; }

  /* Hide row thumbnail at tablet — still visible in modal */
  .proj-img-wrap { display: none; }
  .project-row.has-img { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .project-row { grid-template-columns: 1fr; }
  .proj-right  { align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   WORKSHOPS PAGE
═══════════════════════════════════════════════════════════ */

.wshop-content {
  padding: 4rem 0 6rem;
}

.wshop-sections {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ── Section heading spacing within the page ──────────── */
.wshop-section .section-heading {
  margin-bottom: 1.75rem;
}

/* Stack of cards within a section */
.wshop-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Full card (visit or major speaker) ───────────────── */
.wshop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wshop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.wshop-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.3;
}

.wshop-card-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
  line-height: 1.7;
}

.wshop-card-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Key learnings block ──────────────────────────────── */
.wshop-learnings {
  margin-top: 0.25rem;
}

.wshop-learnings-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.wshop-learnings-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wshop-learnings-list li {
  font-size: 15px;
  color: var(--text);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.wshop-learnings-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 0.18em;
}

/* ── Sub-section divider (One-Session Lectures) ───────── */
.wshop-subsection-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  padding-top: 1.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* ── Smaller speakers compact card ───────────────────── */
.wshop-small-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 2rem;
}

.wshop-small-list {
  display: flex;
  flex-direction: column;
}

.wshop-small-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.wshop-small-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-left: auto;
  flex-shrink: 0;
}

.wshop-small-item:last-child {
  border-bottom: none;
}

.wshop-small-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 15px;
}

.wshop-small-name {
  font-weight: 600;
  color: var(--text-bright);
  min-width: 180px;
  flex-shrink: 0;
}

.wshop-small-dash {
  color: var(--text-muted);
  flex-shrink: 0;
}

.wshop-small-topic {
  color: var(--text-muted);
}

.wshop-small-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  opacity: 0.8;
  padding-left: 0;
}

/* ── Course image toggles ─────────────────────────────── */
.course-img-btns {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.course-img-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.course-img-btn:hover,
.course-img-btn--active {
  color: var(--accent);
  border-color: var(--accent);
}

.course-img-wrap {
  margin-top: 0.85rem;
}

.course-img-wrap--hidden {
  display: none;
}

.course-img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ── Workshops page responsive ────────────────────────── */
@media (max-width: 600px) {
  .wshop-card         { padding: 1.25rem 1.25rem; }
  .wshop-card-header  { flex-direction: column; gap: 0.5rem; }
  .wshop-card-meta    { text-align: left; }
  .wshop-small-card   { padding: 0.25rem 1.25rem; }
  .wshop-small-name   { min-width: 130px; }
}

/* ═══════════════════════════════════════════════════════════
   LEARNING PATH PAGE
═══════════════════════════════════════════════════════════ */

/* Shared label style for subsections inside an edu card */
.lpath-block-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ── Subjects & Modules ───────────────────────────────── */
.lpath-subjects {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.lpath-semester-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.lpath-semester-toggle:hover {
  color: var(--text-bright);
}

.lpath-semester-icon {
  font-size: 10px;
  transition: color 0.2s;
}

.lpath-semester-body {
  overflow: hidden;
  transition: opacity 0.2s;
}

.lpath-semester-body--collapsed {
  display: none;
}

.lpath-semester-highlights {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

