/* Font is loaded from each page's <head> with preconnect + display=swap,
   which avoids the render-blocking @import round-trip. */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #0a0a0f;
  --bg2:       #111118;
  --bg3:       #1a1a24;
  --border:    #2a2a3a;
  --accent1:   #00f5d4;   /* cyan-mint */
  --accent2:   #f72585;   /* magenta   */
  --accent3:   #7b2fff;   /* violet    */
  --text:      #e8e8f0;
  --muted:     #6b6b80;
  --mono:      'Space Mono', monospace;
  --sans:      'Syne', sans-serif;
  --radius:    4px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Noise texture overlay ─────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Grid lines background ─────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,245,212,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,212,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent1);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent1);
  border-color: var(--accent1);
  background: rgba(0,245,212,0.05);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent1);
  transition: var(--transition);
}

/* ── Page Wrapper ───────────────────────────────────────────── */
main {
  position: relative;
  z-index: 1;
  padding-top: 64px;
}

/* ── Section Base ───────────────────────────────────────────── */
section, .page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) clamp(1.5rem, 5vw, 4rem);
}

/* ── Section Label ──────────────────────────────────────────── */
.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent1), transparent);
  max-width: 120px;
  opacity: 0.4;
}

.section-title {
  font-family: var(--sans);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 3.5rem;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-weight: 700;
}

.btn-primary {
  background: var(--accent1);
  color: var(--bg);
  border-color: var(--accent1);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent1);
  box-shadow: 0 0 20px rgba(0,245,212,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent1);
  border-color: var(--accent1);
}
.btn-outline:hover {
  background: rgba(0,245,212,0.08);
  box-shadow: 0 0 20px rgba(0,245,212,0.2);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  border-color: rgba(0,245,212,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 40px rgba(0,245,212,0.05);
}
.card:hover::before { transform: scaleX(1); }

/* ── Fade-in animation ──────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.fade-up:nth-child(1) { animation-delay: 0.0s; }
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
.fade-up:nth-child(5) { animation-delay: 0.4s; }
.fade-up:nth-child(6) { animation-delay: 0.5s; }

/* ── Tag pills ──────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  transition: var(--transition);
}
.tag:hover, .tag.active {
  border-color: var(--accent1);
  color: var(--accent1);
  background: rgba(0,245,212,0.06);
}

/* ── Project filter bar (button-based) ──────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
/* Filter pills are <button>s; reset UA chrome so they match .tag */
.filter-bar .tag {
  font: inherit;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  background: none;
  cursor: pointer;
  appearance: none;
}
.filter-bar .tag:focus-visible {
  outline: 2px solid var(--accent1);
  outline-offset: 2px;
}

.filter-empty {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 2rem 0;
}

/* Project card image: fill the 16:9 thumb box */
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   HOME PAGE — hero
   ============================================================ */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4rem);
  max-width: 1100px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent1);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--accent1);
}

.hero-name {
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero-name .line1 { color: var(--text); }
.hero-name .line2 {
  -webkit-text-stroke: 2px var(--accent1);
  color: transparent;
}

.hero-role {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--muted);
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
}
.hero-role span {
  color: var(--accent2);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scrolling ticker */
.ticker-wrap {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
}
.ticker {
  display: flex;
  gap: 3rem;
  animation: ticker 20s linear infinite;
  white-space: nowrap;
}
.ticker span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}
.ticker span.accent { color: var(--accent1); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Stats row ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5rem;
}
.stat-item {
  background: var(--bg2);
  padding: 1.5rem 1.75rem;
}
.stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent1);
  line-height: 1;
}
.stat-item .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(20%);
  border: 1px solid var(--border);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}
.about-photo-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: var(--muted);
  opacity: 0.4;
}
.about-photo-frame {
  position: absolute;
  top: 12px; left: 12px;
  width: 100%; height: 100%;
  border: 1px solid var(--accent1);
  border-radius: 8px;
  opacity: 0.25;
  pointer-events: none;
}

.about-text h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.about-text p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-text p strong {
  color: var(--text);
  font-weight: 600;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.detail-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.detail-item .d-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.detail-item .d-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   SKILLS PAGE
   ============================================================ */
.skills-grid {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.skill-category {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition);
}
.skill-category:hover {
  border-color: rgba(0,245,212,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.skill-category-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent1);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-item {
  margin-bottom: 1.1rem;
}
.skill-item:last-child { margin-bottom: 0; }

/* Chips: technologies listed without a self-assessed percentage */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.chip {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(134,227,204,0.05);
  border: 1px solid rgba(134,227,204,0.18);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}
.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
}
.skill-pct {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
}
.skill-bar-bg {
  height: 3px;
  background: var(--bg3);
  border-radius: 99px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent1), var(--accent3));
  width: 0;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.tool-pill {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.tool-pill:hover {
  border-color: var(--accent1);
  color: var(--accent1);
  background: rgba(0,245,212,0.04);
}

/* ============================================================
   CERTIFICATES PAGE
   ============================================================ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.cert-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cert-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,245,212,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.cert-card:hover {
  border-color: rgba(0,245,212,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.cert-issuer {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.cert-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.cert-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent1);
  border: 1px solid rgba(0,245,212,0.3);
  border-radius: 99px;
  padding: 0.3rem 0.75rem;
}
.cert-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: rgba(0,245,212,0.35);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45), 0 0 30px rgba(0,245,212,0.06);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--bg3) 0%, #1c1c2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-thumb-pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0,245,212,0.04) 0px, rgba(0,245,212,0.04) 1px,
    transparent 1px, transparent 20px
  );
}
.project-thumb-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  z-index: 1;
}
.project-thumb-label img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-thumb-code {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  width: min(72%, 300px);
  aspect-ratio: 16/8;
  border: 1px solid rgba(0,245,212,0.35);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0,245,212,0.08), rgba(0,0,0,0.18)),
    var(--bg);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  text-align: center;
}
.project-thumb-code strong {
  color: var(--accent1);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1;
}
.project-thumb-code small {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.project-desc {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}
.project-links {
  display: flex;
  gap: 0.75rem;
}
.project-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent1);
  border: 1px solid rgba(0,245,212,0.3);
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  transition: var(--transition);
}
.project-link:hover {
  background: rgba(0,245,212,0.08);
}
.project-link.gh {
  color: var(--muted);
  border-color: var(--border);
}
.project-link.gh:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.contact-info p {
  color: var(--muted);
  font-size: 0.925rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}
.contact-link-item:hover {
  border-color: rgba(0,245,212,0.3);
  background: rgba(0,245,212,0.03);
}
.contact-link-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent1);
}
.contact-link-icon svg { width: 16px; height: 16px; }
.contact-link-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.contact-link-value {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Contact form */
.contact-form {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent1);
  box-shadow: 0 0 0 3px rgba(0,245,212,0.08);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  justify-content: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent1);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.footer-copy span { color: var(--accent1); }
.footer-socials {
  display: flex;
  gap: 0.5rem;
}
.footer-social-link {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}
.footer-social-link svg { width: 15px; height: 15px; }
.footer-social-link:hover {
  border-color: var(--accent1);
  color: var(--accent1);
}

/* ── Nav: language switcher + hamburger group ─────────────── */
.nav-end {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  transition: var(--transition);
}
.lang-switch:hover,
.lang-switch:focus-visible {
  color: var(--accent1);
  border-color: var(--accent1);
  background: rgba(0,245,212,0.06);
}
.lang-switch:focus-visible { outline: 2px solid var(--accent1); outline-offset: 2px; }

/* ============================================================
   CURSOR GLOW
   Injected by JS only on fine-pointer devices; transform-only
   animation keeps it on the compositor.
   ============================================================ */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9998;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,245,212,0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.5rem;
    z-index: 99;
  }
  .hamburger { display: flex; }

  .about-grid,
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .hero-name { font-size: clamp(3.5rem, 15vw, 7rem); }
  .ticker-wrap { display: none; }

  .about-photo-wrap { max-width: 280px; }
  .about-details { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .skills-grid,
  .cert-grid,
  .projects-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.project-date {
  display: block;
  margin-bottom: 0.6rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted, #8a8a99);
}
