:root {
  --bg: #0a0a0f;
  --surface: #111118;
  --border: rgba(255,255,255,0.08);
  --accent: #6366f1;
  --accent2: #818cf8;
  --text: #e2e8f0;
  --muted: #64748b;
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent2);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

/* SECTIONS */
section {
  padding: 100px 24px;
}

section:first-of-type { padding-top: 0; }

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  color: #fff;
}

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

/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 80px;
}

.hero-content { flex: 1; }

.greeting {
  color: var(--accent2);
  font-size: 1.1rem;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1.3rem;
  color: var(--accent2);
  font-weight: 400;
  margin-bottom: 16px;
}

.hero-desc {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
  font-size: 1rem;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--accent2); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  padding: 12px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--accent2); color: var(--accent2); }

/* Avatar */
.hero-visual { flex-shrink: 0; }

.avatar-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), #ec4899, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 6s linear infinite;
}

@keyframes rotate { to { transform: rotate(360deg); } }

.avatar-initials {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent2);
  animation: rotate 6s linear infinite reverse;
}

/* ABOUT */
#about { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 1rem;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
}

.stat-box span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent2);
}

.stat-box small { color: var(--muted); font-size: 0.78rem; }

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.skill-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.skill-icon { font-size: 2rem; margin-bottom: 12px; }

.skill-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.skill-card p { color: var(--muted); font-size: 0.85rem; }

/* PROJECTS */
#projects { background: var(--surface); }

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

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.project-icon { font-size: 1.8rem; }

.project-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}

.project-links a:hover { color: var(--accent2); border-color: var(--accent2); }

.project-card h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 8px;
}

.project-card p {
  color: var(--muted);
  font-size: 0.85rem;
  flex: 1;
  margin-bottom: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  background: rgba(99,102,241,0.15);
  color: var(--accent2);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* CONTACT */
.contact-inner { text-align: center; }

.contact-subtext {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 32px;
}

.contact-links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.contact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.2s, color 0.2s;
}

.contact-btn:hover { border-color: var(--accent2); color: var(--accent2); }

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

/* RESPONSIVE */
@media (max-width: 768px) {
  #hero { flex-direction: column; text-align: center; gap: 32px; padding: 100px 24px 60px; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-btns { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { flex-direction: row; justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(10,10,15,0.98);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
}
