/* Styles */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {



  /**
   * typography
   */

  --fs-3: 2.4rem;
  --fs-6: 1.3rem;

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li { list-style: none; }

a {
  text-decoration: none;
  color: inherit;
}

a,
img,
span,
input,
strong,
button,
textarea
{ display: block; }

img { height: auto; }

button,
input,
textarea {
  background: none;
  border: none;
  font: inherit;
}

button { cursor: pointer; }

input,
textarea { width: 100%; }

address { font-style: normal; }

html {
  font-size: 10px;
  font-family: 'Open Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: hsl(240, 5%, 16%);
  color: hsl(240, 10%, 70%);
  font-size: 1.6rem;
  line-height: 1.6;
  overflow-x: hidden;
}

:focus-visible { outline-offset: 4px; }

::-webkit-scrollbar { width: 15px; }

::-webkit-scrollbar-track { background-color: hsl(0, 0%, 95%); }

::-webkit-scrollbar-thumb { background-color: hsl(0, 0%, 80%); }

::-webkit-scrollbar-thumb:hover { background-color: hsl(0, 0%, 70%); }





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 20px; }

.btn {
  color: hsl(0, 0%, 100%);
  font-family: 'Barlow', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  max-width: max-content;
  padding: var(--padding, 10px 40px);
  border-radius: 50px;
  transition: 0.25s ease;
}

.btn-primary.blue { background-color:  hsl(230, 80%, 39%); }

.btn-primary.blue:is(:hover, :focus) { background-color: hsl(7, 96%, 61%); }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section { padding-block: 80px; }

.section-subtitle {
  color:  hsl(199, 96%, 61%);
  font-family: 'Barlow', sans-serif;
  font-size: 2rem;
  text-align: center;
}

.h2 {
  color: hsl(0, 0%, 100%);
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.h2 { font-size: 3.5rem; }

.h3 { font-size: 3.6rem; }

.section-title,
.section-text { text-align: center; }





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  padding-block: 15px;
  width: 100%;
  background-color: hsl(0, 0%, 7%);
  height: 65px;
  box-shadow: 0 -5px 10px hsl(254, 7%, 65%);
  overflow: hidden;
  transition: 0.25s cubic-bezier(0.33, 0.85, 0.56, 1.02);
  z-index: 4;
}

.header.nav-active {
  height: 335px;
  transition-duration: 0.35s;
}

.header > .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: hsl(0, 0%, 100%);
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
}

.nav-toggle-btn { font-size: 3rem; }

.nav-toggle-btn .close-icon,
.nav-toggle-btn.active .menu-icon { display: none; }

.nav-toggle-btn.active .close-icon,
.nav-toggle-btn .menu-icon { display: block; }

.navbar {
  position: absolute;
  top: 65px;
  left: 0;
  width: 100%;
  padding-inline: 20px;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s ease;
}

.header.nav-active .navbar {
  visibility: visible;
  opacity: 1;
}

.navbar-link {
  color: hsl(0, 0%, 100%);
  font-family: 'Barlow', sans-serif;
  padding-block: 3px;
  transition: 0.05s ease;
}

.navbar-link:is(:hover, :focus) { color:  hsl(199, 96%, 61%); }

.navbar .btn {
  background-color:  hsl(199, 96%, 61%);
  margin-block-start: 15px;
}

/* Define a CSS class to make the icons white */
.icon-white {
  color: white;
}




/*-----------------------------------*\
  #IMAGES
\*-----------------------------------*/



.image-list {
  display: grid;
  gap: 60px;
}

.image-card {
  background-color: hsl(240, 5%, 16%);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  border-radius: 20px;
  transition: 0.25s ease;
  height: 450px;
}








/*-----------------------------------*\
  #Content
\*-----------------------------------*/
.content{
  padding-block: 100px 60px;
  background-image: url("../images/background.jpg");
}
.content .section-title { margin-block-end: 18px; }

.content .section-text { margin-block-end: 80px; }






/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: hsl(0, 0%, 7%);
  padding-block: 20px;
  position:relative;
  bottom: 0;
  width: 100%;
}


.copyright {
  max-width: max-content;
  margin-inline: auto;
  margin-block-end: 10px;
}

.copyright-link {
  display: inline-block;
  transition: 0.25s ease;
  font-weight: 600;
}

.copyright-link:is(:hover, :focus) { color: hsl(0, 0%, 100%); }

.footer-link { transition: 0.25s ease; }

.footer-link:is(:hover, :focus) { color: hsl(0, 0%, 100%); }





/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-to-top {
  color: hsl(0, 0%, 100%);
  font-size: 1.3rem;
  position: fixed;
  bottom: 160px;
  right: -30px;
  transform: rotate(0.25turn);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
  z-index: 1;
}

.back-to-top.active {
  right: -5px;
  opacity: 1;
  visibility: visible;
}

.back-to-top::after {
  content: "";
  position: absolute;
  top: 10px;
  left: calc(100% + 7px);
  width: 100px;
  height: 1px;
  background-color: hsl(0, 0%, 100%);
}





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for larger than 600px screen
 */

@media (min-width: 600px) {

  /**
   * Content
   */

  .content-list li:nth-child(even) .card-content { margin-inline-start: 50%; }

}





/**
 * responsive for larger than 768px screen
 */

@media (min-width: 768px) {


/**
   * Images
   */

   .image-card {
    background-size: 100%;
    padding-inline: 80px;
  }

  .image-card:is(:hover, :focus) { background-size: 130%; }

}





/**
 * responsive for larger than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 6.4rem;
    --fs-2: 3.5rem;
    --fs-3: 3.6rem;

  }



  /**
   * REUSED STYLE
   */

  .container {
    max-width: 1050px;
    margin-inline: auto;
  }



  /**
   * HEADER
   */

  .nav-toggle-btn { display: none; }

  .header,
  .header.nav-active {
    background-color: hsl(0, 0%, 7%);
    box-shadow: 0 -5px 10px hsl(254, 7%, 65%);
    height: unset;
    padding-block: 20px;
  }

  .header.active {

    background-color: hsl(0, 0%, 7%);
    box-shadow: 0 -5px 10px hsl(254, 7%, 65%);
    padding-block: 20px;
  }

  .navbar { all: unset; }

  .navbar-list {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  .navbar .btn {
    margin-block-start: 0;
    --padding: 7px 30px;
  }
}