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

/* === Custom Properties === */
:root {
  --bg: #fafbfc;
  --bg-card: #ffffff;
  --accent: #2d8a4e;
  --accent-hover: #1e6b3a;
  --rose: #d64f78;
  --coral: #e8683a;
  --blue: #3b82f6;
  --magenta: #d946a8;
  --amber: #d97706;
  --violet: #8b5cf6;
  --teal: #0d9488;
  --indigo: #6366f1;
  --text: #1f2937;
  --text-heading: #0f172a;
  --text-muted: #6b7280;
  --border: #e2e8f0;
}

/* === Base === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.3;
}

ul {
  list-style: none;
}

/* === Scroll Progress === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal), var(--blue), var(--violet), var(--rose), var(--coral));
  background-size: 300% 100%;
  animation: progressGradient 4s ease infinite;
  z-index: 200;
}

@keyframes progressGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* === Layout === */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
}

/* === Nav === */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav-bar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-name:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--rose));
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover { color: var(--text-heading); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}

.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); }

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Animated gradient blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 138, 78, 0.15), transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214, 79, 120, 0.12), transparent 70%);
  bottom: -5%;
  left: -5%;
  animation-delay: -7s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
  top: 30%;
  left: 40%;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  20% { transform: translate(60px, -50px) scale(1.15); }
  40% { transform: translate(-40px, 60px) scale(0.9); }
  60% { transform: translate(50px, 30px) scale(1.1); }
  80% { transform: translate(-30px, -40px) scale(0.95); }
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Hero stagger entrance */
.hero-stagger {
  opacity: 0;
  transform: translateY(40px);
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stagger:nth-child(1) { animation-delay: 0.15s; }
.hero-stagger:nth-child(2) { animation-delay: 0.3s; }
.hero-stagger:nth-child(3) { animation-delay: 0.45s; }
.hero-stagger:nth-child(4) { animation-delay: 0.6s; }
.hero-stagger:nth-child(5) { animation-delay: 0.75s; }
.hero-image-wrap.hero-stagger { animation-delay: 0.4s; }

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

.hero-text p.greeting {
  color: var(--rose);
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 25%, var(--blue) 50%, var(--rose) 75%, var(--violet) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-text h1 {
  font-size: 52px;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-text h2 {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.7;
}

.hero-text p.intro {
  color: var(--text);
  margin-bottom: 36px;
  font-size: 14px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(45, 138, 78, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(45, 138, 78, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-heading);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(214, 79, 120, 0.12);
}

/* === Portrait + Floating Orbs === */
.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap > picture {
  position: relative;
  z-index: 2;
}

.hero-image-wrap img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.orb-1 {
  width: 14px; height: 14px;
  background: var(--accent);
  top: 8%; left: 10%;
  animation: orbit1 4s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(45, 138, 78, 0.5);
}

.orb-2 {
  width: 10px; height: 10px;
  background: var(--rose);
  top: 15%; right: 5%;
  animation: orbit2 5s ease-in-out infinite;
  box-shadow: 0 0 16px rgba(214, 79, 120, 0.5);
}

.orb-3 {
  width: 8px; height: 8px;
  background: var(--violet);
  bottom: 15%; left: 5%;
  animation: orbit3 4.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.orb-4 {
  width: 12px; height: 12px;
  background: var(--blue);
  bottom: 10%; right: 10%;
  animation: orbit4 5.5s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
}

.orb-5 {
  width: 6px; height: 6px;
  background: var(--coral);
  top: 45%; left: 0%;
  animation: orbit5 3.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(232, 104, 58, 0.5);
}

.orb-6 {
  width: 9px; height: 9px;
  background: var(--teal);
  top: 5%; left: 50%;
  animation: orbit6 6s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.5);
}

.orb-7 {
  width: 7px; height: 7px;
  background: var(--magenta);
  bottom: 5%; left: 45%;
  animation: orbit7 4.8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(217, 70, 168, 0.5);
}

.orb-8 {
  width: 11px; height: 11px;
  background: var(--amber);
  top: 50%; right: 0%;
  animation: orbit8 4.2s ease-in-out infinite;
  box-shadow: 0 0 14px rgba(217, 119, 6, 0.5);
}

@keyframes orbit1 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(35px,-45px) scale(1.4); } 66% { transform: translate(-15px,20px) scale(0.7); } }
@keyframes orbit2 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-40px,35px) scale(0.6); } 66% { transform: translate(20px,-15px) scale(1.5); } }
@keyframes orbit3 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(45px,25px) scale(1.3); } 66% { transform: translate(-25px,-30px) scale(0.8); } }
@keyframes orbit4 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-30px,-40px) scale(0.7); } 66% { transform: translate(35px,15px) scale(1.4); } }
@keyframes orbit5 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(25px,40px) scale(1.5); } 66% { transform: translate(-20px,-10px) scale(0.6); } }
@keyframes orbit6 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-35px,25px) scale(0.8); } 66% { transform: translate(30px,-35px) scale(1.3); } }
@keyframes orbit7 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-35px) scale(1.4); } 66% { transform: translate(-40px,20px) scale(0.7); } }
@keyframes orbit8 { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(-35px,-25px) scale(0.6); } 66% { transform: translate(25px,40px) scale(1.5); } }

/* === Section Headings === */
.section-title {
  font-size: 40px;
  margin-bottom: 56px;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--rose), var(--violet));
  margin-top: 16px;
  border-radius: 2px;
}

/* === Project Cards (all large, stacked) === */
.project-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.project-card-lg {
  position: relative;
  background: var(--bg-card);
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.card-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  pointer-events: none;
  /* opacity driven by --p custom property set by JS */
}

/* Per-accent glow + hover shadow + subtitle color */
[data-accent='coral'] .card-glow { background: radial-gradient(circle, rgba(232, 104, 58, 0.1), transparent 70%); }
[data-accent='coral']:hover { box-shadow: 0 24px 80px rgba(232, 104, 58, 0.12), 0 0 0 1px rgba(232, 104, 58, 0.08); }
[data-accent='coral'] .card-subtitle { color: var(--coral); }
[data-accent='coral'] .card-link { color: var(--coral); }

[data-accent='blue'] .card-glow { background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent 70%); }
[data-accent='blue']:hover { box-shadow: 0 24px 80px rgba(59, 130, 246, 0.12), 0 0 0 1px rgba(59, 130, 246, 0.08); }
[data-accent='blue'] .card-subtitle { color: var(--blue); }
[data-accent='blue'] .card-link { color: var(--blue); }

[data-accent='magenta'] .card-glow { background: radial-gradient(circle, rgba(217, 70, 168, 0.1), transparent 70%); }
[data-accent='magenta']:hover { box-shadow: 0 24px 80px rgba(217, 70, 168, 0.12), 0 0 0 1px rgba(217, 70, 168, 0.08); }
[data-accent='magenta'] .card-subtitle { color: var(--magenta); }
[data-accent='magenta'] .card-link { color: var(--magenta); }

[data-accent='amber'] .card-glow { background: radial-gradient(circle, rgba(217, 119, 6, 0.1), transparent 70%); }
[data-accent='amber']:hover { box-shadow: 0 24px 80px rgba(217, 119, 6, 0.12), 0 0 0 1px rgba(217, 119, 6, 0.08); }
[data-accent='amber'] .card-subtitle { color: var(--amber); }
[data-accent='amber'] .card-link { color: var(--amber); }

[data-accent='violet'] .card-glow { background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%); }
[data-accent='violet']:hover { box-shadow: 0 24px 80px rgba(139, 92, 246, 0.12), 0 0 0 1px rgba(139, 92, 246, 0.08); }
[data-accent='violet'] .card-subtitle { color: var(--violet); }
[data-accent='violet'] .card-link { color: var(--violet); }

[data-accent='teal'] .card-glow { background: radial-gradient(circle, rgba(13, 148, 136, 0.1), transparent 70%); }
[data-accent='teal']:hover { box-shadow: 0 24px 80px rgba(13, 148, 136, 0.12), 0 0 0 1px rgba(13, 148, 136, 0.08); }
[data-accent='teal'] .card-subtitle { color: var(--teal); }
[data-accent='teal'] .card-link { color: var(--teal); }

[data-accent='indigo'] .card-glow { background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%); }
[data-accent='indigo']:hover { box-shadow: 0 24px 80px rgba(99, 102, 241, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.08); }
[data-accent='indigo'] .card-subtitle { color: var(--indigo); }
[data-accent='indigo'] .card-link { color: var(--indigo); }

/* Gradient top bar — width driven by --p (scroll progress) */
.project-card-lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  border-radius: 24px 24px 0 0;
  z-index: 3;
}

[data-accent='coral']::before { background: linear-gradient(90deg, var(--coral), var(--rose)); }
[data-accent='blue']::before { background: linear-gradient(90deg, var(--blue), var(--teal)); }
[data-accent='magenta']::before { background: linear-gradient(90deg, var(--magenta), var(--rose)); }
[data-accent='amber']::before { background: linear-gradient(90deg, var(--amber), var(--coral)); }
[data-accent='violet']::before { background: linear-gradient(90deg, var(--violet), var(--magenta)); }
[data-accent='teal']::before { background: linear-gradient(90deg, var(--teal), var(--accent)); }
[data-accent='indigo']::before { background: linear-gradient(90deg, var(--indigo), var(--blue)); }

/* Color glow also driven by --p */
.card-glow {
  opacity: calc(var(--p, 0) * 0.8) !important;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--coral), var(--rose));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.card-header img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-lg:hover .card-header img {
  transform: scale(1.08) rotate(-2deg);
}

.card-header h3 {
  font-size: 22px;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.card-subtitle {
  font-size: 14px;
  font-weight: 500;
}

.project-card-lg p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 640px;
}

.card-link {
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s, color 0.2s;
}

.card-link:hover {
  gap: 12px;
}

.card-link img {
  height: 36px;
  width: auto;
}

/* Scroll-linked cards: transforms set by JS via inline style.
   The card transition is intentionally removed so scroll position
   maps 1:1 to the visual — no easing lag, stoppable at every frame. */

/* === Certification === */
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  gap: 24px;
  align-items: center;
  max-width: 560px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.cert-card:hover {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
}

.cert-card img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cert-info h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.cert-info .cert-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cert-info a {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
}

.cert-info a:hover { color: var(--accent); }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--rose); }

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-legal a:hover { color: var(--accent); }

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

/* Scroll-linked reveals — transforms set by JS, no transitions needed */
.reveal {
  will-change: transform, opacity;
}

/* === Legal Pages === */
.legal-content {
  padding-top: 100px;
  padding-bottom: 60px;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.legal-content .legal-date {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 12px;
  font-size: 14px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-content ul ul {
  list-style: circle;
  margin-top: 4px;
  margin-bottom: 4px;
}

.legal-content li {
  font-size: 14px;
  margin-bottom: 4px;
}

/* === 404 === */
.terminal-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
}

.terminal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.terminal-box .prompt { color: var(--accent); margin-bottom: 8px; font-size: 14px; }
.terminal-box .error { color: var(--rose); margin-bottom: 24px; font-size: 14px; }
.terminal-box .suggestion { color: var(--text-muted); font-size: 13px; }

/* === Responsive === */
@media (max-width: 768px) {
  .container, .nav-inner { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-image-wrap { order: -1; }

  .hero-image-wrap img {
    width: 200px;
    height: 200px;
  }

  .hero-text h1 { font-size: 32px; }
  .hero-text h2 { font-size: 16px; }
  .hero-links { justify-content: center; }

  .project-card-lg {
    padding: 28px;
    border-radius: 18px;
  }

  .card-header img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .card-header h3 { font-size: 18px; }

  section { padding: 80px 0; }
  .section-title { font-size: 28px; }
  .cert-card { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 26px; }
  .hero-text h2 { font-size: 14px; }
  .hero-image-wrap img { width: 180px; height: 180px; }
  .project-card-lg { padding: 22px; border-radius: 16px; }
  .card-header img { width: 48px; height: 48px; border-radius: 12px; }
  .card-header h3 { font-size: 16px; }
  .card-subtitle { font-size: 12px; }
  .project-card-lg p { font-size: 13px; }
  .section-title { font-size: 24px; margin-bottom: 36px; }
  .cert-card { flex-direction: column; text-align: center; max-width: 100%; }
  .cert-card img { width: 64px; height: 64px; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero-stagger { opacity: 1; transform: none; }
  .project-card-lg { opacity: 1 !important; transform: none !important; }
  #particles { display: none; }
}
