@import url("https://fonts.googleapis.com/css?family=Raleway:900,600&display=swap");

:root {
  --scroll-threshold: 100px;
  --animation-duration: 800ms;
  --breakpoint-mobile: 768px;
  --breakpoint-desktop: 1024px;

  --color-background: #333;
  --color-text: #fff;
  --color-accent: #ccc;
  --color-focus: rgb(236, 236, 236);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 5rem;
  --spacing-lg: 6rem;
  --spacing-xl: 7rem;

  --font-family-primary: "Raleway", sans-serif;
  --font-weight-bold: 900;
  --font-weight-medium: 600;

  --logo-size: 300px;
  --svg-height: 100px;
  --arrow-size: 50px;
  --scroll-indicator-width: 72px;
  --scroll-indicator-height: 28px;
  --text-size-large: 80pt;
  --text-size-small: 30pt;
  --container-height-large: 80pt;
  --container-height-small: 30pt;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  max-width: 600px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.hidden {
  opacity: 0;
  visibility: hidden;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
  background: #fff;
  color: #222;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: left 0.2s;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  outline: 2px solid rgb(236, 236, 236);
}

li:focus {
  outline: 2px solid rgb(236, 236, 236);
  outline-offset: 2px;
}

body {
  margin: 0px;
  background-color: #333;
}

#container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--container-height-large);
  margin-top: var(--spacing-md);
  top: 0;
  bottom: 0;
  filter: url(#threshold) blur(0.6px);
}

#filters {
  height: 100px;
}

@media (max-width: 768px) {
  #filters {
    height: 120px;
  }
}

#text1,
#text2 {
  position: absolute;
  width: 100%;
  display: inline-block;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-size-large);
  text-align: center;
  user-select: none;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--spacing-lg);
}

.logo {
  width: var(--logo-size);
  height: var(--logo-size);
  filter: drop-shadow(0px 0px 50px #111);
}

.profiles {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  text-align: center;
}

.profiles-title {
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
  color: #000000;
  margin-top: 0;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-primary);
  text-decoration: none;
}

.profiles-title:link,
.profiles-title:visited,
.profiles-title:hover,
.profiles-title:active,
.profiles-title:focus {
  color: #000000;
  text-decoration: none;
}

ul {
  display: flex;
  flex-direction: row;
  gap: 7rem;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  margin-bottom: var(--spacing-xl);
  padding: 0;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

@media (max-width: 768px) {
  ul {
    opacity: 0;
    pointer-events: none;
  }

  ul.fade-in {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .profiles-title {
    color: #000000;
    margin-bottom: var(--spacing-md);
  }

  ul {
    flex-direction: column;
    gap: var(--spacing-lg);
  }

  #container {
    height: var(--container-height-small);
  }

  #text1,
  #text2 {
    font-size: var(--text-size-small);
  }

  .scroll-indicator {
    display: flex;
  }

  .up-arrow {
    display: flex;
  }
}

@media (min-width: 769px) {
  .scroll-indicator {
    display: none !important;
  }

  .up-arrow {
    display: none !important;
  }
}

li {
  display: inline-block;
  width: auto !important;
  padding: 0 !important;
  line-height: 0;

  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: inherit;

  text-decoration: none;
  transform: none;

  transition: none;
}

li svg {
  height: var(--svg-height);
  width: auto;
  display: block;
}

li:hover svg,
li:focus-visible svg {
  transition: transform 160ms ease, filter 160ms ease;
  filter: drop-shadow(0px 0px 50px #111) drop-shadow(0 0 0.75px currentColor)
    drop-shadow(0 0 16px rgb(236, 236, 236))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}

li:focus-visible {
  outline: none;
}

.back-to-top-link {
  color: black;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-to-top-link:hover {
  color: black;
}

.back-to-top-link:focus {
  color: black;
}

.up-arrow {
  position: fixed;
  bottom: var(--spacing-sm);
  right: var(--spacing-sm);
  width: var(--arrow-size);
  height: var(--arrow-size);
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.up-arrow.visible {
  opacity: 1;
  visibility: visible;
}

.up-arrow:hover {
  background-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.up-arrow svg {
  transition: transform 0.2s ease;
}

.up-arrow:hover svg {
  transform: translateY(-2px);
}

.scroll-indicator {
  position: relative;
  width: var(--scroll-indicator-width);
  height: var(--scroll-indicator-height);
  display: flex;
  align-items: start;
  justify-content: center;
  text-decoration: none;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
  z-index: 1000;
  margin: 0 auto;
  cursor: pointer;
}

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

.scroll-indicator svg {
  transition: transform 0.2s ease;
}

.scroll-indicator:hover svg {
  transform: translateY(2px);
}
