:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0d1220;
  --panel: rgba(17, 24, 39, 0.78);
  --panel-solid: #111827;
  --panel-soft: #162033;
  --text: #eef6ff;
  --muted: #9ba9bd;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #38bdf8;
  --mint: #2dd4bf;
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --rose: #fb7185;
  --green: #22c55e;
  --white: #ffffff;
  --accent-text: #8bdcff;
  --accent-soft-text: #73d4f7;
  --accent-muted-text: #78d9f7;
  --mint-text: #7ee7d8;
  --mixed-body-text: #d4e2f0;
  --token-bg: rgba(17, 24, 39, 0.76);
  --whatsapp-border: rgba(34, 197, 94, 0.28);
  --body-background:
    radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.14), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(251, 113, 133, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 46%, #070a12);
  --page-grid-lines: rgba(148, 163, 184, 0.055);
  --curtain-background:
    linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.2), transparent),
    radial-gradient(circle at 50% 48%, rgba(45, 212, 191, 0.16), transparent 34%),
    #070a12;
  --nav-bg: rgba(7, 10, 18, 0.78);
  --nav-menu-bg: rgba(255, 255, 255, 0.035);
  --soft-band-bg: rgba(255, 255, 255, 0.02);
  --contact-bg: rgba(255, 255, 255, 0.025);
  --console-bg: #050816;
  --console-top-bg: #090d18;
  --browser-input-bg: rgba(255, 255, 255, 0.06);
  --browser-input-text: #c7d2d6;
  --card-bg: linear-gradient(180deg, rgba(17, 24, 39, 0.84), rgba(15, 23, 42, 0.64));
  --card-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  --secondary-button-bg:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.66)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(45, 212, 191, 0.16), rgba(148, 163, 184, 0.2)) border-box;
  --action-button-bg:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.38), rgba(45, 212, 191, 0.14), rgba(148, 163, 184, 0.2)) border-box;
  --project-link-bg:
    linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58)) padding-box,
    linear-gradient(135deg, rgba(56, 189, 248, 0.36), rgba(45, 212, 191, 0.14)) border-box;
  --footer-bg: #050712;
  --footer-text: #d7e0e2;
  --whatsapp: #22c55e;
  --whatsapp-dark: #15803d;
  --theme-toggle-bg: rgba(255, 255, 255, 0.05);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5fbff;
  --bg-2: #e8f3fb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --panel-soft: #eaf4fb;
  --text: #0f172a;
  --muted: #526071;
  --line: rgba(15, 23, 42, 0.13);
  --cyan: #0284c7;
  --mint: #0f766e;
  --teal: #0f766e;
  --amber: #b45309;
  --rose: #be123c;
  --green: #16a34a;
  --white: #ffffff;
  --accent-text: #0369a1;
  --accent-soft-text: #075985;
  --accent-muted-text: #0c4a6e;
  --mint-text: #0f766e;
  --mixed-body-text: #26364a;
  --token-bg: rgba(255, 255, 255, 0.76);
  --whatsapp-border: rgba(22, 163, 74, 0.28);
  --body-background:
    radial-gradient(circle at 12% 18%, rgba(2, 132, 199, 0.12), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(20, 184, 166, 0.1), transparent 25%),
    linear-gradient(180deg, #f8fcff, #edf6fb 48%, #f7fbff);
  --page-grid-lines: rgba(15, 23, 42, 0.05);
  --curtain-background:
    linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.14), transparent),
    radial-gradient(circle at 50% 48%, rgba(20, 184, 166, 0.14), transparent 34%),
    #f8fcff;
  --nav-bg: rgba(248, 252, 255, 0.82);
  --nav-menu-bg: rgba(2, 132, 199, 0.055);
  --soft-band-bg: rgba(255, 255, 255, 0.58);
  --contact-bg: rgba(255, 255, 255, 0.54);
  --console-bg: #ffffff;
  --console-top-bg: #eef6fb;
  --browser-input-bg: rgba(15, 23, 42, 0.05);
  --browser-input-text: #334155;
  --card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 248, 253, 0.82));
  --card-shadow: 0 18px 50px rgba(15, 23, 42, 0.1);
  --secondary-button-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 251, 0.86)) padding-box,
    linear-gradient(135deg, rgba(2, 132, 199, 0.42), rgba(15, 118, 110, 0.18), rgba(15, 23, 42, 0.12)) border-box;
  --action-button-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 251, 0.86)) padding-box,
    linear-gradient(135deg, rgba(2, 132, 199, 0.36), rgba(15, 118, 110, 0.18), rgba(15, 23, 42, 0.12)) border-box;
  --project-link-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 243, 251, 0.86)) padding-box,
    linear-gradient(135deg, rgba(2, 132, 199, 0.36), rgba(15, 118, 110, 0.18)) border-box;
  --footer-bg: #eaf4fb;
  --footer-text: #334155;
  --whatsapp: #16a34a;
  --whatsapp-dark: #15803d;
  --theme-toggle-bg: rgba(15, 23, 42, 0.055);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--body-background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  transition: color 220ms ease, background 260ms ease;
}

body.theme-ready::after {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  content: "";
  background: var(--curtain-background);
  transform-origin: left center;
  animation: page-curtain 940ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body.theme-ready main {
  animation: page-main-in 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.theme-ready .portfolio-nav {
  animation: page-nav-in 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.theme-ready .ambient-background,
body.theme-ready .site-grid {
  animation: page-ambient-in 1100ms ease both;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--page-grid-lines) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid-lines) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 92%);
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-grid {
  position: fixed;
  inset: auto 8% 12% auto;
  z-index: 0;
  width: 320px;
  aspect-ratio: 1;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 50%;
  opacity: 0.45;
}

.ambient-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-background::before,
.ambient-background::after {
  position: absolute;
  content: "";
  opacity: 0.34;
}

.ambient-background::before {
  inset: 10% auto auto 7%;
  width: min(460px, 42vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.46), transparent);
  animation: ambient-line 9s ease-in-out infinite;
}

.ambient-background::after {
  right: 8%;
  bottom: 18%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(45, 212, 191, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 36px rgba(56, 189, 248, 0.05);
  animation: ambient-orbit 14s ease-in-out infinite;
}

.ambient-token,
.ambient-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  pointer-events: none;
  user-select: none;
}

.ambient-token {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 8px;
  color: var(--accent-soft-text);
  background: var(--token-bg);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.78rem;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.18);
  animation: ambient-float var(--duration, 12s) ease-in-out var(--delay, 0s) infinite alternate;
}

.ambient-node {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.72);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.28);
  animation: ambient-node var(--duration, 8s) ease-in-out var(--delay, 0s) infinite alternate;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-grid::before,
.site-grid::after {
  position: absolute;
  inset: 44px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: inherit;
  content: "";
}

.site-grid::after {
  inset: 96px;
  border-color: rgba(245, 158, 11, 0.2);
}

.portfolio-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 4px 8px 4px 4px;
  border-radius: 12px;
  color: var(--text) !important;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.12);
}

.brand-mark:hover,
.brand-mark:focus {
  color: var(--cyan) !important;
}

.brand-mark span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.36);
  border-radius: 8px;
  color: #07111f;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.28);
  font-size: 0.9rem;
  font-weight: 850;
}

.navbar-toggler {
  border: 1px solid var(--line);
  filter: invert(1);
}

.nav-menu {
  position: relative;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  background: var(--nav-menu-bg);
  overflow: hidden;
}

.nav-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 0;
  width: 0;
  height: 38px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(45, 212, 191, 0.1));
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.13);
  opacity: 0;
  transform: translateX(0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), width 260ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.nav-menu.is-ready .nav-indicator {
  opacity: 1;
}

.nav-item {
  position: relative;
  z-index: 1;
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px !important;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active {
  color: var(--cyan);
  background: transparent;
}

.nav-link:not(.nav-cta)::after {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-inline: 16px !important;
  border: 0;
  border-radius: 8px;
  color: var(--text) !important;
  background: transparent;
}

.nav-cta.is-active,
.nav-cta:hover,
.nav-cta:focus {
  color: var(--mint) !important;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--theme-toggle-bg);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(56, 189, 248, 0.36);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.1);
  transform: translateY(-1px);
}

.theme-toggle-orb {
  position: relative;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.18);
}

.theme-icon {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 200ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

.theme-icon-sun {
  opacity: 0;
  transform: translateY(18px) rotate(-45deg);
}

:root[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

:root[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: translateY(-18px) rotate(45deg);
}

.hero-section,
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 66px;
}

.hero-section::after,
.page-hero::after {
  position: absolute;
  inset: 20% -12% auto auto;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  content: "";
}

.hero-grid,
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
  min-width: 0;
}

.eyebrow,
.section-kicker,
.project-type {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(2.15rem, 3.1vw, 3.35rem);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.1vw, 2.35rem);
  line-height: 1.14;
  font-weight: 760;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.3;
  font-weight: 760;
}

.hero-text,
.page-hero p,
.two-column p:last-child,
.project-content p:not(.project-type),
.featured-content p:not(.project-type),
.contact-panel p,
.skill-card p,
.process-item p {
  color: var(--muted);
}

.hero-text,
.page-hero p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(0.92rem, 0.94vw, 0.98rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.page-pills span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-text);
  background: var(--nav-menu-bg);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary-custom,
.btn-secondary-custom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 160px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  font-weight: 760;
  overflow: hidden;
  isolation: isolate;
  --btn-x: 0px;
  --btn-y: 0px;
  --btn-scale: 1;
  transform: translate3d(var(--btn-x), var(--btn-y), 0) scale(var(--btn-scale));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-label {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-custom::before,
.btn-secondary-custom::before,
.contact-actions a::before,
.contact-method-card::before,
.project-link::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.16) 42%, transparent 72%);
  background-size: auto, 220% 100%;
  background-position: center, -120% 0;
  opacity: 0;
  transition: opacity 160ms ease, background-position 420ms ease;
}

.btn-primary-custom::after,
.btn-secondary-custom::after,
.contact-actions a::after,
.contact-method-card::after,
.project-link::after {
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  content: "";
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.45) 46%, transparent 58% 100%);
  opacity: 0;
  transform: translateX(-120%) skewX(-14deg);
  transition: opacity 180ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-custom.is-lit::after,
.btn-secondary-custom.is-lit::after,
.contact-actions a.is-lit::after,
.contact-method-card.is-lit::after,
.project-link.is-lit::after {
  opacity: 0.8;
  transform: translateX(120%) skewX(-14deg);
}

.btn-primary-custom.is-lit::before,
.btn-secondary-custom.is-lit::before,
.contact-actions a.is-lit::before,
.contact-method-card.is-lit::before,
.project-link.is-lit::before {
  opacity: 1;
  background-position: center, 120% 0;
}

.button-ripple {
  position: absolute;
  z-index: 3;
  width: var(--ripple-size, 14px);
  height: var(--ripple-size, 14px);
  border-radius: 999px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 18%, rgba(255, 255, 255, 0.14) 19% 34%, transparent 36%),
    radial-gradient(circle, transparent 0 48%, rgba(255, 255, 255, 0.34) 49% 52%, transparent 54%);
  opacity: 0.82;
  transform: translate(-50%, -50%) scale(1);
  animation: button-ripple 680ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.button-burst {
  position: absolute;
  z-index: 2;
  left: var(--burst-x);
  top: var(--burst-y);
  width: var(--burst-size);
  height: var(--burst-size);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 999px;
  pointer-events: none;
  box-shadow: inset 0 0 26px rgba(45, 212, 191, 0.16), 0 0 24px rgba(56, 189, 248, 0.18);
  transform: translate(-50%, -50%) scale(0.18);
  animation: button-burst 720ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.button-ripple:nth-last-child(2) {
  animation-delay: 55ms;
  opacity: 0.54;
}

.button-ripple:nth-last-child(3) {
  animation-delay: 110ms;
  opacity: 0.36;
}

.btn-primary-custom {
  color: #07111f;
  background:
    linear-gradient(135deg, #46dfff, #2dd4bf 52%, #8b5cf6) padding-box,
    conic-gradient(from 180deg, rgba(56, 189, 248, 0.9), rgba(45, 212, 191, 0.9), rgba(139, 92, 246, 0.8), rgba(56, 189, 248, 0.9)) border-box;
  box-shadow: 0 16px 42px rgba(45, 212, 191, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary-custom {
  color: var(--text);
  background: var(--secondary-button-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-primary-custom:hover,
.btn-secondary-custom:hover,
.contact-actions a:hover,
.contact-method-card:hover,
.project-card:hover,
.skill-card:hover {
  border-color: rgba(56, 189, 248, 0.44);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.32), 0 0 26px rgba(56, 189, 248, 0.1);
}

.btn-primary-custom.is-pressing,
.btn-secondary-custom.is-pressing,
.contact-actions a.is-pressing,
.contact-method-card.is-pressing,
.project-link.is-pressing {
  --btn-scale: 0.965;
}

.button-drop {
  position: absolute;
  z-index: 1;
  left: var(--drop-x);
  top: var(--drop-y);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.42), 0 0 22px rgba(45, 212, 191, 0.16);
  animation: button-drop 700ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin: 28px 0 0;
}

.hero-stats div,
.page-metrics div,
.skill-card,
.process-item,
.timeline-item,
.profile-list div,
.contact-brief-card,
.project-card,
.featured-project,
.project-cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.hero-stats div {
  padding: 16px 18px;
}

.hero-stats dt {
  color: var(--cyan);
  font-size: clamp(1.08rem, 1.22vw, 1.22rem);
  font-weight: 780;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.page-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.page-metrics div {
  padding: 20px;
}

.page-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  line-height: 1.1;
  font-weight: 820;
}

.page-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.developer-console {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: var(--console-bg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 48px rgba(56, 189, 248, 0.14);
  --code-index: 0;
}

.developer-console.is-switching {
  animation: console-switch-glow 680ms ease both;
}

.developer-console::after {
  position: absolute;
  right: -18%;
  bottom: -34%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 62%);
}

.console-topbar,
.browser-bar {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--text);
  background: var(--console-top-bg);
}

.console-topbar span,
.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.console-topbar span:nth-child(2),
.browser-bar span:nth-child(2) {
  background: var(--amber);
}

.console-topbar span:nth-child(3),
.browser-bar span:nth-child(3) {
  background: var(--green);
}

.console-topbar strong {
  margin-left: 10px;
  color: var(--text);
  font-size: 0.88rem;
}

.developer-console.is-switching .console-topbar strong {
  animation: code-title-switch 520ms ease both;
}

.code-slider-stage {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), transparent 34%),
    var(--console-bg);
}

.code-slider-stage::before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 4;
  width: 34%;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.18), rgba(45, 212, 191, 0.18), transparent);
  filter: blur(1px);
  transform: translateX(-120%) skewX(-10deg);
}

.code-transition-flash {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 6;
  width: 46%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.22), rgba(45, 212, 191, 0.28), transparent);
  filter: blur(1px);
  mix-blend-mode: screen;
  transform: translateX(-130%) skewX(-10deg);
}

.code-slide-track {
  display: flex;
  width: 100%;
  min-height: 300px;
  transform: translate3d(calc(var(--code-index, 0) * -100%), 0, 0);
  transition: none;
  will-change: transform;
}

.developer-console.is-switching .code-slider-stage::before {
  animation: code-scan-sweep 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.code-slide {
  position: relative;
  flex: 0 0 100%;
  display: block;
  min-height: 300px;
  opacity: 0.55;
  transform: scale(0.985);
}

.code-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.code-progress {
  height: 3px;
  margin: 0 24px 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.code-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--teal), #fbbf24);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.24);
}

.code-progress span.is-running {
  animation: code-progress-fill 4.2s linear forwards;
}

.developer-console pre {
  position: relative;
  min-height: 300px;
  margin: 0;
  padding: 28px 30px;
  color: var(--text);
  font-size: clamp(0.88rem, 0.95vw, 0.96rem);
  line-height: 1.68;
  white-space: pre-wrap;
}

.developer-console pre::after {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.45), transparent);
  opacity: 0.58;
}

.code-muted {
  color: var(--muted);
}

.code-key {
  color: var(--cyan);
}

.code-string {
  color: #fbbf24;
}

.console-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

.console-status span,
.code-tab {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  color: var(--accent-text);
  background: rgba(56, 189, 248, 0.1);
  font-size: 0.82rem;
  font-weight: 760;
}

.code-tab {
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.code-tab:hover,
.code-tab:focus,
.code-tab.is-active {
  border-color: rgba(45, 212, 191, 0.42);
  color: var(--text);
  background: rgba(45, 212, 191, 0.14);
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.08);
}

.developer-console.is-switching .code-tab.is-active {
  animation: code-tab-pop 520ms ease both;
}

.section-band,
.skill-section,
.projects-page-section,
.project-cta-section,
.contact-section {
  padding: 76px 0;
}

.intro-band {
  border-block: 1px solid var(--line);
  background: var(--soft-band-bg);
}

.two-column,
.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: 56px;
  align-items: start;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.profile-list div {
  padding: 15px 16px;
}

.profile-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 0.9rem;
  line-height: 1.35;
}

.profile-list span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.timeline-item > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  font-weight: 820;
  line-height: 1;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.site-live-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    var(--card-bg),
    radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.16), transparent 34%);
  box-shadow: var(--card-shadow);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.site-live-card.is-updating {
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24), 0 0 26px rgba(56, 189, 248, 0.1);
}

.live-card-head,
.live-status,
.live-tags {
  display: flex;
  align-items: center;
}

.live-card-head {
  gap: 10px;
  margin-bottom: 14px;
}

.live-card-head strong,
.live-status strong {
  font-weight: 760;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
  transition: box-shadow 220ms ease, background 220ms ease;
}

.site-live-card.is-updating .live-dot {
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.12), 0 0 18px rgba(56, 189, 248, 0.32);
}

.site-live-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.live-status {
  justify-content: space-between;
  gap: 18px;
  color: var(--text);
}

.live-status span {
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 760;
}

.live-meter {
  position: relative;
  height: 24px;
  margin-top: 10px;
  overflow: visible;
  border-radius: 999px;
}

.live-meter::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: rgba(148, 163, 184, 0.16);
  transform: translateY(-50%);
}

.live-meter span {
  position: absolute;
  top: 50%;
  left: 0;
  display: block;
  height: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.28);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(-50%);
}

.live-meter input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  color: var(--cyan);
  cursor: ew-resize;
  appearance: none;
  accent-color: var(--cyan);
  background: transparent;
}

.live-meter input::-webkit-slider-runnable-track {
  height: 24px;
  background: transparent;
}

.live-meter input::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(7, 10, 18, 0.94);
  border-radius: 999px;
  appearance: none;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.12), 0 0 18px rgba(45, 212, 191, 0.42);
}

.site-live-card.is-user-control .live-meter input::-webkit-slider-thumb {
  box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.16), 0 0 24px rgba(45, 212, 191, 0.52);
}

.live-insight {
  min-height: 48px;
  margin: 12px 0 0 !important;
  color: var(--mixed-body-text) !important;
  font-size: 0.9rem;
  line-height: 1.55;
  transition: color 180ms ease;
}

.site-live-card.is-updating .live-insight {
  color: var(--text) !important;
}

.live-tags {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.live-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  color: var(--accent-muted-text);
  background: rgba(56, 189, 248, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 640px;
}

.skill-grid,
.process-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.skill-card,
.process-item {
  padding: 24px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.skill-card span,
.process-item span {
  color: var(--amber);
  font-weight: 780;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 22px;
}

.project-page-feature {
  margin-bottom: 28px;
}

.project-browser {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(245, 158, 11, 0.12)),
    var(--panel-solid);
}

.browser-bar {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px 8px 0 0;
}

.browser-bar div {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--browser-input-text);
  background: var(--browser-input-bg);
  font-size: 0.86rem;
  font-weight: 700;
}

.preview-screen {
  min-height: 330px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(110deg, rgba(15, 118, 110, 0.93), rgba(17, 24, 39, 0.9)),
    url("/images/portfolio-hero.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.preview-hero {
  max-width: 430px;
  color: var(--white);
}

.preview-hero p {
  margin: 0 0 10px;
  color: #a7f3d0;
  font-weight: 780;
}

.preview-hero h3 {
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
}

.preview-hero span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 8px;
  color: #111827;
  background: var(--amber);
  font-weight: 780;
}

.preview-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin-top: 42px;
}

.preview-products span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 760;
}

.featured-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.featured-content h2,
.featured-content h3 {
  font-size: clamp(1.55rem, 2.1vw, 2.25rem);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 22px;
}

.tech-stack span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  border-radius: 8px;
  color: var(--mint-text);
  background: rgba(45, 212, 191, 0.08);
  font-size: 0.84rem;
  font-weight: 760;
}

.project-link,
.project-content a,
.site-footer a {
  position: relative;
  color: var(--cyan);
  font-weight: 760;
}

.project-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--project-link-bg);
  overflow: hidden;
  isolation: isolate;
  --btn-x: 0px;
  --btn-y: 0px;
  --btn-scale: 1;
  transform: translate3d(var(--btn-x), var(--btn-y), 0) scale(var(--btn-scale));
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, border-color 180ms ease;
}

.project-card {
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.skill-card:hover {
  border-color: rgba(56, 189, 248, 0.42);
}

.project-visual {
  display: flex;
  align-items: end;
  min-height: 190px;
  padding: 18px;
  color: var(--white);
}

.project-visual span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 760;
}

.project-visual.ecommerce {
  background: linear-gradient(135deg, #0f766e, #172554 58%, #f59e0b);
}

.project-visual.fotocloud {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(20, 184, 166, 0.22), transparent 26%),
    linear-gradient(135deg, #7c2d58, #d85c8b 58%, #f9a8d4);
}

.project-visual.corporate {
  background: linear-gradient(135deg, #263a57, #0f766e 62%, #fb7185);
}

.project-visual.dashboard {
  background: linear-gradient(135deg, #14532d, #111827 54%, #7c3aed);
}

.project-content {
  padding: 22px;
}

.project-cta {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 34px;
}

.project-gallery + .project-cta {
  margin-top: 24px;
}

.project-cta .btn-primary-custom {
  flex: 0 0 auto;
  min-width: 210px;
}

.page-hero {
  padding-bottom: 48px;
}

.code-orbit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
  min-height: 260px;
}

.code-orbit span {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  font-weight: 760;
}

.code-orbit span:nth-child(1) {
  color: var(--cyan);
}

.code-orbit span:nth-child(2) {
  color: var(--mint);
}

.code-orbit span:nth-child(3) {
  color: var(--green);
}

.code-orbit span:nth-child(4) {
  color: var(--amber);
}

.contact-section {
  border-top: 1px solid var(--line);
  background: var(--contact-bg);
}

.contact-panel {
  color: var(--text);
}

.contact-panel p {
  margin-top: 18px;
}

.contact-brief-card {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding: 18px;
}

.contact-brief-card strong {
  color: var(--cyan);
  font-weight: 780;
}

.contact-brief-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-method-grid {
  display: grid;
  gap: 12px;
}

.contact-actions a,
.contact-method-card {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text);
  background: var(--action-button-bg);
  font-weight: 760;
  overflow: hidden;
  isolation: isolate;
  --btn-x: 0px;
  --btn-y: 0px;
  --btn-scale: 1;
  transform: translate3d(var(--btn-x), var(--btn-y), 0) scale(var(--btn-scale));
  transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-actions a {
  min-height: 50px;
  justify-content: center;
  padding: 0 18px;
}

.contact-method-card {
  min-height: 82px;
  justify-content: flex-start;
  padding: 16px 18px;
}

.contact-method-card .button-label {
  display: grid;
  gap: 5px;
  align-items: center;
  justify-items: start;
  text-align: left;
}

.contact-method-card > span,
.contact-method-card .button-label > span {
  position: relative;
  z-index: 4;
  color: var(--accent-text);
  font-size: 0.76rem;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.contact-method-card > strong,
.contact-method-card .button-label > strong {
  position: relative;
  z-index: 4;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.site-footer {
  padding: 24px 0;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-widget {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.whatsapp-chat {
  width: min(340px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid var(--whatsapp-border);
  border-radius: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 12%, rgba(34, 197, 94, 0.12), transparent 30%),
    var(--card-bg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-widget.is-open .whatsapp-chat {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.whatsapp-chat-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
}

.whatsapp-chat-head > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #052e16;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  font-weight: 820;
}

.whatsapp-chat-head strong,
.whatsapp-chat-head small {
  display: block;
  line-height: 1.3;
}

.whatsapp-chat-head small {
  margin-top: 2px;
  opacity: 0.82;
  font-size: 0.78rem;
}

.whatsapp-close {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.whatsapp-close:hover,
.whatsapp-close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.whatsapp-chat-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.whatsapp-chat-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.whatsapp-choice-list {
  display: grid;
  gap: 8px;
}

.whatsapp-choice {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--nav-menu-bg);
  font-weight: 780;
  line-height: 1;
  overflow: hidden;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.whatsapp-choice::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transform: translateX(-120%) skewX(-12deg);
  transition: opacity 180ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-choice:hover,
.whatsapp-choice:focus-visible {
  border-color: rgba(34, 197, 94, 0.38);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.14);
  transform: translateY(-1px);
}

.whatsapp-choice:hover::before,
.whatsapp-choice:focus-visible::before {
  opacity: 1;
  transform: translateX(120%) skewX(-12deg);
}

.whatsapp-choice-primary {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.24);
}

.whatsapp-choice-primary:hover,
.whatsapp-choice-primary:focus-visible {
  color: #ffffff;
}

.floating-whatsapp {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  cursor: pointer;
  box-shadow: 0 18px 48px rgba(22, 163, 74, 0.28), 0 0 0 8px rgba(34, 197, 94, 0.08);
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
  color: #ffffff;
  filter: saturate(1.08);
  box-shadow: 0 22px 56px rgba(22, 163, 74, 0.34), 0 0 0 10px rgba(34, 197, 94, 0.11);
  transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp svg {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  overflow: hidden;
}

.floating-whatsapp .whatsapp-bubble {
  fill: currentColor;
}

.floating-whatsapp .whatsapp-phone {
  fill: var(--whatsapp-dark);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 240ms ease;
}

.reveal.is-visible {
  opacity: 1;
}

@keyframes button-ripple {
  0% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.12);
  }
  72% {
    opacity: 0.34;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes button-burst {
  0% {
    opacity: 0.86;
    transform: translate(-50%, -50%) scale(0.18);
  }
  70% {
    opacity: 0.3;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes button-drop {
  0% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--drop-dx)), calc(-50% + var(--drop-dy))) scale(0.2);
  }
}

@keyframes ambient-float {
  from {
    opacity: 0.18;
    transform: translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.62;
  }
  to {
    opacity: 0.28;
    transform: translate3d(var(--move-x, 18px), var(--move-y, -22px), 0);
  }
}

@keyframes ambient-node {
  from {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) scale(0.85);
  }
  to {
    opacity: 0.82;
    transform: translate3d(var(--move-x, -16px), var(--move-y, 18px), 0) scale(1.1);
  }
}

@keyframes ambient-line {
  0%,
  100% {
    opacity: 0.12;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.46;
    transform: translateX(12%);
  }
}

@keyframes ambient-orbit {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.34;
    transform: scale(1.03);
  }
}

@keyframes page-curtain {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scaleX(0);
  }
}

@keyframes page-main-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.992);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes page-nav-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes page-ambient-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes console-switch-glow {
  0%,
  100% {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 48px rgba(56, 189, 248, 0.14);
  }
  44% {
    border-color: rgba(45, 212, 191, 0.58);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42), 0 0 58px rgba(45, 212, 191, 0.28);
  }
}

@keyframes code-title-switch {
  0% {
    opacity: 0;
    transform: translateY(7px);
  }
  42% {
    color: var(--cyan);
    text-shadow: 0 0 14px rgba(56, 189, 248, 0.34);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes code-scan-sweep {
  0% {
    opacity: 0;
    transform: translateX(-145%) skewX(-12deg);
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(380%) skewX(-12deg);
  }
}

@keyframes code-tab-pop {
  0% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.18);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes code-progress-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .button-ripple {
    display: none;
  }

  .button-burst {
    display: none;
  }

  .button-drop {
    display: none;
  }

  .ambient-token,
  .ambient-node,
  .ambient-background::before,
  .ambient-background::after {
    animation: none !important;
  }

  body.theme-ready::after {
    display: none;
  }

  body.theme-ready main,
  body.theme-ready .portfolio-nav,
  body.theme-ready .ambient-background,
  body.theme-ready .site-grid {
    animation: none !important;
  }

  .code-slide {
    transition: none !important;
    filter: none !important;
  }
}

@media (max-width: 991px) {
  .hero-section,
  .page-hero {
    padding-top: 58px;
  }

  .hero-grid,
  .page-hero-grid,
  .two-column,
  .featured-project,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .nav-menu {
    margin-top: 14px;
    padding: 8px;
    align-items: stretch !important;
  }

  .nav-indicator {
    display: none;
  }

  .nav-link {
    width: 100%;
  }

  .nav-link:hover,
  .nav-link:focus,
  .nav-link.is-active {
    background: rgba(56, 189, 248, 0.08);
  }

  .hero-copy {
    max-width: 760px;
  }

  .developer-console {
    max-width: none;
    justify-self: stretch;
  }

  .skill-grid,
  .project-grid,
  .process-grid,
  .page-metrics {
    grid-template-columns: 1fr;
  }

  .developer-console pre {
    min-height: auto;
  }

  .project-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-section,
  .page-hero,
  .section-band,
  .skill-section,
  .projects-page-section,
  .project-cta-section,
  .contact-section {
    padding-block: 54px;
  }

  h1 {
    font-size: clamp(1.9rem, 7.4vw, 2.55rem);
    line-height: 1.12;
  }

  .hero-stats,
  .preview-products {
    grid-template-columns: 1fr;
  }

  .hero-actions a,
  .contact-actions a,
  .contact-method-card,
  .project-cta a {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .whatsapp-widget {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-chat {
    width: calc(100vw - 28px);
  }

  .floating-whatsapp {
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    height: 52px;
    min-height: 52px;
    max-height: 52px;
  }

  .floating-whatsapp svg {
    width: 30px;
    min-width: 30px;
    max-width: 30px;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
  }

  .code-orbit {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}
