:root {
  --text: #ece8e9;
  --background: #0b0909;
  --primary: #c6b9bb;
  --secondary: #615e4f;
  --accent: #8e9179;

  --radius: 0.5rem;
  --speed: 45s;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
}

html,
body {
  margin: 0;
  color: var(--text);
  background-color: var(--background);
  font-family: sans-serif;
  scroll-behavior: smooth;
  text-align: center;
}

header {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
    url("assets/hero.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;

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

header h1 {
  font-size: 5rem;
}

header nav {
  position: absolute;
  top: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

a {
  all: unset;
  color: var(--text);
  padding: 1rem;
  font-size: 1.5rem;
}
a:hover {
  cursor: pointer;
  text-decoration: underline;
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 3rem;
  gap: 3rem;
}

.info article {
  width: 20rem;
  height: 15rem;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 0 15px 4px rgba(255, 255, 255, 0.6);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

aside {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.carousel-wrapper {
  overflow: hidden;
  width: 80%;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: scroll-left var(--speed) linear infinite;
}

.carousel-track img {
  height: 200px;
  width: auto;
  object-fit: cover;
  margin: 0 1rem;
  border-radius: var(--radius);
  flex-shrink: 0;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.contact {
  margin: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Desktop Styles */
@media (min-width: 1024px) {
  .headerLink {
    font-size: 1rem;
  }
  .info {
    flex-direction: row;
  }
}
