/* ─────────────────────────────────────────────────────────────
   Drew Klauser — style.css
   Design: Origin-inspired light mode, emerald accent
   ───────────────────────────────────────────────────────────── */

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Surfaces */
  --c-bg:          #F8FAFC;
  --c-bg-elevated: #FFFFFF;
  --c-bg-card:     #FFFFFF;
  --c-bg-card-hov: rgba(5, 150, 105, 0.03);
  --c-border:      #E2E8F0;
  --c-border-hov:  rgba(5, 150, 105, 0.35);

  /* Brand — emerald (var names kept for compat) */
  --c-purple:    #059669;
  --c-purple-lt: #34D399;

  /* Supporting palette */
  --c-blue:      #2563EB;
  --c-blue-lt:   #60A5FA;
  --c-cyan:      #0891B2;
  --c-cyan-lt:   #22D3EE;
  --c-green:     #15803D;

  /* Text */
  --c-text:   #0F172A;
  --c-text-2: #475569;
  --c-text-3: #94A3B8;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, var(--c-purple-lt) 0%, var(--c-blue-lt) 50%, var(--c-cyan-lt) 100%);
  --grad-button:  linear-gradient(135deg, var(--c-purple) 0%, #047857 100%);

  /* Typography */
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --nav-h:       64px;
  --radius:      14px;
  --radius-sm:   8px;
  --radius-pill: 999px;

  /* Motion */
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
}

/* ── Reset & Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
strong { font-weight: 600; color: var(--c-text); }

/* ── Utility ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section { padding: 112px 0; }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: 14px;
}

.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 17px;
  color: var(--c-text-2);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-button);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.25), 0 4px 20px rgba(5, 150, 105, 0.20);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.40), 0 8px 32px rgba(5, 150, 105, 0.28);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(15, 23, 42, 0.04);
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}
.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.07);
  border-color: #CBD5E1;
  color: var(--c-text);
  transform: translateY(-1px);
}

.btn-nav {
  background: rgba(5, 150, 105, 0.07);
  color: var(--c-purple);
  border: 1px solid rgba(5, 150, 105, 0.20);
  padding: 8px 18px;
}
.btn-nav:hover {
  background: rgba(5, 150, 105, 0.13);
  border-color: rgba(5, 150, 105, 0.40);
  color: #047857;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ── Navbar ───────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom-color: var(--c-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: opacity var(--t-fast);
  white-space: nowrap;
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo-dot { color: var(--c-purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text-2);
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--c-text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  border-radius: var(--radius-sm);
}
.bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text-2);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base), background var(--t-fast);
}
.nav-toggle:hover .bar { background: var(--c-text); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  animation: floatOrb 12s ease-in-out infinite alternate;
}
.mesh-orb--purple {
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.35) 0%, transparent 70%);
  animation-duration: 14s;
}
.mesh-orb--blue {
  width: 600px; height: 600px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.25) 0%, transparent 70%);
  animation-duration: 11s;
  animation-delay: -4s;
}
.mesh-orb--cyan {
  width: 400px; height: 400px;
  bottom: 0; right: 20%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  opacity: 0.30;
  animation-duration: 9s;
  animation-delay: -7s;
}

@keyframes floatOrb {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 40%, transparent 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
  padding-bottom: 60px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-purple);
  margin-bottom: 24px;
  border: 1px solid rgba(5, 150, 105, 0.22);
  background: rgba(5, 150, 105, 0.06);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.title-line { display: block; }

.hero-tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--c-text-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.typed-word { color: var(--c-cyan); font-weight: 500; }
.typed-cursor {
  color: var(--c-purple);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-description {
  font-size: 17px;
  color: var(--c-text-2);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 12px;
  color: var(--c-text-3);
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--c-border);
}

/* Hero visual (shield card) */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.shield-card {
  position: relative;
  width: 260px;
  height: 300px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  overflow: visible;
}

.shield-glow {
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--grad-primary);
  opacity: 0.05;
  z-index: -1;
  filter: blur(20px);
}

.shield-svg {
  width: 120px;
  animation: shieldFloat 4s ease-in-out infinite;
}
@keyframes shieldFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.shield-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-text-2);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.shield-badge--tl { top: 24px; left: -48px; }
.shield-badge--tr { top: 24px; right: -40px; }
.shield-badge--bl { bottom: 48px; left: -60px; }
.shield-badge--br { bottom: 48px; right: -32px; }

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.badge-dot--green  { background: var(--c-green); box-shadow: 0 0 6px var(--c-green); }
.badge-dot--blue   { background: var(--c-blue-lt); box-shadow: 0 0 6px var(--c-blue-lt); }
.badge-dot--purple { background: var(--c-purple); box-shadow: 0 0 6px var(--c-purple); }
.badge-dot--cyan   { background: var(--c-cyan); box-shadow: 0 0 6px var(--c-cyan); }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-hint span {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--c-purple), transparent);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── About ──────────────────────────────────────────────────────────── */
.about { background: var(--c-bg-elevated); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-slow) var(--ease);
}
.about-card:hover {
  border-color: rgba(5, 150, 105, 0.30);
  background: var(--c-bg-card-hov);
  transform: translateY(-3px);
}

.about-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-purple);
  margin-bottom: 18px;
}

.about-card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.about-card-text {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.65;
}

.about-card-tags {
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
  margin-top: 4px;
}

.current-role {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.06) 0%, rgba(37, 99, 235, 0.06) 100%);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.role-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-purple);
  flex-shrink: 0;
}

.role-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px;
}

.role-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-title {
  font-weight: 600;
  font-size: 15px;
}

.role-sep { color: var(--c-text-3); }

.role-company {
  font-weight: 600;
  color: var(--c-blue);
}

.role-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--c-text-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── Skills ─────────────────────────────────────────────────────────── */
.skills {
  position: relative;
  overflow: hidden;
}

.skills-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.skills-orb {
  position: absolute;
  width: 500px; height: 500px;
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  filter: blur(60px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.skill-group {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--t-base), background var(--t-base);
}
.skill-group:hover {
  border-color: rgba(5, 150, 105, 0.22);
  background: var(--c-bg-card-hov);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-group-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-purple);
  flex-shrink: 0;
}

.skill-group-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.skill-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 4px 13px;
  transition: all var(--t-fast);
  cursor: default;
}
.skill-tag:hover {
  background: rgba(5, 150, 105, 0.07);
  border-color: rgba(5, 150, 105, 0.30);
  color: var(--c-purple);
}

/* ── Projects ─────────────────────────────────────────────────────────── */
.projects { background: var(--c-bg); padding-top: 56px; }
.about { padding-bottom: 56px; }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.projects-header .section-header { margin-bottom: 0; }
.projects-header .section-sub { max-width: 400px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-skeleton {
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(90deg,
    rgba(226, 232, 240, 0.60) 0%,
    rgba(226, 232, 240, 0.90) 50%,
    rgba(226, 232, 240, 0.60) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.project-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--t-base);
}
.project-card:hover {
  border-color: rgba(5, 150, 105, 0.30);
  background: rgba(5, 150, 105, 0.02);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 24px rgba(5, 150, 105, 0.04);
}
.project-card:hover::before { opacity: 1; }

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-cyan);
  background: rgba(8, 145, 178, 0.08);
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.project-github-icon {
  color: var(--c-text-3);
  transition: color var(--t-fast);
}
.project-card:hover .project-github-icon { color: var(--c-text-2); }

.project-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.project-description {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.65;
  flex: 1;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.project-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--c-text-2);
}

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

.project-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--c-text-3);
}
.project-stat svg { flex-shrink: 0; }

.project-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-text-3);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-3);
  transition: color var(--t-fast);
}
.project-action-link:hover { color: var(--c-text-2); }

.project-action-link--primary {
  color: var(--c-purple);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.18);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
}
.project-action-link--primary:hover {
  background: rgba(5, 150, 105, 0.14);
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}

/* ── Contact ────────────────────────────────────────────────────────── */
.contact {
  position: relative;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.contact-orb {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(5, 150, 105, 0.07) 0%, transparent 70%);
  filter: blur(80px);
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-inner .section-title { text-align: center; }

.contact-sub {
  font-size: 17px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin: 0 auto 48px;
  max-width: 480px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-links .contact-card:last-child {
  grid-column: 1 / -1;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-align: left;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-slow) var(--ease);
}
.contact-card:hover {
  border-color: rgba(5, 150, 105, 0.30);
  background: var(--c-bg-card-hov);
  transform: translateY(-3px);
}

.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-purple);
  flex-shrink: 0;
}

.contact-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
}

.contact-card-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card-arrow {
  color: var(--c-text-3);
  flex-shrink: 0;
  transition: transform var(--t-base), color var(--t-fast);
}
.contact-card:hover .contact-card-arrow {
  color: var(--c-purple);
  transform: translateX(3px);
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--c-bg-elevated);
  border-top: 1px solid var(--c-border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo { display: flex; align-items: center; }
.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 13px;
  color: var(--c-text-3);
}

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  font-size: 13px;
  color: var(--c-text-3);
  transition: color var(--t-fast);
}
.footer-link:hover { color: var(--c-text-2); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-container { gap: 48px; }
  .shield-badge--tl { left: -36px; }
  .shield-badge--bl { left: -48px; }
}

@media (max-width: 900px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .nav-inner { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: var(--nav-h);
    inset-inline: 0;
    background: rgba(248, 250, 252, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    padding: 16px 20px 20px;
  }
  .nav-links.open .nav-link {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--c-border);
  }
  .nav-links.open .btn-nav {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
  }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }

  .projects-header { flex-direction: column; align-items: flex-start; }
  .projects-grid { grid-template-columns: 1fr; }

  .current-role { flex-direction: column; align-items: flex-start; gap: 10px; }
  .role-content { flex-direction: column; align-items: flex-start; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-eyebrow { font-size: 10px; }
  .contact-links { grid-template-columns: 1fr; }
}

/* ── Dark mode ────────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:          #07080f;
    --c-bg-elevated: #0d1017;
    --c-bg-card:     rgba(255, 255, 255, 0.04);
    --c-bg-card-hov: rgba(5, 150, 105, 0.08);
    --c-border:      rgba(255, 255, 255, 0.08);
    --c-border-hov:  rgba(52, 211, 153, 0.4);
    --c-purple:      #10b981;
    --c-purple-lt:   #34d399;
    --c-blue:        #3b82f6;
    --c-blue-lt:     #60a5fa;
    --c-cyan:        #22d3ee;
    --c-cyan-lt:     #67e8f9;
    --c-green:       #34d399;
    --c-text:        #f8fafc;
    --c-text-2:      #94a3b8;
    --c-text-3:      #64748b;
    --grad-primary:  linear-gradient(135deg, #34d399 0%, #60a5fa 50%, #67e8f9 100%);
    --grad-button:   linear-gradient(135deg, #059669 0%, #047857 100%);
  }

  .navbar.scrolled {
    background: rgba(7, 8, 15, 0.88);
  }

  .nav-links.open {
    background: rgba(7, 8, 15, 0.98);
  }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
  }
  .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
  }

  .shield-badge {
    background: rgba(13, 16, 23, 0.95);
  }

  .project-skeleton {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 100%
    );
    background-size: 200% 100%;
  }
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
