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

:root {
  --bg: #0a0a0b;
  --bg-card: #141416;
  --bg-card-hover: #1a1a1e;
  --border: #232328;
  --text: #f0f0f2;
  --text-secondary: #8a8a96;
  --accent: #6c63ff;
  --accent-glow: rgba(108, 99, 255, 0.15);
  --green: #34d399;
  --orange: #fb923c;
  --pink: #f472b6;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled { border-bottom-color: var(--border); }

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.5px;
}

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

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* HERO */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content { width: 100%; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 32px;
}

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

.hero-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
}

.stat-number .plus { color: var(--accent); }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

/* SECTIONS */
section {
  padding: 50px 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 56px;
  line-height: 1.15;
}

/* PROJECTS */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

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

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

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 99, 255, 0.06) 100%);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
}

.project-links { display: flex; gap: 8px; }

.project-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.project-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.project-link svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

.project-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* EXPERIENCE */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  transition: background 0.3s;
}

.timeline-item:last-child { border-bottom: 1px solid var(--border); }

.timeline-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding-top: 4px;
}

.timeline-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-top: 8px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-content .role {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-content li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
}

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

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

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

.skill-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.skill-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.skill-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s;
}

.edu-card:hover { border-color: var(--accent); }

.edu-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.edu-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.edu-card .institution {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.edu-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-left p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.footer-link:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.footer-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
}

/* ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }
  .nav-toggle { display: flex; }

  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 32px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: auto; }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .edu-grid { grid-template-columns: 1fr; }

  section { padding: 80px 0; }

  .footer-content { flex-direction: column; text-align: center; }
}
