@font-face {
  font-family: "Sugo Display";
  src: url("fonts/SugoProDisplay-Regular.61023be8e12e45f9e.73b11f92597d3bba7a353b5434d5d2a8.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mostra un font temporaneo mentre carica questo */
  letter-spacing: 3em;
}

@font-face {
  font-family: "Revive 80";
  src: url("fonts/Revive_80_-_Phatt.b8213ba1ab08ad4038bcb4.0a9466c19d3f8523b67bbad382132f42.woff2")
    format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mostra un font temporaneo mentre carica questo */
  letter-spacing: 1em;
}
@font-face {
  font-family: "Michroma";
  src: url("fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Mostra un font temporaneo mentre carica questo */
  letter-spacing: 1em;
}
h1 {
  font-family: "Sugo Display", sans-serif;
  font-size: 3rem;
  text-transform: uppercase; /* Sugo rende bene tutto in maiuscolo */
}
:root {
  --bg-color: #050505;
  --card-bg: #121212;
  --accent: #e50914;
  --text: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-color);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

/* --- HEADER & HAMBURGER --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  padding: 20px 5%;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  mix-blend-mode: difference; /* Lo rende visibile su qualsiasi sfondo */
}

.menu-icon {
  cursor: pointer;
  z-index: 1002;
  padding: 10px;
}

.menu-icon span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: white;
  margin: 8px 0;
  transition: var(--transition);
}

.menu-icon.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
.menu-icon.open span:nth-child(2) {
  opacity: 0;
}
.menu-icon.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.nav-overlay.active {
  right: 0;
}
.nav-overlay a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  text-transform: uppercase;
  margin: 15px 0;
  letter-spacing: 4px;
  transition: 0.3s;
}
.nav-overlay a:hover {
  color: var(--accent);
}

/* --- SHOWREEL FULL SCREEN --- */
#showreel {
  width: 100%;
  height: 100vh; /* 100% dell'altezza dello schermo */
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}

.hero-video-box {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* --- GRID & CARDS --- */
section:not(#showreel) {
  padding: 0 8% 3em;
}
.section-title {
  font-family: "Michroma", sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 0.3em;
  font-size: 4.5em;
}

.client-grid {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-weight: normal;
  font-family: "Michroma", sans-serif;
  font-size: 2.5rem;
  margin: 0;
  font-style: normal;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}

.video-box {
  position: relative;
  background: var(--card-bg);
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

.video-box.vertical {
  aspect-ratio: 9/16;
}

.video-box-vertical {
  aspect-ratio: 16/9;
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 1em;
}

.hover-desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  box-sizing: border-box;
}

.video-box:hover .hover-desc {
  opacity: 1;
}
.video-box:hover .thumbnail {
  transform: scale(1.05);
}
.video-box-vertical:hover .thumbnail {
  transform: scale(1.05);
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- FOOTER & FORM --- */
footer {
  padding: 3em 5%;
  background: #080808;
  border-top: 1px solid #222;
  grid-template-columns: repeat(2);
  grid-template-rows: repeat(2);
  text-align: center;
}
.footer-container {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 15px;
  background: #111;
  border: 1px solid #333;
  color: white;
  font-family: inherit;
}
.contact-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 40px;
  text-transform: uppercase;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

.client-tag {
  border: 1px solid #444;
  padding: 5px 12px;
  margin: 5px;
  display: inline-block;
  font-size: 0.8rem;
}

/* Layout Desktop */
.oriziontal-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5);
  gap: 2em 6em;
  padding: 20px;
  justify-content: center;
}

.div1 {
  grid-row: span 2 / span 2;
}

.div2 {
  grid-row: span 2 / span 2;
}
.div3 {
  grid-row: span 3 / span 3;
  grid-row-start: 3;
}

.div4 {
  grid-row: span 3 / span 3;
  grid-row-start: 3;
}

.oriziontal-card {
  flex: 1;
  border-radius: 1em;
  overflow: hidden;
  background-color: --bg-color;
}

.vertical-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2em 6em;
  padding: 20px;
  justify-content: center;
}

.vertical1 {
  grid-row: span 3 / span 3;
}

.vertical2 {
  grid-row: span 3 / span 3;
}

.vertical3 {
  grid-row: span 3 / span 3;
}

.vertical4 {
  grid-row: span 3 / span 3;
}

.film-container {
  display: grid;
  grid-template-columns: repeat(3);
  grid-template-rows: repeat(4);
  gap: 2em 8em;
  padding: 20px;
  justify-content: center;
}

.film1 {
  grid-row: span 3 / span 3;
}

.film2 {
  grid-row: span 2 / span 2;
  grid-column-start: 1;
  grid-row-start: 4;
}
.film3 {
  grid-row: span 3 / span 3;
  grid-column-start: 2;
  grid-row-start: 1;
}

.film4 {
  grid-row: span 2 / span 2;
  grid-column-start: 2;
  grid-row-start: 4;
}

.film5 {
  grid-row: span 3 / span 3;
  grid-column-start: 3;
  grid-row-start: 1;
}

.film6 {
  grid-row: span 2 / span 2;
  grid-row-start: 4;
}

.vertical-card {
  flex: 1;
  border-radius: 1em;
  overflow: hidden;
  background-color: --bg-color;
}
.film-card {
  flex: 1;
  border-radius: 1em;
  overflow: hidden;
  background-color: --bg-color;
}

.card-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content {
  font-family: "Sugo Display", sans-serif;
  font-size: large;
  text-align: left;
  margin-top: -1em;
}

.accordion-title {
  margin: 0;
  font-size: 1.5em;
  color: #fff;
  letter-spacing: 0.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-description {
  font-family: "helvetica-neue-world", sans-serif;
  margin-top: 10px;
  font-size: 1.5rem;
  color: #fff;
  margin: 0;
}

.accordion-description h4 {
  font-size: 1.3rem;
  margin: 0;
}

.accordion-description p {
  padding: 0 8em 0 0;
  margin: 0;
  font-size: 1rem;
  line-height: 1em;
}

.card-content.active .accordion-description {
  grid-template-rows: 1fr;
  filter: blur(0px);
  opacity: 1;
  /* Se proprio serve spazio tra le card quando è aperto, aggiungilo qui */
  margin-bottom: 10px;
}
.card-content.active .accordion-description-inner {
  transform: translateY(0); /* Scivola verso il basso */
}
.accordion-description {
  display: grid;
  grid-template-rows: 0fr; /* Altezza reale zero */
  transition:
    grid-template-rows 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.4s ease,
    opacity 0.4s ease,
    margin 0.6s ease; /* Anima anche eventuali margini */
  overflow: hidden;
  filter: blur(8px);
  opacity: 0;
  /* IMPORTANTE: Il padding qui deve essere 0 quando è chiuso */
  padding: 0;
}

.accordion-description-inner {
  min-height: 0;
  transform: translateY(-20px);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  /* Applichiamo il padding qui dentro per non influenzare l'altezza esterna quando chiusa */
  padding-bottom: 20px;
}

.card-content.active .chevron::after {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Simbolo per far capire che è cliccabile */
.chevron::after {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 10px;
  /* Icona Chevron Down in formato SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

/* Singola riga */
.software-item {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto 40px auto; /* Spazio tra le righe */
  gap: 40px; /* Spazio tra icona e testo */
}

.contact-details {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.contact-details div h2 {
  text-align: left;
}

.text-container-software h2 {
  text-align: center;
  font-weight: normal;
  font-family: "Michroma", sans-serif;
  font-size: 1.8rem;
  margin: 0;
}

/* Gestione icone */
.icon-container {
  flex: 0 0 150px; /* Dimensione fissa dell'area icona */
  display: flex;
  justify-content: center;
}

.icon-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.is-vertical .modal-content {
  top: 40%;
}

/* Layout Mobile */
@media (max-width: 1024px) {
  .contact-details {
    flex-direction: column;
  }
  .menu-icon {
    display: none;
  }
  .film-container {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 15% !important;
    scrollbar-width: none;
    gap: 0;
    scroll-behavior: smooth;
    justify-content: flex-start;
  }

  .film-container::-webkit-scrollbar {
    display: none;
  }

  .film-card.active {
    transform: scale(1.05);
    opacity: 1;
  }

  .film-card {
    flex: 0 0 70vw;
    min-width: 70vw;
    scroll-snap-align: center;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    grid-row: auto !important;
    margin: 0;
    opacity: 0.5;
    transform: scale(0.85);
  }

  /* Nasconde Titolo e Descrizione nella sezione Film su mobile */
  .film-section .card-content {
    display: none !important;
  }

  .vertical-container {
    display: flex !important; /* Forza flex su mobile */
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Calcolo: (100% schermo - 70% larghezza card) / 2 = 15% di padding */
    padding: 40px 15% !important;
    scrollbar-width: none;
    scroll-behavior: smooth;
    justify-content: flex-start;
    gap: 0;
  }

  .vertical-container::-webkit-scrollbar {
    display: none;
  }

  .vertical-card {
    flex: 0 0 60vw;
    min-width: 60vw;
    scroll-snap-align: center;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    transform: scale(0.85);
    opacity: 0.5;
    /* Reset stili grid se necessario */
    grid-row: auto !important;
    margin: 0;
  }

  .vertical-card.active {
    transform: scale(1.05);
    opacity: 1;
  }

  /* DOTS */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccc;
    transition: 0.3s;
  }

  .dot.active {
    background: #333;
    transform: scale(1.5);
  }

  .card-content {
    margin-bottom: 1em;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  .oriziontal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em 6em;
    padding: 0;
  }
  .nav-overlay a {
    font-size: 1.5rem;
  }

  .oriziontal-card {
    width: 100%;
  }

  .accordion-title {
    cursor: pointer;
    text-align: center;
    align-items: center;
    font-size: 2.5em;
    width: 100%;
  }
  .accordion-title h3 {
    word-break: break-word;
    white-space: break-spaces;
    padding: 0 1.5rem;
  }

  /* Classe attiva per mostrare la descrizione al click */

  .accordion-description p {
    margin: 0;
    line-height: 2.6rem;
    padding: 0 10rem;
    font-size: 2rem;
    margin-bottom: 2em;
  }
  .accordion-description h4 {
    margin: 0;
    font-size: 2.3rem;
  }

  .section-title {
    font-family: "Michroma", sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 5em;
    margin-bottom: 1.3em;
  }
  section:not(#showreel) {
    padding: 0 3rem;
  }
  .contact-form input,
  .contact-form textarea {
    width: 90%;
  }

  .software-item {
    text-align: center;
    gap: 20px;
    max-width: 12em;
  }

  .text-container {
    text-align: center;
  }

  .text-container h2 {
    font-size: 1.4rem;
  }

  .text-container p {
    font-size: 1.1rem;
  }

  .icon-container {
    flex: 0 0 120px; /* Icone leggermente più piccole su mobile */
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .is-vertical .modal-content {
    top: 25%;
  }
}

/* Layout Mobile */
@media (max-width: 768px) {
  .text-container-software h2 {
    font-size: 1rem;
  }

  .client-grid {
    font-size: 1.5rem;
  }

  .contact-details {
    flex-direction: column;
  }
  .contact-details div h2 {
    text-align: center;
    font-size: 1em;
  }
  .menu-icon {
    display: none;
  }
  .film-container {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 15% !important;
    scrollbar-width: none;
    gap: 0;
    scroll-behavior: smooth;
    justify-content: flex-start;
  }

  .film-container::-webkit-scrollbar {
    display: none;
  }

  .film-card.active {
    transform: scale(1.05);
    opacity: 1;
  }

  .film-card {
    flex: 0 0 70vw;
    min-width: 70vw;
    scroll-snap-align: center;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    grid-row: auto !important;
    margin: 0;
    opacity: 0.5;
    transform: scale(0.85);
  }

  /* Nasconde Titolo e Descrizione nella sezione Film su mobile */
  .film-section .card-content {
    display: none !important;
  }

  .vertical-container {
    display: flex !important; /* Forza flex su mobile */
    grid-template-columns: none !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Calcolo: (100% schermo - 70% larghezza card) / 2 = 15% di padding */
    padding: 40px 15% !important;
    scrollbar-width: none;
    scroll-behavior: smooth;
    justify-content: flex-start;
  }

  .vertical-container::-webkit-scrollbar {
    display: none;
  }

  .vertical-card {
    flex: 0 0 70vw; /* Larghezza card fissa al 70% della larghezza schermo */
    min-width: 70vw;
    scroll-snap-align: center;
    transition:
      transform 0.4s ease,
      opacity 0.4s ease;
    transform: scale(0.85);
    opacity: 0.5;
    /* Reset stili grid se necessario */
    grid-row: auto !important;
    margin: 0;
  }

  .vertical-card.active {
    transform: scale(1.05);
    opacity: 1;
  }

  /* DOTS */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: 0.3s;
  }

  .dot.active {
    background: #333;
    transform: scale(1.5);
  }

  .card-content {
    display: flex;
    flex-direction: column;

    margin-bottom: 1em;
    text-align: center;
  }

  .oriziontal-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em 6em;
    padding: 0;
  }
  .nav-overlay a {
    font-size: 1.5rem;
  }

  .oriziontal-card {
    width: 100%;
  }

  .accordion-title {
    cursor: pointer;
    text-align: left;
    align-items: center;
    font-size: 1.1rem;
    padding: 0.5em 0.1em 0 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .accordion-title h3 {
    word-break: break-word;
    white-space: break-spaces;
    padding: 0;
  }

  /* Classe attiva per mostrare la descrizione al click */

  .accordion-description p {
    margin: 0;
    padding: 0;
    padding-right: 2.5em;
    line-height: 0.95rem;
    text-align: left;
    font-size: 0.9rem;
  }
  .accordion-description h4 {
    margin: -0.2em 0 -0.2em 0;
    text-align: left;
    font-size: 1.1rem;
  }

  .section-title {
    font-family: "Michroma", sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    font-size: 1.8em;

    margin-bottom: 1.3em;
  }
  section:not(#showreel) {
    padding: 0 1rem;
  }
  .contact-form input,
  .contact-form textarea {
    width: 90%;
  }

  .software-item {
    text-align: center;
    gap: 20px;
    max-width: 8em;
  }

  .text-container {
    text-align: center;
  }

  .text-container h2 {
    font-size: 1.4rem;
  }

  .text-container p {
    font-size: 1.1rem;
  }

  .icon-container {
    flex: 0 0 6em; /* Icone leggermente più piccole su mobile */
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

/* From Uiverse.io by wilsondesouza */
ul {
  list-style: none;
}

.example-2 {
  margin: 3em 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1em;
}
.example-2 .icon-content {
  margin: 0 10px;
  position: relative;
}
.example-2 .icon-content .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  font-size: 14px;
  transition: all 0.3s ease;
}
.example-2 .icon-content:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -50px;
}
.example-2 .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #4d4d4d;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover {
  box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
}
.example-2 .icon-content a svg {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
}
.example-2 .icon-content a:hover {
  color: white;
}
.example-2 .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  transition: all 0.3s ease-in-out;
}
.example-2 .icon-content a:hover .filled {
  height: 100%;
}

.example-2 .icon-content a[data-social="linkedin"] .filled,
.example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
  background-color: #0274b3;
}

.example-2 .icon-content a[data-social="github"] .filled,
.example-2 .icon-content a[data-social="github"] ~ .tooltip {
  background-color: #24262a;
}
.example-2 .icon-content a[data-social="instagram"] .filled,
.example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
  background: linear-gradient(
    45deg,
    #405de6,
    #5b51db,
    #b33ab4,
    #c135b4,
    #e1306c,
    #fd1f1f
  );
}
.example-2 .icon-content a[data-social="youtube"] .filled,
.example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
  background-color: #ff0000;
}

/* Gestione testo */
.text-container {
  text-align: center;
}

.text-container h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-container p {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 5px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sfondo della modale */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9); /* Sfondo nero trasparente */
  backdrop-filter: blur(5px); /* Effetto sfocato */
}

/* Contenitore interno */
.modal-content {
  position: relative;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 80%;
  max-width: 900px; /* Larghezza massima per desktop */
}


/* Pulsante per chiudere */
.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* Rapporto 16:9 per il video */
#modalVideoBody {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

#modalVideoBody iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* Mobile: la modale occupa più spazio */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
  }

  .is-vertical .modal-content {
    top: 25%;
  }
}

/* Nascondi i pallini su Desktop */
@media (min-width: 1501px) {
  .carousel-dots {
    display: none;
  }
  
}

/* From Uiverse.io by chase2k25 */
.button {
  border: none;
  position: relative;
  width: 180px;
  height: 60px;
  padding: 0;
  z-index: 2;
  clip-path: polygon(
    0% 0%,
    25% 0%,
    75% 0%,
    100% 0%,
    100% 100%,
    75% 100%,
    25% 100%,
    0% 100%
  );
  cursor: pointer;
  background-color: transparent;
  transform: translateY(6px);
  align-self: center;
}

.button:after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: -10px;
  bottom: -10px;
  border: 2px solid #ff0066;
  opacity: 0;
  transition: all 0.5s ease;
  transform: scale(0.9);
}

.button:hover:after {
  opacity: 1;
  transform: scale(1);
}

.button span {
  position: absolute;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  left: 50%;
  top: 50%;
  letter-spacing: 2px;
  text-align: center;
  transform: translate(-50%, -50%);
  color: #ff0066;
  transition: all 0.5s ease;
}

.button:hover span {
  color: #fff;
}

.button:before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  background-color: #ff0066;
  left: 0;
  top: 0;
  transition: all 0.4s ease-out;
  z-index: -1;
}

.button:hover:before {
  width: 100%;
}
