:root {
  --bg-0: #050b16;
  --bg-1: #0b1728;
  --surface: rgba(18, 30, 51, 0.72);
  --surface-strong: rgba(24, 39, 65, 0.88);
  --text-main: #f1f5ff;
  --text-soft: #b9c6df;
  --line: rgba(178, 198, 235, 0.22);
  --brand: #4ee2b7;
  --brand-strong: #2ac399;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  color: var(--text-main);
  font-family: "Overused Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(
      circle at 88% 16%,
      rgba(78, 226, 183, 0.16),
      transparent 42%
    ),
    radial-gradient(
      circle at 12% 84%,
      rgba(64, 138, 255, 0.18),
      transparent 36%
    ),
    linear-gradient(140deg, var(--bg-0), var(--bg-1) 62%);
}

.background {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 18px;
}

.content {
  width: 100%;
  max-width: 960px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(15, 24, 42, 0.66),
    rgba(7, 13, 25, 0.74)
  );
  backdrop-filter: blur(8px);
  box-shadow: 0 26px 68px rgba(2, 8, 18, 0.45);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav img {
  width: 140px;
}

.lang-toggle {
  border: 1px solid rgba(78, 226, 183, 0.52);
  background: rgba(78, 226, 183, 0.14);
  color: #d7ffef;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
}

.lang-toggle:hover {
  background: rgba(78, 226, 183, 0.28);
  border-color: rgba(78, 226, 183, 0.78);
  transform: translateY(-1px);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.main {
  text-align: center;
  margin-top: 48px;
}

.main .icon img {
  width: 120px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
}

.main h1 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin: 0 0 12px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.main p {
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--text-soft);
  max-width: 68ch;
  margin: 0 auto;
}

.profile {
  text-align: center;
  margin-top: 68px;
}

.profile-photo {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid rgba(78, 226, 183, 0.34);
  box-shadow: 0 8px 24px rgba(1, 6, 13, 0.35);
}

.profile h2,
.projects h2,
.blog h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}

.profile p {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--text-soft);
  line-height: 1.6;
}

.projects,
.blog {
  margin-top: 60px;
}

.section-gap {
  margin-top: 68px;
}

.section-end-gap {
  margin-top: 80px;
}

.card-gap {
  margin-top: 20px;
}

.project-item,
.blog-item {
  background: linear-gradient(170deg, var(--surface), var(--surface-strong));
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 14px;
  margin-bottom: 20px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.project-item h3,
.blog-item h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.project-item p,
.blog-item p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.project-main-link {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.project-main-link:hover {
  color: var(--brand);
  border-color: rgba(78, 226, 183, 0.45);
}

.project-submenu {
  margin-top: 6px;
  font-size: 0.98rem;
}

.project-submenu a {
  color: #d9e7ff;
  text-decoration-color: rgba(217, 231, 255, 0.36);
  text-underline-offset: 2px;
}

.project-submenu a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}

.project-item:hover,
.blog-item:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 226, 183, 0.45);
  box-shadow: 0 10px 26px rgba(3, 10, 20, 0.42);
}

.footer {
  text-align: center;
  margin-top: 80px;
  color: var(--text-soft);
  font-size: 14px;
}

@media (max-width: 720px) {
  .background {
    padding: 16px 10px;
  }

  .content {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .nav img {
    width: 122px;
  }

  .main {
    margin-top: 34px;
  }

  .main .icon img {
    width: 96px;
  }

  .profile,
  .section-gap {
    margin-top: 52px;
  }

  .project-item,
  .blog-item {
    padding: 16px;
  }
}
