/* ============================================
   style.css — Aman Kumar Portfolio
   Main styles, variables, components
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,400&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Colors — Dark Mode (default) */
  --bg:           #080c14;
  --bg2:          #0e1624;
  --bg3:          #131d2e;
  --accent:       #4f8ef7;
  --accent2:      #a78bfa;
  --accent-glow:  rgba(79, 142, 247, 0.15);
  --text:         #e8edf5;
  --text-muted:   #7a8ba3;
  --glass:        rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --card-hover:   rgba(79, 142, 247, 0.08);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-pad:  6rem 5vw;
  --max-width:    1100px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --duration:     0.25s;

  /* Border radius */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  100px;
}

/* Light Mode */
body.light-mode {
  --bg:           #f5f7fa;
  --bg2:          #eaecf0;
  --bg3:          #ffffff;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --glass:        rgba(0, 0, 0, 0.03);
  --glass-border: rgba(0, 0, 0, 0.08);
  --card-hover:   rgba(79, 142, 247, 0.05);
  --accent-glow:  rgba(79, 142, 247, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 5vw;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease);
}

body.light-mode nav {
  background: rgba(245, 247, 250, 0.8);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease);
  letter-spacing: 0.3px;
}

.nav-links a:hover { color: var(--text); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--duration), transform var(--duration);
  color: var(--text-muted);
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  transform: rotate(15deg);
}

/* Resume Button in Nav */
.nav-resume {
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.nav-resume:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5vw 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(79,142,247,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(167,139,250,0.08) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 2px solid var(--glass-border);
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.hero-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 0 6px var(--accent-glow);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1rem;
}

.hero-name span {
  background: linear-gradient(135deg, var(--accent) 20%, var(--accent2) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-company {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--duration), opacity var(--duration);
  letter-spacing: 0.2px;
  display: inline-block;
}

.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration), transform var(--duration);
  backdrop-filter: blur(8px);
  display: inline-block;
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
}

/* ── SECTION BASE ── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(var(--accent), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 3.5rem;
}

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 142, 247, 0.25);
}

/* ── ABOUT ── */
#about { background: transparent; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--card-hover), transparent 70%);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg2); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  border: 2px solid var(--bg);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-duration {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-type {
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-highlights li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.timeline-highlights li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── SKILLS ── */
#skills { background: var(--bg3); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-card { padding: 1.5rem; }

.skill-category {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.skill-item { margin-bottom: 1.1rem; }
.skill-item:last-child { margin-bottom: 0; }

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name { font-weight: 500; font-size: 0.95rem; }

.skill-pct {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}

.skill-bar {
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 0;
  transition: width 1.2s var(--ease);
}

/* ── PROJECTS ── */
#projects { background: transparent; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-img {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg2);
}

.project-img-placeholder {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg2), var(--bg3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 1px dashed var(--glass-border);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

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

.tech-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.2);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.project-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--duration);
}

.project-link:hover { color: var(--accent); }

/* ── CONTACT ── */
#contact { background: var(--bg2); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  transition: color var(--duration);
}

.contact-link:hover { color: var(--text); }

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.contact-form {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--duration);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { min-height: 120px; }

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity var(--duration), transform var(--duration);
}

.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }

.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer span { color: var(--accent); }

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration), transform var(--duration);
  z-index: 99;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── GITHUB STATS CARD ── */
.github-card {
  padding: 1.75rem;
  max-width: 480px;
}

.github-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.github-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  object-fit: cover;
}

.github-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.github-handle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.github-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.github-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.github-langs-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.github-langs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ── GITHUB LOADING SKELETON ── */
.github-loading { padding: 0.5rem 0; }

.github-loading-line {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    var(--glass) 25%,
    rgba(255,255,255,0.08) 50%,
    var(--glass) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.github-bio {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ── PROJECT CARDS v2 ── */
.project-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-icon-wrap {
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.project-subtitle {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-bottom: 0.6rem;
  margin-top: -0.1rem;
}

/* Status badges */
.project-badge {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.badge-proprietary {
  background: rgba(167, 139, 250, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.badge-inprogress {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-personal {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Featured card subtle highlight */
.project-featured {
  border-color: rgba(79, 142, 247, 0.2) !important;
}

/* Muted link for proprietary projects */
.project-link--muted {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  cursor: default;
}

/* Project grid — 3 cols on wide, 2 on medium, 1 on mobile */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════
   LIGHTBOX
   ════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  width: min(400px, 85vw);
  height: min(400px, 85vw);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 60px rgba(79, 142, 247, 0.35);
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.open .lightbox-content img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: -8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--duration), transform var(--duration);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

/* Clickable avatar cursor */
.hero-avatar,
.hero-avatar-placeholder {
  cursor: zoom-in;
}

/* ════════════════════════════════
   CERTIFICATIONS & AWARDS
   ════════════════════════════════ */
#certifications {
  background: var(--bg2);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.cert-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-md);
}

.cert-body { flex: 1; min-width: 0; }

.cert-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.cert-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
}

.cert-type--award {
  background: rgba(251, 191, 36, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.cert-type--cert {
  background: rgba(79, 142, 247, 0.1);
  color: var(--accent);
  border: 1px solid rgba(79, 142, 247, 0.2);
}



/* ── CERT ATTACHMENT BUTTON ── */
.cert-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(79, 142, 247, 0.2);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration), transform var(--duration);
  font-family: var(--font-body);
}

.cert-attachment:hover {
  background: rgba(79, 142, 247, 0.2);
  transform: translateY(-1px);
}

/* ── Contact form status messages ─────────────────────────── */
.form-status {
  font-size: 0.875rem;
  min-height: 1.4rem;
  margin-top: 0.5rem;
  border-radius: var(--radius-sm, 6px);
  padding: 0.5rem 0.75rem;
  transition: all var(--duration, 0.3s);
}
.form-status:empty { padding: 0; }

.form-status--success {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.form-status--error {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
