/* ============================================
   PRAVEEN KUMAR RAJENDRAN — PORTFOLIO
   Style inspired by aibattery.dev
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --bg:           #0a0a0f;
  --bg-2:         #0f0f18;
  --surface:      rgba(255,255,255,0.04);
  --surface-hover:rgba(255,255,255,0.07);
  --border:       rgba(52, 199, 89, 0.15);
  --border-bright:rgba(52, 199, 89, 0.35);
  --accent:       #34C759;
  --accent-dim:   #28a046;
  --accent-glow:  rgba(52, 199, 89, 0.25);
  --accent-glow2: rgba(52, 199, 89, 0.08);
  --text:         #e8e8ee;
  --text-muted:   #7a7a8c;
  --text-faint:   #444458;
  --nav-h:        64px;
  --radius:       14px;
  --radius-sm:    8px;
  --transition:   0.25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ── Typography helpers ── */
.section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #34C759 45%, #a8f5bd 80%, #ffffff 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── Glass card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 24px var(--accent-glow2);
}

/* ── Glow button ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:hover {
  background: #3ddf68;
  box-shadow: 0 0 32px rgba(52,199,89,.5);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow2);
  transform: translateY(-1px);
  text-decoration: none;
}

/* ── Section layout ── */
section {
  padding: 6rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==============================
   NAV
   ============================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(10,10,15,.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: .15rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow2);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ==============================
   HERO
   ============================== */
#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#tsparticles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52,199,89,.07) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: .3rem .9rem;
  margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: .6rem;
  letter-spacing: -.02em;
}
.hero-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  font-weight: 400;
}
.hero-title strong { color: var(--text); font-weight: 600; }
.hero-summary {
  font-size: .95rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .2rem;
}
.hero-ctas {
  display: flex;
  gap: .85rem;
  flex-wrap: wrap;
}
/* Photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
}
.hero-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spin-ring 8s linear infinite;
}
@keyframes spin-ring {
  to { transform: rotate(360deg); }
}
.hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid var(--border-bright);
  box-shadow: 0 0 40px var(--accent-glow);
}
.hero-socials {
  display: flex;
  gap: .6rem;
  margin-top: 1.2rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .8rem;
  transition: all var(--transition);
}
.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow2);
  text-decoration: none;
  box-shadow: 0 0 12px var(--accent-glow2);
}

/* ==============================
   ABOUT
   ============================== */
#about { background: var(--bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.about-text p strong { color: var(--text); }

/* Beyond the code */
.about-beyond {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.beyond-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.beyond-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.beyond-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: .15rem;
  flex-shrink: 0;
}
.beyond-item strong {
  display: block;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: .25rem;
}
.beyond-item p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.beyond-link {
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.beyond-link:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .beyond-items { grid-template-columns: 1fr; }
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.skill-group { }
.skill-group-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 500;
  padding: .25rem .65rem;
  border-radius: 99px;
  background: #fff;
  border: 1px solid var(--border);
  color: #1a1a2e;
  transition: all var(--transition);
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
}
.tag-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 5px;
  /* white box — remove with tag-icon-plain */
  background: #fff;
  border-radius: 4px;
  padding: 2px;
  box-sizing: content-box;
}
/* add class="tag-icon tag-icon-plain" to skip white box for a specific tile */
.tag-icon-plain {
  background: none;
  border: none;
  padding: 0;
}

/* ==============================
   EXPERIENCE
   ============================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.timeline-item {
  position: relative;
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-faint);
  transition: all var(--transition);
}
.timeline-header:hover {
  border-color: var(--border-bright);
  border-left-color: var(--accent);
  background: var(--surface-hover);
}
.timeline-item.open .timeline-header {
  border-left-color: var(--accent);
  box-shadow: -3px 0 16px var(--accent-glow2);
}
.tl-left { flex: 1; display: flex; align-items: center; gap: .9rem; }
.tl-role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
}
.tl-company {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 500;
}
.tl-meta {
  text-align: right;
  flex-shrink: 0;
  max-width: 160px;
  word-break: break-word;
}
.tl-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.tl-location {
  font-size: .78rem;
  color: var(--text-faint);
}
.tl-chevron {
  display: flex;
  align-items: flex-start;
  padding-top: .3rem;
  color: var(--text-muted);
  font-size: .85rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.timeline-item.open .tl-chevron {
  transform: rotate(180deg);
}
.timeline-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s ease;
  padding: 0 1.4rem;
}
.timeline-item.open .timeline-body {
  max-height: 800px;
  padding: .85rem 1.4rem 1.2rem;
}
.timeline-body ul {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}
.timeline-body li {
  font-size: .88rem;
  color: var(--text-muted);
  padding: .35rem 0;
  line-height: 1.65;
  position: relative;
}
.timeline-body li::before {
  content: '–';
  color: var(--accent);
  margin-right: .4rem;
}
.timeline-body li strong {
  color: var(--text);
  font-weight: 600;
}

/* ==============================
   PUBLICATIONS
   ============================== */
#publications { background: var(--bg-2); }
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pub-card {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.pub-card::before {
  content: '';
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: #fff url(assets/ArXiv.svg) no-repeat center;
  background-size: 80%;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
}
.pub-index {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-glow);
  line-height: 1;
  min-width: 28px;
  padding-top: .1rem;
  font-variant-numeric: tabular-nums;
}
.pub-content { flex: 1; }
.pub-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .3rem;
  line-height: 1.45;
}
.pub-authors {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: .4rem;
}
.pub-authors strong { color: var(--accent); }
.pub-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.pub-venue {
  font-size: .78rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 99px;
  background: var(--accent-glow2);
  border: 1px solid var(--border);
  color: var(--accent);
}
.pub-year {
  font-size: .78rem;
  color: var(--text-faint);
}
.pub-link {
  font-size: .78rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}
.pub-link:hover { opacity: .8; }

/* ==============================
   PROJECTS
   ============================== */
.filter-tabs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tab {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--border-bright); color: var(--text); }
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0f;
  box-shadow: 0 0 16px var(--accent-glow);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.project-card {
  padding: 1.2rem;
  cursor: default;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.project-card.hidden { display: none; }
.project-card:hover {
  transform: translateY(-3px);
}
.project-category-badge {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.project-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.project-links {
  display: flex;
  gap: .5rem;
  margin-top: auto;
}
.project-link {
  font-size: .75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .2rem .6rem;
  transition: all var(--transition);
}
.project-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ==============================
   EDUCATION
   ============================== */
#education { background: var(--bg-2); }
.edu-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.edu-card {
  padding: 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.edu-degree {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}
.edu-institution {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 500;
  margin-top: .1rem;
}
.edu-detail {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .35rem;
}
/* Expandable edu cards */
.edu-expandable { cursor: pointer; }
.edu-expand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.edu-expand-header .edu-card-left { flex: 1; min-width: 0; }
.edu-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .4rem;
  flex-shrink: 0;
}
.edu-date {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.edu-chevron {
  color: var(--text-muted);
  font-size: .9rem;
  transition: transform var(--transition);
}
.edu-expandable.open .edu-chevron { transform: rotate(180deg); }
.edu-expand-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.edu-expandable.open .edu-expand-body { max-height: 4000px; }
.edu-expandable:hover { border-color: var(--border-bright); }
.edu-expandable.open  { border-left: 3px solid var(--accent); box-shadow: -3px 0 16px var(--accent-glow2); }

.edu-sub-list {
  margin-top: .8rem;
  border-top: 1px solid var(--border);
  padding-top: .8rem;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.edu-sub-item {
  font-size: .82rem;
  color: var(--text-muted);
  padding-left: .8rem;
  border-left: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.edu-sub-item strong { color: var(--text); }
.edu-sub-links {
  display: inline-flex;
  gap: .4rem;
  margin-left: .6rem;
}
.edu-sub-links a {
  font-size: .75rem;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .1rem .45rem;
  transition: all var(--transition);
}
.edu-sub-links a:hover {
  background: var(--accent-glow2);
  text-decoration: none;
}

/* ── Institution logo chip (leading) + name badge (trailing) ── */

/* Easy size control — change this one value */
:root { --chip-size: 50px; }

/* Leading logo chip via ::before on the row */
.edu-sub-item:has(.inst-name-badge)::before {
  content: '';
  width: var(--chip-size);
  height: var(--chip-size);
  flex-shrink: 0;
  order: -1;
  background: #fff no-repeat center;
  background-size: 80%;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
}
.edu-sub-item:has(.inst-google)::before    { background-image: url(assets/google.svg); }
.edu-sub-item:has(.inst-meta)::before      { background-image: url(assets/meta.svg); }
.edu-sub-item:has(.inst-dlai)::before      { background-image: url(assets/deeplearning-ai.svg); }
.edu-sub-item:has(.inst-stanford)::before  { background-image: url(assets/stanford.svg); }
.edu-sub-item:has(.inst-udacity)::before   { background-image: url(assets/udacity.svg); }
.edu-sub-item:has(.inst-alexa)::before     { background-image: url(assets/amazonalexa.svg); }
.edu-sub-item:has(.inst-mercedes)::before  { background-image: url(assets/mercedes.svg); }
.edu-sub-item:has(.inst-nvidia)::before    { background-image: url(assets/nvidia.svg); }
.edu-sub-item:has(.inst-appen)::before     { background-image: url(assets/appen.svg); }

/* Trailing name badge */
.inst-name-badge {
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .45rem;
  border-radius: 999px;
  order: 2;
  white-space: nowrap;
}
.inst-name-badge.inst-google   { background: rgba(66,133,244,.15);  color: #4285F4; border: 1px solid rgba(66,133,244,.3); }
.inst-name-badge.inst-meta     { background: rgba(0,130,251,.15);   color: #0082FB; border: 1px solid rgba(0,130,251,.3); }
.inst-name-badge.inst-dlai     { background: rgba(0,166,160,.15);   color: #00A6A0; border: 1px solid rgba(0,166,160,.3); }
.inst-name-badge.inst-stanford { background: rgba(140,21,21,.15);   color: #c0392b; border: 1px solid rgba(140,21,21,.3); }
.inst-name-badge.inst-udacity  { background: rgba(0,180,255,.15);   color: #00B4FF; border: 1px solid rgba(0,180,255,.3); }
.inst-name-badge.inst-alexa    { background: rgba(0,160,220,.15);   color: #00A0DC; border: 1px solid rgba(0,160,220,.3); }
.inst-name-badge.inst-mercedes { background: rgba(150,150,150,.15); color: #aaa;    border: 1px solid rgba(150,150,150,.3); }
.inst-name-badge.inst-nvidia   { background: rgba(118,185,0,.15);   color: #76B900; border: 1px solid rgba(118,185,0,.3); }
.inst-name-badge.inst-appen    { background: rgba(255,90,0,.15);    color: #FF5A00; border: 1px solid rgba(255,90,0,.3); }

/* Institution logos — education cards */
.edu-card-left {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.inst-logo-wrap {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .5rem;
}
.inst-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Company logos — experience timeline */
.tl-logo-wrap {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .5rem;
}
.tl-logo-dark { background: var(--surface); }
.tl-company-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

/* ==============================
   CERTIFICATIONS
   ============================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.cert-card {
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cert-logo-wrap {
  background: #fff;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: .4rem;
  margin-left: auto;
}
.cert-logo-dark { background: var(--surface); }
.cert-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cert-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.cert-content {}
.cert-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
  line-height: 1.4;
}
.cert-meta {
  font-size: .78rem;
  color: var(--text-muted);
}
.cert-year {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
}

/* ==============================
   CONTACT
   ============================== */
#contact {
  text-align: center;
}
.contact-inner {
  max-width: 520px;
  margin: 0 auto;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.3rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--surface);
}
.contact-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow2);
  box-shadow: 0 0 16px var(--accent-glow2);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ==============================
   FOOTER
   ============================== */
footer {
  padding: 1.8rem;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-faint);
}
footer a { color: var(--text-muted); }
footer a:hover { color: var(--accent); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-photo-wrap { margin: 0 auto; }
  .hero-stats { justify-content: center; }
  .hero-ctas { justify-content: center; }
  .hero-badge { margin: 0 auto 1.2rem; }
  .hero-summary { margin: 0 auto 2rem; }
  .edu-header-right { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,15,.97);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: .25rem;
  }
  .nav-links.open a { padding: .75rem; font-size: .95rem; }
  section { padding: 4rem 0; }
}
