/* ═══════════════════════════════════════════════════════
   RESET & VARIABLES
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Backgrounds */
  --bg:           #f6f6fc;
  --bg-2:         #eeeef8;
  --bg-3:         #ffffff;

  /* Surfaces & glass */
  --surface:      #ffffff;
  --surface-dim:  #f9f9fe;
  --glass:        rgba(255, 255, 255, 0.72);
  --glass-mid:    rgba(255, 255, 255, 0.92);

  /* Borders */
  --border:       rgba(16, 185, 129, 0.13);
  --border-mid:   rgba(16, 185, 129, 0.22);
  --border-hi:    rgba(16, 185, 129, 0.48);

  /* Text */
  --text:         #0e0e22;
  --text-dim:     #4c4d72;
  --text-muted:   #9696b8;

  /* Brand palette */
  --indigo:       #10b981;
  --indigo-dark:  #059669;
  --purple:       #8b5cf6;
  --cyan:         #10b981;
  --orange:       #ea580c;
  --amber:        #f59e0b;

  /* Gradients */
  --grad:         linear-gradient(135deg, #10b981 0%, #8b5cf6 100%);
  --grad-text:    linear-gradient(135deg, #10b981 0%, #8b5cf6 60%, #10b981 100%);

  /* Shadows (replace glow on light theme) */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(16,185,129,0.07);
  --shadow-md:    0 4px 20px rgba(16,185,129,0.12), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 36px rgba(16,185,129,0.16), 0 2px 8px rgba(0,0,0,0.04);

  /* Typography */
  --font-display: 'IBM Plex Sans', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;

  /* Layout */
  --nav-h:        68px;
  --max-w:        1040px;
  --pad:          clamp(1.25rem, 5vw, 3rem);
  --radius:       16px;
  --radius-sm:    10px;

  /* Motion */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
  --reveal-dur:   0.75s;
}

/* ═══════════════════════════════════════════════════════
   DARK THEME
═══════════════════════════════════════════════════════ */

[data-theme="dark"] {
  --bg:           #0d0d1f;
  --bg-2:         #121228;
  --bg-3:         #0d0d1f;

  --surface:      #1a1a35;
  --surface-dim:  #141430;
  --glass:        rgba(26, 26, 53, 0.72);
  --glass-mid:    rgba(26, 26, 53, 0.92);

  --border:       rgba(16, 185, 129, 0.2);
  --border-mid:   rgba(16, 185, 129, 0.32);
  --border-hi:    rgba(16, 185, 129, 0.6);

  --text:         #f4f4ff;
  --text-dim:     #c0c0e0;
  --text-muted:   #8888aa;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 4px 12px rgba(16,185,129,0.12);
  --shadow-md:    0 4px 20px rgba(16,185,129,0.2), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg:    0 8px 36px rgba(16,185,129,0.25), 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] #nav {
  background: rgba(13, 13, 31, 0.06);
}

[data-theme="dark"] #nav.scrolled {
  background: rgba(13, 13, 31, 0.88);
}

[data-theme="dark"] #hero {
  background: linear-gradient(160deg, #0d0d1f 0%, #0f0f28 50%, #0d0d1f 100%);
}

[data-theme="dark"] .hero-glow-1 {
  background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 70%);
}

[data-theme="dark"] .hero-glow-2 {
  background: radial-gradient(circle, rgba(139,92,246,0.14), transparent 70%);
}


.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.35s ease, color 0.35s ease,
              border-color 0.35s ease, box-shadow 0.35s ease !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(16, 185, 129, 0.18);
  color: var(--indigo-dark);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(16,185,129,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(16,185,129,0.5); }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: clamp(5rem, 10vh, 9rem) 0; }

/* ═══════════════════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
═══════════════════════════════════════════════════════ */

@media (hover: hover) {
  /* Custom cursor is scoped to the hero section only */
  #hero { cursor: none; }

  .cursor,
  .cursor-ring {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.25s var(--ease), height 0.25s var(--ease),
                background 0.25s, border-color 0.3s, opacity 0.25s var(--ease);
  }

  .cursor {
    width: 7px;
    height: 7px;
    background: var(--indigo);
  }

  .cursor-ring {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    background: transparent;
    transition: width 0.35s var(--ease), height 0.35s var(--ease),
                border-color 0.3s, opacity 0.3s var(--ease);
  }

  /* Visible only while in hero */
  .cursor.in-hero    { opacity: 1; }
  .cursor-ring.in-hero { opacity: 1; }

  .cursor.hover    { width: 4px; height: 4px; background: var(--purple); }
  .cursor-ring.hover { width: 54px; height: 54px; border-color: var(--indigo); }
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */

#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(246, 246, 252, 0.06);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}

#nav.scrolled {
  background: rgba(246, 246, 252, 0.88);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(16,185,129,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  gap: 1.5rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

#nav.scrolled .nav-logo {
  opacity: 1;
  pointer-events: auto;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 0.15rem;
}

.nav-link {
  display: block;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.855rem;
  font-weight: 500;
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.3rem;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 1.7rem);
  height: 1.5px;
  background: var(--grad);
  border-radius: 1px;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--indigo);
  background: rgba(16,185,129,0.07);
}

.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-social {
  display: flex;
  gap: 0.4rem;
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s var(--spring);
}

.nav-social a:hover {
  border-color: var(--border-hi);
  color: var(--indigo);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.nav-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s var(--spring);
}

.theme-toggle:hover {
  border-color: var(--border-hi);
  color: var(--indigo);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-h) var(--pad) 0;
  background: linear-gradient(160deg, #f6f6fc 0%, #f0f0fa 50%, #f6f6fc 100%);
}

#canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Soft ambient glows — very subtle on light bg */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(16,185,129,0.09), transparent 70%);
  top: 5%;
  left: 15%;
  animation-duration: 14s;
}

.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.07), transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-duration: 10s;
  animation-delay: -5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(22px, -22px) scale(1.03); }
  66%       { transform: translate(-16px, 14px) scale(0.98); }
}

/* Owl watermark — darker tint for light bg */

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  width: 100%;
}

/* Greeting */
.hero-greeting {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s var(--ease) 0.15s forwards;
}

/* Meta row */
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.775rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.0s forwards;
}

.hero-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-sep { color: var(--border-mid); }

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 8px rgba(22,163,74,0.5);
  animation: pulseDot 2.5s ease infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(22,163,74,0.5); }
  50%       { opacity: 0.6; box-shadow: 0 0 3px rgba(22,163,74,0.3); }
}

/* Name */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.05em;
  margin-bottom: 1.75rem;
}

.hero-name .hero-line {
  display: block;
  overflow: hidden;
}

.hero-name .hero-line span {
  display: block;
  background: var(--grad-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: translateY(110%);
  animation: slideUp 0.9s var(--spring) forwards, gradientShift 7s ease infinite;
}

.hero-name .hero-line:nth-child(1) span { animation-delay: 0.35s, 0s; }
.hero-name .hero-line:nth-child(2) span { animation-delay: 0.5s, 0.5s; }

@keyframes slideUp       { to { transform: translateY(0); } }
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Role */
.hero-role {
  font-size: clamp(0.95rem, 2.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.85s forwards;
}

/* CTAs */
.hero-cta {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 1.05s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(16,185,129,0.32);
  transition: transform 0.25s var(--spring), box-shadow 0.25s, opacity 0.2s;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--spring);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(16,185,129,0.42);
}

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

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border-mid);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s var(--spring);
}

.btn-secondary:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Scroll hint */

@keyframes scrollLine {
  0%     { transform: scaleY(0); opacity: 1; transform-origin: top; }
  50%    { transform: scaleY(1); opacity: 1; }
  51%    { transform-origin: bottom; }
  100%   { transform: scaleY(0); opacity: 0; }
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════════════ */

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.section-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 2.5rem;
  height: 3px;
  background: var(--grad);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */

#about {
  background: var(--bg-2);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), rgba(139,92,246,0.3), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.85;
}

.about-text p + p { margin-top: 1.25rem; }
.about-text strong { color: var(--text); font-weight: 600; }

/* Stats */
.stats { display: flex; flex-direction: column; gap: 0.75rem; }

.stat {
  padding: 1.4rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--spring), box-shadow 0.3s;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat:hover {
  border-color: var(--border-hi);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat:hover::before { opacity: 0.04; }

.stat-number {
  position: relative;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-number span { font-size: 1.5rem; }

.stat-label {
  position: relative;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCE / TIMELINE
═══════════════════════════════════════════════════════ */

#experience { background: var(--bg); }

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

.timeline-track {
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--indigo) 0%,
    rgba(16, 185, 129, 0.25) 60%,
    rgba(16, 185, 129, 0.05) 100%
  );
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

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

.timeline-dot {
  position: absolute;
  left: calc(-2.25rem - 4px);
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-muted);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--spring);
}

.timeline-item.current .timeline-dot {
  border-color: var(--indigo);
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgba(16,185,129,0.15), 0 0 12px rgba(16,185,129,0.4);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--spring);
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.timeline-item.current .timeline-card {
  border-color: rgba(16,185,129,0.2);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(16,185,129,0.06);
}

.timeline-item.current .timeline-card::before { opacity: 1; }

.timeline-card:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.timeline-card:hover .timeline-dot { transform: scale(1.3); }

/* Header row */
.timeline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.25rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  background: var(--bg-2);
  flex-shrink: 0;
}

.timeline-item.current .timeline-period {
  color: var(--indigo);
  border-color: rgba(16,185,129,0.3);
  background: rgba(16,185,129,0.06);
}

/* Meta row: logo + company */
.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.company-logo-wrap {
  width: 60px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f6f6;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 5px 7px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.timeline-card:hover .company-logo-wrap { border-color: var(--border-mid); }

.company-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.timeline-company {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.2;
}

.timeline-company:hover { color: var(--purple); }
.timeline-company.static { color: var(--text-dim); cursor: default; }

.timeline-team {
  font-size: 0.815rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ═══════════════════════════════════════════════════════
   CERTIFICATIONS
═══════════════════════════════════════════════════════ */

#certifications {
  background: var(--bg-2);
  position: relative;
}

#certifications::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.3), rgba(139,92,246,0.3), transparent);
}

.certs-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  width: clamp(220px, 22vw, 260px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.35s var(--spring);
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.cert-card:hover {
  border-color: rgba(234,88,12,0.3);
  box-shadow: 0 8px 36px rgba(234,88,12,0.1), 0 2px 8px rgba(0,0,0,0.04);
  transform: translateY(-5px);
}

.cert-card:hover::before { transform: scaleX(1); }

.cert-badge-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.1));
}

.cert-provider {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin-bottom: 0.3rem;
}

.cert-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

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

.cert-arrow {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  transition: stroke 0.2s, transform 0.25s var(--spring);
}

.cert-card:hover .cert-arrow {
  stroke: var(--orange);
  transform: translate(3px, -3px);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */

footer {
  background: var(--bg);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}


.footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.845rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.25s var(--spring);
}

.footer-social a:hover {
  border-color: var(--border-hi);
  color: var(--indigo);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--reveal-dur) var(--ease),
              transform var(--reveal-dur) var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.visible > * { opacity: 1; transform: none; }
.stagger.visible > *:nth-child(1) { transition-delay: 0.00s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.09s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.18s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.27s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.36s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.45s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.54s; }

@media (max-width: 768px) {
  .hero-glow { display: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { flex-direction: row; flex-wrap: wrap; }
  .stat { flex: 1; min-width: 100px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hero-name { letter-spacing: -0.04em; }
  .timeline { padding-left: 1.5rem; }
  .timeline-dot { left: calc(-1.5rem - 4px); }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .timeline-header { flex-direction: column; gap: 0.4rem; }
}

@media (max-width: 380px) {
}
