/* Progressive enhancements for the supplied ozodbek portfolio. */
:root {
  scroll-padding-top: 108px;
}

#asosiy,
#xizmatlar,
#aloqa {
  scroll-margin-top: 104px;
}

/* A large, quiet web spans the entire canvas without competing with text. */
.web {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: screen;
}

header {
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.98), rgba(6, 8, 12, 0.72) 72%, transparent);
}

nav a {
  white-space: nowrap;
}

.card {
  position: relative;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -72px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(94, 231, 255, 0.075);
  border-radius: 50%;
  pointer-events: none;
}

.card-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 0 22px;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(94, 231, 255, 0.16));
}

.card > span {
  display: inline-block;
  padding: 5px 8px;
  border: 1px solid rgba(94, 231, 255, 0.18);
  background: rgba(94, 231, 255, 0.035);
}

.contact .btn {
  margin-top: 4px;
}

footer {
  padding: 36px 5vw 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.12), rgba(6, 8, 12, 0.76));
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: left;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1200px, 100%);
  margin: 0 auto;
}

.footer-brand {
  color: #aeb8c1;
  font-family: var(--mono);
  letter-spacing: 0.25em;
}

.footer-brand i {
  color: var(--accent);
  font-style: normal;
}

.footer-note {
  display: block;
  margin-top: 9px;
  color: #59636f;
  font-size: 9px;
  letter-spacing: 0.18em;
}

nav.social-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
}

nav.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav.social-links a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.social-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.social-icon.fill {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 760px) {
  .web {
    opacity: 0.13;
  }

  .footer-inner {
    gap: 24px;
  }
}

@media (max-width: 520px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 5vw 18px;
    background: rgba(6, 8, 12, 0.92);
    border-bottom: 1px solid rgba(120, 160, 180, 0.08);
  }

  nav:not(.social-links) {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  nav:not(.social-links) a {
    font-size: 9px;
    letter-spacing: 0.13em;
  }

  .hero {
    padding-top: 152px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  nav.social-links {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
