* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  text-decoration: none;
  list-style: none;
  box-sizing: border-box;
}

:root {
  --color-primary: #6c63ff;
  --color-secondary: #f3d0d7;
  --color-button: #f8e8ee;
  --color-success: #00bf8e;
  --color-warning: #f7c94b;
  --color-danger: #f75842;
  --color-danger-variant: rgba(247, 88, 66, 0.4);
  --color-white: #fff;
  --color-light: rgba(255, 255, 255, 0.7);
  --color-black: #000;
  --color-bg: #1f2641;
  --color-bg1: #2e3267;
  --color-bg2: #424890;

  --container-width-lg: 76%;
  --container-width-md: 90%;
  --container-width-sm: 94%;

  --transition: all 400ms ease;
}

body {
  font-family: "Nunito";
  line-height: 1.7;
  background: var(--color-white);
  /* background: black; */
}

.container {
  width: var(--container-width-lg);
  margin: 0 auto;
}

section {
  padding: 6rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 4rem;
}

h1,
h2,
h3,
h4,
h5 {
  line-height: 1.2;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.6rem;
}

h4 {
  font-size: 1.3rem;
}

a {
  color: var(--color-white);
}

img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.btn {
  padding: 0.8rem 2.5rem;
  border: 3px solid transparent;
  border-radius: 999px;
  margin-block-start: 1rem;
  background-color: var(--color-button);
  font-family: "Nunito";
  text-transform: uppercase;
  font-size: 1rem;
  font-weight: 800;
  color: black;
  cursor: pointer;
  transition: all 0.15s ease-in;
}

.btn:hover {
  border: 3px solid black;
  background-color: var(--color-button);
}

/* .btn-primary {
  background: var(--color-danger);
  color: var(--color-white);
} */

/* =============== NAVBAR ===================== */
nav {
  background: var(--color-secondary);
  width: 100vw;
  height: 5rem;
  position: fixed;
  top: 0;
  z-index: 11;
}

.nav__container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav button {
  display: none;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.nav__menu li a {
  width: max-content;
  position: relative;
  margin: 100px auto;
  font-weight: bold;
}

.nav__menu-image {
  width: 10%;
}

.nav__menu li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  height: 3px;
  width: 100%;
  left: 0;
  background-color: #000;
  transition: transform 0.3s ease-in;
  transform: scaleX(0);
  border-radius: 80px;
}

.nav__menu li a:hover::after {
  transform: scaleX(0.9);
}

/* =============== HEADER ===================== */
header {
  position: relative;
  top: 0;
  overflow: hidden;
  height: 100vh;
  margin-bottom: 5rem;
}

.header__container {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  gap: 3rem;
  height: 100%;
  margin: 2rem 5rem;
}

.header__left {
  margin-left: 5rem;
}

.header__left h1 {
  font-family: "Playwrite US Trad";
  font-size: 3.5rem;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px #f3d0d7;
}

.header__left h2 {
  font-size: 24px;
  margin-top: 1rem;
}

.header__left p {
  font-size: 1.2rem;
  margin: 1rem 0 2.4rem;
}

.header__left .intro-2 {
  font-style: italic;
  font-weight: 700;
}

.header__right img {
  width: 90%;
}

.header__right {
  position: relative;
}

/* ==================== FLOATING IMAGE ANIMATION JS ==================== */
.floating-image {
  position: absolute;
  top: 0;
  transform: translateY(-200px);
  transition: transform 0.1s ease-in-out;
}

/* ==================== MEDIA QUERIES (TABLETS) ==================== */
@media screen and (max-width: 1024px) {
  header {
    top: 10rem;
    height: fit-content;
  }
  .container {
    width: var(--container-width-md);
  }

  .header__container {
    grid-template-columns: 1fr;
  }

  .header__left h1 {
    font-size: 3rem;
  }

  .header__left h2 {
    font-size: 1rem;
  }

  .header__left p {
    font-size: 0.8rem;
  }

  .header__right img {
    width: 30%;
    right: -2rem;
  }

  /* ==================== FLOATING IMAGE ANIMATION JS ==================== */
  .floating-image {
    position: absolute;
    top: 0;
    transform: translateY(-140px);
    transition: transform 0.1s ease-in-out;
  }

  /* =============== NAVBAR ================== */

  nav button {
    display: inline-block;
    background: transparent;
    font-size: 1.8rem;
    color: var(--color-white);
    cursor: pointer;
  }

  nav button#close-menu-btn {
    display: none;
  }

  .nav__menu {
    position: fixed;
    top: 5rem;
    right: 0;
    height: fit-content;
    width: 10rem;
    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav__menu li {
    width: 100%;
    height: 4rem;
    display: flex;
    animation: animateNavItems 400ms linear forwards;
    transform-origin: top right;
    align-items: center;
    opacity: 0;
  }

  .nav__menu li:nth-child(2) {
    animation-delay: 200ms;
  }

  .nav__menu li:nth-child(3) {
    animation-delay: 400ms;
  }

  .nav__menu li:nth-child(4) {
    animation-delay: 600ms;
  }

  @keyframes animateNavItems {
    0% {
      transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
    }

    100% {
      transform: rotateZ(0) rotateX(0) scale(1);
      opacity: 1;
    }
  }
  .nav__menu li a {
    background: var(--color-secondary);
    box-shadow: -4rem 6rem 10rem rgba(255, 220, 220, 0.6);
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
  }

  .nav__menu li a::after {
    display: none;
  }

  .nav__menu li a:hover {
    content: "";
    border: 4px solid black;
    color: black;
  }
}

/* ==================== MEDIA QUERIES (PHONES) ==================== */
@media screen and (max-width: 600px) {
  body {
    .container {
      width: var(--container-width-sm);
    }
  }

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

  .header__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

  .header__left {
    order: 2;
    margin-top: 1rem;
    margin-left: auto;
    position: relative;
  }

  .header__right {
    order: 1;
    margin-bottom: 1rem;
    position: relative;
  }

  .header__right img {
    width: 80%;
    position: relative;
    z-index: 1;
  }

  .header__left p {
    margin-bottom: 1.3rem;
  }

  .header__left a {
    margin-top: 1rem;
  }

  /* ==================== FLOATING IMAGE ANIMATION JS ==================== */
  .floating-image {
    position: relative;
    transform: translateY(0);
    transition: transform 0.1s ease-in-out;
  }
}
