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

:root {
  --bg: #0d0f17;
  --surface: #191b24;
  --surface-light: #22242f;
  --accent: #bdf077;
  --accent-dim: rgba(189, 240, 119, 0.15);
  --accent2: #8F79C9;
  --text: #e8eaf0;
  --muted: #b8b8c8;
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SN Pro', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(50, 52, 62, 0.45) 1px, var(--bg) 1px);
  background-size: 24px 24px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 15, 23, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(189, 240, 119, 0.08);
}

.navbar__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: box-shadow 0.3s;
}

.navbar__logo:hover {
  box-shadow: 0 0 14px rgba(189, 240, 119, 0.5);
}

.navbar__links {
  display: flex;
  gap: 2rem;
}

.navbar__link {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.25s;
}

.navbar__link:hover {
  color: var(--accent);
}

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* Photo */
.hero__photo-wrapper {
  margin-bottom: 1rem;
}

.hero__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow:
    0 0 20px rgba(189, 240, 119, 0.25),
    0 0 60px rgba(189, 240, 119, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: neonPulse 3s ease-in-out infinite;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: 'SN Pro', system-ui, sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--accent);
  background: var(--surface);
}

@keyframes neonPulse {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(189, 240, 119, 0.25),
      0 0 60px rgba(189, 240, 119, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(189, 240, 119, 0.4),
      0 0 80px rgba(189, 240, 119, 0.18);
  }
}

.hero__name {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.hero__title {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.hero__location {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.hero__quote {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--muted);
  max-width: 400px;
}

/* ========== Sections (shared) ========== */
.section {
  padding: 6rem 0;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--text);
  text-align: center;
}

.section__title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin: 0.6rem auto 0;
}

/* ========== About ========== */
.about {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

.about__content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: center;
}

.about__content p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
}

.about__traits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.trait {
  background: var(--surface-light);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.trait:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(189, 240, 119, 0.15);
}

/* ========== Skills ========== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.skills__grid--4 {
  grid-template-columns: repeat(2, 1fr);
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(189, 240, 119, 0.12);
}

.skill-card__icon {
  font-size: 2.2rem;
}

.skill-card__title {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}

.skill-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ========== Footer ========== */
.footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(189, 240, 119, 0.08);
}

.footer__text {
  font-family: 'JetBrains Mono', Menlo, monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ========== Reveal animation ========== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children */
.skills__grid .reveal:nth-child(1) { transition-delay: 0.04s; }
.skills__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.skills__grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.skills__grid .reveal:nth-child(4) { transition-delay: 0.16s; }
.skills__grid .reveal:nth-child(5) { transition-delay: 0.20s; }
.skills__grid .reveal:nth-child(6) { transition-delay: 0.24s; }
.skills__grid .reveal:nth-child(7) { transition-delay: 0.28s; }
.skills__grid .reveal:nth-child(8) { transition-delay: 0.32s; }
.skills__grid .reveal:nth-child(9) { transition-delay: 0.36s; }

/* ========== Responsive ========== */
@media (min-width: 640px) {
  .hero__name {
    font-size: 3.75rem;
  }

  .hero__title {
    font-size: 1.1rem;
  }

  .section__title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero__name {
    font-size: 4.5rem;
  }

  .skills__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills__grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
