@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v24-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v24-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v24-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../assets/fonts/poppins-v24-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-RD-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-RD-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-RD-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn-RD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: 40 10% 4%;
  --foreground: 38 33% 93%;
  --card: 40 8% 8%;
  --card-foreground: 38 33% 93%;
  --primary: 42 50% 55%;
  --primary-foreground: 40 10% 4%;
  --muted: 40 6% 14%;
  --muted-foreground: 38 15% 55%;
  --border: 40 8% 16%;
  --radius: 0.75rem;
  --font-vazir: "Vazirmatn", sans-serif;
  --font-poppins: "Poppins", sans-serif;
}

.light {
  --background: 40 20% 97%;
  --foreground: 40 10% 8%;
  --card: 0 0% 100%;
  --card-foreground: 40 10% 8%;
  --primary: 42 50% 45%;
  --primary-foreground: 0 0% 100%;
  --muted: 40 10% 92%;
  --muted-foreground: 40 8% 45%;
  --border: 40 15% 88%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-poppins);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[dir="rtl"] {
  font-family: var(--font-vazir);
}

body.menu-open {
  overflow: hidden;
}

img,
svg,
iframe {
  display: block;
}

img {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
textarea {
  color: hsl(var(--foreground));
}

::selection {
  background: hsl(var(--primary) / 0.3);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--primary) / 0.4);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.6);
}

.font-poppins {
  font-family: var(--font-poppins);
}

.font-vazir {
  font-family: var(--font-vazir);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, 80rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, 64rem);
  margin-inline: auto;
}

.container-form {
  width: min(100% - 2rem, 34rem);
  margin-inline: auto;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-primary {
  color: hsl(var(--primary));
}

.glass {
  background: hsl(var(--background) / 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatDot {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  animation: fadeUp 650ms ease forwards;
}

.fade-in {
  animation: fadeIn 400ms ease forwards;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: hsl(var(--background));
}

main {
  flex: 1;
}

.page-content {
  min-height: 100vh;
  padding-block: 6rem 5rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
