/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:    #6366f1;
  --primary-d:  #4f46e5;
  --bg:         #0f0f1a;
  --bg-alt:     #16162a;
  --surface:    #1e1e35;
  --border:     #2e2e50;
  --text:       #e2e2f0;
  --text-muted: #8888aa;
  --radius:     12px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

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

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(15, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 6rem 2.5rem 4rem;
  background: radial-gradient(ellipse at 60% 40%, rgba(99,102,241,0.12) 0%, transparent 65%);
}

.hero-content { max-width: 560px; }

.hero-tag {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 30%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-role {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--primary);
  font-weight: 500;
  margin: 0.5rem 0 1.25rem;
}

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

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-block;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-d); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Hero avatar */
.hero-avatar { flex-shrink: 0; }

.avatar-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-d), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 60px rgba(99,102,241,0.35);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* ── SECTIONS ── */
.section { padding: 5rem 2.5rem; }
.section-alt { background: var(--bg-alt); }

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

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0.6rem auto 2.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

.about-details {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about-details li {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.detail-label {
  background: var(--surface);
  color: var(--primary);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 90px;
  text-align: center;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-item { display: flex; flex-direction: column; gap: 0.25rem; }

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label { color: var(--text-muted); font-size: 0.9rem; }

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

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-card:hover { border-color: var(--primary); transform: translateY(-4px); }

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

.skill-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.skill-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.skill-card li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.skill-card li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover { border-color: var(--primary); transform: translateY(-4px); }

.project-header { margin-bottom: 0.75rem; }

.project-tag {
  background: rgba(99,102,241,0.15);
  color: var(--primary);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-card-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  border-style: dashed;
  color: var(--text-muted);
  cursor: default;
}

.add-icon {
  font-size: 2.5rem;
  color: var(--border);
  font-weight: 300;
}

.project-github-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.project-github-link:hover { color: #818cf8; }

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.contact-card:hover { border-color: var(--primary); transform: translateY(-4px); }

.contact-icon { font-size: 2rem; }
.contact-label { font-size: 0.8rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.contact-value { font-size: 0.85rem; color: var(--text-muted); word-break: break-all; }

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

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .hero { flex-direction: column-reverse; text-align: center; gap: 2rem; padding: 5rem 1.25rem 3rem; }
  .hero-btns { justify-content: center; }
  .avatar-circle { width: 150px; height: 150px; font-size: 2.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.25rem; }
}
