* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1120;
  --bg-soft: #111827;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: #ffffff;
  --text: #e5eefc;
  --text-dark: #10203a;
  --muted: #b8c4dc;
  --primary: #4f8cff;
  --primary-strong: #2563eb;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 45px rgba(10, 18, 35, 0.18);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.22), transparent 35%),
    linear-gradient(180deg, #09111f 0%, #0f172a 28%, #f3f7ff 28%, #eef4ff 100%);
  color: var(--text-dark);
  line-height: 1.6;
}

header {
  color: var(--text);
  min-height: 100vh;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(9, 17, 31, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

nav ul li a {
  color: #e7efff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav ul li a:hover {
  color: #8eb7ff;
}

.burger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

.hero {
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding: 60px 0 90px;
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker,
.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.eyebrow {
  color: #d6e6ff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #4f8cff, #2563eb);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.hero-tags,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.pill-list span {
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #edf4ff;
}

section {
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--primary-strong);
  background: rgba(37, 99, 235, 0.1);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.about-card,
.info-card,
.project-card,
.contact-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(132, 156, 196, 0.22);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.about-card,
.contact-card {
  padding: 30px;
}

.about-card p + p {
  margin-top: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  margin-bottom: 8px;
}

.info-card p {
  color: #40516f;
  margin-bottom: 18px;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-logo {
  width: 52px;
  height: 52px;
  padding: 8px;
  background: #f7faff;
  border-radius: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-logo:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.16);
}

.pill-list span {
  background: rgba(37, 99, 235, 0.08);
  color: #21407a;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #4f8cff, #1d4ed8);
}

.project-card h3 {
  margin: 12px 0 10px;
  font-size: 1.22rem;
}

.project-card p,
.project-card li {
  color: #3e506d;
}

.project-card ul {
  margin-top: 14px;
  padding-left: 18px;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
}

.project-card a:hover {
  text-decoration: underline;
}

.project-badge {
  color: #123a85;
  background: rgba(37, 99, 235, 0.09);
}

.featured-project {
  grid-column: span 2;
}

.contact-card {
  text-align: center;
}

.contact-card p {
  color: #40516f;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f4fd8, #326dff);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.contact-links a img {
  width: 18px;
  height: 18px;
}

footer {
  background: #08111e;
  color: #d8e5fb;
  text-align: center;
  padding: 24px;
}

@media screen and (max-width: 900px) {
  .skills-grid,
  .projects-container {
    grid-template-columns: 1fr;
  }

  .featured-project {
    grid-column: span 1;
  }
}

@media screen and (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .burger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    position: absolute;
    top: 72px;
    right: 20px;
    width: min(260px, calc(100% - 40px));
    padding: 18px;
    border-radius: 18px;
    background: rgba(9, 17, 31, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  }

  nav ul.active {
    display: flex;
  }

  .hero {
    padding: 42px 0 70px;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  section {
    padding: 60px 0;
  }

  .about-card,
  .info-card,
  .project-card,
  .contact-card {
    padding: 22px;
  }
}
