/*=============== GOOGLE FONTS - Insert link for typography ===============*/
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300..700;1,300..700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(29, 90%, 58%);
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Cormorant Infant", serif;
  --biggest-font-size: 4rem;
  --big-font-size: 2rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
}

/*========== Responsive typography ==========*/
@media (width >= 1150px) {
  :root {
    --biggest-font-size: 7.5rem;
    --big-font-size: 3rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  font-weight: 600;
  background-color: var(--black-color);
  color: var(--white-color);
}

button {
  background: none;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1rem;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 100;
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--first-color);
  font-weight: 700;
}

.nav__toggle {
  font-size: 1.5rem;
  color: var(--white-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media (width <= 1150px) {
  .nav__menu {
    position: fixed;
    top: -120%;
    left: 0;
    width: 100%;
    background-color: var(--black-color);
    padding-block: 5rem;
    z-index: 100;
    transition: top 0.4s;
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--white-color);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  color: var(--white-color);
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  top: 0;
}

/*=============== HOME ===============*/
.home__slider {
  position: relative;
  height: 100vh;
  display: grid;
  align-content: center;
  row-gap: 11rem;
}

.home__img, 
.home__slider::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.home__img {
  object-fit: cover;
  object-position: center;
}

.home__slider::after {
  content: "";
  background: linear-gradient(180deg, 
                            hsla(0, 0%, 0%, 0) 0%, 
                            hsla(0, 0%, 0%, 0.6) 100%);
}

.home__data, 
.home__info {
  z-index: 10;
  text-align: center;
}

.home__subtitle {
  font-size: var(--big-font-size);
  color: var(--first-color);
}

.home__title {
  font-size: var(--biggest-font-size);
  line-height: 100%;
}

.home__description {
  margin-inline: 3rem;
  font-size: var(--h2-font-size);
}

.home__button {
  width: 32px;
  height: 32px;
  background-color: var(--first-color);
  color: var(--black-color);
  display: grid;
  place-items: center;
  margin: 1.5rem auto 0;
  font-size: 1.5rem;
  font-weight: initial;
  border-radius: 50%;
}

/* Swiper class */
.home .swiper-pagination {
  top: initial;
  bottom: 6rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: max-content;
}

.home .swiper-pagination-bullet {
  background-color: var(--white-color);
}

.home .swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices <> */
@media (width >= 540px) {
  .home__description {
    width: 330px;
    margin-inline: auto;
  }
}

/* For large devices <> */
@media (width >= 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle, 
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    align-items: center;
    column-gap: 4rem;
  }

  .home__slider {
    padding-block: 12rem 6rem;
    align-content: space-between;
    row-gap: 0;
  }
  .home__data, 
  .home__info {
    width: 1120px;
    text-align: initial;
    margin-inline: auto;
  }
  .home__description {
    margin: initial;
  }
  .home__info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  .home__button {
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: 2rem;
  }
}

/* For 2K resolutions <> */
@media (width >= 2048px) {
  .header,
  .home__data,
  .home__info,
  .home .swiper-pagination {
    zoom: 1.2;
  }
}
