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

:root {
  --bg: #000;
  --bg-elevated: #0a0a0a;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --glass-strong: rgba(255,255,255,0.06);
  --glass-inner: inset 0 1px 0 rgba(255,255,255,0.06);
  --text: #f5f5f7;
  --text-2: rgba(255,255,255,0.6);
  --text-3: rgba(255,255,255,0.3);
  --accent: #1A56A0;
  --accent-l: #3b82f6;
  --accent-glow: rgba(26,86,160,0.15);
  --r: 16px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --orb-1: rgba(26,86,160,0.1);
  --orb-2: rgba(59,130,246,0.05);
  --nav-bg: rgba(0,0,0,0.7);
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --glass: rgba(0,0,0,0.03);
  --glass-border: rgba(0,0,0,0.08);
  --glass-hover: rgba(0,0,0,0.05);
  --glass-strong: rgba(0,0,0,0.04);
  --glass-inner: inset 0 1px 0 rgba(255,255,255,0.8);
  --text: #1d1d1f;
  --text-2: rgba(0,0,0,0.55);
  --text-3: rgba(0,0,0,0.3);
  --accent-glow: rgba(26,86,160,0.08);
  --orb-1: rgba(26,86,160,0.06);
  --orb-2: rgba(59,130,246,0.03);
  --nav-bg: rgba(245,245,247,0.8);
}
[data-theme="light"] strong { color: #1d1d1f; }
[data-theme="light"] .hero-name { color: #1d1d1f; }
[data-theme="light"] .navbar.scrolled {
  background: var(--nav-bg);
  border-bottom-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .glass:hover {
  box-shadow: var(--glass-inner), 0 8px 32px rgba(0,0,0,0.08), 0 0 60px rgba(26,86,160,0.03);
}
[data-theme="light"] .impact-item:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(26,86,160,0.04) 0%, transparent 65%);
}
[data-theme="light"] .exp-role,
[data-theme="light"] .project-name,
[data-theme="light"] .exp-project-name,
[data-theme="light"] .cert-name { color: #1d1d1f; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
strong { color: #fff; font-weight: 600; transition: color 0.4s; }
::selection { background: var(--accent); color: #fff; }

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,160,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.4s;
}
.cursor-glow.active { opacity: 1; }

/* ===== GLASS ===== */
.glass {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow: var(--glass-inner); transition: all 0.35s var(--ease);
}
.glass:hover {
  background: var(--glass-hover); border-color: rgba(255,255,255,0.12);
  box-shadow: var(--glass-inner), 0 8px 32px rgba(0,0,0,0.4), 0 0 60px rgba(26,86,160,0.05);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 1rem 0; transition: all 0.4s var(--ease);
}
.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(50px) saturate(180%);
  -webkit-backdrop-filter: blur(50px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.05); padding: 0.6rem 0;
}
.nav-container {
  max-width: 960px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.nav-logo:hover { opacity: 0.7; }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; color: var(--text-2);
  transition: color 0.3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--accent-l);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

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

/* Theme Toggle */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-2);
  transition: all 0.3s var(--ease);
}
.theme-toggle:hover {
  background: var(--glass-hover); color: var(--text);
  border-color: rgba(255,255,255,0.14);
}
.icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; position: relative;
  padding: 0 1.5rem; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-gradient-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-1 { width: 400px; height: 400px; top: 15%; left: 15%; background: var(--orb-1); }
.hero-orb-2 { width: 300px; height: 300px; bottom: 20%; right: 10%; background: var(--orb-2); animation-delay: -4s; }
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero-name {
  font-size: clamp(4rem, 14vw, 7rem); font-weight: 800;
  letter-spacing: -0.05em; line-height: 1; color: #fff; margin-bottom: 0.75rem;
  transition: color 0.4s;
}
.hero-title {
  font-size: clamp(0.85rem, 1.5vw, 1rem); font-weight: 300;
  color: var(--text-2); margin-bottom: 2rem; letter-spacing: 0.04em;
}
.hero-sep { color: var(--text-3); margin: 0 0.3rem; }
.hero-links { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%); color: var(--text-3);
  animation: gentleBounce 2.5s ease-in-out infinite;
  transition: opacity 0.4s;
}
.scroll-hint.hidden { opacity: 0; pointer-events: none; }
@keyframes gentleBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
  50% { transform: translateX(-50%) translateY(5px); opacity: 0.6; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.3rem; border-radius: 12px;
  font-size: 0.82rem; font-weight: 500;
  transition: all 0.35s var(--ease); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover {
  background: var(--accent-l); box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-2px) scale(1.02);
}
.btn-glass {
  background: var(--glass); color: var(--text);
  border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
}
.btn-glass:hover {
  background: var(--glass-hover); border-color: rgba(255,255,255,0.14);
  transform: translateY(-2px) scale(1.02);
}

/* ===== SECTIONS ===== */
.section { padding: 4.5rem 1.5rem; }
.section-last { padding-bottom: 3rem; }
.container { max-width: 960px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-l);
  margin-bottom: 1.5rem; display: inline-flex;
  align-items: center; gap: 0.6rem;
}
.section-label::before {
  content: ''; width: 16px; height: 1px;
  background: var(--accent-l); opacity: 0.5;
}

/* ===== ABOUT ===== */
.about-bio { padding: 1.75rem; margin-bottom: 1rem; }
.bio-lead {
  font-size: 1rem; font-weight: 400; color: var(--text);
  line-height: 1.75; margin-bottom: 0.85rem;
}
.bio-body {
  font-size: 0.88rem; font-weight: 300; color: var(--text-2);
  line-height: 1.75; margin-bottom: 0.65rem;
}
.bio-body:last-child { margin-bottom: 0; }

/* Tech Stack */
.tech-stack { margin-bottom: 1.25rem; }
.subsection-title {
  font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 0.85rem;
}

/* Tech Grid */
.tech-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem;
}
.tech-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; padding: 1rem 0.5rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s var(--ease); cursor: default;
}
.tech-card:hover {
  background: var(--glass-hover); border-color: rgba(255,255,255,0.14);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 40px rgba(26,86,160,0.06);
}
.tech-card img, .tech-card svg { width: 28px; height: 28px; flex-shrink: 0; }
.tech-card span {
  font-size: 0.68rem; font-weight: 400; color: var(--text-2);
  text-align: center; line-height: 1.2;
}

/* About Footer */
.about-footer {
  display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap;
}
.about-detail {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 300; color: var(--text-3);
}
.about-detail svg { color: var(--accent-l); opacity: 0.5; }

.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  padding: 0.3rem 0.65rem; font-size: 0.72rem; font-weight: 400;
  color: var(--text-2); background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border); border-radius: 8px;
  transition: all 0.3s var(--ease);
}
.tag:hover {
  border-color: rgba(59,130,246,0.4); color: var(--accent-l);
  background: var(--accent-glow); transform: translateY(-1px);
}

/* ===== EXPERIENCE ===== */
.exp-timeline { position: relative; padding-left: 2rem; }
.exp-timeline::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, var(--accent-l), rgba(59,130,246,0.05));
}
.exp-dot {
  position: absolute; left: -4px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent-l); box-shadow: 0 0 10px rgba(59,130,246,0.4);
}
.exp-header {
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.85rem;
}
.exp-company-logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.exp-meta { flex: 1; }
.exp-role { font-size: 0.95rem; font-weight: 600; color: #fff; transition: color 0.4s; }
.exp-sub { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.15rem; }
.exp-company { font-size: 0.82rem; color: var(--accent-l); font-weight: 500; }
.exp-sep { color: var(--text-3); font-size: 0.7rem; }
.exp-date { font-size: 0.75rem; color: var(--text-3); }
.exp-desc {
  font-size: 0.85rem; font-weight: 300; color: var(--text-2);
  line-height: 1.65; margin-bottom: 1.25rem;
}

.impact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem; margin-bottom: 1rem;
}
.impact-item {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 1rem 0.75rem; text-align: center;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s var(--ease); position: relative; overflow: hidden;
}
.impact-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,86,160,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.impact-item:hover {
  border-color: rgba(59,130,246,0.2); transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(26,86,160,0.08);
}
.impact-item:hover::before { opacity: 1; }
.impact-result {
  font-size: 1.5rem; font-weight: 700; color: var(--accent-l);
  letter-spacing: -0.03em; position: relative; z-index: 1;
}
.impact-from {
  font-size: 0.68rem; color: var(--text-3); margin-top: 0.15rem;
  text-decoration: line-through; position: relative; z-index: 1;
}
.impact-detail {
  font-size: 0.68rem; color: var(--text-3); margin-top: 0.15rem;
  position: relative; z-index: 1;
}
.impact-what {
  font-size: 0.6rem; color: var(--text-3); margin-top: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.1em; position: relative; z-index: 1;
}

.pills { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pill {
  padding: 0.2rem 0.6rem; font-size: 0.68rem; color: var(--text-3);
  border: 1px solid var(--glass-border); border-radius: 100px;
  transition: all 0.3s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-l); }

/* ===== EXP PROJECTS ===== */
.exp-projects {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}
.exp-projects-title {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-3); margin-bottom: 1rem;
}
.exp-projects-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.exp-projects-list li { position: relative; }
.exp-projects-list li::before {
  content: ''; position: absolute; left: -1.25rem; top: 8px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--accent-l);
}
.exp-project-name { font-size: 0.85rem; font-weight: 600; color: #fff; transition: color 0.4s; }
.exp-project-tech { font-size: 0.75rem; color: var(--accent-l); font-weight: 500; }
.exp-project-desc {
  font-size: 0.8rem; font-weight: 300; color: var(--text-2);
  line-height: 1.6; margin-top: 0.4rem;
}
.exp-project-desc a { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--glass-border); text-underline-offset: 3px; transition: all 0.3s; }
.exp-project-desc a:hover { color: var(--accent-l); text-decoration-color: var(--accent-l); }

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem;
}
.project-card-sm {
  padding: 1.25rem; display: flex; flex-direction: column;
}
.project-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.project-name { font-size: 0.9rem; font-weight: 600; color: #fff; transition: color 0.4s; }
.badge-sm {
  font-size: 0.55rem; font-weight: 500; padding: 0.15rem 0.5rem;
  background: var(--accent-glow); color: var(--accent-l);
  border-radius: 100px; border: 1px solid rgba(26,86,160,0.15);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.project-desc {
  font-size: 0.78rem; font-weight: 300; color: var(--text-2);
  line-height: 1.55; margin-bottom: 0.75rem; flex: 1;
}
.project-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 500; color: var(--accent-l);
  transition: all 0.3s var(--ease); margin-top: 0.5rem;
}
.project-link:hover { color: var(--text); transform: translateX(3px); }

/* ===== CERTIFICATIONS ===== */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card {
  padding: 2.5rem; display: flex; flex-direction: column;
}
.cert-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: all 0.3s;
}
.cert-card:hover .cert-logo { transform: scale(1.05); }

/* Fundo claro para a logo da Anthropic no modo escuro */
.cert-logo-anthropic { background-color: #f5f5f7 !important; }
.cert-name { font-size: 1.05rem; font-weight: 600; color: #fff; line-height: 1.3; margin-bottom: 0.3rem; transition: color 0.4s; }
.cert-org { font-size: 0.85rem; color: var(--accent-l); font-weight: 500; margin-bottom: 1.2rem; }
.cert-desc { font-size: 0.85rem; font-weight: 300; color: var(--text-2); line-height: 1.6; margin-bottom: 2rem; flex: 1; }
.cert-when { font-size: 0.75rem; color: var(--text-3); }

/* Cert Bottom — date + view button */
.cert-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

/* Featured cert card — Claude 101 */
.cert-card-featured {
  border-color: rgba(212,162,127,0.2);
  position: relative; overflow: hidden;
}
.cert-card-featured::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(212,162,127,0.06), transparent 60%);
  pointer-events: none;
}
.cert-card-featured .cert-org { color: #D4A27F; }

/* Anthropic logo */
.cert-logo-anthropic {
  background: rgba(212,162,127,0.08);
  border-color: rgba(212,162,127,0.18);
}

/* Apple-style View Certificate Button */
.cert-view-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--accent-l);
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.12);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: all 0.35s var(--ease);
  cursor: pointer; white-space: nowrap;
  text-decoration: none;
}
.cert-view-btn svg {
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
}
.cert-view-btn:hover {
  background: rgba(59,130,246,0.12);
  border-color: rgba(59,130,246,0.25);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,86,160,0.15);
}
.cert-view-btn:hover svg { transform: translate(2px, -2px); }

/* Featured button uses Anthropic color */
.cert-card-featured .cert-view-btn {
  color: #D4A27F;
  background: rgba(212,162,127,0.08);
  border-color: rgba(212,162,127,0.15);
}
.cert-card-featured .cert-view-btn:hover {
  background: rgba(212,162,127,0.15);
  border-color: rgba(212,162,127,0.3);
  color: #f0d0b4;
  box-shadow: 0 4px 16px rgba(212,162,127,0.12);
}

/* ===== CONTACT ===== */
.contact { text-align: center; max-width: 400px; margin: 0 auto; }
.contact-text { font-size: 0.92rem; font-weight: 300; color: var(--text-2); margin-bottom: 1rem; }
.contact-items { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.82rem; color: var(--text-2); padding: 0.75rem 1.25rem;
  justify-content: center;
}
.contact-link:hover { color: var(--accent-l); }

.accent { color: var(--accent); }

/* ===== REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1),
              transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.hero .reveal:nth-child(1) { transition-delay: 0.1s; }
.hero .reveal:nth-child(2) { transition-delay: 0.25s; }
.hero .reveal:nth-child(3) { transition-delay: 0.4s; }

/* ===== CERT MODAL ===== */
.cert-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.cert-modal.active {
  opacity: 1; pointer-events: auto;
}
.cert-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
}
.cert-modal-content {
  position: relative; z-index: 10000;
  max-width: 90vw; max-height: 90vh;
  perspective: 1500px; /* For 3D effect */
}
.cert-modal-img {
  max-width: 100%; max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1); /* smooth mouse follow */
  will-change: transform;
}
.cert-modal-close {
  position: absolute; top: -40px; right: 0;
  background: none; border: none; color: #fff;
  cursor: pointer; padding: 0.5rem;
  opacity: 0.7; transition: opacity 0.3s;
}
.cert-modal-close:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(50px) saturate(180%);
    flex-direction: column; align-items: center;
    justify-content: center; gap: 2rem; z-index: 999;
  }
  [data-theme="light"] .nav-links { background: rgba(245,245,247,0.96); }
  .nav-links.active { display: flex; }
  .nav-links a { font-size: 1.2rem; font-weight: 300; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .section { padding: 3rem 1.25rem; }
  .about-bio { padding: 1.4rem; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .impact-grid { grid-template-columns: 1fr; gap: 0.4rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .exp-header { flex-wrap: wrap; }
  .contact-link { width: 100%; }
  .hero-name { font-size: clamp(3.5rem, 16vw, 5.5rem); }
  .cursor-glow { display: none; }
  .hero-gradient-orb { filter: blur(80px); }
  .hero-orb-1 { width: 250px; height: 250px; }
  .hero-orb-2 { width: 180px; height: 180px; }
}

@media (max-width: 480px) {
  .hero-links { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 260px; }
  .cert-card { padding: 1.15rem; }
  .exp-sub { flex-wrap: wrap; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
