@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

html {
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--font-color);
  font-size: clamp(1.1rem, 1vw + 0.9rem, 1.425rem);
  background:
    radial-gradient(ellipse at center, transparent 72%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(rgba(14, 14, 23, 0.82), rgba(14, 14, 23, 0.82)),
    linear-gradient(to bottom, var(--project-red) 0, var(--project-dark) 40%);
  background-repeat: no-repeat;
}

a {
  color: var(--project-cyan);
  border-block-end: var(--border-w) solid transparent;
  padding-block: 0.25rem;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--project-cyan);
  border-block-end-color: currentColor;
  text-decoration: none;
}

a:focus-visible,
.grade-input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  min-height: var(--nav-h);
  border-bottom: 0.125rem solid var(--project-red);
  background: rgba(14, 14, 23, 0.88);
  backdrop-filter: blur(10px);
}

.navbar .nav-link {
  color: var(--project-cyan);
  border-block-end: var(--border-w) solid transparent;
  padding-block: 0.25rem;
  padding-inline: 0;
  text-decoration: none;
}

.nav-form {
  display: inline;
  margin: 0;
}

.nav-button {
  appearance: none;
  border-block-start: 0;
  border-inline: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus-visible,
.navbar .nav-link[aria-current='page'] {
  color: var(--project-cyan);
  border-block-end-color: var(--project-cyan);
}

footer {
  border-top: 0.125rem solid var(--project-red);
  color: var(--font-color);
}

.home-header,
.home-header-2,
.profile-header,
.profile-header-2 {
  min-height: calc(100dvh - var(--nav-h));
}

.home-header {
  margin-bottom: 12vh;
}

.home-header h1,
.profile-header h1 {
  font-size: clamp(2.2rem, 12vw, 10rem);
  line-height: 0.95;
  word-break: break-word;
  font-weight: 900;
  margin: 0;
}

.home-header-2 {
  margin-block: 18vh 12vh;
}

.home-header-2 h2,
.blog-header h1 {
  font-size: clamp(1.8rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  word-break: break-word;
  hyphens: auto;
  margin: 0;
}

.hz-logo {
  height: clamp(5rem, 12vw, 10rem);
  width: auto;
  display: block;
}

.profile-header {
  margin-block: 12vh 20vh;
}

.profile-avatar {
  height: clamp(10rem, 28vw, 20rem);
  width: auto;
  display: block;
}

.profile-header-2 {
  margin-block: 8vh 20vh;
}

.typing-line {
  display: flex;
  align-items: center;
  color: var(--font-color);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.prompt {
  color: var(--font-color);
  margin-right: 0.5rem;
  font-weight: 600;
}

.typing-text,
.cursor {
  color: var(--font-color);
}

.cursor {
  animation: cursor-blink 1s infinite;
  margin-left: 0.125rem;
}

@keyframes cursor-blink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

#why-fit {
  margin-bottom: 2rem;
}

#eye-contact {
  float: right;
  width: min(25vw, 18rem);
  height: auto;
  margin: 0 0 1rem 1.5rem;
}

.scroll-indicator {
  position: absolute;
  bottom: 14vh;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.scroll-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.scroll-arrow span {
  width: 0.1875rem;
  height: 1.25rem;
  background: var(--project-cyan);
  margin: 0.125rem 0;
  border-radius: 0.125rem;
  animation: scroll-bounce 2s infinite;
}

.scroll-arrow span:nth-child(2) {
  animation-delay: 0.2s;
}

.scroll-arrow span:nth-child(3) {
  animation-delay: 0.4s;
}

.scroll-text {
  color: var(--project-cyan);
  font-size: 0.9rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.0625rem;
}

@keyframes scroll-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  40% {
    opacity: 1;
    transform: scaleY(1.5);
  }
}

.blog-header {
  margin-block: 2vh 10vh;
}

.faq {
  margin-top: 12vh;
}

.flash-region {
  margin-top: 1rem;
}

.flash-message {
  max-width: 42rem;
  margin-inline: auto;
  padding: 0.75rem 1rem;
  border: 1px solid var(--project-cyan);
  background: rgba(14, 14, 23, 0.78);
}

.flash-message--error {
  border-color: var(--project-red);
}

.auth-page {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(100%, 28rem);
}

.auth-panel h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 900;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.35rem;
}

.auth-field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--project-cyan);
  color: var(--font-color);
  background: rgba(14, 14, 23, 0.78);
}

.auth-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--project-cyan);
  color: var(--font-color);
  background: rgba(14, 14, 23, 0.78);
  resize: vertical;
}

.auth-field input:focus-visible,
.auth-field textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.auth-field [aria-invalid='true'] {
  border-color: var(--project-red);
}

.field-error {
  color: var(--project-red);
  font-size: 0.95rem;
}

.required-marker {
  color: var(--project-red);
}

.auth-button {
  width: fit-content;
  padding: 0.55rem 1rem;
  border: 1px solid var(--project-cyan);
  color: var(--project-cyan);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.auth-button:hover,
.auth-button:focus-visible {
  color: var(--project-dark);
  background: var(--project-cyan);
}

.manage-action-link {
  color: var(--project-cyan);
}

.manage-list {
  display: grid;
  gap: 1rem;
}

.manage-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.manage-list-item h2 {
  margin-bottom: 0.25rem;
}

.manage-list-item p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.manage-list-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.manage-list-actions form {
  margin: 0;
}

.manage-form {
  display: grid;
  gap: 1rem;
}

.manage-form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-modal[hidden] {
  display: none;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.66);
}

.site-modal__panel {
  position: relative;
  width: min(100%, 30rem);
  padding: 1.5rem;
  border: 1px solid var(--project-cyan);
  background: var(--project-dark);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.42);
}

.site-modal__panel h2 {
  margin-bottom: 0.75rem;
}

.site-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.25rem;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  min-width: 46rem;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

.dashboard-table th,
.dashboard-table td {
  padding: clamp(0.4rem, 1.8vw, 0.6rem) clamp(0.5rem, 2.4vw, 0.8rem);
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  vertical-align: middle;
  background: transparent;
  overflow-wrap: anywhere;
}

.dashboard-table .dashboard-table-head th {
  text-align: left;
  font-weight: 700;
  color: var(--font-color);
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

.grade-input {
  width: 5rem;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.25rem;
  color: var(--font-color);
  background: transparent;
  font-size: inherit;
  text-align: center;
}

.grade-input:focus {
  border-color: var(--project-cyan);
  background: rgba(255, 255, 255, 0.1);
}

.grade-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.dashboard-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.dashboard-edit-button {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--project-cyan);
  border-radius: 0.25rem;
  color: var(--project-cyan);
  background: transparent;
  font: inherit;
}

.dashboard-edit-button:hover,
.dashboard-edit-button:focus-visible,
.dashboard-edit-button[aria-pressed='true'] {
  color: var(--background-color);
  background: var(--project-cyan);
}

.result-display {
  display: inline-block;
  min-width: 5rem;
  color: rgba(255, 255, 255, 0.82);
}

.result-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.result-status {
  min-width: 4.5rem;
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.72);
}

.progress {
  height: 0.5rem;
  width: 100%;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  outline: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--project-red);
  transition: width 240ms ease;
}

@media (max-width: 768px) {
  .home-header,
  .home-header-2,
  .profile-header,
  .profile-header-2 {
    min-height: auto;
    margin-block: 12vh;
  }

  #eye-contact {
    float: none;
    display: block;
    width: min(60vw, 16rem);
    margin: 2rem auto 0;
  }

  .dashboard-table {
    min-width: 42rem;
  }
}

@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;
  }
}
