:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --card: #1e293b;
  --line: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-hover: #0ea5e9;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  --radius: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  border-radius: 18px;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 40px;
  font-size: 18px;
}

.header {
  backdrop-filter: blur(12px);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 24px;
}

.header__controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.lang-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switcher button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.lang-switcher button.is-active {
  color: #06202c;
  background: var(--accent);
}

.hero {
  padding: 72px 0 88px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
  margin-bottom: 20px;
}

.hero p {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  color: #06202c;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(255, 255, 255, 0.03);
}

.hero-card {
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.95),
    rgba(15, 23, 42, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  margin-bottom: 20px;
}

.hero-card__title {
  font-size: 22px;
  margin-bottom: 8px;
}

.hero-card__text {
  color: var(--muted);
}

.skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 22px;
  font-weight: 700;
  text-align: center;
}

.projects {
  display: grid;
  gap: 28px;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.project__image {
  overflow: hidden;
  border-radius: 20px;
}

.project__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project__title {
  font-size: 30px;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.project__text {
  color: var(--muted);
  margin-bottom: 18px;
}

.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

.project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.about-card {
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
}

.about-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.about-card p,
.about-card li {
  color: var(--muted);
}

.about-card ul {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.contact {
  text-align: center;
  padding-bottom: 96px;
}

.contact-box {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.95),
    rgba(15, 23, 42, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: var(--shadow);
}

.contact-box p {
  color: var(--muted);
  margin: 14px auto 28px;
  max-width: 560px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.contact-links .btn {
  width: 100%;
  min-height: 58px;
}

.contact-details {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.contact-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  padding: 16px 24px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.contact-detail:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(
    180deg,
    rgba(56, 189, 248, 0.12),
    rgba(255, 255, 255, 0.04)
  );
}

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .hero__grid,
  .project,
  .about {
    grid-template-columns: 1fr;
  }

  .skills {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .header__inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .header__controls {
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }

  .hero {
    padding-top: 40px;
  }

  .section {
    padding: 72px 0;
  }

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

  .project,
  .hero-card,
  .about-card,
  .contact-box {
    padding: 20px;
  }

  .contact-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-detail {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .contact-links {
    grid-template-columns: 1fr;
  }
}
