/* Place stack margin after brands section for correct cascade */
.brands-marquee + .stack {
  margin-top: 30px;
}
/* Brand link hover effect */
.brand-link {
  display: inline-block;
  border-radius: 12px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  padding: 2px 4px;
}
.brand-link:hover {
  background: #e0f0ff;
  box-shadow: 0 2px 12px 0 rgba(80,160,255,0.12);
  transform: scale(1.07);
}
/* Brands marquee section */
.brands-marquee {
  width: 100vw;
  overflow: hidden;
  background: transparent;
  margin: 2em 0 2em 0;
  padding: 1em 0;
}
/* Center brands on desktop, animate on mobile */
.brands-track {
  display: flex;
  align-items: center;
  gap: 2em;
  width: max-content;
  justify-content: center;
}

@media (min-width: 901px) {
  .brands-marquee {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .brands-track {
    margin: 0 auto;
    justify-content: center;
    width: auto;
  }
}
.brands-track img {
  height: 60px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s;
  vertical-align: middle;
  background: white;
  border-radius: 10px;
  padding: 0px 18px;
  box-sizing: border-box;
}
.brands-track img:hover {
  filter: none;
}
@media (max-width: 900px) {
  .brands-track {
    animation: brands-scroll 9s linear infinite alternate;
  }
  @keyframes brands-scroll {
    0% { transform: translateX(7%); }
    100% { transform: translateX(-45%); }
  }
}
/* Spring up animation for main description */
.spring-up {
  opacity: 0;
  transform: translateY(60px) scaleY(0.8);
  animation: springUp 1s cubic-bezier(.68,-0.55,.27,1.55) .1s forwards;
}

@keyframes springUp {
  0% {
    opacity: 0;
    transform: translateY(60px) scaleY(0.8);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px) scaleY(1.05);
  }
  80% {
    transform: translateY(5px) scaleY(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}
/* Variables */
:root {

  --primary-color: #f0f5f9;
  --primary-color-end: #7bc6ff;
  --secondary-color: #f65454;
  --electric-green: #54e346;
  --lighter-dark: #1e2022;
  --dark-grey: #444444;

 } /*end for variables */


/* full tags' decoration */

body {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-end));
  font-family: 'Montserrat', sans-serif;
}
p {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
}

button , .button {
  border: 1px solid var(--lighter-dark);
  border-radius: 10px;
  box-shadow: 2px 2px var(--dark-grey);
  color: #000000;
  padding: 15px;
  /* margin: 5px auto; */
}

button:hover , .button:hover{
  background-color: var(--secondary-color);
  border: 1px solid var(--lighter-dark);
  border-radius: 10px;
  box-shadow: 2px 2px var(--dark-grey);
  color: black;
  transition: 0.3s all;
}

.button_CTA {
  background-color: var(--electric-green);
}

.button_CTA:hover {
  background-color: black;
  color: white;
}
table {
  text-align: center;
  border:1px solid black;
  margin-left: auto;
  margin-right: auto;
  border-collapse: separate;
  width: 45%;
  margin-bottom: 6%;
}
th, td {
  padding: 15px;
  text-align: left;
  font-size: 1.5rem;
}

/* anchor tags' decoration */
a {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:focus {
  text-decoration: none;
}

a:active {
  color: var(--lighter-dark);
}
/* SPECIFIC to index.html decoration*/

/* Logo decoration */
.logo {
  font-family: 'Major Mono Display', sans-serif;
}

/* <WEB> simbol in index - decoration */
.web {
  color: var(--secondary-color);
  text-shadow: 1px 1px black;
  font-weight: 400;
}

.main {
  width: 70%;
  padding: 5% 2% 2% 2%;
  margin: 5% auto;
  display: flex;
}
.main-title{
  font-size: 3rem;
}
.main-text{
  font-size: 1.5rem;
}
.profile__portrait {
  height: 280px;
  margin: 3%;
}

/* SPECIFIC to about.html decoration */
.about-page{
  text-align: center;
  margin: 5%;
  padding: 0 5%;
}
.about_title{
  padding: 0 15%;
}
.about_text{
  font-size: 1.6rem;
  line-height: 40px;
  padding: 0 16%;
}
.about-CTA{
  margin:5%;
}
.sevilla_img{
  width: 427px;
  height: 146px;
}
.end-buttons{
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
  margin: 2%;
}
.berlin-illustration{
  margin: auto;
  height: 300px;
}

/* SPECIFIC to contact.html decoration */

.my-contact{
  margin-top: 7%;
  text-align: center;
}

.contact {
  height: 35px;
  border-radius: 10px;
  margin: 10px;
  width: 300px ;
}
.contact.message{
  height: 180px;
}




/* SPECIFIC to work.html decoration */

      /* fallback */
.grid__item {
  display: inline-block;
  width: 33%;
}
      /* end of fallback */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.grid_item {
  background-color: lightgrey;
  margin: 10px;
}
.grid_item a {
  color: black;
}

.grid_item:hover{
  border:1px solid var(--secondary-color);
  background-color: lightgrey;
}

/* footer for all html files*/

.page-footer {
  background-color: var(--dark-grey);
  padding: 0 0 1%;
}

.footer-container {
  max-width: 400px;
  margin: 13% auto 0;
  clear: both;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.social-media-item {
  margin: 1%;
}

.find-me-on {
  color: white;
}



/* universal */
* {
  box-sizing: border-box;
}

/* Media Queries */
@media all and (max-width: 900px) {
  .grid {
     grid-template-columns: 1fr 1fr;
     grid-gap: 10px;
   }
   .grid__item:last-child {
     grid-column: auto / auto;
     grid-row: auto / auto;
   }
   .page-header .page-header__item:last-child {
     margin-top: 0;
   }
   .main {
     display: grid;
     grid-template-columns: 1fr;
     text-align: center;
     margin: auto;
   }
   .profile__portrait {
     margin: auto;
   }
   .about_text{
     line-height: 32px;
     padding: 0 8%;
  }
}
@media all and (max-width: 600px) {
  .grid {
     grid-template-columns: 1fr;
     grid-gap: 10px;
   }
   .profile__portrait {
     height: 280px;
     text-align: center;
     width: auto;
   }
   .about_text{
     font-size: 1.1rem;
     line-height: 30px;
     padding: 0 8%;
   }
   .sevilla_img{
     width: 256.2px;
     height: 87.6px;
     text-align: center;
   }
   th, td {
     font-size: 0.9rem;
     padding: 5px;
   }
 }
