/* =========================================================
   KAMAL VISHNU M — PORTFOLIO
   Design tokens — "Midnight Aurora" theme
   ========================================================= */
:root {
  /* Color — deep night sky with gold + violet + cyan accents */
  --bg: #08080a;
  --bg-surface: #111113;
  --bg-surface-2: #17171a;
  --bg-elevated: #1d1d21;
  --gold: #f5f4f2;
  --gold-dim: #cfcfd4;
  --violet: #ffffff;
  --violet-deep: #8a8a92;
  --cyan: #e9e9ec;
  --line: #2a2a2f;
  --line-soft: #1c1c20;
  --text: #ffffff;
  --text-muted: #c7c7cc;
  --text-dim: #83838b;
  --live: #b8f5cf;
  --danger: #ffb3b3;

  /* Type — premium font family (single family, multiple weights) */
  --font-display: "Nohemi", "Segoe UI", sans-serif;   /* headings */
  --font-body: "Nohemi", "Segoe UI", sans-serif;      /* body copy */
  --font-mono: "Nohemi", "Segoe UI", sans-serif;      /* labels / accents (uppercase + tracking instead of literal mono) */

  /* Layout */
  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- Starfield background layer ---------------- */
#starfield-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-nebula {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-nebula .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}
.bg-nebula .glow-1 {
  width: 480px; height: 480px;
  top: -160px; left: 4%;
  background: var(--violet-deep);
  opacity: 0.32;
}
.bg-nebula .glow-2 {
  width: 420px; height: 420px;
  top: 60vh; right: -120px;
  background: var(--gold-dim);
  opacity: 0.14;
}
.bg-nebula .glow-3 {
  width: 380px; height: 380px;
  top: 130vh; left: 20%;
  background: var(--violet);
  opacity: 0.18;
}
.bg-nebula .glow-4 {
  width: 340px; height: 340px;
  top: 200vh; right: 12%;
  background: var(--cyan);
  opacity: 0.10;
}
@media (max-width: 600px) {
  .bg-nebula .glow { filter: blur(80px); }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 10, 0.68);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  background-size: 200% 100%;
  animation: navSheen 8s linear infinite;
}
@keyframes navSheen {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: relative;
}
.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.nav-links a {
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  padding: 9px 18px;
  border-radius: 999px;
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold), #d9a94f);
  box-shadow: 0 8px 24px rgba(255,255,255,0.28);
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}
.nav-cta:hover::before { transform: translateX(120%); }
.nav-cta:hover {
  box-shadow: 0 14px 34px rgba(255,255,255,0.4);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 1;
}
.nav-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; }
.site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), #d9a94f);
  color: #1a1408;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(255,255,255,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(255,255,255,0.45); }
.btn-ghost {
  border-color: var(--line);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--violet); color: var(--text); }

/* ---------------- Reveal on scroll ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0) scale(1); }

.grid-3 .reveal:nth-child(3n+1),
.proj-grid .reveal:nth-child(3n+1),
.skill-groups .reveal:nth-child(3n+1) { transition-delay: 0s; }
.grid-3 .reveal:nth-child(3n+2),
.proj-grid .reveal:nth-child(3n+2),
.skill-groups .reveal:nth-child(3n+2) { transition-delay: 0.09s; }
.grid-3 .reveal:nth-child(3n+3),
.proj-grid .reveal:nth-child(3n+3),
.skill-groups .reveal:nth-child(3n+3) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Hero (new: centered, full-width) ---------------- */
.hero {
  padding: 120px 0 64px;
  position: relative;
  text-align: center;
}
.hero-inner { max-width: 780px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: 1.1rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

.scroll-cue {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.scroll-cue span {
  width: 26px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
  display: block;
}
.scroll-cue span::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0.2; }
  100% { top: 22px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span::before { animation: none; }
}

/* Browser mockup — now a full-width showcase strip below hero */
.showcase {
  padding: 0 0 88px;
}
.browser {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05);
  max-width: 920px;
  margin: 0 auto;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.browser-address {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  overflow: hidden;
  white-space: nowrap;
}
.browser-address .caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--gold);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.browser-body { padding: 30px; }
.browser-body .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.browser-skel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.browser-skel .bar {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-surface-2), var(--line-soft), var(--bg-surface-2));
  background-size: 200% 100%;
  animation: shimmer 2.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.browser-skel .bar.w60 { width: 60%; }
.browser-skel .bar.w80 { width: 80%; }
.browser-skel .bar.w40 { width: 40%; }

.browser-stats {
  display: flex;
  gap: 22px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.browser-stats > div { display: flex; flex-direction: column; align-items: center; }
.browser-stats .stat-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 6px;
  color: var(--gold);
}
.browser-stats .stat-icon svg { width: 100%; height: 100%; }
.browser-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}
.browser-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------- Section basics ---------------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-alt { background: var(--bg-surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

/* ---------------- Stat strip ---------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell {
  background: var(--bg-surface);
  padding: 28px 22px;
  text-align: center;
}
.stat-cell .stat-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-cell .stat-icon svg { width: 100%; height: 100%; }
.stat-cell .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--gold);
}
.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------------- Cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { border-color: var(--violet); box-shadow: 0 20px 50px -18px rgba(210,210,216,0.4); }
.card .num-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
}
.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold);
}
.card-icon svg { width: 22px; height: 22px; }
.cert-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  padding: 8px;
}
.cert-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------------- Project cards (redesigned) ---------------- */
.proj-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover { border-color: var(--gold); color: var(--text); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--gold), #d9a94f);
  border-color: var(--gold);
  color: #1a1408;
  font-weight: 600;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
  position: relative;
}
.proj-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), var(--violet), var(--cyan));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.proj-card:hover::after { opacity: 0.6; }
.proj-card:hover {
  box-shadow: 0 22px 54px -18px rgba(210,210,216,0.4);
  transform: translateY(-4px);
}
.proj-cover {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
}
.proj-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.proj-card[data-category~="wordpress"] .proj-cover::before { background: linear-gradient(135deg, var(--violet-deep), var(--violet)); }
.proj-card[data-category~="html"] .proj-cover::before { background: linear-gradient(135deg, #3a3a40, var(--cyan)); }
.proj-card[data-category~="php"] .proj-cover::before { background: linear-gradient(135deg, var(--gold-dim), var(--gold)); }
.proj-favicon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.94);
  padding: 8px;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}
.proj-index {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(10,10,12,0.55);
  position: relative;
  z-index: 1;
  font-weight: 600;
}
.proj-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.proj-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold);
  display: inline-block;
  width: fit-content;
}
.proj-name { font-family: var(--font-display); font-size: 1.08rem; margin: 4px 0 0; }
.proj-industry { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin: 0; }
.proj-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  transition: color 0.2s ease, gap 0.2s ease;
}
.proj-card:hover .proj-link { color: var(--gold); gap: 10px; }
.proj-card[hidden] { display: none; }

/* ---------------- Timeline (about) ---------------- */
.timeline { border-left: 1px solid var(--line); padding-left: 28px; display: grid; gap: 40px; max-width: 720px; margin: 0 auto; }
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -33px; top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.tl-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }
.tl-title { font-family: var(--font-display); font-size: 1.15rem; margin: 6px 0; }
.tl-sub { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 10px; }

/* ---------------- Skills ---------------- */
.skill-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.skill-list li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.skill-list li::before {
  content: "▹";
  position: absolute; left: 0;
  color: var(--gold);
}

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-links { display: grid; gap: 16px; margin-top: 28px; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: border-color 0.2s ease;
}
.contact-link:hover { border-color: var(--gold); }
.contact-link .icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--bg-surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(210,210,216,0.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-dim); margin-top: 14px; }
.form-status {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-top: 14px;
  min-height: 1.2em;
}
.form-status.ok { color: var(--live); }
.form-status.err { color: var(--danger); }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}
.footer-links { display: flex; gap: 22px; font-family: var(--font-mono); font-size: 0.78rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--gold); }

/* ---------------- WhatsApp floating button ---------------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: wa-pulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; display: block; }
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 36px rgba(37,211,102,0.6);
  animation-play-state: paused;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  50% { box-shadow: 0 10px 28px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0); }
}
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { animation: none; }
}

/* ---------------- Utility classes (no inline styles anywhere) ---------------- */
.pb-0 { padding-bottom: 0; }
.pb-40 { padding-bottom: 40px; }
.max-18ch { max-width: 18ch; margin-left: auto; margin-right: auto; }
.max-20ch { max-width: 20ch; margin-left: auto; margin-right: auto; }
.max-60ch { max-width: 60ch; margin-left: auto; margin-right: auto; }
.lede-60 { max-width: 60ch; font-size: 1.05rem; margin-left: auto; margin-right: auto; }
.lede-56 { max-width: 56ch; font-size: 1.05rem; margin-left: auto; margin-right: auto; }
.skill-heading { font-size: 1rem; color: var(--gold); }
.contact-heading { font-size: 1.3rem; }
.cta-center { text-align: center; margin-top: 40px; }
.text-center { text-align: center; }

/* ---------------- Marquee scroller (home) ---------------- */
.marquee-section {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-surface);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 44px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.marquee-chip:hover { color: var(--text); }
.marquee-chip img {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: rgba(255,255,255,0.92);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .grid-3, .grid-2, .proj-grid, .skill-groups, .contact-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg-surface);
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--line);
    gap: 20px;
  }
  .site-nav.open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: 132px; right: var(--gutter);
  }
}
@media (max-width: 600px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 88px 0 48px; }
}
