:root {
  --bg: #f6f4ee;
  --bg-2: #ffffff;
  --fg: #1a1d2e;
  --fg-soft: #2d3142;
  --muted: #6b7089;
  --accent: #6c5ce7;
  --accent-2: #00b4d8;
  --accent-3: #ff6b9d;
  --accent-4: #ffa94d;
  --line: rgba(26, 29, 46, 0.08);
  --card: #ffffff;
  --card-soft: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 2px 8px rgba(26, 29, 46, 0.04);
  --shadow-md: 0 8px 30px rgba(26, 29, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Decorative gradient blobs in background */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  z-index: -2;
  pointer-events: none;
}
body::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float-blob 18s ease-in-out infinite;
}
body::after {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -300px;
  left: -200px;
  animation: float-blob 22s ease-in-out infinite reverse;
}
@keyframes float-blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 60px) scale(0.95); }
}

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

strong { color: var(--fg); font-weight: 600; }

em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Background canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-4));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 4%;
  z-index: 100;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
              padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(246, 244, 238, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 4%;
  box-shadow: var(--shadow-sm);
}
.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo .dot {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  transition: width 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-links a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-2);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 40px rgba(26, 29, 46, 0.1);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 18px; }
  .menu-toggle { display: flex; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 4% 100px;
  position: relative;
}
.hero-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { order: -1; max-width: 320px; margin: 0 auto; }
}

/* Portrait */
.hero-portrait {
  position: relative;
  display: flex;
  justify-content: center;
}
.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  transition: transform 0.4s var(--ease);
  transform-style: preserve-3d;
}
.portrait-glow {
  position: absolute;
  inset: -30px;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent-3),
    var(--accent-4),
    var(--accent-2),
    var(--accent)
  );
  border-radius: 36px;
  filter: blur(40px);
  opacity: 0.45;
  z-index: 0;
  animation: glow-spin 12s linear infinite;
}
@keyframes glow-spin {
  to { transform: rotate(360deg); }
}
.portrait-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
  z-index: 1;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.portrait-wrap:hover .portrait-frame img {
  transform: scale(1.04);
}
.portrait-badge {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  animation: float-y 6s ease-in-out infinite;
}
.portrait-badge-tl {
  top: 18px;
  left: -28px;
  animation-delay: 0s;
}
.portrait-badge-br {
  bottom: 36px;
  right: -28px;
  animation-delay: 1.5s;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.badge-num {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.badge-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.05); }
}

.portrait-chip {
  position: absolute;
  z-index: 3;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: float-y 7s ease-in-out infinite;
}
.portrait-chip svg {
  color: var(--accent);
}
.portrait-chip-r {
  top: 38%;
  right: -42px;
  animation-delay: 0.6s;
}
.portrait-chip-l {
  bottom: 18%;
  left: -42px;
  animation-delay: 2.2s;
}

@media (max-width: 960px) {
  .portrait-badge-tl { left: -16px; top: 8px; }
  .portrait-badge-br { right: -16px; bottom: 16px; }
  .portrait-chip-r { right: -20px; }
  .portrait-chip-l { left: -20px; }
}
@media (max-width: 540px) {
  .portrait-chip-r, .portrait-chip-l { display: none; }
  .portrait-badge { padding: 10px 12px; }
  .portrait-badge-tl { left: 8px; }
  .portrait-badge-br { right: 8px; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 999px;
}
.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(108, 92, 231, 0.05); }
}
.hero-title {
  font-size: clamp(48px, 9vw, 130px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: var(--fg);
}
.reveal-line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}
.reveal-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
}
.reveal-line.visible > span {
  transform: translateY(0);
}
.reveal-line:nth-child(2) > span { transition-delay: 0.15s; }

.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--fg-soft);
  max-width: 600px;
  margin-bottom: 44px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  color: #fff;
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(108, 92, 231, 0.45);
}
.btn-primary svg {
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
.btn-ghost {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.3);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scroll-pulse 2s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Sections */
.section {
  padding: 130px 4%;
  position: relative;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}
.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text p {
  font-size: 17px;
  color: var(--fg-soft);
  margin-bottom: 18px;
}
.about-text p:last-child { margin-bottom: 0; }

.about-card {
  background: linear-gradient(135deg, var(--card) 0%, #f9f5ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  transform-style: preserve-3d;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(108, 92, 231, 0.08), transparent 60%);
  pointer-events: none;
  transform: translateZ(0);
}
.about-card:hover {
  box-shadow: var(--shadow-lg);
}
.tilt-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
  transform: translateZ(40px);
  position: relative;
}
.stat {
  position: relative;
}
.stat .num {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1;
}
.stat > span:nth-child(2) {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-3);
  margin-left: 2px;
}
.stat p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat .num { font-size: 42px; }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(108, 92, 231, 0.12), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.3);
}
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.12), rgba(255, 107, 157, 0.12));
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 18px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.skill-card:hover .skill-icon {
  transform: rotate(-6deg) scale(1.05);
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
}
.skill-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--fg);
}
.skill-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Experience timeline */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project {
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 36px;
  align-items: start;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-3));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(108, 92, 231, 0.25);
}
.project:hover::before { opacity: 1; }
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.project-num {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}
.project-tag {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
}
.project-body { min-width: 0; }
.project-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--fg);
  transition: color 0.3s var(--ease);
}
.project:hover .project-title {
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.project-company {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}
.project-desc {
  color: var(--fg-soft);
  font-size: 15px;
  max-width: 600px;
}
.project-points {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}
.project-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.55;
}
.project-points li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.project-stack span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 12px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
  .project-stack { justify-content: flex-start; }
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.cert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cert-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15), transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 180, 216, 0.3);
}
.cert-card:hover::after {
  transform: translate(20%, -20%) scale(1.4);
}
.cert-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.cert-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--fg);
  position: relative;
  z-index: 1;
}
.cert-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* Contact */
.contact-inner {
  text-align: center;
  padding: 60px 0 60px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.06), rgba(255, 107, 157, 0.06));
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.contact-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.12), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 157, 0.12), transparent 40%);
  pointer-events: none;
}
.contact-inner > * { position: relative; z-index: 1; }
.contact-headline {
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--fg);
  padding: 0 20px;
}
.contact-sub {
  font-size: 17px;
  color: var(--fg-soft);
  max-width: 500px;
  margin: 0 auto 36px;
  padding: 0 20px;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 500;
  padding: 18px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 36px;
  color: var(--fg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact-mail:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--accent);
}
.contact-mail svg {
  transition: transform 0.3s var(--ease);
}
.contact-mail:hover svg {
  transform: translate(3px, -3px);
}
.socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 20px;
}
.socials a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-soft);
  position: relative;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: all 0.25s var(--ease);
  font-weight: 500;
}
.socials a::after {
  content: ' ↗';
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.socials a:hover {
  color: var(--accent);
  border-color: rgba(108, 92, 231, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.socials a:hover::after { transform: translate(2px, -2px); }

/* Footer */
.footer {
  padding: 32px 4%;
  border-top: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer a {
  color: var(--accent);
  font-weight: 500;
}

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