:root {
  --card-color: rgba(0, 0, 0, .4);
}

html, body {
    margin:0;
    padding:0;
    min-height:100%;
    background:#18191A;
    z-index:-1;
    color:white;
    overflow-x:hidden;
    font-family: "Nunito", sans-serif;
}

section {
    margin:0;
    padding:32px;
    width:calc(100% - 64px);
}

section:not(.purple) {
    /* backdrop-filter:blur(12vmax); */
    z-index:2;
}

.purple, section * {
    /* z-index: 3 !important; */
    position:relative;
}

.purple {
    background:#5539cc;
}

@keyframes rotate {
    from {
      rotate: 0deg;
    }
    
    50% {
      scale: 1 1.5;
    }
    
    to {
      rotate: 360deg;
    }
  }
  
  #blob {
    background-color: white;
    height: 34vmax;
    aspect-ratio: 1;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, aquamarine, mediumpurple);
    animation: rotate 20s infinite;
    opacity: 0.4;
    z-index:0;
    filter:blur(12vmax);
  }

  h1, h2 {
    font-family:Montserrat;
  }

  .wave {
    margin:-8px 0;
    margin-top:-320px;
    z-index:2;
    position:relative;
  }

  .wave-invert {
    margin:0;
    /* z-index:5; */
    position:relative;
  }


  img {
    user-select:none;
    pointer-events: none;
}
  

#cards {
  display: flex;
  flex-wrap: wrap;
  justify-content:center;
  gap: 10px;  
  max-width: 920px;
  width: calc(100% - 20px);
  text-align:center;
  word-break: break-word;
line-height: normal;
}

#cards:hover > .card::after {
  opacity: 1;
}

a .card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  height: 260px;
  flex-direction: column;
  position: relative;
  width: 300px;  
  transition:transform .4s;
  text-align:left;
  vertical-align: top;
}

.card:hover::before {
  opacity: 1;
}

.card::before,
.card::after {
  border-radius: inherit;
  content: "";
  height: 100%;
  left: 0px;
  opacity: 0;
  position: absolute;
  top: 0px;
  transition: opacity 500ms;
  width: 100%;
}

.card::before {
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  z-index: 30;
}

.card::after {  
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y), 
    rgba(255, 255, 255, 0.2),
    transparent 40%
  );
  z-index: 1;
}

.card > .card-content {
  background-color: var(--card-color);
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  inset: 1px;
  padding: 10px;
  position: absolute;
  z-index: 2;
}

.card img {
  filter: grayscale(100%) contrast(150%) brightness(200%) drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.3));
  opacity:.7;
  transition: 0.4s;
}

.card:hover img {
  filter: grayscale(0%) contrast(100%) brightness(100%) drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.3));
  opacity:1;
}

.card:hover {
  transform:translateY(-7.5px);
}

h1, h2, h3, h4, span {
  color: rgb(240, 240, 240);
  font-weight: 400;
  margin: 0px;
}

i {  
  color: rgb(240, 240, 240);
}

.card-image {
  align-items: center;
  display: flex;
  height: 140px;
  justify-content: center;
  overflow: hidden;
}

.card-image > i {
  font-size: 6em;
  opacity: 0.25;
}

.card-info-wrapper {
  align-items: center;
  display: flex;
  flex-grow: 1;
  justify-content: flex-start;
  padding: 0px 20px;
}

.card-info {
  align-items: flex-start;
  display: flex;
  gap: 10px;
}

.card-info > i {  
  font-size: 1em;
  height: 20px;
  line-height: 20px;
}

.card-info-title > h3 {
  font-size: 1.1em;
  line-height: 20px;
}

.card-info-title > h4 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85em;
  margin-top: 8px;
}

section h1:first-child {
  font-size:3.5em;
}

span.carousel-word {
  display:inline-block;
}

.blink {
  display: inline;
  animation: blink 0.6s steps(1) infinite;
  font-weight:200;
}
@keyframes blink {
  50% { opacity: 0; }
}

@media(max-width: 1000px) {
  body {
    align-items: flex-start;  
    overflow: auto;
  }
  
  #cards {    
    max-width: 1000px;
    padding: 10px 0px;
  }
  
  .card {
    flex-shrink: 1;
    width: calc(50% - 4px);
  }
}

#toggle-btn {
  display:inline-block;
  width:200px;
  background:rgba(0, 0, 0, 0.1);
  outline:0 transparent;
  border:1px solid rgba(255,255,255,.2);
  color:white;
  font-size:1em;
  padding:12px;
  border-radius:10px;
}

@media(max-width: 320px) {
  .card {
    width: 100%;
  }
}

.numbers {
 width:100%;
 text-align:center;
  
}

.numbers div {
  display:inline-block;
  text-align:center;
  margin:2em;
  font-size:1.5em;
  vertical-align:top;
}

.numbers div h2 {
  margin:5px;
  font-size:1.75em;
}

.numbers small {
  font-size:12px;
}

@media only screen and (max-width: 600px) and (orientation: portrait) {
  section h1:first-child {
    font-size:1.75em;
  }

  #cards {
    display:block;
  }

  #cards a .card, #toggle-btn {
    margin:.5em;
  }

  .has-car {
    height:68.8px;
  }
}

form {
  display:flex;
  flex-direction:column;
  z-index:99;
}

input, textarea {
  margin:0;
  padding:.5em;
  font-size:1.25em;
  border-radius:0;
  background-color:rgba(255, 255, 255, 0.1);
  outline:none;
  border:1px solid rgba(255,255,255,.6);
  z-index:99;
  color:white;
  font-family: Montserrat;
  transition: background-color .2s ease;
  text-align:left;
}

textarea {
  resize: vertical;
}

input:hover, textarea:hover {
  background-color:rgba(196, 183, 255, 0.1);
}

input:not([type=submit]), textarea {
  border-bottom:none;
}
@media only screen and (min-width: 600px) {
  form {
    width:40em;
  }
}




.trigger-button {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 500;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin: 10px;
        }

        .trigger-button:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }

        .buttons-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 20px;
        }

        .contact-button {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            color: white;
            padding: 16px 32px;
            font-size: 16px;
            font-weight: 500;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .contact-button:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }

        .contact-button svg {
            width: 20px;
            height: 20px;
            fill: currentColor;
        }

        @media (max-width: 768px) {
    .buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-button,
    .trigger-button {
        width: auto;
        min-width: 200px;
        max-width: 280px;
        justify-content: center;
        text-align: center;
    }
}

        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0);
            backdrop-filter: blur(5px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            visibility: hidden;
            transition: background 0.3s ease, visibility 0.3s ease;
        }

        .popup-overlay.active {
            background: rgba(0, 0, 0, 0.7);
            visibility: visible;
        }

        .popup-content {
            background: #222;
            color:#eee;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            max-width: 480px;
            width: 90%;
            max-height: 80vh;
            overflow-x: hidden;
            position: relative;
            transform: translateY(100vh);
            transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .popup-overlay.active .popup-content {
            transform: translateY(0);
        }

        .popup-overlay.closing .popup-content {
            transform: translateY(100vh);
            transition: transform 0.3s ease-in;
        }

        .popup-header {
            text-align: center;
            margin-bottom: 32px;
        }

        .popup-header h2 {
            margin: 0 0 8px 0;
            color: #ccc;
            font-size: 28px;
            font-weight: 300;
        }

        .popup-header p {
            margin: 0;
            color: #aaa;
            font-size: 14px;
        }

        .close-button {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            color: #999;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.2s ease;
        }

        .close-button:hover {
            background: #292929;
            color: #bdbdbd;
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #ccc;
            font-weight: 500;
            font-size: 14px;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 16px;
            border: 2px solid #e0e0e06c;
            border-radius: 12px;
            font-size: 16px;
            font-family: inherit;
            transition: border-color 0.3s ease;
            box-sizing: border-box;
            max-width: 480px;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #5539cc;
        }

        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }

        .submit-button {
            width: 100%;
            background: #5539cc;
            color: white;
            border: none;
            padding: 18px;
            font-size: 16px;
            font-weight: 500;
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            max-width: 480px;
        }

        .submit-button:hover {
            background: #4429aa;
            transform: translateY(-1px);
        }

        .submit-button:active {
            transform: translateY(0);
        }

        @media (max-width: 600px) {
            .popup-content {
                padding: 30px 20px;
                border-radius: 16px;
                width: 90%;
                max-height: 85vh;
            }
            
            .popup-header h2 {
                font-size: 24px;
            }
        }