@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
:root {
    --header-height: 4.3rem;
    --font-medium: 500;

    --first-color: #033638;
    --white-color: #ffffff;
    --dark-color: #033638;
    --text-color: #4c6b6b;
    --textonv: #084547;

    --body-font: ;
    --big-font-size: 3rem;
    --h2-font-size: 1.25rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;

    --mb1: .5rem;
    --mb2: 1rem;
    --mb3: 1.5rem;
    --mb4: 2rem;


    --z-fixed: 100;
}
@media screen and (min-width: 768px) {
    :root {
        --big-font-size: 4rem;
        --h2-font-size: 2rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
    }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: var(--header-height) 0 0 0;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: var(--text-color); }
img { max-width: 100%; height: auto; display: block; }


.section { padding: 3rem 0; }

.section-title {
    position: relative;
    font-size: var(--h2-font-size);
    color: var(--dark-color);
    margin: var(--mb4) 0;
    text-align: center;
}

    .section-title::after {
        position: absolute;
        content: '';
        width: 32px;
        height: 0.18rem;
        left: 0;
        right: 0;
        margin: auto;
        top: 2rem;
        background-color: var(--first-color);
    }
    .section-title2 {
      position: relative;
      font-size: var(--h2-font-size);
      color: var(--white-color);
      margin: var(--mb4) 0;
      text-align: center;
      top: 1rem;
     
  }
  
      .section-title2::after {
          position: absolute;
          content: '';
          width: 32px;
          height: 0.18rem;
          left: 0;
          right: 0;
          margin: auto;
          top: 2rem;
          background-color: var(--white-color);
      }

.bd-grid {
    max-width: 1024px;
    display: grid;
    grid-template-columns: 100%;
    grid-column-gap: 2rem;
    width: calc(100% - 2rem);
    margin-left: var(--mb2);
    margin-right: var(--mb2);
}

/*HEADER*/

.l-header {
    width: 100%;
    position: fixed;
    top: 0 ;
    left: 0;
    height: 70px;
    z-index: var(--z-fixed);
    background-color: var(--first-color);
}
.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item { margin-bottom: var(--mb4); }
.nav-link { position: relative; color: var(--first-color); }
    .nav-link:hover { color:darkcyan ; }
.nav-logo { color: var(--white-color); height: 80px;  position: fixed; top:-0.5em; 
}
.nav-toggle { color: var(--white-color); font-size: 1.5rem; cursor: pointer; }

.active::after {
    position: absolute;
    content: '';
    width: 100%;  
    height: 0.18rem;
    left: 0;
    top: 2rem;
    background-color: var(--first-color);
}

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 80%;
        height: 100%;
        padding: 2rem;
        background-color: rgb(208, 207, 207);
        transition: .5s;
    }

    .show { right: 0; }
}

/*HOME*/

.home { position: relative; background-color: var(--first-color); overflow: hidden; 
text-align: center;
background-image: linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),url(imagen/gavel-7499911_1920.jpg);
background-position: center bottom;
background-repeat: no-repeat;
background-size: cover;
text-align: center;


}
.home-container { height: calc(100vh - var(--header-height)); row-gap: 5rem; 
   
}
.home-title { 
    align-self: flex-end; 
    font-size: 45px; 
    color: var(--white-color);
    line-height: 0.8;
    height: 13vh;
    margin: 0;
    
    
}

.home-title2{
  margin: 10px 0 0 0;
  font-size: 20px;
  color: #dddddd9f;
  
}
    .home-title span { 
      justify-content: center;
      text-shadow: 0 10px 25px rgba(62, 58, 58, 0.5); }

.home-scroll { align-self: flex-end; padding-bottom: var(--mb4); }
.home-scroll-link { writing-mode: vertical-lr; transform: rotate(-180deg); color: var(--white-color); }

/*ABOUT*/

.about-container { justify-items: center; row-gap: 2rem; text-align: center; }

.about-img {

    background-color: var();
    border-radius: 100%;
    
    
}

    .about-img img { width: 200px; }
    .about-img1 img { width: 200px; }
.about-text1 {justify-content: center;  margin-left: 20px; color: #000;}
.about-subtitle { font-size: var(--h2-font-size); color: var(--first-color); margin-bottom: var(--mb1); }
.about-text { margin-bottom: var(--mb4);color: #000; }
.about-profession { display: block; margin-bottom: var(--mb4); }
.about-social-icon { font-size: 1.4rem; margin: 0 var(--mb1); }
    .about-social-icon:hover { color: var(--first-color); }



    .about-subtitle1 { font-size: var(--h2-font-size); color: var(--first-color); margin-bottom: var(--mb1); }
.about-text2 { margin-bottom: var(--mb4); color: #000;}
.about-profession1 { display: block; margin-bottom: var(--mb4); }
.about-social-icon { font-size: 1.4rem; margin: 0 var(--mb1); }
    .about-social-icon:hover { color: var(--first-color); }

/*PORTFOLIO*/

.info-container{
  background-color: #033638;
}
.card2 {
  font-size: var(--h2-font-size);
  background-color: white; 
  --bg-filter-opacity:0;
  background-image: linear-gradient(rgba(0,0,0,var(--bg-filter-opacity)),rgba(0,0,0,var(--bg-filter-opacity))), var(--bg-img);
  height: 15em;
  width: 15em;
  font-size: 1.3em ;
  color: var(--dark-color);
  padding: 1em;
  /*margin: 2em;*/
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: all, var(--transition-time);
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff;
  text-decoration: none;
}

.cards-wrapper2 {
  display: grid;
  justify-content: center;
  align-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 0.5rem;
  padding: 2rem;
  margin: 0 auto;
  width: max-content;
}
.card2:hover {
  transform: rotate(0);
}

.card2 h1 {
  margin: 0;
  font-size: 0.8em;
  line-height: 0.86em;
  font-family: 'Montserrat', sans-serif;
  margin-top: 5em;
}

.card2 p {
  font-size: 0.60em;
  font-family: 'Montserrat', sans-serif;
  margin-top: 2em;
  line-height: 1em;
  height: 10em;
  color: var(#000);
}

.card2 .tags {
  display: flex;
}

.card2 .tags .tag {
  font-size: 0.75em;
  background: rgb(255, 255, 255);
  border-radius: 0.3rem;
  padding: 0 0.5em;
  margin-right: 0.5em;
  line-height: 1.5em;
  transition: all, var(--transition-time);
}

.card2:hover .tags .tag {
  background: var(--color);
  color: rgb(255, 255, 255);
}

.card2 .date {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75em;
  padding: 1em;
  line-height: 1em;
  opacity: .8;
}

.card2:before, .card:after {
  content: '';
  transform: scale(0);
  transform-origin: top left;
  border-radius: 50%;
  position: absolute;
  left: -50%;
  top: -50%;
  z-index: -5;
  transition: all, var(--transition-time);
  transition-timing-function: ease-in-out;
}

.card2:before {
  background: #ffffff;
  width: 250%;
  height: 250%;
}

.card2:after {
  background: rgb(255, 255, 255);
  width: 200%;
  height: 200%;
}

.card2:hover:before, .card2:hover:after {
  transform: scale(1);
}

.card-grid-space2 .num {
  font-size: 1.7em;
  margin-bottom: 1.2rem;
  margin-left: 1rem;
  color: #ffffff;
}


/* MEDIA QUERIES */
@media screen and (max-width: 1285px) {
  .cards-wrapper2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 900px) {
  .cards-wrapper2 {
    grid-template-columns: 1fr;
  }
  .info {
    justify-content: center;
  }
  .card-grid-space2 .num {
    margin-left:0;
    text-align:center;
  }
}

@media screen and (max-width: 500px) {
  .cards-wrapper2 {
    padding: 4rem 2rem;
  }
  .card2 {
    max-width: calc(100vw - 4rem);
  }
}

/*CONTACT*/
.contact-info { background-color: white; box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); }
.contact-container { row-gap: 3rem; }
.contact-subtitle { font-size: var(--normal-font-size); color: var(--first-color); margin: 30px; margin-bottom: -30px; }
.contact-text { display: flex; margin-bottom: var(--mb2); margin: 30px;  }


.contact-input {
    width: 30%;
    padding: 0.6rem;
    margin: 10px;
    
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb4); 
    
    align-items: center;
    justify-content: center;
    
}
.contact-input6 {
    width: 70%;
    padding: 0.6rem;
    margin: 10px;
    background-color: var(--white-color);
    border: 1.5px solid var(--dark-color);
    font-size: var(--normal-font-size);
    margin-bottom: var(--mb4); 
    align-items: center;
    justify-content: center;
    
}

.contact-button {
    display: block;
    background-color: var(--first-color);
    color: var(--white-color);
    padding: 0.75rem 2.6rem;
    margin-left: auto;
    
    border: none;
    outline: none;
    font-size: var(--normal-font-size);
    cursor: pointer;
}
.contact-button2{
  display: block;
  background-color: var(---color);
  color: var(--dark-color);
  padding: 0.75rem 0rem;
  margin-left: auto;
  border-radius: 0rem;
  border: none;
  outline: none;
  font-size: 0.6em;
  cursor: pointer;
  margin-top: 10px;
}
/*FOOTER*/
.footer { background-color: var(--dark-color); }
.footer-container { row-gap: 2rem; }
.footer-title { font-size: var(--normal-font-size); color: var(--white-color); margin-bottom: var(--mb2); }
.footer-link { padding: 0.25rem 0; }
    .footer-link:hover { color: var(--white-color); }
.footer-social { font-size: 1.4rem; margin-right: var(--mb2); }
    .footer-social:hover { color: var(--white-color); }  
/*MEDIA QUERIES*/
@media screen and (min-width: 768px) {
    body { margin: 0; }
    .section { padding-top: 4rem; }
    .section-title { margin-bottom: 3rem; }
    .section-title::after { width: 64px; top: 3rem; }
    .section-title2 { margin-bottom: 3rem; }
    .section-title2::after { width: 64px; top: 3rem; }
    .nav { height: calc(var(--header-height) + 1rem); }
    .nav-list { display: flex; }
    .nav-item { margin-left: var(--mb4); margin-bottom: 0; }
    .nav-toggle { display: none; }
    .nav-link { color: var(--white-color); }
        .nav-link:hover { color: var(--white-color); }
    .active::after { background-color: var(--white-color); }
    .home-container { height: 100vh; grid-template-rows: 1.7fr 1fr; row-gap: 0; }
    .home-img { width: 524px; right: 10%; }
    .about-container { grid-template-columns: repeat(2, 1fr); align-items: center; text-align: initial; padding: 4rem 0; }
    .about-img { width: 200px; height: 200px; }
        .about-img img { width: 165px; }
    .skills-container { grid-template-columns: repeat(2, 1fr); align-items: center; }
    .portfolio-container { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); column-gap: 2rem; }
    .contact-container { grid-template-columns: repeat(2, 1fr); justify-items: left; }
    .contact-form { width: 380px;  }
    .footer-container { grid-template-columns: repeat(3, 1fr); justify-items: center; } 
} 
@media screen and (min-width: 1024px) {
    .bd-grid { margin-left: auto; margin-right: auto; }
}
/* Accordion */
.accordion-content { align-self: center; }
.accordion-item { background-color: var(--dark-color-alt); transition: .3s; }
.accordion-item:not(:last-child) { margin-bottom: var(--mb1); }
.accordion-header { padding: 0.75rem 1.25rem; transition: .3s; cursor: pointer; position: relative; background-color: rgba(0, 0, 0, 0.012); border-bottom: 1px solid rgba(0, 0, 0, 0.133); color: #000000;}
    .accordion-header::before {
        content: '\00271A';
        font-family: 'Font Awesome 5 Free';
        font-weight: var(--font-semi-bold);
        position: absolute;
        height: 30px;
        width: 30px;
        right: 10px;
        top: 50%;
        color: var(--main-color);
        transform: translateY(-50%);
        text-align: center;
        line-height: 30px; 
       
        
    }
    
      .accordion-item.collapsed .accordion-header::before { content: '\00268A';}
     .accordion-body { height: 0; overflow: hidden; display: flex; align-items: center; transition: .3s; }
    .accordion-item.collapsed .accordion-body { height: 120px; overflow: visible; }
    .accordion-body p { font-size: var(--small-font-size); padding: 1rem 1.25rem; transition: .3s; }
:root {
    --mb1: 1rem;
    --main-color: #088ff0;
}
.map-container {
    width: 100%; /* Ajusta el ancho al 100% del contenedor padre */
    max-width: 400px; /* Máximo ancho del mapa */
    height: 300px; /* Altura del mapa */
    margin: 3 auto; /* Centra el mapa horizontalmente */
    
    
}
iframe {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}
/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
    position: fixed;
    bottom: 5px;
    right: 5px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    animation: breathe 2s ease-in-out infinite;
  }
  /*Estilos solo al icono whatsapp*/
  .whatsapp-btn i {
    color: #fff;
    font-size: 17px;
    animation: beat 2s ease-in-out infinite;
    text-decoration: none;
  }
  /*Estilos con animation contorno respirando*/
  @keyframes breathe {
    0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
      box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
  }
  /*Estilos de animacion del icono latiendo*/
  @keyframes beat {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  .copyright{
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 20vh;
    margin: 0;
    font-size: 11px;
  }
/*card 2*/
  .cards-wrapper {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 0.5rem;
    padding: 2rem;
    margin: 0 auto;
    width: max-content;
  }
  .card {
    --bg-filter-opacity:0;
    background-image: linear-gradient(rgba(0,0,0,var(--bg-filter-opacity)),rgba(0,0,0,var(--bg-filter-opacity))), var(--bg-img);
    height: 15em;
    width: 15em;
    font-size: 1.3em;
    color: var(--first-color);
    padding: 1em;
    /*margin: 2em;*/
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    transition: all, var(--transition-time);
    position: relative;
    overflow: hidden;
    border: 1px solid #000000;
    text-decoration: none;
  }
  .card:hover {
    transform: rotate(0);
  }
  .card h1 {
    margin: 0;
    font-size: 1em;
    line-height: 1.2em;
    font-family: 'Montserrat', sans-serif;
  }
  .card p {
    font-size: 0.75em;
    font-family: 'Montserrat', sans-serif;
    margin-top: 1em;
    line-height: 1em;
    height: 13em;
    color: var(--text-color);
  }
  .card .tags {
    display: flex;
  }
  .card .tags .tag {
    font-size: 0.75em;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.3rem;
    padding: 0 0.5em;
    margin-right: 0.5em;
    line-height: 1.5em;
    transition: all, var(--transition-time);
  }
  .card:hover .tags .tag {
    background: var(--color);
    color: rgb(0, 0, 0);
  }
  .card .date {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.75em;
    padding: 1em;
    line-height: 1em;
    opacity: .8;
  }
  .card:before, .card:after {
    content: '';
    transform: scale(0);
    transform-origin: top left;
    border-radius: 50%;
    position: absolute;
    left: -50%;
    top: -50%;
    z-index: -5;
    transition: all, var(--transition-time);
    transition-timing-function: ease-in-out;
  }
  .card:before {
    background: #ddd;
    width: 250%;
    height: 250%;
  }
  .card:after {
    background: rgb(255, 255, 255);
    width: 200%;
    height: 200%;
  }
  .card:hover:before, .card:hover:after {
    transform: scale(1);
  }
  .card-grid-space .num {
    font-size: 1.7em;
    margin-bottom: 1.2rem;
    margin-left: 1rem;
    color: #000000;
  }
  /* MEDIA QUERIES */
  @media screen and (max-width: 1285px) {
    .cards-wrapper {
      grid-template-columns: 1fr 1fr;
    }
  }
  @media screen and (max-width: 900px) {
    .cards-wrapper {
      grid-template-columns: 1fr;
    }
    .info {
      justify-content: center;
    }
    .card-grid-space .num {
      margin-left:0;
      text-align:center;
    }
  }
  @media screen and (max-width: 500px) {
    .cards-wrapper {
      padding: 4rem 2rem;
    }
    .card {
      max-width: calc(100vw - 4rem);
    }
  }
  


  #contact {
  width: 100%;
  height: 100%;
}
.contact-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  max-width: 840px;
}
/* Left contact page */
.form-horizontal {
  /*float: left;*/
  max-width: 400px;
  font-family: 'Lato';
  font-weight: 400;
}

.form-control, 
textarea {
  max-width: 400px;
  background-color: #000;
  color: #000000;
  letter-spacing: 1px;
}

.send-button {
  margin-top: 15px;
  height: 34px;
  width: 400px;
  overflow: hidden;
  transition: all .2s ease-in-out;
}

.alt-send-button {
  width: 400px;
  height: 34px;
  transition: all .2s ease-in-out;
}

.send-text {
  display: block;
  margin-top: 10px;
  font: 700 12px 'Lato', sans-serif;
  letter-spacing: 2px;
}

.alt-send-button:hover {
  transform: translate3d(0px, -29px, 0px);
}

/* Begin Right Contact Page */
.direct-contact-container {
  max-width: 400px;
}

/* Location, Phone, Email Section */
.contact-list {
  list-style-type: none;
  margin-left: -30px;
  padding-right: 20px;
}

.list-item {
  line-height: 4;
  color: #605f5f;
}

.contact-text {
  font: 300 18px 'Lato', sans-serif;
  letter-spacing: 1.9px;
  color: #666363;
}

.place {
  margin-left: 62px;
}

.phone {
  margin-left: 56px;
}

.gmail {
  margin-left: 53px;
}

.contact-text a {
  color: #454444;
  text-decoration: none;
  transition-duration: 0.2s;
}

.contact-text a:hover {
  color: #413f3f;
  text-decoration: none;
}


/* Social Media Icons */
.social-media-list {
  position: relative;
  font-size: 22px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.social-media-list li a {
  color: #fff;
}

.social-media-list li {
  position: relative; 
  display: inline-block;
  height: 60px;
  width: 60px;
  margin: 10px 3px;
  line-height: 60px;
  border-radius: 50%;
  color: #fff;
  background-color: rgb(27,27,27);
  cursor: pointer; 
  transition: all .2s ease-in-out;
}

.social-media-list li:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 0 1px #fff;
  transition: all .2s ease-in-out;
}

.social-media-list li:hover {
  background-color: #fff; 
}

.social-media-list li:hover:after {
  opacity: 1;  
  transform: scale(1.12);
  transition-timing-function: cubic-bezier(0.37,0.74,0.15,1.65);
}

.social-media-list li:hover a {
  color: #000;
}



hr {
  border-color: rgba(255,255,255,.6);
}

/* Begin Media Queries*/
@media screen and (max-width: 850px) {
  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }
  .direct-contact-container, .form-horizontal {
    margin: 0 auto;
  }  
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 300px;
  }    
  .social-media-list li {
    height: 60px;
    width: 60px;
    line-height: 60px;
  }
  .social-media-list li:after {
    width: 60px;
    height: 60px;
    line-height: 60px;
  }
}

@media screen and (max-width: 569px) {

  .direct-contact-container, .form-wrapper {
    float: none;
    margin: 0 auto;
  }  
  .form-control, textarea {
    
    margin: 0 auto;
  }
 
  
  .name, .email, textarea {
    width: 280px;
  } 
  
  .direct-contact-container {
    margin-top: 60px;
    max-width: 280px;
  }  
  .social-media-list {
    left: 0;
  }
  .social-media-list li {
    height: 55px;
    width: 55px;
    line-height: 55px;
    font-size: 2rem;
  }
  .social-media-list li:after {
    width: 55px;
    height: 55px;
    line-height: 55px;
  }
  
}

@media screen and (max-width: 410px) {
  .send-button {
    width: 99%;
  }
}


.card4 {
  font-size: var(--h2-font-size);
  background-color: white; 
  --bg-filter-opacity:0;
  background-image: linear-gradient(rgba(0,0,0,var(--bg-filter-opacity)),rgba(0,0,0,var(--bg-filter-opacity))), var(--bg-img);
  height: 15em;
  width: 15em;
  font-size: 1.3em ;
  color: var(--dark-color);
  padding: 1em;
  /*margin: 2em;*/
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: all, var(--transition-time);
  position: relative;
  overflow: hidden;
  border: 1px solid #ffffff;
  text-decoration: none;
}


.card4:hover {
  transform: rotate(0);
}

.card4 h1 {
  margin: 0;
  font-size: 0.8em;
  line-height: 0.86em;
  font-family: 'Montserrat', sans-serif;
  margin-top: 5em;
}

.card4 p {
  font-size: 0.55em;
  font-family: 'Montserrat', sans-serif;
  margin-top: 2em;
  line-height: 1em;
  height: 10em;
  color: var(#000);
}

.card4 .tags {
  display: flex;
}

.card4 .tags .tag {
  font-size: 0.75em;
  background: rgb(255, 255, 255);
  border-radius: 0.3rem;
  padding: 0 0.5em;
  margin-right: 0.5em;
  line-height: 1.5em;
  transition: all, var(--transition-time);
}

.card4:hover .tags .tag {
  background: var(--color);
  color: rgb(255, 255, 255);
}

.card4 .date {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.75em;
  padding: 1em;
  line-height: 1em;
  opacity: .8;
}

.card4:before, .card:after {
  content: '';
  transform: scale(0);
  transform-origin: top left;
  border-radius: 50%;
  position: absolute;
  left: -50%;
  top: -50%;
  z-index: -5;
  transition: all, var(--transition-time);
  transition-timing-function: ease-in-out;
}

.card4:before {
  background: #ffffff;
  width: 250%;
  height: 250%;
}

.card4:after {
  background: rgb(255, 255, 255);
  width: 200%;
  height: 200%;
}

.card4:hover:before, .card4:hover:after {
  transform: scale(1);
}