/* Portfolio — HTML/CSS/JS | Navi Green Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --green: #22d081;
  --green-dim: rgba(34, 208, 129, 0.15);
  --green-glow: rgba(34, 208, 129, 0.4);
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', sans-serif;
  --radius: 14px;
  --nav-h: 70px;
  --max: 1200px;
  --pad-x: clamp(1.6rem, 4vw, 3rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --btn-on-green: #050816;
}

html[data-theme="dark"],
html:not([data-theme]) {
  --bg: #050816;
  --bg2: #101828;
  --card: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #94a3b8;
  --header-bg: rgba(5, 8, 22, 0.9);
  --nav-mobile-bg: rgba(5, 8, 22, 0.98);
  --overlay-bg: rgba(5, 8, 22, 0.82);
  --badge-img-bg: rgba(5, 8, 22, 0.55);
  --mesh-accent: rgba(34, 208, 129, 0.12);
  --mesh-fade: rgba(16, 24, 40, 0.8);
  --grid-line: rgba(255, 255, 255, 0.03);
  --surface-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --accent-border: rgba(34, 208, 129, 0.35);
  --selection-fg: #050816;
}

html[data-theme="light"] {
  /* Calm blue-gray base + softer green accent (trust, clarity, growth) */
  --green: #0f9d6e;
  --green-dim: #e8f6f0;
  --green-glow: rgba(15, 157, 110, 0.28);
  --bg: #eef2f7;
  --bg2: #f8fafc;
  --card: #ffffff;
  --border: #cfd9e6;
  --text: #1a2b3c;
  --muted: #5c6d80;
  --header-bg: rgba(248, 250, 252, 0.94);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --overlay-bg: rgba(26, 43, 60, 0.48);
  --badge-img-bg: #edf5f1;
  --mesh-accent: rgba(15, 157, 110, 0.11);
  --mesh-fade: rgba(91, 124, 168, 0.14);
  --grid-line: rgba(26, 43, 60, 0.06);
  --btn-on-green: #ffffff;
  --surface-shadow: 0 16px 40px rgba(26, 43, 60, 0.1);
  --accent-border: rgba(15, 157, 110, 0.28);
  --selection-fg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection { background: var(--green); color: var(--selection-fg); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 8px; }

/* Background */
.bg-mesh {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, var(--mesh-accent), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, var(--mesh-fade), transparent),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .4;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
section {
  width: 100%;
  padding: 7rem 0;
  margin: 0;
}
.section-tag {
  display: inline-block; font-size: 1.2rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem;
}
.section-title {
  font-family: var(--display); font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem;
}
.section-title span { color: var(--green); }
.section-desc { color: var(--muted); font-size: 1.6rem; max-width: 560px; margin-bottom: 3rem; }
.text-center { text-align: center; }
.text-center .section-desc { margin-inline: auto; }

.section-alt { background: var(--bg2); }

.about-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.55rem;
  line-height: 1.8;
}
.about-intro strong { color: var(--text); }

.edu-wrap { max-width: 800px; margin: 0 auto; }

.section-cta { margin-top: 2rem; }
.contact-head { margin-bottom: 3.5rem; }
.contact-head .section-desc { margin-bottom: 0; }

/* Contact / Footer */
.footer {
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 6rem 0 2rem;
  background: var(--bg2);
  margin: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
  align-items: start;
  margin-bottom: 3rem;
}
.footer-col h3 {
  font-family: var(--display);
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
  color: var(--text);
}
.footer-about {
  font-size: 1.45rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 320px;
}
.footer-links,
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  font-size: 1.4rem;
  color: var(--muted);
  transition: color .2s, transform .2s;
}
.footer-links a i {
  width: 1.6rem;
  flex-shrink: 0;
  color: var(--green);
  font-size: 1.1rem;
  text-align: center;
}
.footer-links a:hover {
  color: var(--green);
  transform: translateX(4px);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  color: var(--muted);
  transition: color .2s;
  text-decoration: none;
}
.contact-item--static { cursor: default; }
.contact-item:hover { color: var(--green); }
.contact-icon {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-dim);
  border: 1px solid rgba(34, 208, 129, .2);
  color: var(--green);
  font-size: 1.5rem;
}
.contact-text {
  line-height: 1.4;
  word-break: break-word;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.8rem;
}
.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.8rem;
  transition: .25s;
}
.footer-social a:hover {
  color: var(--btn-on-green);
  background: var(--green);
  border-color: var(--green);
}
.copyright {
  text-align: center;
  font-size: 1.3rem;
  color: var(--muted);
  padding-top: 2.4rem;
  border-top: 1px solid var(--border);
}
.copyright i { color: var(--green); margin: 0 .25rem; }
.copyright a { color: var(--green); }
.copyright a:hover { text-decoration: underline; }
.btn-mt { margin-top: 1rem; }

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--surface-shadow, none);
}
html[data-theme="dark"] .glass,
html:not([data-theme]) .glass {
  box-shadow: none;
}

/* Nav */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  width: 100%;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  margin: 0;
  transition: .3s var(--ease);
}
.header.scrolled {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.logo {
  font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--text);
}
.logo span { color: var(--green); }
.nav { display: flex; gap: .4rem; }
.nav a {
  color: var(--muted); font-size: 1.4rem; font-weight: 500;
  padding: .6rem 1rem; border-radius: 8px; transition: .25s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--green-dim); }
.header-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 1.65rem;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.theme-toggle:hover {
  border-color: rgba(34, 208, 129, 0.45);
  color: var(--green);
}
html[data-theme="dark"] .theme-toggle .icon-moon,
html:not([data-theme]) .theme-toggle .icon-moon { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
.menu-btn {
  display: none; background: none; border: none; color: var(--text);
  font-size: 2.4rem; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1.2rem 2rem; border-radius: 10px; font-size: 1.45rem;
  font-weight: 600; border: none; cursor: pointer; transition: .25s var(--ease);
}
.btn-primary { background: var(--green); color: var(--btn-on-green); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--green-glow); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: .8rem 1.4rem; font-size: 1.3rem; }

/* Hero */
.hero {
  width: 100%;
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); position: relative;
  margin: 0;
}
.hero .container {
  width: 100%;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center;
  width: 100%;
}
.hero-grid > * { min-width: 0; }
.badge {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: 1.25rem; font-weight: 600; color: var(--green);
  background: var(--green-dim); border: 1px solid rgba(34,208,129,.25);
  padding: .5rem 1.2rem; border-radius: 999px; margin-bottom: 1.6rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.5} }
.hero h1 {
  font-family: var(--display); font-size: clamp(4rem, 7vw, 6.2rem);
  line-height: 1.05; letter-spacing: -.03em; margin-bottom: 1rem;
}
.hero h1 span { color: var(--green); }
.hero-sub { font-size: 1.7rem; color: var(--muted); margin-bottom: .8rem; }
.hero-type { font-size: 1.9rem; color: var(--muted); min-height: 2.8rem; }
.hero-type .typed { color: var(--green); font-weight: 600; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.4rem 0; }
.social-row { display: flex; gap: .8rem; }
.social-row a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 10px; background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 1.8rem; transition: .25s;
}
.social-row a:hover { color: var(--btn-on-green); background: var(--green); border-color: var(--green); }
.hero-photo {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--green-dim);
  aspect-ratio: 4/5;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  background: var(--card);
}
html[data-theme="light"] .hero-photo {
  box-shadow: 0 22px 48px rgba(26, 43, 60, 0.12), 0 0 0 1px var(--border);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--muted); font-size: 1.2rem; animation: bounce 2s infinite;
}
.scroll-hint i { font-size: 1.6rem; color: var(--green); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* Stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem;
}
.stat-card {
  padding: 1.8rem; text-align: center;
}
.stat-card h3 {
  font-family: var(--display); font-size: 3rem; color: var(--green); line-height: 1;
}
.stat-card p { font-size: 1.3rem; color: var(--muted); margin-top: .5rem; }

/* About cards */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.about-card { padding: 1.6rem; transition: .25s; }
.about-card:hover { border-color: rgba(34,208,129,.3); transform: translateY(-3px); }
.about-card i { color: var(--green); margin-right: .5rem; }
.about-card p { font-size: 1.4rem; color: var(--muted); line-height: 1.6; }
.about-card b { color: var(--text); }

/* Skills */
.skills-wrap { display: flex; flex-wrap: wrap; gap: .8rem; }
.skill-chip {
  padding: .9rem 1.4rem; font-size: 1.35rem; font-weight: 500;
  color: var(--muted); transition: .25s; cursor: default;
}
.skill-chip:hover { color: var(--green); border-color: rgba(34,208,129,.35); }
.skill-filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-btn {
  padding: .6rem 1.2rem; border-radius: 999px; font-size: 1.3rem;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: .25s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--green-dim); border-color: rgba(34,208,129,.4); color: var(--green);
}

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--green), transparent);
}
.t-item { position: relative; padding: 0 0 2.5rem 2rem; }
.t-item::before {
  content: ''; position: absolute; left: -2.45rem; top: .4rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green-glow);
}
.t-item .glass { padding: 2rem; }
.t-meta { font-size: 1.2rem; color: var(--green); font-weight: 600; letter-spacing: .05em; margin-bottom: .4rem; }
.t-item h3 { font-family: var(--display); font-size: 1.9rem; margin-bottom: .3rem; }
.t-date { font-size: 1.3rem; color: var(--muted); margin-bottom: 1rem; }
.t-verify { margin-top: .8rem; margin-bottom: .4rem; }
.t-verify a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--green);
}
.t-verify a:hover { text-decoration: underline; }
.t-item p { font-size: 1.45rem; color: var(--muted); line-height: 1.7; }
.t-list {
  margin: 0; padding-left: 1.6rem;
  font-size: 1.45rem; color: var(--muted); line-height: 1.7;
}
.t-list li + li { margin-top: .6rem; }
.t-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.t-tags span {
  font-size: 1.15rem; padding: .3rem .8rem; border-radius: 6px;
  background: var(--green-dim); color: var(--green);
}

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card { overflow: hidden; transition: .3s var(--ease); }
.project-card:hover { transform: translateY(-4px); border-color: var(--accent-border); box-shadow: var(--surface-shadow); }
.project-img { height: 180px; overflow: hidden; background: var(--bg2); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 1.6rem; }
.project-body h3 { font-family: var(--display); font-size: 1.7rem; margin-bottom: .6rem; }
.project-body p { font-size: 1.35rem; color: var(--muted); margin-bottom: 1.2rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }
.project-tags span {
  font-size: 1.1rem; padding: .25rem .7rem; border-radius: 5px;
  border: 1px solid var(--border); color: var(--muted);
}
.project-links { display: flex; gap: .8rem; flex-wrap: wrap; }

/* Certs & Education */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card-item { padding: 1.8rem; }
.card-item h3 { font-size: 1.5rem; margin-bottom: .4rem; }
.card-item .org { color: var(--green); font-size: 1.25rem; font-weight: 600; margin-bottom: .6rem; }
.card-item p { font-size: 1.35rem; color: var(--muted); }
.edu-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; }
.edu-card img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; }
.edu-card h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.edu-card p { color: var(--muted); font-size: 1.35rem; }
.edu-card .year { color: var(--green); font-size: 1.3rem; font-weight: 600; }

/* Achievements */
.achieve-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.achieve-card { padding: 2rem; }
.achieve-card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-dim);
  display: grid; place-items: center; color: var(--green); font-size: 1.8rem; margin-bottom: 1rem;
}
.achieve-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.achieve-card p { font-size: 1.35rem; color: var(--muted); }

/* Books */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.book-card { overflow: hidden; cursor: pointer; transition: .3s; }
.book-card:hover { transform: translateY(-4px); border-color: rgba(34,208,129,.3); }
.book-cover { height: 220px; background: var(--bg2); display: grid; place-items: center; padding: 1rem; }
.book-cover img { max-height: 100%; object-fit: contain; }
.book-info { padding: 1.4rem; }
.book-info h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.book-info p { font-size: 1.25rem; color: var(--muted); margin-bottom: 1rem; }

#scroll-top {
  position: fixed; bottom: 2rem; right: 2rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--green); color: var(--btn-on-green); font-size: 1.8rem;
  opacity: 0; visibility: hidden; transition: .3s; z-index: 99;
}
#scroll-top.show { opacity: 1; visibility: visible; }

.reveal { opacity: 0; transform: translateY(24px); transition: .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* Certification carousels */
.cert-carousel {
  margin-top: 2.5rem;
  padding: 0 4.8rem 3.5rem;
  overflow: hidden;
}

.cert-slide {
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: top .42s var(--ease), left .42s var(--ease), width .42s var(--ease),
    border-color .3s, box-shadow .42s;
  cursor: pointer;
}
.cert-slide:hover:not(.is-zoomed) { transform: translateY(-4px); border-color: rgba(34, 208, 129, .35); }
.cert-slide.is-zoomed {
  background: var(--card);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(34, 208, 129, .35);
  border-color: rgba(34, 208, 129, .45);
  cursor: zoom-out;
  transform: none;
}
.cert-slide img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--bg2);
  pointer-events: none;
  transition: height .42s var(--ease), object-fit .42s;
}
.cert-slide.is-zoomed img {
  height: auto;
  max-height: min(52vh, 380px);
  object-fit: contain;
}
.cert-slide-placeholder {
  width: 100%;
  flex-shrink: 0;
}
.cert-slide-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.cert-slide-body .org { font-size: 1.25rem; color: var(--green); }
.cert-slide-body h3 { font-family: var(--display); font-size: 1.55rem; line-height: 1.3; }
.cert-slide-body p { font-size: 1.3rem; color: var(--muted); margin-bottom: .8rem; }

.badge-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 290px;
  padding: 1rem;
  border-radius: var(--radius);
}
.badge-slide iframe { border: none; border-radius: 8px; }

/* Credly badge showcase */
.badge-showcase {
  margin-top: 5rem;
  padding: 3.2rem 0 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--mesh-accent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  border: 1px solid var(--accent-border);
  position: relative;
  overflow: hidden;
}
html[data-theme="light"] .badge-showcase {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--mesh-accent), transparent 72%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.badge-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 60%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: .7;
}
.badge-showcase-head { margin-bottom: .5rem; }
.badge-title { font-size: clamp(2.4rem, 3.5vw, 3rem); }
.badge-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.6rem auto 2.4rem;
}
.badge-stat {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem 1.3rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}
.badge-stat i { color: var(--green); font-size: 1.1rem; }
.badge-cta { margin-top: 1.6rem; }

.badge-carousel {
  margin-top: 0;
  padding: 1rem 4.8rem 4.2rem;
  overflow: hidden;
}
.badge-carousel .swiper-slide {
  width: 220px;
  height: auto;
}
.badge-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 290px;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  text-decoration: none;
  color: inherit;
}
.badge-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-border);
  box-shadow: var(--surface-shadow), 0 0 28px var(--green-glow);
}
html[data-theme="light"] .badge-card {
  background: linear-gradient(165deg, #ffffff 0%, var(--bg2) 100%);
}
html[data-theme="light"] .badge-card-img {
  border-color: var(--border);
}
html[data-theme="light"] .badge-card-img img {
  filter: drop-shadow(0 8px 14px rgba(26, 43, 60, 0.12));
}
html[data-theme="light"] .badge-stat {
  background: #ffffff;
  color: var(--muted);
}
html[data-theme="light"] .btn-ghost:hover {
  background: var(--green-dim);
}
html[data-theme="light"] .nav a:hover,
html[data-theme="light"] .nav a.active {
  color: var(--green);
}
html[data-theme="light"] .cert-carousel .swiper-button-next:hover,
html[data-theme="light"] .cert-carousel .swiper-button-prev:hover,
html[data-theme="light"] .badge-carousel .swiper-button-next:hover,
html[data-theme="light"] .badge-carousel .swiper-button-prev:hover {
  color: var(--green);
}
.badge-card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 25%, rgba(34, 208, 129, .12), transparent 65%),
    var(--badge-img-bg);
  border: 1px solid rgba(255, 255, 255, .06);
  min-height: 148px;
}
.badge-card-img img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4));
  transition: transform .35s var(--ease);
}
.badge-card:hover .badge-card-img img { transform: scale(1.07); }
.badge-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.badge-card-issuer {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge-card-name {
  font-family: var(--display);
  font-size: 1.38rem;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.badge-card-date {
  margin-top: auto;
  padding-top: .9rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.badge-carousel .swiper-slide-active .badge-card {
  border-color: rgba(34, 208, 129, .32);
  box-shadow: 0 14px 42px rgba(34, 208, 129, .1);
}

.cert-carousel .swiper-button-next,
.cert-carousel .swiper-button-prev,
.badge-carousel .swiper-button-next,
.badge-carousel .swiper-button-prev {
  color: var(--green);
  transition: color .25s;
}
.cert-carousel .swiper-button-next:hover,
.cert-carousel .swiper-button-prev:hover,
.badge-carousel .swiper-button-next:hover,
.badge-carousel .swiper-button-prev:hover { color: #fff; }
.cert-carousel .swiper-button-next::after,
.cert-carousel .swiper-button-prev::after,
.badge-carousel .swiper-button-next::after,
.badge-carousel .swiper-button-prev::after { font-size: 2.2rem; }

.cert-pagination,
.badge-pagination { bottom: 0 !important; }
.cert-pagination .swiper-pagination-bullet,
.badge-pagination .swiper-pagination-bullet {
  background: var(--muted);
  opacity: 1;
}
.cert-pagination .swiper-pagination-bullet-active,
.badge-pagination .swiper-pagination-bullet-active { background: var(--green); }

/* Certificate in-place zoom */
.cert-zoom-dim {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--overlay-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s;
}
.cert-zoom-dim.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-btns, .social-row { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
    text-align: center;
  }
  .footer-about { max-width: none; margin: 0 auto; }
  .footer-links { align-items: center; }
  .footer-links a:hover { transform: none; }
  .contact-list { align-items: center; }
  .contact-item { justify-content: center; text-align: left; max-width: 320px; width: 100%; }
  .footer-social { justify-content: center; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: 0; right: -100%; width: min(280px, 85vw);
    height: 100vh; flex-direction: column; padding: 8rem var(--pad-x) 2rem;
    background: var(--nav-mobile-bg); border-left: 1px solid var(--border);
    transition: .35s var(--ease); margin: 0;
  }
  .nav.open { right: 0; }
  .nav a { font-size: 1.6rem; padding: 1rem 0; }
}

@media (max-width: 768px) {
  .cert-carousel,
  .badge-carousel { padding: 0 0 3.8rem; }
  .badge-showcase { padding: 2.4rem 0 1rem; margin-top: 3.5rem; }
  .badge-carousel .swiper-slide { width: 190px; }
  .badge-card { min-height: 270px; padding: 1.2rem; }
  .badge-card-img { min-height: 130px; padding: 1rem; }
  .badge-card-img img { width: 96px; height: 96px; }
  .cert-carousel .swiper-button-next,
  .cert-carousel .swiper-button-prev,
  .badge-carousel .swiper-button-next,
  .badge-carousel .swiper-button-prev { display: none; }
}

@media (max-width: 480px) {
  :root { --pad-x: 1.4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 5rem 0; }
  .hero-grid { gap: 2rem; }
  .projects-grid,
  .cards-grid,
  .achieve-grid,
  .books-grid,
  .about-grid { grid-template-columns: 1fr; }
}
