@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0');

::-webkit-scrollbar {
  width: 0.2rem;
}

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 1rem;
}

::-webkit-scrollbar-thumb {
  background: var(--red-color);
  border-radius: 0.2rem;
}

:root {
  --red-color: #ff0033;
  --blue-color: #0099ff;
  --yellow-color: #ff9900;
  --green-color: #009933;
  --light-color: #ffffff;
  --dark-color: #222222;
  --gray-color: #272727;
  --silver-color: #bbbbbb;
  --font-main: "Roboto Mono", monospace, 'Open Sans', Arial, sans-serif;
  --light-bg: #fefefe;
  --padding-default: 2rem;
  --padding-nav: 3rem;

  color-scheme: light dark;
  scroll-behavior: smooth;
}


/* General Styles */
body {
  background-color: light-dark(var(--light-bg),
      var(--dark-color));
  font-family: var(--font-main);
  margin: 0;
  color: light-dark (var(--dark-color),
      var(--light-color));

  text-wrap: pretty;
  overflow-x: hidden;
}



a {
  color: var(--red-color);
  text-decoration: none;
}

a:active,
a:hover,
a:focus {
  background-color: unset;
  border-bottom: 1px dashed var(--red-color);
  -webkit-tap-highlight-color: transparent;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}


#app {
  display: grid;
  grid-template-rows: repeat(5, auto);
  gap: 2rem;
}

#hero,
#services,
#development,
#tips,
#quick {
  display: flex;
  align-items: normal;
  flex-direction: column;
  justify-content: space-around;
  min-height: 100vh;
  
  padding: 0 2rem;
}


#hero{
  background: url('assets/globalization_binary.png') top repeat-x;
}

#hero img {
  max-width: 30vw;
  margin: 6rem auto;
  /* filter: saturate(3);
  -webkit-filter: saturate(1) contrast(9);
   animation: rotate 3s infinite linear;  */
}



@keyframes rotate {
  0% {
    transform: rotate(0deg);
    opacity: 1;
    scale: 1;
  }

  50% {
    transform: rotate(180deg);
    opacity: 0.6;
    scale: 1;
  }

  75% {
    transform: rotate(270deg);
    opacity: 0.2;
    scale: 1;
  }

  100% {
    transform: rotate(360deg);
    opacity: 1;
    scale: 1;
  }
}

h1 {
  font-size: 3rem;
  color: var(--red-color);
  text-wrap: balance;
  text-align: center;
  letter-spacing: 0.8rem;
}

h1 span {
  display: flex;
  font-size: 2rem;
  font-weight: 300;
  justify-content: space-around;
  color: light-dark(var(--dark-color),
      var(--light-color));
  align-items: center;
  letter-spacing: 0.4rem;
}

h2 {
  font-size: 2.5rem;
  color: var(--red-color);
}

h2 span {
  display: flex;
  font-size: 1.5rem;
  font-weight: 300;
  color: light-dark(var(--dark-color),
      var(--light-color));
  margin: 1rem 0;
}

h3 {
  font-size: 2rem;
}

/* Cards */



.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card {
  background: light-dark(var(--light-color),
      var(--gray-color));
  padding: 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section .card .material-symbols-outlined {
  font-size: 4rem;
  color: var(--red-color);
  text-align: center;

}section .card:hover .material-symbols-outlined {
  animation: rotateY 3s infinite;
}
@keyframes rotateY {
  0% { transform: rotateY( 0deg); }
  100% { transform: rotateY( 360deg); }
}


.card p.name {
  color: var(--silver-color);
}

/* Footer Styles */
footer {
  background: url('assets/globalization_footer.png') left bottom no-repeat;
 /* background-size: contain; */
}


footer .card {
  background: none;
  padding: 0rem;
  box-shadow: none;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin: 0.5rem 0;
}

ul li a {
  color: var(--red-color);
  text-decoration: none;
  margin: 0.4rem 0rem;
}

ul li a:hover {
  text-decoration: none;
}

.material-symbols-outlined {
  font-size: 2rem;
}

.footer-bottom {
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--light-color);
  text-align: center;
}


@media (max-width: 1440px) {
  .cards {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2rem;
  }

  .card {
    grid-column: span 4;
    padding: 2rem;
  }

  /* Dealing with 2 orphan items */

  .card:last-child:nth-child(2n - 1) {
    grid-column-start: 3;
    grid-column-end: -3;
  }

  footer  .cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  footer .card {
    grid-column: span 2;
  }

  /* Dealing with 2 orphan items */

  footer .card:last-child:nth-child(3n - 1) {
    grid-column-end: -2;
  }

}

@media (max-width: 768px) {

  #hero img {
    max-width: 75vw;
  }


  .cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }

  .card {
    grid-column: span 4;
  }
  .card:last-child:nth-child(2n - 1) {
    grid-column-start: 0;
    grid-column-end: 0;
    grid-column: span 4;
  }
  
  footer  .cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
  }
  footer .card:last-child:nth-child(2n - 1) {
    grid-column-start: 0;
    grid-column-end: 0;
    grid-column: span 4;
  }
  footer .card {
    grid-column: span 4;
  }
}