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

:root {
  --bg:           #f8f9ff;
  --bg-alt:       #f1f4ff;
  --bg-card:      #ffffff;
  --bg-card-h:    #f5f7ff;
  --border:       #dde2f5;
  --border-h:     rgba(99, 102, 241, 0.38);
  --accent:       #6366f1;
  --accent-dim:   rgba(99, 102, 241, 0.07);
  --accent-mid:   rgba(99, 102, 241, 0.15);
  --accent2:      #a78bfa;
  --text:         #1e1b4b;
  --text-muted:   #64748b;
  --text-dim:     #94a3b8;
  --sans:         'Inter', system-ui, sans-serif;
  --mono:         'Fira Code', monospace;
  --radius:       12px;
  --radius-sm:    8px;
  --ease:         0.2s ease;
  --shadow:       0 2px 16px rgba(99, 102, 241, 0.07);
  --shadow-lg:    0 8px 32px rgba(99, 102, 241, 0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(248, 249, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease);
}
.navbar.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.logo-dot { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.45rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all var(--ease);
}

/* ===== SECTION UTILITIES ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(99, 102, 241, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 10%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.hero-left { flex: 1; }

.hero-greeting {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text) 25%, var(--accent) 55%, var(--accent2) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 510px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn {
  padding: 0.72rem 1.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s ease;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #0b0b10;
}
.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.32);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.hero-social {
  display: flex;
  gap: 0.875rem;
}
.hero-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all var(--ease);
}
.hero-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Code Window */
.hero-right {
  flex: 0 0 420px;
}
.code-window {
  background: #fbfcff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-window-bar {
  background: #eceeff;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border);
}
.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.win-dot.red    { background: #ff5f57; }
.win-dot.yellow { background: #febc2e; }
.win-dot.green  { background: #28c840; }
.win-filename {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.code-body {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.95;
  overflow-x: auto;
}
.c-comment { color: #94a3b8; }
.c-kw      { color: #6366f1; }
.c-var     { color: #0891b2; }
.c-key     { color: #64748b; }
.c-str     { color: #7c3aed; }

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
}
.about-text p strong { color: var(--text); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--ease);
  box-shadow: var(--shadow);
}
.stat-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-lg); }
.stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.45rem;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== TAGS ===== */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}
.tag-sm {
  padding: 0.18rem 0.6rem;
  font-size: 0.73rem;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.25rem;
}
.skill-cat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: all var(--ease);
  box-shadow: var(--shadow);
}
.skill-cat:hover { border-color: var(--border-h); box-shadow: var(--shadow-lg); }
.skill-cat-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.skill-cat-title i { color: var(--accent); }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--accent2) 70%, rgba(167, 139, 250, 0.1) 100%);
  border-radius: 1px;
}

.tl-item {
  position: relative;
  padding-bottom: 2.75rem;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.tl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--ease);
  box-shadow: var(--shadow);
}
.tl-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-lg); }

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.job-company {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
}
.job-loc { color: var(--text-dim); }

.date-pill {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  font-family: var(--mono);
}

.job-list {
  margin-bottom: 1rem;
}
.job-list li {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.35rem;
}
.job-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.68rem;
  top: 0.32rem;
}

/* ===== FREELANCER METRICS ===== */
.fl-metrics {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.fl-metric {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.fl-metric i {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.fl-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.fl-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all 0.24s ease;
  box-shadow: var(--shadow);
}
.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-preview {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-alt);
  flex-shrink: 0;
  position: relative;
}
.project-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(255,255,255,0.18) 100%);
}
.project-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.project-logo {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 0.1rem;
}
.project-logo-img {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  object-fit: contain;
}
.project-logo i {
  display: none;
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}
.project-logo.logo-err .project-logo-img { display: none; }
.project-logo.logo-err i { display: flex; }
.project-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
}
.project-name {
  font-size: 1.1rem;
  font-weight: 700;
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  overflow: hidden;
  max-height: 5.1em; /* ~3 lines */
  transition: max-height 0.35s ease;
}
.project-desc.expanded {
  max-height: 600px;
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--ease);
  margin-top: 0.1rem;
  margin-bottom: 0.75rem;
}
.read-more-btn:hover {
  opacity: 0.75;
}
.read-more-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}
.read-more-btn.expanded i {
  transform: rotate(180deg);
}
/* ===== CAROUSEL ===== */
.projects-featured {
  margin-bottom: 2rem;
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: stretch;
}

.carousel-track .project-card {
  flex-shrink: 0;
  min-width: 0;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--ease);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  background: var(--accent);
  width: 22px;
  border-radius: 4px;
}

.project-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.region-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
}
.region-link:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.region-label {
  background: rgba(255,255,255,0.25);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  opacity: 0.85;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 600;
  margin-top: 0.25rem;
  transition: gap var(--ease);
}
.project-link:hover { gap: 0.7rem; }

/* ===== CERTIFICATIONS ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--ease);
  box-shadow: var(--shadow);
}
.cert-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-lg); }
.cert-card.featured {
  border-color: rgba(99, 102, 241, 0.22);
  background: linear-gradient(135deg, #ffffff, rgba(99, 102, 241, 0.04));
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.ci-aws    { background: rgba(255,153,0,0.12); color: #ff9900; }
.ci-splunk { background: rgba(0,173,230,0.12); color: #00ade6; }
.ci-istqb  { background: rgba(99,102,241,0.12); color: #818cf8; }
.ci-ms     { background: rgba(0,120,212,0.12); color: #0078d4; }
.ci-wp     { background: rgba(33,117,155,0.12); color: #21759b; }
.ci-react  { background: rgba(97,218,251,0.12); color: #61dafb; }

.cert-info h4 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.2rem;
}
.cert-issuer {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ===== EDUCATION ===== */
.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 680px;
  transition: all var(--ease);
  box-shadow: var(--shadow);
}
.edu-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-lg); }
.edu-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
}
.edu-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.edu-field {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.edu-school {
  color: var(--text-muted);
  font-size: 0.87rem;
  margin-bottom: 0.75rem;
}

/* ===== CONTACT ===== */
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 2rem;
  align-items: stretch;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info .contact-card {
  flex: 1;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
/* ---- Contact Form ---- */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-mid);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}
.form-submit {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-status {
  font-size: 0.88rem;
  font-weight: 500;
  min-height: 1.2em;
}
.form-status.success { color: #16a34a; }
.form-status.error   { color: #dc2626; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: all var(--ease);
  box-shadow: var(--shadow);
}
.contact-card:not(.no-link) { cursor: pointer; }
.contact-card:not(.no-link):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.contact-card i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.contact-label {
  font-size: 0.73rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.contact-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}
.footer-copy strong { color: var(--text-muted); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  color: var(--text-dim);
  font-size: 1rem;
  transition: color var(--ease);
}
.footer-social a:hover { color: var(--accent); }

/* ===== TRAILHEAD BADGES ===== */
.trailhead-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}
.trailhead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.th-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: all 0.22s ease;
  cursor: default;
  box-shadow: var(--shadow);
}
.th-badge:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.th-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}
.th-badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.45;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    padding-top: 8rem;
    text-align: center;
  }
  .hero-chips,
  .hero-cta,
  .hero-social { justify-content: center; }
  .hero-desc { margin-inline: auto; }
  .hero-right { flex: none; width: 100%; max-width: 480px; margin: 0 auto; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(248, 249, 255, 0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 0.2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .section { padding: 4rem 0; }
  .section-title { font-size: 1.6rem; margin-bottom: 2rem; }

  .timeline { padding-left: 1.5rem; }
  .tl-dot { left: -2rem; }
  .tl-header { flex-direction: column; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.4rem; }
  .code-window { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
}
