:root {
  --bg: #060816;
  --bg-2: #10172c;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #f7f9ff;
  --text-muted: #9aa4be;
  --line: rgba(255, 255, 255, 0.12);
  --primary: #6c7cff;
  --secondary: #27d6b3;
  --accent: #9b5cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg), var(--bg-2));
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  z-index: -1;
}

.glow-1 {
  background: var(--primary);
  top: -5rem;
  left: -6rem;
}

.glow-2 {
  background: var(--accent);
  bottom: 10rem;
  right: -4rem;
}

.hero {
  min-height: 100vh;
  padding: 1.5rem 5vw 4rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0 2rem;
}

.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 2rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  color: var(--secondary);
  letter-spacing: 0.21em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 740px;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 30px rgba(108, 124, 255, 0.25);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-badges span {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual img {
  width: min(100%, 480px);
  margin-left: auto;
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.section {
  padding: 4rem 5vw;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  margin-bottom: 0.5rem;
}

.intro p,
.timeline-card li,
.project-card p,
.skill-card p,
.education-card p,
.cert-card,
.contact-grid a,
.github-links a {
  color: var(--text-muted);
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  backdrop-filter: blur(16px);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-card,
.project-card,
.skill-card,
.education-card,
.cert-card,
.github-card,
.contact-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.3rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.8rem;
}

.timeline-head h3,
.project-top h3,
.skill-card h3,
.education-card h3 {
  margin-bottom: 0.2rem;
}

.company,
.project-type {
  color: var(--secondary);
  font-weight: 600;
}

.timeline-card ul {
  padding-left: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.project-card.featured {
  border-color: rgba(108, 124, 255, 0.45);
}

.project-top {
  margin-bottom: 0.7rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.chip-row span {
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(39, 214, 179, 0.14);
  color: var(--secondary);
  font-size: 0.84rem;
}

.project-card a {
  color: var(--secondary);
  font-weight: 700;
}

.skills-grid,
.education-grid,
.cert-grid,
.github-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.github-section {
  padding-top: 1rem;
}

.stat-card h3 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.github-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.github-links a,
.contact-grid a {
  display: inline-block;
  color: var(--text);
  border: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

footer {
  text-align: center;
  padding: 2rem 5vw 3rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .hero-content,
  .about-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 1rem 1.2rem 3rem;
  }

  .nav-links {
    gap: 0.7rem;
  }

  .section {
    padding: 3rem 1.2rem;
  }

  .timeline-head {
    flex-direction: column;
  }
}
