:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #111827;
  --surface-strong: #181f2f;
  --surface-soft: #151a26;
  --text: #f7fbff;
  --muted: #9aa5b4;
  --accent: #3dd5ff;
  --accent-soft: rgba(61, 213, 255, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(61, 213, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #09101d 0%, #070b14 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav__link {
  position: relative;
  color: var(--muted);
  transition: color 0.25s ease;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.burger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.section {
  padding: 80px 0;
}

.section__inner {
  display: grid;
  gap: 2rem;
}

.section__header {
  max-width: 680px;
}

.section__label {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 2.6vw, 3rem);
}

h3 {
  font-size: 1.15rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__text p {
  max-width: 720px;
  margin: 1.8rem 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #1f9cfe);
  color: #040b15;
}

.btn--secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost {
  display: inline-block;
  color: var(--accent);
  border: 1px solid rgba(61, 213, 255, 0.4);
  background: transparent;
  padding: 0.9rem 1.3rem;
}

.hero__box {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hero__stat {
  padding: 1.35rem 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.hero__stat span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.hero__stat p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.about__grid,
.skills__grid,
.blog__grid,
.projects__grid,
.contact__grid {
  display: grid;
  gap: 1.6rem;
}

.about__grid {
  grid-template-columns: 1.5fr 1fr;
}

.about__card,
.about__list,
.skill-card,
.blog-card,
.project-card,
.contact__info,
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.about__list h3 {
  margin-bottom: 1rem;
}

.about__list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  list-style: none;
}

.about__list li {
  color: var(--muted);
}

.skills__grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.skill-card {
  min-height: 190px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(61, 213, 255, 0.4);
  background: rgba(61, 213, 255, 0.08);
}

.skill-card p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.blog__grid,
.projects__grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.blog-card,
.project-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card p,
.project-card p {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.contact__grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact__info h3 {
  margin-bottom: 1rem;
}

.contact__info ul {
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.contact__info a {
  color: var(--accent);
}

.contact__form label {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.contact__form span {
  color: var(--muted);
  font-size: 0.95rem;
}

.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-color: rgba(61, 213, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(61, 213, 255, 0.12);
}

.form__note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

.delay-4 {
  transition-delay: 0.48s;
}

.delay-5 {
  transition-delay: 0.6s;
}

.delay-6 {
  transition-delay: 0.72s;
}

.delay-7 {
  transition-delay: 0.84s;
}

.delay-8 {
  transition-delay: 0.96s;
}

.delay-9 {
  transition-delay: 1.08s;
}

@media (max-width: 1024px) {
  .hero__content,
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .blog__grid,
  .projects__grid,
  .skills__grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 780px) {
  .header__inner {
    gap: 0.75rem;
  }

  .nav {
    position: fixed;
    top: 76px;
    right: 0;
    width: min(280px, 100%);
    height: calc(100vh - 76px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    background: rgba(7, 11, 20, 0.96);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    visibility: hidden;
    opacity: 0;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .burger {
    display: flex;
  }

  .nav__link {
    font-size: 1rem;
  }

  .hero__content {
    gap: 1.5rem;
  }

  .blog__grid,
  .projects__grid,
  .skills__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 60px 0;
  }

  .logo {
    font-size: 1rem;
  }

  .hero__text p,
  .blog-card p,
  .project-card p {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
  }
}
