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

:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --accent: #6c63ff;
  --accent2: #a78bfa;
  --text: #f0eff8;
  --muted: #8b8a9e;
  --border: rgba(108,99,255,0.15);
  --card: rgba(255,255,255,0.03);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 6% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute; bottom: -100px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(167,139,250,0.07) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem; font-weight: 500;
  color: var(--accent2);
  margin-bottom: 2rem;
  letter-spacing: 0.5px;
  animation: fadeUp 0.6s ease both;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 .line2 { color: var(--accent); }

.hero-desc {
  font-size: 1.1rem; color: var(--muted);
  max-width: 520px; margin-bottom: 2.5rem;
  font-weight: 300; line-height: 1.8;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.8rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer; border: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
section { padding: 6rem 6%; }

.section-label {
  font-size: 0.75rem; font-weight: 500;
  color: var(--accent2); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 1rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted); font-size: 1rem;
  max-width: 520px; margin-bottom: 3.5rem;
  font-weight: 300;
}

/* SKILLS */
.skills-section { background: var(--bg2); }

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

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: rgba(108,99,255,0.4);
  transform: translateY(-4px);
  background: rgba(108,99,255,0.05);
}

.skill-icon {
  width: 44px; height: 44px;
  background: rgba(108,99,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 1rem;
}

.skill-name {
  font-family: 'Syne', sans-serif;
  font-weight: 600; font-size: 1rem;
  margin-bottom: 0.5rem;
}

.skill-desc {
  color: var(--muted); font-size: 0.85rem;
  line-height: 1.6;
}

.skill-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 1rem;
}

.tag {
  background: rgba(108,99,255,0.1);
  border: 1px solid rgba(108,99,255,0.2);
  color: var(--accent2);
  font-size: 0.75rem; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
}

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

.project-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative; overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover { transform: translateY(-6px); border-color: rgba(108,99,255,0.35); }
.project-card:hover::before { opacity: 1; }

.project-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem; font-weight: 800;
  color: rgba(108,99,255,0.15);
  line-height: 1; margin-bottom: 1rem;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  color: var(--muted); font-size: 0.9rem;
  line-height: 1.7; margin-bottom: 1.5rem;
}

.project-links { display: flex; gap: 1rem; }

.project-link {
  font-size: 0.8rem; font-weight: 500;
  color: var(--accent2); text-decoration: none;
  display: flex; align-items: center; gap: 4px;
  transition: color 0.2s;
}
.project-link:hover { color: var(--text); }

/* ABOUT */
.about-section { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}

.about-text p {
  color: var(--muted); font-size: 1rem;
  line-height: 1.9; margin-bottom: 1.2rem;
  font-weight: 300;
}

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  color: var(--accent2);
}

.stat-label {
  font-size: 0.8rem; color: var(--muted);
  margin-top: 0.3rem;
}

/* CONTACT */
.contact-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
}

.contact-links {
  display: flex; justify-content: center;
  gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem;
}

/* FOOTER */
footer {
  padding: 2rem 6%;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

footer p { color: var(--muted); font-size: 0.85rem; }

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--muted); font-size: 0.85rem;
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent2); }

/* DIVIDER */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 6%;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  h1 { letter-spacing: -1px; }
}
