:root {
  --bg: #000;
  --surface: #050505;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --text: #fff;
  --muted: #c7c7c7;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #fff;
  --brand-strong: #d8d8d8;
  --accent: #f2f2f2;
  --success: #fff;
  --shadow: 0 18px 50px rgba(255, 255, 255, 0.055);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.045), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: #fff;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
}

.logo span {
  color: #dcdcdc;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: #e8e8e8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #fff;
}

.menu-btn {
  display: none;
  background: none;
  color: white;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
}

.hero {
  min-height: 100vh;
  padding: 128px 24px 72px;
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: center;
}

.tag,
.section-heading span {
  display: inline-block;
  color: #f4f4f4;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero .tag {
  text-transform: none;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 1;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #f1f1f1;
  margin-bottom: 20px;
  max-width: 780px;
}

.hero-text,
.availability {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.06rem;
}

.availability {
  color: var(--success);
  font-weight: 800;
  margin-top: 16px;
}

.hero-buttons,
.card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-buttons {
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn.small {
  min-height: 40px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}

.primary:hover {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-card,
.card,
.github-panel,
.contact-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
  text-align: center;
  max-width: 360px;
  width: 100%;
  margin: auto;
}

.profile-circle {
  width: 178px;
  height: 178px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #fff;
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.2);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}

.hero-card h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

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

.profile-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-tags span {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.section {
  padding: 88px 24px;
  max-width: 1180px;
  margin: auto;
}

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-heading.align-left {
  text-align: left;
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.dark {
  max-width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    var(--surface);
}

.dark > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.tech-grid,
.services-grid,
.goals-grid,
.about-pillars {
  display: grid;
  gap: 22px;
}

.tech-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.goals-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-pillars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.card,
.github-panel {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card {
  padding: 24px;
}

.card:hover,
.github-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.48);
}

.card h3,
.github-panel h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p,
.github-panel p {
  color: #c8c8c8;
}

.github-panel {
  max-width: 780px;
  margin: 0 auto;
  padding: 34px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.github-panel h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.github-panel p {
  max-width: 620px;
  margin: 0 auto 24px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skills {
  margin-top: 14px;
}

.skills span {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.card-actions {
  margin-top: auto;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 44px;
  align-items: start;
}

.about-text {
  color: #d0d0d0;
  font-size: 1.08rem;
}

.about-text p + p {
  margin-top: 18px;
}

.contact {
  text-align: center;
}

.contact-card {
  padding: 30px;
}

.email {
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: #fff;
  box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
}

footer {
  text-align: center;
  padding: 26px 18px;
  color: #a8a8a8;
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 1000px) {
  .nav-links {
    gap: 16px;
  }

  .hero,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    margin: 0;
  }

  .tech-grid,
  .services-grid,
  .goals-grid,
  .about-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-btn {
    display: block;
    cursor: pointer;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    background: #050505;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 10px 8px;
  }

  .tech-grid,
  .services-grid,
  .goals-grid,
  .about-pillars {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 18px;
  }

  .hero {
    padding: 112px 18px 58px;
  }
}

@media (max-width: 520px) {
  .nav {
    padding: 15px 18px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero h2 {
    font-size: 1.28rem;
  }

  .hero-buttons,
  .card-actions,
  .social-links {
    flex-direction: column;
  }

  .btn,
  .social-links a {
    width: 100%;
  }

  .hero-card,
  .contact-card,
  .github-panel,
  .card {
    padding: 22px;
  }
}
