/* ════════════════════════════════════════════
   RESET
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100vw;
}
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; border: none; outline: none; background: none; }

/* ════════════════════════════════════════════
   DESIGN TOKENS
════════════════════════════════════════════ */
:root {
  --bg:         #080808;
  --bg-card:    #111111;
  --bg-glass:   rgba(255,255,255,0.03);
  --border:     rgba(255,255,255,0.08);
  --accent:     #00FFE0;
  --accent-dim: rgba(0,255,224,0.08);
  --whatsapp:   #25D366;
  --text:       #F0EDE6;
  --text-sub:   #A0A0A0;
  --text-muted: #555555;

  --font-display: 'Clash Display', sans-serif;
  --font-body:    'Cabinet Grotesk', sans-serif;

  --container: min(92%, 1200px);
  --section-y: clamp(4rem, 9vw, 8rem);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ════════════════════════════════════════════
   BASE
════════════════════════════════════════════ */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  line-height: 1.65;
}
.container {
  width: var(--container);
  margin-inline: auto;
}
section { padding-block: var(--section-y); }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ════════════════════════════════════════════
   PAGE LOAD ANIMATIONS
════════════════════════════════════════════ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-anim-1 {
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.6s forwards;
}
.hero-anim-2 {
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 0.8s forwards;
}
.hero-anim-3 {
  opacity: 0;
  animation: fade-up 0.7s var(--ease) 1s forwards;
}

/* ════════════════════════════════════════════
   SCROLL REVEAL
════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ════════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--text); }

.nav__cta {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.nav__cta:hover { background: var(--accent); color: var(--bg); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.nav__mobile a:hover { color: var(--accent); }

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

#hero {
  position: relative;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
  width: min(700px, 100%);
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,255,224,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0,255,224,0.07);
  border: 1px solid rgba(0,255,224,0.18);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.6); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__title .accent { color: var(--accent); }
.hero__title .line   { display: block; overflow: hidden; }
.hero__title .line span {
  display: block;
  animation: rise 0.85s var(--ease) forwards;
  opacity: 0;
  transform: translateY(100%);
}
.hero__title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero__title .line:nth-child(2) span { animation-delay: 0.25s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.4s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-sub);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.86; transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.2s;
}
.btn-secondary:hover { border-color: var(--text-sub); transform: translateY(-2px); }

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: pulse-line 1.8s ease infinite;
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ════════════════════════════════════════════
   MARQUEE
════════════════════════════════════════════ */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll-x 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--accent); }
.marquee-item .mdot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════ */
#projects { background: var(--bg); }

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0 2.5rem;
}
.filter-tab {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-tab:hover,
.filter-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.25rem;
}

/* ── Project card ── */
.p-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.p-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,255,224,0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Image container — fixed height so all cards align */
.p-card__img {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0e0e0e;
  flex-shrink: 0;
}

.p-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s var(--ease);
}

.p-card:hover .p-card__img img { transform: scale(1.05); }
/* Fallback when image fails to load */
.p-card__img img[src=""],
.p-card__img img:not([src]) {
  display: none;
}
.p-card__img::after {
  content: 'Preview coming soon';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.p-card__body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.p-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  white-space: nowrap;
}
.p-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.p-card__desc {
  font-size: 0.83rem;
  color: var(--text-sub);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1.1rem;
}
.p-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-top: auto;
  transition: gap 0.2s;
}
.p-card__link:hover { gap: 0.7rem; }

/* ── Filter hide/show ── */
.p-card.hidden {
  display: none;
}

/* ════════════════════════════════════════════
   AI MATCHER
════════════════════════════════════════════ */
#matcher {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.matcher__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.matcher__left p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}
.matcher__widget {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.m-dots { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; }
.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s;
}
.m-dot.on { background: var(--accent); }

.m-question {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.m-options { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.m-option {
  text-align: left;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.m-option:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}
.m-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.m-loading.show { display: flex; }
.spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.m-result { display: none; flex-direction: column; gap: 1rem; flex: 1; }
.m-result.show { display: flex; }
.m-result-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.m-result-text {
  font-size: 0.875rem;
  color: var(--text-sub);
  line-height: 1.65;
}
.m-result-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  width: fit-content;
  transition: opacity 0.2s;
}
.m-result-cta:hover { opacity: 0.85; }
.m-restart {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: auto;
  transition: color 0.2s;
}
.m-restart:hover { color: var(--text); }

/* ════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════ */
#about { background: var(--bg); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about__bio {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-top: 1rem;
}
.about__bio strong { color: var(--text); font-weight: 600; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-top: 2rem;
}
.skill-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sub);
  padding: 0.58rem 0.85rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.skill-item:hover {
  border-color: rgba(0,255,224,0.25);
  color: var(--text);
  transform: translateX(3px);
}
.skill-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.about__right { position: sticky; top: 6rem; }
.code-block {
  background: #0c0c0c;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'Courier New', monospace;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #090909;
}
.c-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.c-dot:nth-child(1) { background: #FF5F57; }
.c-dot:nth-child(2) { background: #FEBC2E; }
.c-dot:nth-child(3) { background: #28C840; }
.code-fname { font-size: 0.7rem; color: var(--text-muted); margin-left: 0.5rem; letter-spacing: 0.04em; }
.code-body {
  padding: 1.35rem;
  font-size: 0.77rem;
  line-height: 1.85;
  color: #777;
  overflow-x: auto;
}
.ck { color: #569cd6; }
.cs { color: #ce9178; }
.cb { color: #569cd6; }
.cf { color: #dcdcaa; }
.ca { color: var(--accent); }

/* ════════════════════════════════════════════
   TESTIMONIALS
════════════════════════════════════════════ */
#testimonials {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.t-header { text-align: center; margin-bottom: 3rem; }
.t-header .section-label { justify-content: center; }
.t-header .section-label::before { display: none; }

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.6s var(--ease); }
.t-card {
  min-width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 clamp(0px, 5vw, 4rem);
}
.t-card__inner { max-width: 680px; text-align: center; }
.t-quote {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 2rem;
  position: relative;
  padding-top: 0.5rem;
}
.t-quote::before {
  content: '\201C';
  font-size: 5rem;
  line-height: 0;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: -0.5rem;
  font-family: Georgia, serif;
}
.t-author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.t-info strong { display: block; font-size: 0.875rem; font-weight: 700; color: var(--text); }
.t-info span   { font-size: 0.75rem; color: var(--text-muted); }

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.c-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.c-btn:hover { border-color: var(--accent); color: var(--accent); }
.c-dots { display: flex; gap: 0.5rem; }
.c-dot-btn {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s, transform 0.2s;
}
.c-dot-btn.active { background: var(--accent); transform: scale(1.4); }

/* ════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════ */
#contact { background: var(--bg); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}
.contact__info p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 0.75rem;
  margin-bottom: 2rem;
}
.c-links { display: flex; flex-direction: column; gap: 0.7rem; }
.c-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-sub);
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
}
.c-link:hover {
  border-color: var(--accent);
  color: var(--text);
  transform: translateX(4px);
}
.c-link svg { flex-shrink: 0; }

/* WhatsApp link — green accent */
.c-link--whatsapp {
  border-color: rgba(37,211,102,0.25);
  color: var(--whatsapp);
}
.c-link--whatsapp:hover {
  border-color: var(--whatsapp);
  background: rgba(37,211,102,0.05);
  color: var(--whatsapp);
}
.c-link--whatsapp svg { stroke: var(--whatsapp); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.78rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: var(--bg-card);
  padding-right: 2.5rem;
}
.form-group select option { background: var(--bg-card); color: var(--text); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-height: 1.2em;
  transition: color 0.2s;
}
.form-status.ok  { color: var(--accent); }
.form-status.err { color: #FF6B6B; }

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__logo { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.footer__logo span { color: var(--accent); }
.footer__copy { font-size: 0.75rem; color: var(--text-muted); }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { font-size: 0.75rem; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }

/* ════════════════════════════════════════════
   RESPONSIVE — TABLET  (max 900px)
════════════════════════════════════════════ */
@media (max-width: 900px) {
  .matcher__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__right {
    position: static;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ════════════════════════════════════════════
   RESPONSIVE — MOBILE  (max 768px)
════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .nav__links,
  .nav__cta  { display: none; }
  .nav__burger { display: flex; }

  /* Skills single column */
  .skills-grid { grid-template-columns: 1fr; }

  /* Project grid single column */
  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Matcher widget full width */
  .matcher__widget { min-height: auto; }

  /* Testimonial quote smaller */
  .t-quote { padding-top: 1.5rem; }
}

/* ════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (max 480px)
════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --section-y: clamp(3rem, 8vw, 5rem);
  }

  /* Hero buttons stack */
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-primary,
  .btn-secondary {
    justify-content: center;
    text-align: center;
  }

  /* Nav logo smaller */
  .nav__logo { font-size: 0.95rem; }

  /* Filter tabs smaller text */
  .filter-tab { font-size: 0.68rem; padding: 0.38rem 0.8rem; }

  /* Footer stack */
  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__links { justify-content: center; }

  /* Contact links full width */
  .c-link { font-size: 0.82rem; }

  /* Code block smaller font */
  .code-body { font-size: 0.72rem; padding: 1rem; }
}
/* ════════════════════════════════════════════
   HERO SPLIT LAYOUT
════════════════════════════════════════════ */
.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 5rem 2rem;
}

.hero__photo-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.hero__photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s var(--ease);
}

.hero__photo-wrap:hover .hero__photo {
  filter: grayscale(0%);
}

/* Placeholder when image hasn't been added yet */
.hero__photo-wrap--empty::before {
  content: 'Your photo here';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__photo-wrap--empty img {
  display: none;
}

.hero__photo-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 255, 224, 0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero__split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 6rem 3rem;
    text-align: center;
  }

  .hero__photo-wrap {
    max-width: 280px;
    order: -1; /* Photo appears above text on mobile */
  }

  .hero__badge,
  .hero__actions {
    justify-content: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero__photo-badge {
    bottom: 0.75rem;
    left: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero__photo-wrap {
    max-width: 220px;
  }
}