@import url('./_reset.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  scroll-behavior: smooth;
}

:root {
  --color-primary: #01013a;
  --brand-lightblue: #dee0ec;
  --bright-turquoise: #3bdafa;
  --color-text: #fafafa;
  --jelly-bean: #247cac;
  --color-downriver: #0c1c4c;
  --color-matisse: #1f6590;
  --color-input-text: #4285f4;
}

html,
body {
  font-family: Inter, sans-serif;
  height: 100%;
  scroll-snap-type: y mandatory;
}

/* Navigation Bar */
nav#navbar {
  align-items: start;
  color: var(--color-text);
  display: none;
  justify-content: space-between;
  padding: 0 24px 32px;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

nav#navbar .nav-links {
  align-items: center;
  color: var(--color-text);
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-top: 48px;
}

#hamburger .nav-links-mobile.show {
  backdrop-filter: blur(6px);
  background-color: rgb(1 1 58 / 95%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100dvh;
  left: 0;
  padding: 108px 16px 16px;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 2;
}

#hamburger .nav-links-mobile a {
  color: var(--color-text);
  display: block;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.8px;
  padding: 16px 20px;
  text-decoration: none;
  text-transform: none;
  transition: all 0.3s ease-in-out;
}

nav#navbar .nav-links a {
  color: var(--color-text);
  display: block;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

nav#navbar .nav-links a:hover {
  color: var(--bright-turquoise);
}

/* Hamburger */
#hamburger {
  align-items: center;
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  left: 0;
  position: fixed;
  top: 0;
  transition: all 0.25s ease-in-out;
  width: 100%;
  z-index: 9999;
}

#hamburger .nav-links-mobile {
  display: none;
}

#hamburger.hidden {
  top: -87px;
}

#hamburger figure {
  margin: 20px 0 16px 24px;
  position: relative;
  z-index: 9;
}

#hamburger figure img {
  max-width: 140px;
}

.menu-toggle {
  background: transparent;
  border: none;
  border-bottom: 2px solid;
  border-top: 2px solid;
  color: white;
  cursor: pointer;
  display: block;
  font-size: 0;
  height: 26px;
  position: absolute;
  right: 24px;
  top: 30px;
  transition: all 0.25s ease-in-out;
  width: 30px;
  z-index: 103;
}

.menu-toggle::before,
.menu-toggle::after {
  background: white;
  content: '';
  display: block;
  height: 2px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease-in-out;
  width: 100%;
}

.menu-toggle:hover {
  color: white;
}

.menu-toggle.active {
  border-color: transparent;
}

.menu-toggle.active::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-toggle.active::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hero Section */
#hero {
  background: url('../img/hero-bg-mobile.png') no-repeat center center / cover;
  background-color: var(--color-primary);
  height: 100dvh;
  padding: 24px;
  position: relative;
  scroll-snap-align: start;
}

#hero .hero-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 84px 0 0;
  max-width: 650px;
}

#hero .hero-content h1 {
  color: #fafafa;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
}

#hero .hero-content p {
  color: var(--brand-lightblue);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

/* Vision Section */
#vision {
  background:
    linear-gradient(to right, #01021d 0%, #01021d00 45%),
    url('../img/vision-bg.png?v=202504212259') no-repeat center center / cover;
  background-color: var(--color-primary);
  height: 100dvh;
  padding: 24px;
  position: relative;
  scroll-snap-align: start;
}

#vision .vision-content {
  display: flex;
  flex-direction: column;
  margin: 24px 0 0;
  max-width: 100%;
}

#vision .vision-content h2 {
  color: #fafafa;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 28px;
}

#vision .vision-content p {
  color: var(--brand-lightblue);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.4;
  padding-bottom: 24px;
}

/* Solution Section */
#solutions {
  background: linear-gradient(135deg, #01013a 0%, #0c1c4c 100%);
  background-color: var(--color-primary);
  height: 100dvh;
  padding: 24px;
  position: relative;
  scroll-snap-align: start;
}

#solutions .solutions-content {
  padding-top: 24px;
}

#solutions .solutions-content h2 {
  color: #fafafa;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 28px;
  text-align: left;
}

#solutions .solutions-content p {
  color: var(--brand-lightblue);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  margin: auto;
  max-width: 800px;
  padding-bottom: 24px;
  text-align: left;
}

#solutions .solutions-content .solution-cards {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: left;
  margin: 0 -24px;
  max-width: 100vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

#solutions .solutions-content .card {
  background-color: var(--color-text);
  border-radius: 16px;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 80%;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  scroll-snap-align: start;
  transition: all 0.25s ease-in-out;
}

#solutions .solutions-content .card figure {
  margin: 0;
}

#solutions .solutions-content .card h3 {
  color: var(--color-downriver);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  max-width: 80%;
}

#solutions .solutions-content .card p {
  color: var(--color-matisse);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
  padding: 0;
  text-align: left;
}

/* Consultation Section */
#consultation {
  background-color: var(--color-primary);
  height: auto;
  min-height: 100dvh;
  padding: 24px;
  position: relative;
  scroll-snap-align: start;
}

#consultation .consultation-content {
  padding-top: 16px;
}

#consultation .consultation-content h2 {
  color: #fafafa;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 32px;
  text-align: left;
}

#consultation .consultation-content p {
  color: var(--brand-lightblue);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
  padding-bottom: 36px;
  text-align: left;
}

#consultation .consultation-content form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: auto;
  max-width: 100%;
}

#consultation .consultation-content form .submit-container {
  max-width: 100%;
  width: 100%;
}

#consultation .consultation-content form button {
  padding-left: 64px;
  padding-right: 64px;
}

/* Shared Componentes */
.btn.btn-primary {
  background-color: var(--bright-turquoise);
  border-radius: 28px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  max-width: 208px;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.btn.btn-primary:disabled {
  background-color: #999;
  opacity: 0.7;
  pointer-events: none;
}

.btn.btn-secondary {
  background-color: var(--jelly-bean);
  border-radius: 28px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  max-width: 208px;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
}

.btn.btn-primary:hover,
.btn.btn-secondary:hover {
  opacity: 0.8;
}

.input-container {
  margin: 0 auto;
  max-width: 700px;
  position: relative;
  width: 100%;
}

.input-field {
  background-color: transparent;
  border: none;
  color: var(--bright-turquoise);
  font-size: 14px;
  outline: none;
  padding: 16px 0 4px;
  width: 100%;
}

.input-underline {
  background-color: #3d4eae;
  bottom: 0;
  height: 1px;
  left: 0;
  position: absolute;
  transition: background-color 0.3s;
  width: 100%;
}

.input-field:focus ~ .input-underline {
  background-color: var(--color-input-text);
  height: 2px;
}

.input-label {
  color: var(--bright-turquoise);
  font-size: 16px;
  font-weight: 200;
  left: 16px;
  letter-spacing: 0.6px;
  pointer-events: none;
  position: absolute;
  top: 12px;
  transition: all 0.3s ease;
}

.input-field:focus ~ .input-label,
.input-field:not(:placeholder-shown) ~ .input-label {
  color: var(--color-input-text);
  font-size: 12px;
  top: 0;
}

.input-field::placeholder {
  color: transparent;
}

.textarea-container {
  margin: 0 auto;
  position: relative;
  width: 100%;
}

.textarea-field {
  background-color: transparent;
  border: none;
  color: var(--bright-turquoise);
  font-size: 14px;
  height: 60px;
  line-height: 1.5;
  outline: none;
  overflow-y: auto;
  padding: 16px 8px 4px 0;
  resize: none;
  width: 100%;
}

.textarea-field::-webkit-scrollbar {
  width: 3px;
}

.textarea-field::-webkit-scrollbar-track {
  background: var(--color-primary);
  border-radius: 8px;
}

.textarea-field::-webkit-scrollbar-thumb {
  background: var(--color-downriver);
  border-radius: 8px;
}

.textarea-field::-webkit-scrollbar-thumb:hover {
  background: var(--jelly-bean);
}

.textarea-underline {
  background-color: #3d4eae;
  bottom: 0;
  height: 1px;
  left: 0;
  position: absolute;
  transition: background-color 0.3s;
  width: 100%;
}

.textarea-field:focus ~ .textarea-underline {
  background-color: var(--color-input-text);
  height: 2px;
}

.textarea-label {
  color: var(--bright-turquoise);
  font-size: 16px;
  font-weight: 200;
  left: 16px;
  letter-spacing: 0.6px;
  pointer-events: none;
  position: absolute;
  top: 2px;
  transition: all 0.3s ease;
}

.textarea-field:focus ~ .textarea-label,
.textarea-field:not(:placeholder-shown) ~ .textarea-label {
  color: var(--color-input-text);
  font-size: 12px;
  top: 0;
}

.textarea-field::placeholder {
  color: transparent;
}

.custom-checkbox {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  user-select: none;
}

.custom-checkbox input[type='checkbox'] {
  display: none;
}

.custom-checkbox .checkmark {
  align-items: center;
  background-color: transparent;
  border: 1px solid var(--jelly-bean);
  border-radius: 0;
  display: flex;
  height: 24px;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease-in-out;
  width: 24px;
}

.custom-checkbox input[type='checkbox']:checked + .checkmark::after {
  border-bottom: 2px solid var(--jelly-bean);
  border-left: 2px solid var(--jelly-bean);
  content: '';
  height: 5px;
  position: absolute;
  transform: rotate(-45deg);
  width: 10px;
}

.custom-checkbox .label-text {
  color: var(--bright-turquoise);
  font-size: 14px;
  font-weight: 200;
  letter-spacing: 0.6px;
}

.custom-checkbox .label-text a {
  border-bottom: solid 1px var(--bright-turquoise);
  color: inherit;
  text-decoration: none;
}

.custom-checkbox .label-text a:hover {
  border-bottom: none;
}

.mouse-animation {
  display: none;
}

.wiggle {
  animation: slide-y 2s ease-in-out forwards;
  animation-iteration-count: infinite;
}

@keyframes slide-y {
  0% {
    transform: translateY(0);
  }

  20% {
    transform: translateY(26px);
  }

  40% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(0);
  }
}

.fade-message {
  filter: blur(0);
  opacity: 1;
  transition:
    opacity 0.5s ease,
    filter 0.5s ease;
}

.fade-message.fade-out {
  filter: blur(0);
  opacity: 0;
}

strong {
  font-weight: 700;
}

.input-error {
  color: red;
  font-size: 13px;
  font-weight: 400;
  position: absolute;
  top: calc(100% + 6px);
}

.shake {
  animation: shake 0.3s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

.modal {
  background-color: rgb(0 0 0 / 80%);
  bottom: 0;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  top: 0;
  transition: all 0.3s ease-in-out;
  width: 100%;
  z-index: -1;
}

.modal.show {
  opacity: 1;
  z-index: 1000;
}

.modal .modal-content {
  background-color: var(--color-text);
  border-radius: 16px;
  box-sizing: border-box;
  color: var(--color-downriver);
  display: flex;
  flex-direction: column;
  gap: 24px;
  left: 50%;
  max-width: 600px;
  padding: 32px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.modal .modal-content h2 {
  color: var(--color-downriver);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.modal .modal-content .close {
  background-color: transparent;
  border: none;
  color: var(--color-downriver);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  position: absolute;
  right: 20px;
  top: 20px;
  transition: all 0.3s ease-in-out;
}
