/* =============================
   GLOBAL RESET
============================= */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Bebas Neue", sans-serif;
}

/* =============================
   FULLSCREEN BACKGROUND FIX
   (Mobile Safe)
============================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url(slanted-gradient.svg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* =============================
   LAYOUT WRAPPER
============================= */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* =============================
   HEADER
============================= */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}

header h1 {
  margin: 0;
  font-size: 64px;
  letter-spacing: 2px;
  color: #CECCA8;
  white-space: nowrap;
  flex-shrink: 0;
}

header a {
  text-decoration: none;
  color: #CECCA8;
}

/* =============================
   NAV
============================= */

nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav li a {
  color: #CECCA8;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s ease;
}

nav li a:hover {
  color: white;
  transform: scale(1.05);
}

/* =============================
   MAIN GRID
============================= */

main {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

main h1 {
  grid-column: 1 / -1;
  text-align: center;
}

/* =============================
   SECTION
============================= */

section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section h1 {
  color: #CECCA8;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 12px;
}

section h1 a {
  color: #CECCA8;
  text-decoration: none;
  transition: 0.3s ease;
}

section h1 a:hover {
  color: white;
  transform: scale(1.05);
}

/* =============================
   IMAGES / VIDEO
============================= */

img,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.pic1 {
  width: 100%;
  border-radius: 10px;
}

.pic2 {
  max-width: 300px;
  float: right;
}

/* =============================
   VIDEO WRAPPER
============================= */

.video-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.video-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}

/* =============================
   ASIDE
============================= */

aside {
  width: 100%;
}

aside p {
  color: #CECCA8;
  font-size: clamp(16px, 2vw, 22px);
  letter-spacing: 1px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

/* =============================
   FOOTER
============================= */

footer {
  margin-top: auto;
  padding: 0 40px 20px;
  text-align: right;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

footer li {
  display: inline-block;
}

.bi {
  color: #CECCA8;
  font-size: 22px;
  padding: 6px;
  transition: 0.3s ease;
}

.bi:hover {
  transform: scale(1.1);
}

/* =============================
   MOBILE
============================= */

@media (max-width: 768px) {

  header,
  main,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  nav ul {
    justify-content: center;
    gap: 24px;
  }

  main {
    grid-template-columns: 1fr;
  }

  aside {
    order: -1;
  }

  .pic2 {
    float: none;
    display: block;
    margin: 20px auto;
  }

}