@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --border: #1e1e2e;
  --text-primary: #e4e4ef;
  --text-secondary: #8888a4;
  --accent: #00d4aa;
  --accent-glow: rgba(0, 212, 170, 0.15);
  --accent-alt: #6c63ff;
  --radius: 16px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Grain 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Header ── */
header {
  position: relative;
  text-align: center;
  padding: 100px 24px 60px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow) 0%, transparent 70%),
    var(--bg-primary);
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

header h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

/* ── Main ── */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ── Profile image ── */
main > img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 0 6px var(--bg-primary),
    0 0 30px var(--accent-glow);
  align-self: center;
  margin-top: -24px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

main > img:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 0 6px var(--bg-primary),
    0 0 50px rgba(0, 212, 170, 0.25);
}

/* ── Sections ── */
section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: border-color 0.3s ease, transform 0.3s ease;
  animation: fadeInUp 0.8s ease-out both;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }

section:hover {
  border-color: rgba(0, 212, 170, 0.25);
  transform: translateY(-2px);
}

/* ── Section headings ── */
section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent);
  border-radius: 4px;
  flex-shrink: 0;
}

/* ── Paragraphs ── */
section p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

section p + p {
  margin-top: 12px;
}

/* ── Skills list ── */
section ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section ul li {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: background 0.3s ease, border-color 0.3s ease;
}

section ul li:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* ── Links ── */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 400;
  position: relative;
  transition: color 0.3s ease;
}

a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

a:hover {
  color: #33e0be;
}

/* ── mailto link special style ── */
a[href^="mailto:"] {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  padding: 2px 0;
  margin-left: 4px;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  header {
    padding: 72px 16px 44px;
  }

  main {
    padding: 40px 16px 60px;
    gap: 32px;
  }

  section {
    padding: 28px 22px;
  }

  section ul {
    flex-direction: column;
  }

  section ul li {
    text-align: center;
  }
}