/* ============================================================
   Dr. Tertsegha Joseph Anande — Portfolio
   style.css
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy:       #0f2044;
  --navy2:      #1a3260;
  --accent:     #e8a020;
  --accent2:    #f0b840;
  --light:      #f5f7fa;
  --white:      #ffffff;
  --text:       #2c3e50;
  --text-light: #5a6a7e;
  --border:     #e1e8f0;
  --bg:         #ffffff;
  --card-bg:    #f5f7fa;
  --shadow:     0 4px 24px rgba(15,32,68,0.10);
  --radius:     12px;
  --radius-sm:  6px;
  --transition: 0.3s ease;
}

/* ---------- Dark mode tokens ---------- */
[data-theme="dark"] {
  --navy:       #0a1628;
  --navy2:      #0f2040;
  --light:      #111827;
  --white:      #1f2937;
  --bg:         #0d1117;
  --card-bg:    #161d2b;
  --text:       #d1dce8;
  --text-light: #8898aa;
  --border:     #1e2d42;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] body       { background: var(--bg); color: var(--text); }
[data-theme="dark"] section    { background: var(--bg); }
[data-theme="dark"] #about,
[data-theme="dark"] #experience,
[data-theme="dark"] #publications,
[data-theme="dark"] #teaching   { background: var(--light); }
[data-theme="dark"] .sk-card,
[data-theme="dark"] .res-item,
[data-theme="dark"] .cert-card  { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .proj-card  { border-color: var(--border); }
[data-theme="dark"] .pub-item   { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .teach-card { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .pub-title  { color: var(--text); }
[data-theme="dark"] .tl-title   { color: var(--text); }
[data-theme="dark"] .st         { color: var(--text); }
[data-theme="dark"] .st2        { color: var(--text); }
[data-theme="dark"] .teach-card h3 { color: var(--text); }
[data-theme="dark"] .mem-tag    { background: var(--navy2); }
[data-theme="dark"] .stag       { background: rgba(255,255,255,0.07); color: var(--text); }
[data-theme="dark"] .proj-tech span { background: rgba(255,255,255,0.07); color: var(--text); }
[data-theme="dark"] .cert-text h3 { color: var(--text); }
[data-theme="dark"] .booking-card { background: var(--card-bg); border-color: var(--border); }
[data-theme="dark"] .form-input { background: var(--light); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .cert-highlight { background: linear-gradient(135deg,#0d2a1a,#0a1f2e); border-color: var(--accent); }

/* ---------- Scroll progress bar ---------- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(to right, var(--accent), var(--accent2));
  z-index: 2000; transition: width 0.1s linear;
}

/* ---------- Dark mode toggle ---------- */
.dark-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.25); color: var(--white);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.dark-toggle:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: var(--navy); border: none; cursor: pointer;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,160,32,0.4); transition: all var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(10px);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover   { background: var(--accent2); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(232,160,32,0.5); }

/* ---------- Typewriter cursor ---------- */
.typewriter-cursor { display: inline-block; width: 2px; height: 1em; background: var(--accent); margin-left: 2px; animation: blink 0.75s step-end infinite; vertical-align: text-bottom; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---------- Highlighted cert (FHEA) ---------- */
.cert-highlight {
  background: linear-gradient(135deg, #f0faf4, #e8f4fd) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(232,160,32,0.1);
}
.cert-highlight .cert-icon { background: var(--accent); color: var(--navy); }
.cert-highlight .cert-text h3 { color: var(--navy); }
.cert-new-badge {
  display: inline-block; background: var(--accent); color: var(--navy);
  font-size: 0.65rem; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  margin-left: 8px; vertical-align: middle; letter-spacing: 0.5px;
}

/* ---------- Publication filter ---------- */
.pub-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem;
}
.pub-filter-btn {
  padding: 6px 18px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: var(--white);
  color: var(--text-light); transition: all var(--transition);
}
.pub-filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.pub-filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Booking section ---------- */
#booking { background: var(--white); }
[data-theme="dark"] #booking { background: var(--bg); }
.booking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.booking-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.booking-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; }
.booking-form { max-width: 700px; margin: 0 auto; background: var(--light); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.booking-info h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 1rem; }
[data-theme="dark"] .booking-info h3 { color: var(--text); }
.booking-types { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.booking-type { display: flex; align-items: flex-start; gap: 0.75rem; }
.booking-type-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.booking-type-text strong { display: block; font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
[data-theme="dark"] .booking-type-text strong { color: var(--text); }
.booking-type-text span { font-size: 0.82rem; color: var(--text-light); }
.booking-note { font-size: 0.82rem; color: var(--text-light); padding: 0.75rem 1rem; background: var(--light); border-radius: var(--radius-sm); border-left: 3px solid var(--accent); }
.booking-card { background: var(--light); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--border); }
.booking-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 1.5rem; }
[data-theme="dark"] .booking-card h3 { color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-light); }
.form-input,
.booking-form input,
.booking-form textarea {
  padding: 0.65rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--text); background: var(--white); font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition); width: 100%;
}
.form-input:focus,
.booking-form input:focus,
.booking-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,160,32,0.12); }
textarea.form-input,
.booking-form textarea { resize: vertical; min-height: 110px; }
[data-theme="dark"] .booking-form input,
[data-theme="dark"] .booking-form textarea { background: var(--light); border-color: var(--border); color: var(--text); }
.form-submit {
  width: 100%; padding: 0.8rem; background: var(--accent); color: var(--navy);
  border: none; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.92rem;
  cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.form-submit:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,160,32,0.35); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-success { display: none; text-align: center; padding: 2rem; }
.form-success .check { font-size: 2.5rem; margin-bottom: 0.75rem; }
.form-success h4 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.5rem; }
[data-theme="dark"] .form-success h4 { color: var(--text); }
.form-success p { color: var(--text-light); font-size: 0.88rem; }
.calendly-wrapper { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 650px; }
.calendly-wrapper iframe { border: none; width: 100%; min-height: 650px; }

/* ---------- Hero canvas ---------- */
#hero-canvas { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; }

/* ---------- Stat counter ---------- */
.stat-num[data-target] { transition: none; }

/* ---------- Enhanced hover on cards ---------- */
.sk-card:hover .sk-icon  { transform: scale(1.15); transition: transform 0.25s ease; }
.res-item:hover .res-icon { transform: scale(1.15); transition: transform 0.25s ease; }

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .booking-grid { grid-template-columns: 1fr; }
  .form-row     { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .booking-grid { grid-template-columns: 1fr; }
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
a     { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent2); }
img   { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,32,68,0.97); backdrop-filter: blur(10px);
  padding: 0 2rem; display: flex; align-items: center;
  justify-content: space-between; height: 60px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-brand { color: var(--white); font-weight: 700; font-size: 1.05rem; }
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-size: 0.82rem; font-weight: 500;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Section helpers ---------- */
section { padding: 5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.sl   { font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.st   { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; color: var(--navy); margin-bottom: 0.5rem; }
.sline{ width: 48px; height: 4px; background: var(--accent); border-radius: 2px; margin-bottom: 2.5rem; }
.st2  { font-size: 1.12rem; font-weight: 700; color: var(--navy); margin-bottom: 0.9rem; }

/* ---------- Scroll fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 60%, #243870 100%);
  display: flex; align-items: center; padding: 80px 2rem 4rem;
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -40%; right: -15%;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,160,32,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 320px; gap: 4rem; align-items: center;
}
.hero-text .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.hero-text h1 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 800; color: var(--white); line-height: 1.12; margin-bottom: 0.5rem; }
.hero-text h1 span { color: var(--accent); }
.hero-text .subtitle { font-size: 1rem; color: rgba(255,255,255,0.68); margin-bottom: 1.2rem; }
.role-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.role-tag {
  background: rgba(232,160,32,0.14); border: 1px solid rgba(232,160,32,0.35);
  color: var(--accent2); padding: 4px 13px; border-radius: 20px;
  font-size: 0.76rem; font-weight: 600;
}
.bio { color: rgba(255,255,255,0.65); font-size: 0.93rem; line-height: 1.78; max-width: 560px; margin-bottom: 1.8rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2rem; }
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem; transition: all var(--transition); }
.btn-primary { background: var(--accent); color: var(--navy); border: 2px solid var(--accent); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: var(--white); }
.hero-stats { display: flex; gap: 2.5rem; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.7rem; color: rgba(255,255,255,0.48); margin-top: 3px; letter-spacing: 0.3px; }
.hero-photo-wrap { display: flex; justify-content: center; }
.hero-photo {
  width: 270px; height: 270px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 5px solid var(--accent);
  box-shadow: 0 0 0 10px rgba(232,160,32,0.11), 0 20px 60px rgba(0,0,0,0.4);
}

/* ---------- About ---------- */
#about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.about-text p { color: var(--text-light); line-height: 1.82; margin-bottom: 1rem; }
.clist { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.clist li { display: flex; align-items: flex-start; gap: 0.7rem; color: var(--text-light); font-size: 0.87rem; }
.ic {
  width: 34px; height: 34px; min-width: 34px; border-radius: var(--radius-sm);
  background: var(--navy); color: var(--white); display: flex;
  align-items: center; justify-content: center; font-size: 0.8rem; margin-top: 1px;
}
.mem-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.mem-tag { background: var(--navy); color: var(--white); padding: 4px 13px; border-radius: 20px; font-size: 0.73rem; font-weight: 600; }

/* ---------- Skills ---------- */
#skills { background: var(--white); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1.4rem; }
.sk-card { background: var(--light); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.sk-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sk-icon { font-size: 1.7rem; margin-bottom: 0.7rem; }
.sk-card h3 { font-size: 0.82rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.7rem; }
.stags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.stag { background: rgba(15,32,68,0.07); color: var(--navy); padding: 3px 9px; border-radius: 4px; font-size: 0.74rem; font-weight: 500; }

/* ---------- Experience ---------- */
#experience { background: var(--light); }
.timeline { position: relative; padding-left: 1.8rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), rgba(232,160,32,0.08));
}
.tl-item { position: relative; margin-bottom: 2.5rem; padding-left: 1.4rem; }
.tl-dot {
  position: absolute; left: -2.1rem; top: 5px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-date { font-size: 0.72rem; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 0.25rem; text-transform: uppercase; }
.tl-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.15rem; }
.tl-org { font-size: 0.83rem; color: var(--text-light); font-style: italic; margin-bottom: 0.7rem; }
.tl-bl { list-style: none; display: flex; flex-direction: column; gap: 0.38rem; }
.tl-bl li { font-size: 0.84rem; color: var(--text-light); padding-left: 1.1rem; position: relative; line-height: 1.55; }
.tl-bl li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* ---------- Projects ---------- */
#projects { background: var(--white); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.4rem; }
.proj-card { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 10px 36px rgba(15,32,68,0.13); }
.proj-hd { background: linear-gradient(135deg, var(--navy), var(--navy2)); padding: 1.4rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.8rem; }
.proj-icon { font-size: 1.9rem; }
.proj-badge { background: var(--accent); color: var(--navy); padding: 3px 9px; border-radius: 4px; font-size: 0.68rem; font-weight: 700; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.proj-hd h3 { color: var(--white); font-size: 0.93rem; font-weight: 700; margin-top: 0.45rem; line-height: 1.3; }
.proj-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.proj-body p { color: var(--text-light); font-size: 0.83rem; line-height: 1.62; flex: 1; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 0.32rem; }
.proj-tech span { background: rgba(15,32,68,0.07); color: var(--navy); padding: 2px 7px; border-radius: 3px; font-size: 0.72rem; font-weight: 500; }
.proj-links { display: flex; gap: 0.45rem; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--border); }
.proj-link { display: inline-flex; align-items: center; gap: 4px; font-size: 0.77rem; font-weight: 600; color: var(--navy); padding: 4px 11px; border: 1px solid var(--border); border-radius: 4px; transition: all var(--transition); }
.proj-link:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Publications ---------- */
#publications { background: var(--light); }
.pub-list { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 2rem; }
.pub-item { background: var(--white); border-radius: var(--radius); padding: 1.1rem 1.4rem; border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.pub-item.conf { border-left-color: var(--navy2); }
.pub-item.chap { border-left-color: #27ae60; }
.pub-item.prep { border-left-color: #bdc3c7; opacity: 0.82; }
.pub-year { font-size: 0.7rem; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 0.25rem; }
.pub-title { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; line-height: 1.38; }
.pub-authors { font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.15rem; }
.pub-venue { font-size: 0.78rem; color: var(--text-light); font-style: italic; }
.pub-more { margin-top: 1.2rem; color: var(--text-light); font-size: 0.8rem; font-style: italic; }

/* ---------- Research Interests ---------- */
#research { background: var(--white); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.res-item { background: var(--light); border-radius: var(--radius); padding: 1.2rem; text-align: center; border: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.res-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.res-icon { font-size: 1.9rem; margin-bottom: 0.5rem; }
.res-item h3 { font-size: 0.83rem; font-weight: 700; color: var(--navy); line-height: 1.35; }

/* ---------- Teaching ---------- */
#teaching { background: var(--light); }
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.teach-card { background: var(--white); border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--border); }
.teach-card h3 { font-size: 0.93rem; font-weight: 700; color: var(--navy); margin-bottom: 0.9rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent); }
.mod-list { display: flex; flex-direction: column; gap: 0.38rem; }
.mod-item { font-size: 0.81rem; color: var(--text-light); padding-left: 1.05rem; position: relative; line-height: 1.5; }
.mod-item::before { content: '▸'; position: absolute; left: 0; color: var(--accent); }

/* ---------- Certifications ---------- */
#certifications { background: var(--white); }
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.cert-card { background: var(--light); border-radius: var(--radius); padding: 1.2rem; border: 1px solid var(--border); display: flex; gap: 0.9rem; align-items: flex-start; }
.cert-icon { width: 42px; height: 42px; min-width: 42px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.cert-text h3 { font-size: 0.86rem; font-weight: 700; color: var(--navy); margin-bottom: 0.18rem; line-height: 1.3; }
.cert-text p { font-size: 0.76rem; color: var(--text-light); }

/* ---------- Contact ---------- */
#contact { background: linear-gradient(135deg, var(--navy), var(--navy2)); padding: 5rem 2rem; }
#contact .st   { color: var(--white); }
#contact .sl   { color: var(--accent); }
#contact .sline{ background: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-info p { color: rgba(255,255,255,0.68); line-height: 1.82; margin-bottom: 1rem; }
.contact-cards { display: flex; flex-direction: column; gap: 0.9rem; }
.ccard { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.11); border-radius: var(--radius); padding: 0.95rem 1.2rem; display: flex; align-items: center; gap: 0.9rem; transition: background var(--transition); color: var(--white); }
.ccard:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.ccard-ic { width: 38px; height: 38px; min-width: 38px; border-radius: var(--radius-sm); background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; color: var(--navy); }
.ccard-label { font-size: 0.65rem; color: rgba(255,255,255,0.44); font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 2px; }
.ccard-value { font-size: 0.86rem; color: var(--white); font-weight: 500; }

/* ---------- Re-Inventing Myself Series ---------- */
#series { background: linear-gradient(135deg, #080820 0%, #0d1a3a 100%); }
[data-theme="dark"] #series { background: linear-gradient(135deg, #060614 0%, #0a1228 100%); }

.series-feature {
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; margin-top: 2rem;
}
@media (max-width: 900px) { .series-feature { grid-template-columns: 1fr; } }

.series-tagline {
  font-size: 1rem; font-style: italic; color: var(--accent); margin-bottom: 1rem; font-weight: 500;
}
.series-feature-text > p {
  font-size: 0.92rem; color: rgba(255,255,255,0.75); line-height: 1.75; margin-bottom: 0.85rem;
}

.series-ep-list { display: flex; flex-direction: column; gap: 6px; margin: 1.4rem 0; }
.series-ep {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.series-ep.live { border-color: rgba(109,216,179,0.4); background: rgba(37,181,133,0.08); }
.series-ep.muted-ep { opacity: 0.55; }
.ep-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; color: rgba(255,255,255,0.45); min-width: 52px; }
.series-ep.live .ep-num { color: #6DD8B3; }
.ep-title { font-size: 0.85rem; color: rgba(255,255,255,0.85); flex: 1; }
.ep-live {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(109,216,179,0.2); color: #6DD8B3;
  border: 0.5px solid rgba(109,216,179,0.5); border-radius: 10px; padding: 2px 9px;
}

.series-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4rem; }
.series-cta-btn {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px;
  padding: 9px 18px; border-radius: 7px; text-decoration: none; transition: opacity .2s;
}
.series-cta-btn:hover { opacity: 0.85; }
.series-cta-btn.primary { background: var(--accent); color: var(--navy); }
.series-cta-btn.social { color: #fff; font-size: 0.75rem; }
.series-cta-btn.li { background: #0A66C2; }
.series-cta-btn.fb { background: #1877F2; }

.mini-poster {
  background: #06061C;
  background-image: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(101,96,204,0.2) 0%, transparent 70%);
  border: 0.5px solid rgba(148,144,232,0.3); border-radius: 14px;
  padding: 20px; width: 240px; box-shadow: 0 0 40px rgba(101,96,204,0.15);
}
@media (max-width: 900px) { .mini-poster { width: 100%; } }
.mini-poster-label {
  font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(148,144,232,0.7); text-align: center; margin-bottom: 14px;
}
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-bottom: 14px; }
.mini-node {
  border-radius: 7px; padding: 10px 6px; text-align: center;
  font-size: 0.65rem; font-weight: 700; line-height: 1.5;
  border: 0.5px solid; transition: transform .2s;
}
.mini-node:hover { transform: scale(1.04); }
.mini-node small { font-weight: 400; display: block; font-size: 0.55rem; opacity: 0.8; margin-top: 2px; }
.mini-node.purple { background: rgba(101,96,204,0.15); border-color: rgba(148,144,232,0.4); color: #C0BCFF; }
.mini-node.teal   { background: rgba(37,181,133,0.12);  border-color: rgba(109,216,179,0.4); color: #8EEBD0; }
.mini-node.amber  { background: rgba(186,117,23,0.12);  border-color: rgba(245,168,48,0.4);  color: #FFD080; }
.mini-poster-tag {
  font-size: 0.6rem; text-align: center; color: rgba(148,144,232,0.5); letter-spacing: 1px;
}

/* ---------- Footer ---------- */
footer { background: #0a1a38; color: rgba(255,255,255,0.35); text-align: center; padding: 1.4rem; font-size: 0.76rem; border-top: 1px solid rgba(255,255,255,0.06); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-photo-wrap { order: -1; }
  .hero-links, .hero-stats, .role-tags { justify-content: center; }
  .about-grid, .contact-grid, .teach-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    background: rgba(13,26,56,0.98); flex-direction: column;
    padding: 1rem 2rem; gap: 0.9rem; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-text h1 { font-size: 2rem; }
}
@media (max-width: 600px) {
  section { padding: 3.5rem 1.2rem; }
  .hero-photo { width: 190px; height: 190px; }
  .proj-grid { grid-template-columns: 1fr; }
  nav { padding: 0 1.2rem; }
}
