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

:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --surface2: #22222f;
  --accent: #7c6af7;
  --accent2: #a78bfa;
  --text: #e8e8f0;
  --muted: #8888a8;
  --border: #2e2e42;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent2);
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 30%,
    rgba(124, 106, 247, 0.18),
    transparent 70%
  );
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 680px;
}
.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 40px rgba(124, 106, 247, 0.35);
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
}
h1 span {
  color: var(--accent2);
}
.tagline {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  color: var(--muted);
}
.roles {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 2rem;
}
.role-tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent2);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
}
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  padding: 0.65rem 1.6rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124, 106, 247, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-2px);
}

/* ── SECTIONS ── */
section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── BIO ── */
#about .bio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.bio-text p + p {
  margin-top: 0.8rem;
}
.bio-text p {
  color: var(--muted);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 2fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 106, 247, 0.2);
}
.project-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.project-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.project-card p {
  font-size: 0.88rem;
  color: var(--muted);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.tag {
  background: var(--surface2);
  color: var(--accent2);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}
.project-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.project-links a {
  font-size: 0.82rem;
  color: var(--accent2);
  text-decoration: none;
}
.project-links a:hover {
  text-decoration: underline;
}

/* ── CONTACT ── */
#contact {
  text-align: center;
}
#contact p {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 460px;
  margin-inline: auto;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
.social-btn:hover {
  border-color: var(--accent2);
  color: var(--accent2);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  #about .bio-card {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}

/* ── ANIMATIONS ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s,
    transform 0.6s;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
