@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');

:root {
  --button-background-color: white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(images/bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: "Titillium Web", sans-serif;
  color: white;
}

/* HEADER */
header {
  margin: auto;
  width: 84%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 8rem;
}

nav {
  display: flex;
  align-items: center;
  column-gap: 2rem;
}

nav ul {
  display: flex;
  align-items: center;
  column-gap: 2rem;
  list-style: none;
}

.menu-item {
  color: white;
  text-decoration: none;
  transition: all 0.5s ease;
  font-size: 1.6rem;
}

.menu-item:hover {
  color: black;
  cursor: pointer;
}

a {
  text-decoration: none;
}

a:hover {
  cursor: pointer;
}

/* SECTION */
section {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  height: 88vh;
  column-gap: 6rem;
}

.section-left {
  padding-left: 8%;
  margin-bottom: 8rem;
  width: 78rem;
}

.section-left h1 {
  font-size: 10rem;
  text-align: left;
}

.section-left p {
  margin-top: 2rem;
  font-size: 1.6rem;
  text-align: left;
  line-height: 1;
}

.left-button {
  display: inline-block;
  position: relative;
  top: 2rem;
}

.card-button {
  border: 0.1rem solid orange;
  font-size: 1.2rem;
  border-radius: 2rem;
  color: black;
  background-color: var(--button-background-color);
  padding: 1.2rem 2.8rem;
}

.card-button:hover {
  color: var(--button-background-color);
  background-color: black;
  border-color: white;
}

.section-right {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3rem;
  row-gap: 1.9rem;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.card {
  border: 0.1rem solid red;
  border-radius: 1rem;
  width: 20rem;
  height: 23rem;
  position: relative;
  transition: all 0.4s ease-in;
  background-size: cover;
  background-position: center;
}

.card:hover {
  cursor: pointer;
  border-color: white;
  transform: translateY(-1rem);
}

.card .card-header {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 1rem;
  left: 2rem;
  margin: auto;
  border-radius: 1rem;
  padding: 1rem;
  width: 80%;
}

.card .card-button {
  position: absolute;
  bottom: 1rem;
  left: 3rem;
}

.card:nth-child(1) {
  background-image: url(images/pic-1.png);
}

.card:nth-child(2) {
  background-image: url(images/pic-2.png);
}

.card:nth-child(3) {
  background-image: url(images/pic-3.png);
}

.card:nth-child(4) {
  background-image: url(images/pic-4.png);
}

/* RESPONSIVE */
@media (min-width: 1000px) {
  body {
    overflow: hidden;
  }
   
  

}

@media (max-width: 1000px) {
  .section-right {
    margin: auto;
    width: 84%;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  }

  section {
    display: contents;
    padding-left: 1%;
    padding-right: 1%;
    margin: auto;
  }

  .section-left {
    width: 90%;
    
  }

  .card {
    display: inline-flex;
    margin:auto;
  }
  .section-left h1, .section-left p {
    text-align: center;
  }
  .section-left .left-button {
    margin-left: 43%;
    margin-top: 2rem;
  }
   
}
 


@media (max-width: 480px) {
  header {
    width: 100%;
  }

  .section-right .card {
    margin: auto;
  }

 .section-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  
  .section-left .left-button {
    margin:auto;
  }

}
