/* ============================================
   FONTS
   ============================================ */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-ExtraLightItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lineGrow {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

/* ============================================
   GLOBAL RESETS
   ============================================ */
:root {
  --primary-50-teal: #00aac1;
  --neutral-20-white: #fff;
  --neutral-20-black: #000;
  --secondary-30-nuvia-black: #001011;
  --tints-shades-primary-teal-10: #dbf3f6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mona Sans", sans-serif;
}

a {
  text-decoration: none;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.nav-bar {
  display: flex;
  padding: 16px 200px;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out both;
}

.nav-bar.scrolled {
  background: rgba(255, 255, 255, 0.29);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-bar.scrolled .nav-links a {
  color: var(--neutral-20-black, #000);
}

.nav-links {
  display: flex;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--neutral-20-black, #000);
  text-align: right;
  position: relative;

  /* Desktop/Body/Regular/Medium */
  font-family: "Mona Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 170%; /* 27.2px */
  transition: all 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: flex;
  height: 48px;
  padding: 0 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 32px;
  border: 0.8px solid var(--primary-50-teal, #00aac1);
  background: var(--primary-50-teal, #00aac1);
  color: #ffffff;
  transition: all 0.2s ease;
  min-width: 120px;
  cursor: pointer;
}

.btn-arrow {
  width: 0;
  opacity: 0;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 170, 193, 0.35);
}

.btn:hover .btn-arrow {
  width: 18px;
  opacity: 1;
}

.btn:active {
  transform: scale(0.97);
}

/* ============================================
   DECORATIVE LINES
   ============================================ */
.left-line {
  width: 0.4px;
  height: 100%;
  background: #ffffff;
  left: 121px;
  top: 0;
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: lineGrow 1.2s ease-out 0.3s both;
}

.right-line {
  position: absolute;
  top: 0;
  right: 121px;
  width: 0.4px;
  height: 100%;
  background: #ffffff;
  pointer-events: none;
  z-index: 1;
  animation: lineGrow 1.2s ease-out 0.3s both;
}

.top-line {
  position: absolute;
  top: 90px;
  left: 0;
  width: 100%;
  height: 0.4px;
  background: #ffffff;
  pointer-events: none;
  z-index: 1;
  animation: fadeIn 1s ease-out 0.6s both;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 111px 120px 0px 120px;
  position: relative;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 24, 28, 0.8) 75%),
    url("../assets/images/contact/contact-hero-img.png") lightgray 50% / cover
      no-repeat;
}

.hero-content {
  position: absolute;
  bottom: 150px;
  left: 120px;
  right: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: #ffffff;
  text-align: center;
  /* Desktop/Headings/H1/Bold */
  font-family: "Mona Sans";
  font-size: 58px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%; /* 69.6px */
  padding-bottom: 12px;
  margin: 0px;
  animation: fadeUp 0.8s ease-out 0.2s both;
}

.highlight {
  color: var(--primary-50-teal, #00aac1);

  /* Desktop/Headings/H1/Bold */
  font-family: "Mona Sans";
  font-size: 58px;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.hero-subtext {
  color: var(--neutral-20-white, #fff);
  text-align: center;

  /* Desktop/Body/Large/Regular */
  font-family: "Mona Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 165%; /* 29.7px */
  margin: 0px;
  animation: fadeUp 0.8s ease-out 0.5s both;
}

/* Contact Page — Hero Override */
.contact-hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 24, 28, 0.8) 75%),
    url("../assets/images/contact/contact-hero-img.png") lightgray 50% / cover
      no-repeat;
}

.form-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-external {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 791px;
  height: 888px;
  border-radius: 12px;
  background: var(--neutral-20-white, #fff);
  box-shadow:
    0 8px 22px -6px rgba(24, 39, 75, 0.12),
    0 14px 64px -4px rgba(24, 39, 75, 0.12);
  margin-top: -100px;
  z-index: 1;
  margin-bottom: 100px;
}

.form-internal {
  width: 743px;
  height: 840px;
  border-radius: 8px;
  border: 0.4px solid var(--secondary-30-nuvia-black, #001011);
  padding: 100px 48px;
  display: flex;
  align-items: center;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: "Mona Sans";
  font-size: 14px;
  font-weight: 500;
  line-height: 170%;
  color: var(--neutral-20-black, #000);
  transition: color 0.2s ease;
}

.form-group input,
.form-group textarea {
  border: none;
  border-bottom: 0.8px solid var(--secondary-30-nuvia-black, #001011);
  padding: 8px 0;
  font-family: "Mona Sans";
  font-size: 16px;
  font-weight: 400;
  line-height: 170%;
  color: var(--neutral-20-black, #000);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Focus state */
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--primary-50-teal, #00aac1);
}

.form-group:focus-within label {
  color: var(--primary-50-teal, #00aac1);
}

/* Filled state — stays teal after content is entered */
.form-group input.filled,
.form-group textarea.filled {
  border-bottom-color: var(--primary-50-teal, #00aac1);
}

.form-group:has(.filled) label,
.form-group.has-filled label {
  color: var(--primary-50-teal, #00aac1);
}

/* Error state — must override focus and filled */
.form-group input.error,
.form-group input.error:focus,
.form-group input.filled.error,
.form-group textarea.error,
.form-group textarea.error:focus,
.form-group textarea.filled.error {
  border: 1.5px solid #e53935;
  border-radius: 4px;
  padding: 8px;
  border-bottom-color: #e53935;
}

.form-group:has(.error) label,
.form-group.has-error label {
  color: #e53935;
}

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

.form-submit {
  display: flex;
  justify-content: center;
  padding-top: 16px;
}

.form-submit .btn {
  height: 64px;
  padding: 0 36px;
}

.error-message {
  font-family: "Mona Sans";
  font-size: 12px;
  font-weight: 400;
  color: #e53935;
  margin-top: 4px;
}

.form-group:focus-within .error-message {
  color: #e53935;
}

.form-message {
  text-align: center;
  font-family: "Mona Sans";
  font-size: 14px;
  font-weight: 500;
  line-height: 170%;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
}

.form-message--success {
  color: #2e7d32;
  background: #e8f5e9;
}

.form-message--error {
  color: #c62828;
  background: #ffebee;
}

.btn-loading {
  opacity: 0.7;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #00aac1;
  padding: 100px 120px 100px 120px;
  display: flex;
  flex-direction: column;
}

.footer-elements {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 50px;
  animation: fadeUp linear;
  animation-timeline: view();
  animation-range: entry 0% entry 100%;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  width: 484px;
  padding: 0px;
}

.footer-paragraph {
  color: var(--neutral-20-white, #fff);

  /* Desktop/Body/Large/Regular */
  font-family: "Mona Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 165%; /* 29.7px */
}

.footer-divider {
  width: 100%;
  height: 0.4px;
  background: #fff;
  margin-bottom: 50px;
}

.company-title,
.contact-title {
  color: #fff;

  /* Desktop/Body/Regular/Regular */
  font-family: "Mona Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 170%; /* 27.2px */
  padding-bottom: 24px;
  margin: 0px;
}

.footer-links a {
  color: #fff;

  /* Desktop/Body/Large/Bold */
  font-family: "Mona Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 165%; /* 29.7px */
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 0.4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-elements {
  display: flex;
  padding: 24px 48px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-radius: 64px;
  background: var(--neutral-20-white, #fff);
  box-shadow:
    0 8px 18px -6px rgba(24, 39, 75, 0.12),
    0 12px 42px -4px rgba(24, 39, 75, 0.12);
  animation: fadeUp linear;
  animation-timeline: view();
  animation-range: entry 0% entry 100%;
}

.copyright-text {
  color: var(--primary-50-teal, #00aac1);

  /* Desktop/Body/Large/Medium */
  font-family: "Mona Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 165%; /* 29.7px */
}

.social-icons {
  display: flex;
  gap: 24px;
}

.social-icons a {
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.12);
  opacity: 0.85;
}

/* ============================================
   HAMBURGER MENU (hidden on desktop)
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-bar.scrolled .hamburger span {
  background: #000;
}

.nav-bar.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-bar.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-bar.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   FALLBACK: Browsers without scroll-driven animations
   ============================================ */
@supports not (animation-timeline: view()) {
  .footer-elements,
  .social-elements {
    animation: none;
  }
}

/* ============================================
   RESPONSIVE: Tablet (max-width: 1200px)
   ============================================ */
@media (max-width: 1200px) {
  .nav-bar {
    padding: 16px 60px;
  }

  .nav-links {
    gap: 32px;
  }

  .hero-section {
    padding: 111px 60px 0 60px;
  }

  .hero-content {
    left: 60px;
    right: 60px;
  }

  footer {
    padding: 80px 60px;
  }

  .footer-links {
    width: auto;
    gap: 60px;
  }

  .form-external {
    width: 90%;
    height: auto;
    padding: 24px;
  }

  .form-internal {
    width: 100%;
    height: auto;
    padding: 40px 32px;
  }
}

/* ============================================
   RESPONSIVE: Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Hamburger visible */
  .hamburger {
    display: flex;
  }

  .nav-bar {
    padding: 16px 24px;
  }

  /* Dropdown menu */
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0 24px;
    gap: 0;
    background: rgba(0, 16, 17, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      padding 0.35s ease;
  }

  .nav-bar.nav-open .nav-links {
    max-height: 300px;
    opacity: 1;
    padding: 8px 24px 16px;
  }

  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: #fff;
    text-align: left;
    border-bottom: 0.4px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* When scrolled, dropdown matches the white navbar */
  .nav-bar.scrolled .nav-links {
    background: rgba(255, 255, 255, 0.95);
  }

  .nav-bar.scrolled .nav-links a {
    color: #000;
    border-bottom-color: rgba(0, 0, 0, 0.08);
  }

  .nav-bar .btn.btn-primary {
    display: none;
  }

  /* Hero */
  .hero-section {
    padding: 80px 24px 0 24px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 80px;
  }

  h1 {
    font-size: 36px;
  }

  .highlight {
    font-size: 36px;
  }

  .hero-subtext {
    font-size: 16px;
  }

  .left-line,
  .right-line {
    display: none;
  }

  .top-line {
    top: 70px;
  }

  /* Footer */
  footer {
    padding: 60px 24px;
  }

  .footer-elements {
    flex-direction: column;
    align-items: flex-start;
    gap: 48px;
  }

  .about {
    padding-bottom: 48px;
    border-bottom: 0.4px solid rgba(255, 255, 255, 1);
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    gap: 32px;
  }

  .company-links {
    padding-bottom: 32px;
    border-bottom: 0.4px solid rgba(255, 255, 255, 1);
  }

  .social-elements {
    flex-direction: column;
    border-radius: 24px;
    padding: 24px;
    gap: 24px;
  }

  .social-icons {
    gap: 16px;
  }

  /* Hide <br> tags on mobile */
  br {
    display: none;
  }

  .form-external {
    width: calc(100% - 48px);
    height: auto;
    margin-top: -60px;
    margin-bottom: 60px;
    padding: 16px;
  }

  .form-internal {
    width: 100%;
    height: auto;
    padding: 32px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 40px;
  }

  .contact-form {
    gap: 32px;
  }
}

/* ============================================
   RESPONSIVE: Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .highlight {
    font-size: 28px;
  }
}
