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

/* Prevent any element from causing horizontal overflow on small screens */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Defensive guard: nothing should ever be wider than the viewport.
   `clip` avoids the scroll-container side effects of `hidden` and is
   ignored gracefully by older engines that fall back to the rule above. */
html { overflow-x: clip; }
body * { max-width: 100%; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --bg: #0a1628;
  --surface: #0f1f3d;
  --text: #ffffff;
  --text-secondary: #cbd5e1;
  --border: #1e3a5f;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --accent: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-purple-dark: #7c3aed;
  --linkedin: #0a66c2;
  --linkedin-light: #378fe9;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  /* Motion easing tokens (web-animation skill) */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);     /* smooth enter */
  --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1); /* smooth move */
  --ease-snappy: cubic-bezier(0.34, 1.56, 0.64, 1);   /* gentle bounce */
}

html { scroll-behavior: smooth; }

/* ---- Portfólio: link "ver case" (porta de entrada p/ seção #case) ---- */
.portfolio-case-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  padding: 10px 18px;
  background: rgba(37, 99, 235, .12);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  font-size: 14px; font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .3s var(--ease-out-expo, ease), background .3s, box-shadow .3s;
}
.portfolio-case-toggle:hover {
  background: rgba(37, 99, 235, .22);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(37, 99, 235, .25);
}

/* ---- Case Study (seção dedicada #case) ---- */
.case-study-section { background: linear-gradient(180deg, rgba(37, 99, 235, .04), transparent); }
.case-study {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  margin-top: 36px;
  padding: 32px;
}
.case-side { display: flex; flex-direction: column; gap: 16px; }
.case-meta { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.case-tag { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-secondary); }
.case-meta strong { font-size: 16px; color: var(--text); }
.case-result-chip {
  margin-top: 6px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(139, 92, 246, .12));
  border: 1px solid var(--primary);
  display: flex; flex-direction: column;
}
.case-result-num { font-size: 30px; font-weight: 900; color: #fff; }
.case-result-label { font-size: 13px; color: var(--text-secondary); }
.case-flow { display: flex; flex-direction: column; gap: 20px; }
.case-step {
  position: relative; padding: 22px 24px 22px 70px;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--border); border-radius: var(--radius);
}
.case-step-icon {
  position: absolute; left: 20px; top: 22px;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: rgba(37, 99, 235, .15); border: 1px solid var(--primary);
}
.case-step-title { font-size: 17px; margin-bottom: 8px; color: var(--primary-light); }
.case-step p { color: var(--text-secondary); font-size: 15px; }

@media (max-width: 900px) {
  .case-study { grid-template-columns: 1fr; }
}

/* ---- reduced-motion (accessibility): disable non-essential motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* ============================
   Progress Bar
   ============================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-dark));
  z-index: 999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5);
}

/* ============================
   Header
   ============================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo), border-color 0.3s var(--ease-out-expo);
}

.blur-header {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Compact header once the user scrolls — premium "shrink" effect */
.header.scrolled {
  background: rgba(11, 17, 32, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}
.header.scrolled .header-inner { height: 58px; }
.header.scrolled .logo { transform: scale(0.94); }

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  transition: height 0.35s var(--ease-out-expo);
}

.logo {
  transition: transform 0.35s var(--ease-out-expo);
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-link:hover { color: #fff; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  transition: width 0.3s var(--ease-out-expo);
  transform: translateX(-50%);
}

.nav-link:hover::after { width: 80%; }

.nav-active { color: #fff !important; }
.nav-active::after { width: 80% !important; }

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 99px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.theme-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  margin-right: 8px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(15deg);
  border-color: rgba(96, 165, 250, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* ============================
   Hero
   ============================ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  background: var(--bg);
  overflow: hidden;
}

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

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.28;
  max-width: 70vw;
  animation: floatOrb 14s infinite alternate ease-in-out;
}

.shape-1 {
  width: 360px; height: 360px;
  background: var(--primary);
  top: -8%; left: -4%;
}

.shape-2 {
  width: 440px; height: 440px;
  background: #1e3a5f;
  bottom: -18%; right: -8%;
  animation-delay: -7s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(0.96); }
  100% { transform: translateY(22px) scale(1.04); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: clamp(1.6rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.text-gradient {
  background: linear-gradient(90deg, #60a5fa, #3b82f6, #2563eb, #1d4ed8, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  background-position: 0% center;
  animation: gradientShift 8s linear infinite;
}

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

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-subtitle-line {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.typing-text {
  font-size: 1.05rem;
  color: var(--primary);
  font-family: 'Fira Code', monospace;
  min-height: 1.6em;
  margin-top: -16px;
  margin-bottom: 32px;
  border-right: 2px solid var(--primary);
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: transparent; }
}

.hero-metrics {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-metric { text-align: center; }

.hero-metric-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-metric-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-tech-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-family: 'Fira Code', monospace;
  margin-top: 8px;
}

.tech-strip-item {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.tech-strip-item:hover { color: var(--primary); }

.tech-strip-dot {
  color: rgba(255,255,255,0.15);
  font-size: 1.2rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), background-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.btn.magnetic { transition: transform 0.4s var(--ease-out-expo); }

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-glow {
  box-shadow: 0 0 0 rgba(96, 165, 250, 0.4);
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
  border-radius: 99px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrow-icon { transition: transform 0.3s; }
.submit-btn:hover .arrow-icon { transform: translateX(5px); }

/* ===== Mix A+B "wow" polish ===== */
/* Hero underline accent (B: type-driven hierarchy) */
.hero-text h1 .hl-underline {
  box-shadow: inset 0 -0.12em 0 rgba(37, 99, 235, 0.55);
}
/* Calm trust bar under the metrics (sells credibility, not noise) */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 6px 0 28px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(10px);
}
.hero-trust .trust-stars {
  display: inline-flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 1px;
}
.hero-trust .trust-stars .empty { color: rgba(255, 255, 255, 0.18); }
.hero-trust .trust-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.3;
}
.hero-trust .trust-text b { color: #fff; }
.hero-trust .trust-pill {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .hero-trust .trust-pill { margin-left: 0; }
}

/* Primary button sheen (subtle, on hover only) */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }

/* Code card calm lift on hover (sells "alive" without motion slop) */
.floating-code { transition: box-shadow 0.4s ease, transform 0.4s ease; }
.hero-visual:hover .floating-code {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(96, 165, 250, 0.28);
  transform: translateY(-4px);
}

/* ============================
   Code Block
   ============================ */
.code-block {
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(96,165,250,0.1);
  overflow: hidden;
  position: relative;
}

.code-block::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,0.15), transparent);
  animation: scanLine 4s linear infinite;
  pointer-events: none;
}

@keyframes scanLine {
  0% { top: 0; }
  100% { top: 100%; }
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(22, 27, 34, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: #8b949e;
  font-family: 'Fira Code', monospace;
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.code-body {
  padding: 20px 20px 16px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.88rem;
  line-height: 2;
}

.code-line {
  opacity: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  animation: fadeSlideIn 0.35s ease forwards;
}
.code-body .code-line:nth-child(1) { animation-delay: 0s; }
.code-body .code-line:nth-child(2) { animation-delay: 0.4s; }
.code-body .code-line:nth-child(3) { animation-delay: 0.8s; }
.code-body .code-line:nth-child(4) { animation-delay: 1.2s; }
.code-body .code-line:nth-child(5) { animation-delay: 1.6s; }
.code-body .code-line:nth-child(6) { animation-delay: 2.0s; }
.code-body .code-line:nth-child(7) { animation-delay: 2.4s; }
.code-body .code-line:nth-child(8) { animation-delay: 2.8s; }
.code-body .code-line:nth-child(9) { animation-delay: 3.2s; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.code-line .kw   { color: #ff7b72; }
.code-line .var  { color: #79c0ff; }
.code-line .op   { color: #c9d1d9; }
.code-line .br   { color: #c9d1d9; }
.code-line .key  { color: #79c0ff; }
.code-line .str  { color: #a5d6ff; }
.code-line .str.success { color: #56d364; }

.cursor-blink {
  color: var(--primary);
  animation: cursorBlink 1s step-end infinite;
  animation-delay: 2.4s;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.floating-code {
  animation: levitate 6s ease-in-out infinite;
}

@keyframes levitate {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ============================
   Sections
   ============================ */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

section[id] {
  scroll-margin-top: 80px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.highlight {
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.glass-visual {
  background: rgba(30, 41, 59, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 20px;
}

.section-title.left-align {
  text-align: left;
  margin-bottom: 24px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.services-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.2);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

/* ============================
   About
   ============================ */
.about {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.about::after {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.about-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.about-content {
  flex: 1;
  max-width: 540px;
}

.about-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-actions { margin-top: 32px; }

.about-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-radius: 20px;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateX(40px);
}

.feature-pill.visible {
  opacity: 1;
  transform: translateX(0);
}

.feature-pill:nth-child(1) { transition-delay: 0.1s; }
.feature-pill:nth-child(2) { transition-delay: 0.2s; }
.feature-pill:nth-child(3) { transition-delay: 0.3s; }

.feature-pill:hover {
  transform: translateX(-10px) translateY(-5px) !important;
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(30, 41, 59, 0.7);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(96, 165, 250, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  background: rgba(96, 165, 250, 0.1);
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-pill:hover .feature-icon {
  background: var(--primary);
  transform: scale(1.1) rotate(5deg);
}

.feature-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.feature-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================
   Services
   ============================ */
.services {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(96,165,250,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.services-header { text-align: center; margin-bottom: 52px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 52px;
}

@keyframes serviceReveal {
  from { opacity:0; transform: translateY(36px) scale(0.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-7px) scale(1.08); }
  60% { transform: translateY(-3px) scale(1.04); }
}

@keyframes arrowSlide {
  0% { transform: translateX(0); }
  50% { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s;
  opacity: 0;
  transform: translateY(36px) scale(0.97);
}

.service-card.svc-visible {
  animation: serviceReveal 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
.service-card:nth-child(1) { animation-delay: 0.00s; }
.service-card:nth-child(2) { animation-delay: 0.12s; }
.service-card:nth-child(3) { animation-delay: 0.24s; }

.service-card-glow {
  position: absolute;
  top: -40px; left: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.15), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  opacity: 0;
  transform: scale(0.7);
}

.service-card:hover .service-card-glow {
  opacity: 1;
  transform: scale(1.1);
}

.service-card:hover {
  border-color: rgba(96,165,250,0.5);
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(96,165,250,0.15);
}

.service-card--featured {
  background: linear-gradient(145deg, #0f1f3d 0%, #111827 60%);
  border-color: rgba(96,165,250,0.35);
}

.service-card--featured:hover {
  border-color: var(--primary);
  box-shadow: 0 16px 48px rgba(96,165,250,0.18), 0 0 0 1px rgba(96,165,250,0.25);
}

.service-badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0b1120;
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 99px;
}

.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.service-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, border-color 0.3s;
}

.service-card:hover .service-icon-wrap {
  background: rgba(96,165,250,0.14);
  border-color: rgba(96,165,250,0.35);
}

.service-icon {
  font-size: 1.8rem;
  display: inline-block;
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  animation: iconBounce 0.6s ease;
}

.service-num {
  font-size: 0.7rem;
  font-family: 'Fira Code', monospace;
  color: rgba(96,165,250,0.35);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.service-card:hover h3 { color: var(--primary); }

.service-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  display: block;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 24px;
}

.service-features li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.service-card:hover .service-features li { color: #c8deff; }

.service-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.service-arrow {
  font-size: 1.1rem;
  transition: transform 0.25s;
}

.service-card:hover .service-arrow {
  animation: arrowSlide 0.5s ease forwards;
}

/* ============================
   Stats Bar
   ============================ */
.services-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.services-stats.stats-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item {
  flex: 1;
  text-align: center;
  line-height: 1.2;
}

.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================
   Skills Section
   ============================ */
.skills-section {
  background: var(--bg);
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(96,165,250,0.3);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.skill-cat-icon { font-size: 1.5rem; }

.skill-category-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-level {
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Fira Code', monospace;
  padding: 2px 10px;
  border-radius: 99px;
}

.skill-high {
  color: #4ade80;
  background: rgba(74,222,128,0.1);
}

.skill-mid {
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
}

/* ============================
   Portfolio
   ============================ */
.portfolio-section {
  background: var(--bg);
  position: relative;
}

.glass-card {
  background: rgba(30, 41, 59, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.portfolio-about {
  display: flex;
  gap: 40px;
  align-items: center;
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.portfolio-about.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.portfolio-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  box-shadow: inset 0 -4px 12px rgba(0,0,0,0.2);
}

.avatar-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: var(--primary);
  filter: blur(20px);
  opacity: 0.4;
  z-index: 1;
  animation: glowPulse 3s infinite alternate;
}

@keyframes glowPulse {
  from { opacity: 0.3; transform: scale(0.95); }
  to { opacity: 0.5; transform: scale(1.05); }
}

.portfolio-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.portfolio-role {
  color: var(--primary);
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.portfolio-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.portfolio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
  opacity: 0;
  transform: translateY(40px) scale(0.96);
}

.portfolio-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Harmonized stagger (web-animation skill) */
.portfolio-card:nth-child(2) { transition-delay: 0.08s; }
.portfolio-card:nth-child(3) { transition-delay: 0.16s; }
.portfolio-card:nth-child(4) { transition-delay: 0.24s; }
.portfolio-card:nth-child(5) { transition-delay: 0.32s; }
.portfolio-card:nth-child(6) { transition-delay: 0.40s; }

.portfolio-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(96, 165, 250, 0.1);
  transform: translateY(-8px);
}

.portfolio-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(96, 165, 250, 0.2);
}

.highlight-badge {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.portfolio-card-header { margin-bottom: 12px; }

.portfolio-label {
  font-size: 0.75rem;
  color: var(--primary);
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.portfolio-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.portfolio-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.portfolio-featured-image {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  background: #000;
  /* Reveal the image with a clip-path wipe as the card enters */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease-out-expo);
}

.portfolio-card.visible .portfolio-featured-image {
  clip-path: inset(0 0 0 0);
}

.portfolio-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

.portfolio-card:hover .portfolio-featured-image img {
  opacity: 1;
  transform: scale(1.02);
}

.portfolio-icon-placeholder {
  padding: 30px;
  text-align: center;
  background: rgba(96,165,250,0.05);
  display: none;
  align-items: center;
  justify-content: center;
}

.feature-placeholder-icon { font-size: 3rem; }

.portfolio-checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.port-check-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.port-tag {
  font-size: 0.7rem;
  font-family: 'Fira Code', monospace;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.portfolio-card:hover .port-tag {
  border-color: rgba(96, 165, 250, 0.2);
  color: #fff;
}

/* Image Effects */
.org-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.org-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.15) 0%, transparent 50%, rgba(139,92,246,0.1) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.org-image-wrap:hover::before { opacity: 0; }

.org-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.org-image-wrap:hover .org-image-overlay { transform: translateY(0); }

.org-overlay-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.org-overlay-tag {
  font-size: 0.7rem;
  color: #fff;
  background: rgba(96,165,250,0.2);
  border: 1px solid rgba(96,165,250,0.3);
  padding: 5px 14px;
  border-radius: 99px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* Results Bar */
.portfolio-results-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(96,165,250,0.05);
  border: 1px solid rgba(96,165,250,0.1);
  border-radius: 12px;
}

.port-result { text-align: center; }

.port-result-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.port-result-label {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* GitHub Showcase */
.github-showcase {
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 64px;
}

.github-showcase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.github-icon {
  color: var(--text);
  display: flex;
}

.github-showcase-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.github-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.github-repo {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.github-repo:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(96,165,250,0.3);
  transform: translateY(-3px);
}

.repo-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.repo-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.repo-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.lang-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.github-btn { width: 100%; }

/* Timeline */
.portfolio-timeline {
  max-width: 700px;
  margin: 0 auto;
}

.portfolio-timeline-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 48px;
  background: linear-gradient(90deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), rgba(96, 165, 250, 0.1));
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Sequential stagger (web-animation skill) */
.timeline-item:nth-child(2) { transition-delay: 0.1s; }
.timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline-item:nth-child(4) { transition-delay: 0.3s; }
.timeline-item:nth-child(5) { transition-delay: 0.4s; }

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

.timeline-dot {
  position: absolute;
  left: -32px; top: 24px;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  transition: all 0.3s;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  animation: ripple 2s infinite cubic-bezier(0.65, 0, 0.34, 1);
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.glass-timeline {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease;
}

.timeline-item:hover .glass-timeline {
  transform: translateX(8px);
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(30, 41, 59, 0.6);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

.timeline-date {
  font-size: 0.75rem;
  color: var(--primary);
  font-family: 'Fira Code', monospace;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(96, 165, 250, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

.timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.timeline-company {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================
   Results Section
   ============================ */
.results-section {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.results-section::before {
  content: '';
  position: absolute;
  top: -50%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(96,165,250,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.result-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.result-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-card:nth-child(1) { transition-delay: 0.0s; }
.result-card:nth-child(2) { transition-delay: 0.1s; }
.result-card:nth-child(3) { transition-delay: 0.2s; }
.result-card:nth-child(4) { transition-delay: 0.3s; }

.result-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(96,165,250,0.3);
}

.result-icon-wrap {
  width: 60px; height: 60px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.result-icon { font-size: 1.8rem; }

.result-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #93c5fd, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 10px;
}

.result-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.result-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.results-testimonial {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 20px;
  position: relative;
}

.testimonial-quote {
  font-size: 4rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 20px; left: 24px;
  font-family: serif;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.testimonial-info strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================
   Education Section
   ============================ */
.education-section {
  background: var(--surface);
  position: relative;
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.edu-card {
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.edu-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.edu-card:nth-child(1) { transition-delay: 0.0s; }
.edu-card:nth-child(2) { transition-delay: 0.1s; }
.edu-card:nth-child(3) { transition-delay: 0.2s; }
.edu-card:nth-child(4) { transition-delay: 0.3s; }

.edu-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(96,165,250,0.3);
}

.edu-icon-box {
  width: 56px; height: 56px;
  background: rgba(96,165,250,0.1);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.edu-icon { font-size: 1.6rem; }

.edu-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.edu-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.edu-card:nth-child(1) .edu-status {
  color: #fbbf24;
  background: rgba(251,191,36,0.1);
}

.edu-card:nth-child(2) .edu-status,
.edu-card:nth-child(3) .edu-status,
.edu-card:nth-child(4) .edu-status {
  color: #4ade80;
  background: rgba(74,222,128,0.1);
}

.edu-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.recruiter-cta {
  max-width: 750px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 20px;
}

.recruiter-cta-content h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 28px;
  text-align: center;
}

.recruiter-diffs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.recruiter-diff {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.diff-check {
  font-size: 1.2rem;
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 1px;
}

.recruiter-diff strong { color: #fff; }

.recruiter-cta-content .btn-primary {
  display: inline-flex;
  width: auto;
  margin: 0 auto;
}

/* ============================
   Contact
   ============================ */
.contact-section {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  bottom: -20%; left: 10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05), transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.6s ease;
}

.contact-info.visible {
  opacity: 1;
  transform: translateX(0);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.info-card:hover {
  transform: translateX(10px);
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(96, 165, 250, 0.2);
}

.info-icon-box {
  background: rgba(96, 165, 250, 0.1);
  width: 54px; height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.info-icon { font-size: 1.5rem; }

.info-card:hover .info-icon-box {
  background: var(--primary);
  transform: scale(1.1) rotate(-5deg);
}

.info-texts strong {
  display: block;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 4px;
}

.info-texts p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  padding: 18px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp-large:hover {
  background: #1EBE55;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3);
}

.wa-icon { font-size: 1.3rem; }

.contact-form-wrap {
  padding: 48px;
  border-radius: 24px;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.6s ease;
}

.contact-form-wrap.visible {
  opacity: 1;
  transform: translateX(0);
}

.form-header { margin-bottom: 32px; }

.form-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-group { margin-bottom: 24px; }

.row-group {
  display: flex;
  gap: 20px;
}

.input-box { flex: 1; }

.form-group label, .input-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea,
.input-box input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.select-wrapper { position: relative; }

.form-group select {
  appearance: none;
  cursor: pointer;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.input-box input:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(15, 23, 42, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.input-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

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

.form-lgpd {
  margin-bottom: 20px;
}
.form-lgpd p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0.65;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(96, 165, 250, 0.2);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(96, 165, 250, 0.4);
}

/* ============================
   WhatsApp Float
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.25s;
  z-index: 200;
  cursor: pointer;
}

.whatsapp-float:hover {
  background: var(--whatsapp-dark);
  transform: scale(1.1);
}

.wa-menu {
  position: absolute;
  bottom: 72px; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: bottom right;
}

.wa-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.wa-menu-header {
  padding: 12px 16px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.wa-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.wa-menu-item:hover {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
}

.wa-menu-icon {
  font-size: 1.2rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* ============================
   WhatsApp Interview Widget
   ============================ */
.wa-interview {
  position: fixed;
  bottom: 96px; right: 24px;
  width: 360px; max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 120px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 300;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo);
}
.wa-interview.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.wa-interview[hidden] { display: none; }

.wa-interview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp));
  color: #fff;
}
.wa-interview-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
  flex-shrink: 0;
}
.wa-interview-head-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-interview-head-text strong { font-size: 0.98rem; }
.wa-interview-status { font-size: 0.75rem; opacity: 0.92; display: flex; align-items: center; gap: 5px; }
.wa-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #b9ffce; display: inline-block;
  box-shadow: 0 0 0 0 rgba(185,255,206,0.7);
  animation: waPulse 1.8s infinite;
}
@keyframes waPulse {
  0% { box-shadow: 0 0 0 0 rgba(185,255,206,0.7); }
  70% { box-shadow: 0 0 0 6px rgba(185,255,206,0); }
  100% { box-shadow: 0 0 0 0 rgba(185,255,206,0); }
}
.wa-interview-close {
  background: rgba(255,255,255,0.15);
  border: none; color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.wa-interview-close:hover { background: rgba(255,255,255,0.3); }

.wa-interview-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 0%, rgba(37,211,102,0.05), transparent 40%),
    var(--bg);
}
.wa-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: waMsgIn 0.32s var(--ease-out-expo);
}
@keyframes waMsgIn {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.wa-msg.bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.wa-msg.user {
  align-self: flex-end;
  background: var(--whatsapp);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.wa-msg.wa-typing {
  display: flex; gap: 4px; align-items: center;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
}
.wa-msg.wa-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-secondary);
  animation: waDots 1.2s infinite ease-in-out;
}
.wa-msg.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-msg.wa-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes waDots {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.wa-msg strong { color: var(--accent-light, #60a5fa); }
.wa-msg.user strong { color: #fff; }

.wa-interview-quick {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 14px 12px;
  background: var(--bg);
}
.wa-quick {
  border: 1px solid var(--border);
  background: rgba(37,211,102,0.08);
  color: #d6ffe2;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.wa-quick:hover {
  background: rgba(37,211,102,0.2);
  border-color: var(--whatsapp);
  transform: translateY(-2px);
}

.wa-interview-input {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.wa-interview-input[hidden] { display: none; }
.wa-interview-input input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
}
.wa-interview-input input:focus {
  outline: none;
  border-color: var(--whatsapp);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}
.wa-interview-send {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--whatsapp);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.wa-interview-send:hover { background: var(--whatsapp-dark); transform: scale(1.05); }

.wa-interview-foot {
  text-align: center;
  padding: 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.wa-handoff-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
  padding: 12px 18px;
  width: 100%;
  background: var(--whatsapp);
  color: #fff; font-weight: 700; font-size: 0.92rem;
  border: none; border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  animation: waMsgIn 0.32s var(--ease-out-expo);
  transition: background 0.2s ease, transform 0.2s ease;
}
.wa-handoff-btn:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

.footer-wa-btn {
  background: none; border: none; color: inherit;
  font: inherit; cursor: pointer; padding: 0;
}

@media (max-width: 480px) {
  .wa-interview { bottom: 88px; right: 12px; left: 12px; width: auto; }
}

/* ============================
   Back to Top
   ============================ */
.back-to-top {
  position: fixed;
  bottom: 96px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(96, 165, 250, 0.3);
  z-index: 199;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.5);
}

/* ============================
   Toast
   ============================ */
.toast-notification {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.toast-notification.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   Footer
   ============================ */
.footer {
  text-align: center;
  padding: 28px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, var(--bg), #080c14);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--primary); }

.footer-dot { color: rgba(255,255,255,0.15); }

/* ============================
   Light Theme
   ============================ */
:root[data-theme="light"] {
  --bg: #eff6ff;
  --surface: #ffffff;
  --text: #1e3a5f;
  --text-secondary: #475569;
  --border: #bfdbfe;
}

:root[data-theme="light"] .header {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

:root[data-theme="light"] .theme-toggle:hover { background: rgba(0, 0, 0, 0.08); }

:root[data-theme="light"] .nav-link { color: #475569; }
:root[data-theme="light"] .nav-link:hover { color: #0f172a; }

:root[data-theme="light"] .service-card,
:root[data-theme="light"] .portfolio-card,
:root[data-theme="light"] .services-stats,
:root[data-theme="light"] .skill-category { background: #ffffff; }

:root[data-theme="light"] .services,
:root[data-theme="light"] .education-section { background: #f1f5f9; }

:root[data-theme="light"] .code-block { background: rgba(13, 17, 23, 0.9); }

:root[data-theme="light"] .contact-form-wrap { background: #ffffff; }

:root[data-theme="light"] .form-group input,
:root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea,
:root[data-theme="light"] .input-box input {
  background: #f8fafc;
  color: #0f172a;
  border-color: #e2e8f0;
}

:root[data-theme="light"] .form-group input:focus,
:root[data-theme="light"] .form-group select:focus,
:root[data-theme="light"] .form-group textarea:focus,
:root[data-theme="light"] .input-box input:focus { background: #ffffff; }

:root[data-theme="light"] .glass-card,
:root[data-theme="light"] .glass-timeline { background: rgba(255, 255, 255, 0.7); }

:root[data-theme="light"] .feature-pill {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
}

:root[data-theme="light"] .feature-pill:hover { background: rgba(255, 255, 255, 0.9); }

:root[data-theme="light"] .info-card { background: rgba(255, 255, 255, 0.5); }
:root[data-theme="light"] .info-card:hover { background: rgba(255, 255, 255, 0.8); }

:root[data-theme="light"] .menu-toggle { color: #0f172a; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .results-grid,
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .about-flex {
    flex-direction: column;
  }
  .about-content {
    max-width: 100%;
    text-align: center;
  }
  .section-title.left-align { text-align: center; }
  .feature-pill { transform: translateY(40px); }
  .feature-pill.visible { transform: translateY(0); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }

  .hero {
    padding: 96px 0 64px;
    overflow: hidden;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    letter-spacing: -0.02em;
  }
  /* Keep the headline fluid; avoid hard line-breaks that overflow narrow screens */
  .hero-text h1 br { display: none; }
  .hero-particles { display: none; }
  /* Constrain decorative glows so the hero never exceeds the viewport width */
  .hero-glow { filter: blur(70px); opacity: 0.22; max-width: 90vw; }
  .shape-1 { width: 240px; height: 240px; left: -20%; }
  .shape-2 { width: 280px; height: 280px; right: -25%; }
  /* Tech strip and code card must not force horizontal scroll */
  .hero-tech-strip { font-size: 0.74rem; gap: 4px; }
  .code-block { max-width: 100%; }
  .typing-text {
    font-size: 0.85rem;
    white-space: normal;
  }

  .services-grid,
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-featured { grid-column: span 1; }
  .results-grid,
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .github-grid { grid-template-columns: 1fr; }

  .hero-metrics { gap: 16px 20px; }
  .hero-metric { min-width: 0; }
  .hero-metric-num { font-size: 1.2rem; }
  .hero-tech-strip { max-width: 100%; word-break: break-word; }
  .tech-strip-item { white-space: normal; }
  .hero-buttons { gap: 12px; }
  .hero-buttons .btn { flex: 1 1 auto; min-width: 0; }
  .portfolio-results-bar { grid-template-columns: repeat(2, 1fr); }

  .portfolio-about {
    flex-direction: column;
    text-align: center;
  }

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

  .services-stats {
    flex-direction: column;
    gap: 24px;
    padding: 28px 24px;
  }
  .stat-divider {
    width: 80px;
    height: 1px;
  }
  .stat-num { font-size: 2rem; }

  .portfolio-checklist { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .wa-menu {
    position: fixed;
    bottom: 96px; right: 16px; left: 16px;
    min-width: auto;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .container { padding: 0 32px; }
}

/* ============================
   LinkedIn Section (extracted from inline <style>)
   ============================ */
.linkedin-section {
  background: var(--surface);
  padding: 80px 0;
}
.linkedin-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}
.linkedin-profile-card {
  background: var(--linkedin-card, #0a1f44);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.linkedin-profile-card .li-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--linkedin), #0077b5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}
.linkedin-profile-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.linkedin-profile-card .li-title {
  color: #b9c6e0;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.li-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--li-divider, #2a3a5c);
  border-bottom: 1px solid var(--li-divider, #2a3a5c);
}
.li-stat { text-align: center; }
.li-stat-num {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--linkedin);
}
.li-stat-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}
.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--linkedin);
  color: #fff;
  padding: 12px 28px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-linkedin:hover {
  background: #094492;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.3);
}
.linkedin-location {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.projects-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.project-card-4 {
  background: var(--li-card, rgba(30, 41, 59, 0.5));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.project-card-4:hover {
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}
.project-card-4 h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.project-card-4 p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-card-4 .tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.project-card-4 .tech-tag {
  font-size: 0.7rem;
  font-family: 'Fira Code', monospace;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 3px 10px;
  border-radius: 99px;
  color: var(--text-secondary);
}
.cta-corporate {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.btn-accent {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-accent:hover {
  background: var(--accent-purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* Honeypot anti-spam: visually hidden but present in DOM */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Contact form status message */
.form-status {
  margin: 16px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status-error { color: #ef4444; }
.form-status-success { color: #22c55e; }

.linkedin-posts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.li-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.li-post-icon {
  font-size: 1.5rem;
  color: var(--text);
}
.li-post-title {
  color: var(--text);
}
.li-post-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0;
}
.li-quote {
  border-left: 3px solid var(--linkedin);
  padding-left: 16px;
  margin: 0;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
}
.li-case-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}
.li-case-strong {
  color: var(--text);
}
.li-meta {
  margin-top: 12px;
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================
   Inline-style externalization (no more style="...")
   ============================ */
/* Code animator: staggered reveal via nth-child (was inline --delay) */
#codeAnimator .code-line:nth-child(1) { animation-delay: 0s; }
#codeAnimator .code-line:nth-child(2) { animation-delay: 0.4s; }
#codeAnimator .code-line:nth-child(3) { animation-delay: 0.8s; }
#codeAnimator .code-line:nth-child(4) { animation-delay: 1.2s; }
#codeAnimator .code-line:nth-child(5) { animation-delay: 1.6s; }
#codeAnimator .code-line:nth-child(6) { animation-delay: 2s; }
#codeAnimator .code-line:nth-child(7) { animation-delay: 2.4s; }
#codeAnimator .code-line:nth-child(8) { animation-delay: 2.8s; }
#codeAnimator .code-line:nth-child(9) { animation-delay: 3.2s; }

/* Portfolio avatar (image variant) */
.portfolio-avatar {
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.portfolio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Featured image placeholder fallback */
.portfolio-icon-placeholder {
  display: none;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e1e3a, #2a2a4a);
  border-radius: 12px;
}

/* Portfolio group heading + LinkedIn "see all" wrapper */
.portfolio-group-title { margin-top: 64px; }
.portfolio-group-title--mt { margin-top: 64px; }
.linkedin-all-btn { text-align: center; margin-top: 8px; }

/* Email link inside contact info */
.email-link {
  color: var(--accent);
  text-decoration: none;
}

/* Contact column buttons */
.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-linkedin-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--linkedin);
  color: #fff;
  padding: 18px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 25px rgba(10, 102, 194, 0.2);
}
.btn-linkedin-cta:hover {
  background: #094492;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 102, 194, 0.3);
}

/* Extra spacing helpers (were inline) */
.section-header--mt { margin-top: 80px; }
.btn-pad-lg { padding: 14px 24px; }
.btn-linkedin-pad { padding: 14px 24px; }

/* Portfolio actions modifiers (were inline styles) */
.portfolio-actions--tight { gap: 12px; }
.portfolio-actions--mb { margin-bottom: 16px; }

/* Photo variant: clear the gradient background so the image shows (was inline) */
.portfolio-avatar--img {
  padding: 0;
  background: transparent;
}

/* Photo variant: let the image fill the circle (was inline padding/background) */
.portfolio-avatar--img {
  padding: 0;
  background: transparent;
}

/* Language color dots (were inline background) */
.lang-python { background: #3572A5; }
.lang-javascript { background: #f1e05a; }
.lang-typescript { background: #3178c6; }

/* Light theme: card backgrounds that were hardcoded dark */
:root[data-theme="light"] {
  --linkedin-card: #0a66c2;
  --li-divider: rgba(255, 255, 255, 0.3);
  --li-card: #e8f1fb;
}
:root[data-theme="light"] .linkedin-profile-card { color: #ffffff; }
:root[data-theme="light"] .linkedin-profile-card .li-title { color: #dbe7f5; }
:root[data-theme="light"] .li-stat-label { color: #dbe7f5; }

/* Accessibility: skip link + visible focus */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

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