:root {
  --black: #000000;
  --light-black: #171717;
  --light-black-2: #3f3f3f;
  --dark-gray: #5e5e5e;
  --dark-gray-2: #848d8c;
  --dark-gray-3: #3b3b3b;
  --gray: #c7c7c7;
  --light-gray: #eaeaea;
  --white: #ffffff;
  --red: #c5092c;
  --light-red: #e74c3c;
  --light-red-2: #ffe6e6;
  --dark-red: #8b0000;
}

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

body {
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background-color: var(--black);
  padding-top: 120px;
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 120px;
  padding: 0 8rem;
  background-color: var(--black);
}

#header .logo {
  height: 50px;
  z-index: 1101;
}

#navbar ul {
  display: flex;
  list-style: none;
}

#navbar ul li {
  margin-left: 2rem;
}

.nav-item {
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
}

.nav-item:hover {
  color: var(--light-gray);
}

.dropdown {
  position: relative;
}

.dropbtn {
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--light-gray);
  z-index: 1;
  border-radius: 5px;
  box-shadow: 0 2px 5px var(--dark-gray);
}

.dropdown-section {
  display: flex;
  flex-direction: row;
  padding: 10px 0;
}

.left-section {
  display: flex;
  flex-direction: column;
  width: 270px;
  border-right: 2px solid var(--gray);
  padding: 0 10px;
}

.right-section {
  display: flex;
  flex-direction: column;
  width: 270px;
  padding: 0 10px;
}

.dropdown-section h1 {
  color: var(--light-black-2);
  margin: 0;
  padding: 15px 10px;
  font-size: 1.8rem;
}

.dropdown-section a {
  color: var(--light-black-2);
  padding: 12px 8px;
  text-decoration: none;
  display: block;
  font-size: 1.1rem;
}

.dropdown-section a:hover {
  background-color: var(--gray);
  border-radius: 5px;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.loading-overlay {
  width: 100%;
  height: calc(100vh - 120px);
  display: flex;
  background-color: var(--light-black);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid var(--light-gray);
  border-top: 6px solid var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

#footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 0;
  width: 100%;
}

.footer-container {
  display: flex;
  width: 850px;
  height: 100%;
  justify-content: space-between;
  margin-bottom: 6rem;
}

.footer-logo {
  height: 40px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  margin-right: 50px;
}

.footer-contact h1 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-contact p {
  font-size: 0.8rem;
  color: var(--light-gray);
  margin-bottom: 0.3rem;
}

.footer-social {
  display: flex;
  justify-content: right;
  width: 850px;
  border-top: 3px solid var(--white);
  padding: 1rem;
  padding-right: 3rem;
}

.footer-social a {
  margin-left: 1.5rem;
  text-decoration: none;
}

.footer-social a img {
  height: 30px;
}

#menu-mobile-button {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1100;
}

#hamburger-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: background-color 0.3s ease-in-out;
}

#hamburger-icon::before,
#hamburger-icon::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease-in-out;
}

#hamburger-icon::before {
  top: -6px;
}

#hamburger-icon::after {
  bottom: -6px;
}

#navbar.active #hamburger-icon {
  background-color: transparent;
}

#navbar.active #hamburger-icon::before {
  transform: translateY(6px) rotate(45deg);
}

#navbar.active #hamburger-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 992px) {
  body {
    padding-top: 100px;
  }

  #header {
    min-height: 100px;
    padding: 0 2rem;
  }

  .footer-container,
  .footer-social {
    width: 90%;
  }

  .footer-container img {
    display: none;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }

  #header {
    min-height: 80px;
    padding: 0 1rem;
  }

  #header .logo {
    height: 40px;
  }

  #menu-mobile-button {
    display: block;
  }

  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1050;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 3rem;
    overflow-y: auto;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
    pointer-events: none;
  }

  #navbar.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    pointer-events: auto;
  }

  #navbar ul#menu-list {
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  #navbar ul li {
    margin: 0;
    margin-left: 0;
    text-align: center;
    width: 100%;
  }

  .nav-item {
    font-size: 1.8rem;
    color: var(--white);
    width: 100%;
  }

  #navbar ul#menu-list li.dropdown {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
  }

  #navbar ul#menu-list>li:not(.dropdown)>a.nav-item {
    display: block;
    width: 100%;
    padding: 1.5rem 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
  }

  #navbar ul#menu-list>li:not(.dropdown)>a.nav-item:hover {
    background-color: var(--light-black-2);
  }

  #navbar ul#menu-list li.dropdown>a.nav-item {
    display: block;
    width: 100%;
    padding: 1.5rem 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    position: relative;
  }

  #navbar ul#menu-list li.dropdown>a.nav-item::after {
    font-family: monospace;
    font-size: 2rem;
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--gray);
  }

  .dropdown-content {
    position: static;
    background-color: transparent;
    box-shadow: none;
    width: 100%;
    padding-left: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
  }

  #navbar ul#menu-list li.dropdown.active>.dropdown-content {
    max-height: 2000px;
    padding: 1rem 0;
    transition: max-height 0.5s ease-in;
  }

  .dropdown-section {
    flex-direction: column;
    padding: 0;
    border: none;
    width: 100%;
  }

  .left-section,
  .right-section {
    width: 100%;
    border: none;
    padding: 0;
    text-align: center;
  }

  .dropdown-section h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding: 0;
  }

  .left-section h1 {
    margin-top: 0.5rem;
  }

  .dropdown-section a {
    display: block;
    width: 100%;
    color: var(--gray);
    font-size: 1.5rem;
    padding: 12px 0;
    text-decoration: none;
    transition: background-color 0.2s ease;
  }

  .dropdown-section a:hover {
    background-color: var(--light-black-2);
    color: var(--white);
  }

  .dropdown-content {
    padding-left: 0;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-contact {
    margin-right: 0;
  }

  .footer-social {
    justify-content: center;
    padding: 1rem 0;
  }
}