/* Changed 'Body' to lowercase 'body' for proper CSS syntax */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #0a0f1c;
  color: #e5e7eb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

body:has(.bg-video)::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 28, 0.33);
  z-index: -1;
}

nav,
header,
section,
footer {
  position: relative;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  flex-shrink: 0;
  padding: 15px max(20px, env(safe-area-inset-right)) 15px max(20px, env(safe-area-inset-left));
  background: rgba(10, 15, 28, 0.7);
  /* Added prefix for better Safari/iPhone support */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0; /* Prevents logo from squishing */
}

.logo img {
  height: 40px; /* Adjusted for the Yahhold logo shape */
  width: auto;
}

.logo span {
  font-weight: 600;
  letter-spacing: 2px;
  color: #eab308;
}

/* Updated container to keep links in a single row */
.links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px; /* Consistent spacing between links */
}

.links a {
  text-decoration: none;
  color: #cbd5f5;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap; /* Forces links to stay on one line */
}

.links a:hover,
.links a.active {
  color: #eab308;
}

header {
  padding: 120px 20px 100px;
  text-align: center;
  width: 100%;
  max-width: 100%;
  background: radial-gradient(circle at top, #1e3a8a20, transparent 60%);
}

header > .info-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 26px;
  border-radius: 16px;
  background: rgba(10, 15, 28, 0.35);
  border: 1px solid rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

header > .info-box,
header > h1,
header .intro-box,
header .info-boxes,
section > h1,
section > .card {
  opacity: 0;
  animation: hero-blur-in 1s ease forwards;
}

.intro-box {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(10, 15, 28, 0.35);
  border: 1px solid rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 17px;
  line-height: 1.4;
  color: #eab308;
  text-align: center;
}

.info-boxes {
  display: flex;
  flex-direction: row;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.info-boxes .info-box {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  min-height: 120px;
  padding: 28px 26px;
  border-radius: 16px;
  background: rgba(10, 15, 28, 0.35);
  border: 1px solid rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #eab308;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  overflow-wrap: anywhere;
}

.industry-icon {
  color: #eab308;
}

.industry-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

header h1,
header .info-box h2,
section > h1 {
  font-size: 40px;
  font-weight: 600;
  margin: 0 0 20px;
  color: #eab308;
  text-align: center;
}

@keyframes hero-blur-in {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  header > .info-box,
  header > h1,
  header .intro-box,
  header .info-boxes,
  section > h1,
  section > .card {
    opacity: 1;
    animation: none;
    filter: none;
    transform: none;
  }
}

header > .info-box p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 18px;
  color: #9ca3af;
}

section {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 20px;
}

h1 {
  font-size: 34px;
  margin-bottom: 20px;
}

h2 {
  margin-top: 60px;
  color: #3b82f6;
}

.card {
  background: rgba(10, 15, 28, 0.35);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 30px;
  border-radius: 16px;
  margin-top: 20px;
  line-height: 1.7;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Contact form styles */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-cards .card {
  margin-top: 0;
}

.contact-details {
  margin-bottom: 0;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #9ca3af;
}

.contact-icon {
  flex-shrink: 0;
  color: #eab308;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contact-form {
  margin-top: 0;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #9ca3af;
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #eab308;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  background: #eab308;
  color: #0a0f1c;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn-primary:hover {
  background: #ca8a04;
}

.contact-link {
  color: #eab308;
  text-decoration: none;
}

.contact-link:hover {
  color: #ca8a04;
}

footer {
  margin-top: auto;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  flex-shrink: 0;
  padding: 24px max(20px, env(safe-area-inset-right)) 24px max(20px, env(safe-area-inset-left));
  font-size: 14px;
  color: #eab308;
  background: rgba(10, 15, 28, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile: stack and scale info boxes */
@media (max-width: 640px) {
  :root {
    --bar-height-nav: 70px;
    --bar-height-footer: 68px;
  }

  body {
    padding-top: var(--bar-height-nav);
    padding-bottom: var(--bar-height-footer);
  }

  .bg-video,
  body:has(.bg-video)::before {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    max-width: 100%;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    z-index: 10;
    padding: 12px max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left));
  }

  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    z-index: 10;
    margin-top: 0;
    padding: 20px max(12px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .logo span {
    display: none;
  }

  .links {
    gap: 8px;
  }

  .links a {
    font-size: 12px;
    letter-spacing: 0;
  }

  header {
    padding: 32px max(12px, env(safe-area-inset-left)) 48px max(12px, env(safe-area-inset-right));
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  section {
    width: 100%;
    max-width: 100%;
    padding: 32px max(12px, env(safe-area-inset-left)) 48px max(12px, env(safe-area-inset-right));
    overflow-x: clip;
  }

  header h1,
  header .info-box h2,
  section > h1 {
    font-size: 28px;
  }

  header > .info-box,
  header > h1,
  header .intro-box,
  header .info-boxes,
  section > h1,
  section > .card {
    animation: hero-blur-in-mobile 1s ease forwards;
  }

  header > .info-box {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
  }

  header > .info-box p {
    font-size: 16px;
  }

  .intro-box {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }

  .info-boxes {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .info-boxes .info-box {
    width: 100%;
    max-width: 100%;
    flex: none;
    padding: 20px 16px;
    font-size: 15px;
    letter-spacing: 0;
    min-height: auto;
  }

  .industry-icon svg {
    width: 24px;
    height: 24px;
  }

  .card {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
  }

  .contact-cards {
    width: 100%;
    max-width: 100%;
  }
}

@keyframes hero-blur-in-mobile {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 380px) {
  nav {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .links {
    gap: 6px;
  }

  .links a {
    font-size: 11px;
  }
}
