/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Audiowide&family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  --first-color: hsl(238, 100%, 70%);
  --first-gradient: linear-gradient(90deg, hsl(243, 96%, 54%), hsl(296, 78%, 53%));
  --second-gradient: linear-gradient(90deg, hsl(192, 94%, 49%), hsl(224, 98%, 51%));
  --third-gradient: linear-gradient(90deg, hsl(25, 96%, 55%), hsl(34, 93%, 53%));
  --white-color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 75%);
  --text-color-light: hsl(0, 0%, 55%);
  --border-color: hsl(0, 0%, 45%);
  --body-color: hsl(238, 100%, 12%);
  --body-color-light: hsl(238, 60%, 20%);
  --body-font: "Poppins", sans-serif;
  --second-font: "Audiowide", sans-serif;
  --biggest-font-size: 3rem;
  --big-font-size: 1.5rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 5.5rem;
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-image: url("/assets/img/Galacxy\ image.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-color);
}

input,
button {
  border: none;
  outline: none;
}

h1, h2, h3, h4 {
  color: var(--white-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: auto;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}

.section__title {
  font-size: var(--big-font-size);
  font-family: var(--second-font);
  margin-bottom: 2rem;
  text-align: center;
}

.section__title span {
  display: block;
  background: var(--first-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: var(--z-fixed);
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  column-gap: .25rem;
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
}

.nav__logo img {
  width: 1.5rem;
}

.nav__toggle,
.nav__close {
  display: inline-flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  background-color: hsla(238, 100%, 6%, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: 25%;
  height: 100%;
  padding: 8rem 3.5rem 3.5rem;
  transition: right .4s;
  -webkit-transition: right .4s;
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  color: var(--white-color);
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  transition: color .4s;
  -webkit-transition: color .4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__img,
.nav__close {
  position: absolute;
}

.nav__close {
  top: 1rem;
  right: 1.5rem;
}

.nav__img {
  bottom: 5rem;
  right: -3rem;
  width: 300px;
  z-index: -1;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Add blur header */
.blur-header::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: hsla(238, 100%, 6%, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -moz-backdrop-filter: blur(16px);
  -o-backdrop-filter: blur(16px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link{
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home{
  position: relative;
}

.home__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home__container {
  position: relative;
  row-gap: 3rem;
  padding-top: 3rem;
}

.home__data {
  text-align: center;
  position: relative;
}

.home__title span{
  display: block;
}

.home__title {
  font-size: var(--biggest-font-size);
  font-family: var(--second-font);
  margin-bottom: 1.5rem;
}

.home__title span:nth-child(1),
.home__title span:nth-child(2),
.home__title span:nth-child(3) {
  background: var(--first-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}


/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  justify-content: center;
  background: var(--second-gradient);
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: 1rem;
  transition: box-shadow .4s;
  -webkit-transition: box-shadow .4s;
  -moz-transition: box-shadow .4s;
  -o-transition: box-shadow .4s;
}

.button:hover {
  box-shadow: 0 8px 32px hsla(243, 100%, 54%, .4);
}

.button__yellow {
  background: var(--third-gradient);
}

.button__yellow:hover {
  box-shadow: 0 8px 32px hsla(25, 96%, 55%, .4);
}

/*=============== TRAVEL ===============*/
.travel{
  position: relative;
}

.travel__lines{
  width: 550px;
  position: absolute;
  top: 4rem;
  left: 0;
}

.travel__container {
  position: relative;
  padding: 2rem 2rem 5rem;
}

.travel__swiper {
  padding-top: 3rem;
}

.travel__card {
  position: relative;
  border: 2px solid;
  border-image: var(--second-gradient) 1;
  background-color: linear-gradient(hsla(243, 98%, 51%, .3), transparent 50%);
  padding: 2rem 1rem 3rem;
  text-align: center;
}

.travel__img {
  width: 180px;
  position: relative;
  margin: 0 auto 1rem;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.travel__title {
  font-size: var(--h2-font-size);
}

.travel__info {
  display: block;
  font-size: var(--font-semi-bold);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.travel__description {
  font-size: var(--small-font-size);
}

/* Swiper class */
.swiper-pagination-bullet.swiper-pagination-horizontal{
  bottom: 2rem;
}

.swiper-pagination-bullet {
  width: 1rem;
  height: 1rem;
  opacity: 1;
  border: 2px solid var(--border-color);
  background: transparent;
}

.swiper-pagination-bullet-active {
  background: linear-gradient(var(--body-color),var(--body-color)) padding-box,
              linear-gradient(135deg, hsl(25, 96%, 55%) 0%, hsl(34, 93%, 53%) 100%) border-box;
  border: 2px solid transparent;
  position: relative;
}

.swiper-pagination-bullet-active::after {
  content: '';
  position: absolute;
  width: .5rem;
  height: .5rem;
  background: var(--third-gradient);
  border-radius: 50%;
  inset: 0;
  margin: auto;
}

/* Swiper animation removed for vertical layout */

/*=============== EXPLORE ===============*/
.explore__container {
  row-gap: 3rem;
}

.explore__data{
  position: relative;
}

.explore__planet{
  width: 50px;
  position: absolute;
  top: 3rem;
  right: 0;
}

.explore__description {
  margin-bottom: 2rem;
  text-align: center;
}

.explore__info{
  display: flex;
  justify-content: center;
  column-gap: 3rem;
}

.explore__info-title{
  font-size: var(--normal-font-size);
}

.explore__info-number{
  font-size: var(--h1-font-size);
  font-family: var(--second-font);
  background: var(--second-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.explore__info-number span{
  font-size: var(--small-font-size);
}

.explore__img{
  width: 320px;
  justify-self: center;
}

/*=============== HISTORY ===============*/
.history{
  position: relative;
}

.history__container{
  position: relative;
  row-gap: 2.5rem;
  grid-template-columns: 265px;
  justify-content: center;
}

.history__card{
  text-align: center;
}

.history__img{
  width: 150px;
  margin: 0 auto .75rem;
}

.history__description span{
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.history__planet-1,
.history__planet-2{
  position: absolute;
}

.history__planet-1{
  width: 250px;
  top: 10rem;
  left: -8rem;
}

.history__planet-2{
  width: 150px;
  right: -5rem;
  bottom: 6rem;
}

/*=============== CONTACT ===============*/
.contact__container{
  padding-bottom: 2rem;
}

.contact__form{
  display: grid;
  row-gap: 1rem;
}

.contact__input{
  width: 100%;
  background: none;
  border: 2px solid var(--border-color);
  padding: 1rem;
  color: var(--white-color);
}

.contact__form button{
  cursor: pointer;
}

/*=============== FOOTER ===============*/
.footer{
  overflow: hidden;
}

.footer__container{
  position: relative;
  row-gap: 4.5rem;
  padding-block: 2rem;
}

.footer__planet-1,
.footer__planet-2{
  position: absolute;
}

.footer__planet-1{
  width: 200px;
  left: -6.5rem;
  bottom: -4.5rem;
}

.footer__planet-2{
  width: 50px;
  top: 5.5rem;
  right: 0;
}

.footer__container{
  row-gap: 2.5rem;
}

.footer__links{
  display: flex;
  column-gap: 2rem;
  justify-content: center;
}

.footer__link{
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color .4s;
  -webkit-transition: color .4s;
}

.footer__link:hover{
  color: var(--first-color);
}

.footer__social{
  display: flex;
  column-gap: 1rem;
  justify-content: center;
}

.footer__social-link{
  display: inline-flex;
  background: var(--third-gradient);
  color: var(--white-color);
  font-size: 1.5rem;
  padding: .25rem;
  transition: box-shadow .4s;
  -webkit-transition: box-shadow .4s;
}

.footer__social-link:hover{
  box-shadow: 0 8px 32px hsla(25, 96%, 55%, .6);
}

.footer__copy{
  text-align: center;
  z-index: var(--z-tooltip);
  color: var(--white-color);
  font-size: var(--small-font-size);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  background-color: hsl(238, 60%, 20%);
}

::-webkit-scrollbar-thumb{
  width: .6rem;
  background-color: hsl(238, 50%, 30%);
}

::-webkit-scrollbar-thumb:hover{
  width: .6rem;
  background-color: hsl(238, 40%, 40%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color-light);
  box-shadow: 0 8px 24px hsla(238, 60%, 4%, .6);
  display: inline-flex;
  padding: 6px;
  color: var(--white-color);
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
  -webkit-transition: bottom .4s, transform .4s;
}

.scrollup:hover{
  transform: translateY(-.5rem);
  -webkit-transform: translateY(-.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== CHAPTERS ===============*/
.chapters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.chapter__card {
  background: linear-gradient(135deg, hsla(243, 98%, 51%, .1), hsla(296, 78%, 53%, .1));
  border: 2px solid;
  border-image: var(--first-gradient) 1;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: transform .4s, box-shadow .4s;
  -webkit-transition: transform .4s, box-shadow .4s;
}

.chapter__card:hover {
  transform: translateY(-.5rem);
  -webkit-transform: translateY(-.5rem);
  box-shadow: 0 8px 32px hsla(243, 100%, 54%, .4);
}

.chapter__title {
  font-size: var(--h2-font-size);
  font-family: var(--second-font);
  margin-bottom: .5rem;
}

.chapter__date {
  display: block;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}

.chapter__description {
  font-size: var(--small-font-size);
  line-height: 1.5;
}

/*=============== CHAPTER SLIDES ===============*/
.chapter__slides {
  position: relative;
}

.chapter__swiper {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.chapter__slides .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
}

.chapter__slides .explore__description {
  max-width: 800px;
  line-height: 1.8;
  font-size: var(--normal-font-size);
  text-align: center;
}

/*=============== BREAKPOINTS ===============*/
/* For mobile devices */
@media screen and (max-width: 480px) {
  .container {
    margin-inline: 1rem;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .travel__container {
    padding: 1rem;
  }

  .explore__info {
    flex-direction: column;
    row-gap: 1rem;
    text-align: center;
  }

  .nav__menu {
    width: 50%;
  }

  .nav__list {
    row-gap: 2rem;
  }

  .nav__link {
    font-size: var(--h1-font-size);
  }

  .section {
    padding-block: 3rem 1rem;
  }
}

/* For tablet devices */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .home__container,
  .explore__container {
    grid-template-columns: repeat(2, 350px);
    align-items: center;
  }

  .home__data,
  .explore__data .section__title,
  .explore__description {
    text-align: initial;
  }

  .explore__info {
    justify-content: initial;
  }

  .explore__img {
    order: -1;
  }

  .history__container {
    grid-template-columns: repeat(2, 265px);
  }

  .contact__form {
    width: 500px;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr max-content;
    column-gap: 1rem;
    border: 2px solid var(--border-color);
    padding: 1rem 1rem 1rem 1.5rem;
  }

  .contact__input {
    border: none;
    padding: 0;
  }

  .travel__swiper {
    max-width: 700px;
  }
}

/* For laptop devices */
@media screen and (min-width: 1024px) and (max-width: 1440px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 6rem 2rem;
  }

  .section__title {
    margin-bottom: 2.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__logo img {
    width: 2.5rem;
  }

  .nav__toggle,
  .nav__close {
    font-size: 1.75rem;
  }

  .nav__menu {
    width: 40%;
    padding: 9rem 4rem 0;
  }

  .nav__list {
    row-gap: 3rem;
  }

  .nav__close {
    top: 1.5rem;
  }

  .nav__img {
    width: 350px;
    right: -3.5rem;
  }

  .home__container {
    grid-template-columns: 480px 490px;
    column-gap: 1.5rem;
  }

  .home__title {
    margin-bottom: 2.5rem;
  }

  .travel__lines {
    width: 700px;
  }

  .travel__container {
    padding: 3rem 3rem 6rem;
  }

  .travel__swiper {
    max-width: 900px;
  }

  .travel__img {
    width: 190px;
  }

  .explore__container {
    grid-template-columns: 500px 430px;
    column-gap: 1.5rem;
  }

  .explore__img {
    width: 500px;
  }

  .explore__data .section__title {
    margin-bottom: 1.25rem;
  }

  .explore__description {
    margin-bottom: 2.5rem;
  }

  .explore__planet {
    width: 80px;
    right: -3rem;
  }

  .history__container {
    grid-template-columns: repeat(3, 265px);
    column-gap: 4rem;
  }

  .history__img {
    width: 180px;
    margin-bottom: 0.75rem;
  }

  .footer__container {
    padding-block: 3.5rem 2.5rem;
  }

  .footer__links {
    column-gap: 3rem;
  }

  .footer__social {
    column-gap: 1.25rem;
  }

  .footer__planet-1 {
    width: 350px;
    bottom: -10rem;
  }

  .footer__planet-2 {
    width: 120px;
  }

  .scrollup {
    right: 2.5rem;
  }
}

/* For PC devices */
@media screen and (min-width: 1440px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 3rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }

  .nav__logo img {
    width: 3rem;
  }

  .nav__toggle,
  .nav__close {
    font-size: 2rem;
  }

  .nav__menu {
    width: 40%;
    padding: 10rem 4.5rem 0;
  }

  .nav__list {
    row-gap: 3.5rem;
  }

  .nav__close {
    top: 1.7rem;
  }

  .nav__img {
    width: 400px;
    right: -4rem;
  }

  .home__container {
    grid-template-columns: 540px 550px;
    column-gap: 2rem;
  }

  .home__title {
    margin-bottom: 3rem;
  }

  .travel__lines {
    width: 800px;
  }

  .travel__container {
    padding: 3.5rem 3.5rem 7.5rem;
  }

  .travel__swiper {
    max-width: 980px;
  }

  .travel__card {
    padding-top: 2rem;
  }

  .travel__img {
    width: 200px;
  }

  .travel__info {
    margin-bottom: 1.5rem;
  }

  .travel__description {
    font-size: var(--normal-font-size);
  }

  .swiper-pagination-bullet.swiper-pagination-horizontal {
    bottom: 3rem;
  }

  .explore__container {
    grid-template-columns: 550px 480px;
    column-gap: 2rem;
  }

  .explore__img {
    width: 550px;
  }

  .explore__data .section__title {
    margin-bottom: 1.5rem;
  }

  .explore__description {
    margin-bottom: 3rem;
  }

  .explore__planet {
    width: 100px;
    right: -4rem;
  }

  .history__container {
    grid-template-columns: repeat(3, 265px);
    column-gap: 5rem;
  }

  .history__img {
    width: 200px;
    margin-bottom: 1rem;
  }

  .history__planet-1 {
    width: 500px;
    left: -15rem;
  }

  .history__planet-2 {
    width: 300px;
    right: -8rem;
    bottom: 10rem;
  }

  .footer__container {
    padding-block: 4rem 3rem;
  }

  .footer__links {
    column-gap: 4rem;
  }

  .footer__social {
    column-gap: 1.5rem;
  }

  .footer__planet-1 {
    width: 400px;
    bottom: -12rem;
  }

  .footer__planet-2 {
    width: 150px;
  }

  .scrollup {
    right: 3rem;
  }
}

/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }
  
  .nav__menu {
    width: 100%;
  }

  .home__title {
    font-size: 2.5rem;
  }

  .travel__container{
    padding: 1rem;
  }

  .explore__info{
    flex-direction: column;
    row-gap: 1rem;
    text-align: center;
  }
}

/* For medium devices */
@media screen and (min-width: 540px) {
  .home__container,
  .explore__container{
    grid-template-columns: 350px;
    justify-content: center;
  }

  .travel__card{
    width: 256px;
  }
}

@media screen and (min-width: 768px) {
  .home__container,
  .explore__container{
    grid-template-columns: repeat(2, 350px);
    align-items: center;
  }
  
  .nav__menu{
      width: 50%;
  }

  .home__data,
  .explore__data .section__title,
  .explore__description{
    text-align: initial;
  }
  
  .explore__info{
    justify-content: initial;
  }

  .explore__img{
    order: -1;
  }

  .history__container{
    grid-template-columns: repeat(3, 265px);
  }

  .contact__form{
    width: 600px;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr max-content;
    column-gap: 1rem;
    border: 2px solid var(--border-color);
    padding: 1rem 1rem 1rem 1.5rem;
  }

  .contact__input{
    border: none;
    padding: 0;
  }
}

/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }

  .section__title {
    margin-bottom: 3rem;
  }

  .nav{
    height: calc(var(--header-height) + 2rem);
  }

  .nav__logo img{
    width: 3rem;
  }

  .nav__toggle,
  .nav__close{
    font-size: 2rem;
  }

  .nav__menu{
    width: 40%;
    padding: 10rem 4.5rem 0;
  }

  .nav__list{
    row-gap: 3.5rem;
  }

  .nav__close{
    top: 1.7rem;
  }

  .nav__img{
    width: 400px;
    right: -4rem;
  }

  .home__container{
    grid-template-columns: 540px 550px;
    column-gap: 2rem;
  }

  .home__title{
    margin-bottom: 3rem;
  }

  .home__ovni{
    width: 100px;
    top: 2rem;
    right: -7rem;
  }

  .history__img{
    width: 550px;
  }

  .travel__lines{
    width: 800px;
  }

  .travel__container{
    padding: 3.5rem 3.5rem 7.5rem;
  }

  .travel__container .section__title{
    text-align: initial;
  }

  .travel__swiper{
    max-width: 980px;
  }

  .travel__card{
    padding-top: 2rem;
  }

  .travel__img{
    width: 200px;
  }

  .travel__info{
    margin-bottom: 1.5rem;
  }

  .travel__description{
    font-size: var(--normal-font-size);
  }

  .swiper-pagination-bullet.swiper-pagination-horizontal{
    bottom: 3rem;
  }

  .explore__container{
    grid-template-columns: 550px 480px;
    column-gap: 2rem;
  }

  .explore__img{
    width: 550px;
  }

  .explore__data .section__title{
    margin-bottom: 1.5rem;
  }

  .explore__description{
    margin-bottom: 3rem;
  }

  .explore__planet{
    width: 100px;
    right: -4rem;
  }

  .history__container{
    grid-template-columns: repeat(3, 265px);
    column-gap: 5rem;
  }

  .history__img{
    width: 200px;
    margin-bottom: 1rem;
  }

  .history__planet-1{
    width: 500px;
    left: -15rem;
  }

  .history__planet-2{
    width: 300px;
    right: -8rem;
    bottom: 10rem;
  }

  .footer__container{
    padding-block: 4rem 3rem;
  }

  .footer__links{
    column-gap: 4rem;
  }

  .footer__social{
    column-gap: 1.5rem;
  }

  .footer__planet-1{
    width: 400px;
    bottom: -12rem;
  }

  .footer__planet-2{
    width: 150px;
  }

  .scrollup{
    right: 3rem;
  }
}
