@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --navy: #2e5a88;
  --navy-rgb: 46, 90, 136;
  --gold: #d2b450;
  --gold-rgb: 210, 180, 80;
  --gray: #9aa0a6;
  --white: #f4f5f7;
  --white-rgb: 244, 245, 247;
  --glass-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Roboto", sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.video-region {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.video-region:nth-of-type(2) {
  padding: 12rem 0;
  min-height: 120vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.65) contrast(1.1);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

section {
  padding: 4rem 0;
}

.section-light {
  background: transparent;
  color: var(--white);
}

.section-dark {
  color: var(--white);
}

.glass-pane {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(var(--navy-rgb), 0.65) 100%
  );
  backdrop-filter: blur(25px) saturate(200%) brightness(1.03);
  -webkit-backdrop-filter: blur(25px) saturate(200%) brightness(1.03);
  border-radius: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.75);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1.5px 1px 0 rgba(255, 255, 255, 0.9),
    inset -3px -3px 8px 0 rgba(var(--navy-rgb), 0.5);
  transition:
    transform 0.5s var(--glass-ease),
    box-shadow 0.5s var(--glass-ease),
    background 0.5s var(--glass-ease),
    border-color 0.5s var(--glass-ease);
  overflow: hidden;
}

.glass-pane::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  border-radius: inherit;
}

.glass-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(var(--gold-rgb), 0.4) 35%,
    var(--navy) 70%,
    var(--navy) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

header.glass-pane {
  position: sticky;
  top: 1.25rem;
  z-index: 1000;
  width: min(1100px, calc(100% - 3rem));
  margin: 0 auto;
  border-radius: 24px;
  overflow: visible; /* Prevents clipping absolutely positioned mobile dropdowns */
  background: linear-gradient(
    135deg,
    rgba(var(--navy-rgb), 0.6) 0%,
    rgba(var(--navy-rgb), 0.85) 60%,
    var(--navy) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    inset -3px -3px 10px 0 rgba(20, 45, 70, 0.6);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.75rem;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.5rem;
  border-radius: 99px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  backdrop-filter: blur(10px);
}

.nav-links a {
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s var(--glass-ease);
}

.nav-links a:hover {
  color: #111;
  background: rgba(var(--gold-rgb), 0.9);
  box-shadow: 0 4px 12px rgba(var(--gold-rgb), 0.4);
}

.nav-toggle {
  display: none;
}

.container {
  width: min(1100px, calc(100% - 4rem));
  margin: 0 auto;
}

#hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-image.glass-pane {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(var(--navy-rgb), 0.5) 100%
  );
}

.hero-image img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

section.section-dark.glass-pane {
  width: min(1100px, calc(100% - 4rem));
  margin: 2rem auto;
  padding: 4.5rem 3rem;
  background: linear-gradient(
    135deg,
    rgba(var(--navy-rgb), 0.75) 0%,
    rgba(var(--navy-rgb), 0.85) 50%,
    var(--navy) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.4),
    inset -6px -6px 20px 0 rgba(20, 45, 70, 0.6);
}

section.section-dark h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.service-card.glass-pane {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(var(--navy-rgb), 0.6) 100%
  );
}

.service-card.glass-pane:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.15) 35%,
    rgba(var(--navy-rgb), 0.8) 100%
  );
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(var(--gold-rgb), 0.3),
    inset 0 1.5px 2px 0 rgba(255, 255, 255, 1),
    inset -6px -6px 15px 0 rgba(var(--navy-rgb), 0.6);
}

.service-card img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  color: var(--white);
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.contact-card.glass-pane {
  padding: 3.5rem 3rem;
  margin: 2rem auto 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(var(--navy-rgb), 0.65) 100%
  );
}

.contact-info {
  margin: 1.5rem 0 2.5rem;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-info p,
.contact-info a {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.contact-info a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: var(--gold);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 520px;
}

label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

input,
textarea {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-radius: 18px;
  font: inherit;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  color: var(--white);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    inset -2px -2px 6px rgba(var(--navy-rgb), 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s var(--glass-ease);
}

input:focus,
textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.45);
  border-top-color: rgba(var(--gold-rgb), 0.8);
  border-left-color: rgba(var(--gold-rgb), 0.8);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  box-shadow:
    0 0 0 4px rgba(var(--gold-rgb), 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.8),
    inset -2px -2px 6px rgba(var(--navy-rgb), 0.3);
}

button {
  padding: 1.1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(var(--navy-rgb), 0.85) 0%,
    var(--navy) 100%
  );
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(15px);
  box-shadow:
    0 10px 25px rgba(var(--navy-rgb), 0.25),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5),
    inset -3px -3px 8px rgba(20, 45, 70, 0.5);
  transition: all 0.3s var(--glass-ease);
}

button:hover {
  background: linear-gradient(
    135deg,
    rgba(var(--gold-rgb), 1) 0%,
    rgba(200, 165, 35, 0.9) 100%
  );
  color: #111;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  box-shadow:
    0 14px 30px rgba(var(--gold-rgb), 0.4),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.8),
    inset -3px -3px 8px rgba(var(--navy-rgb), 0.4);
  transform: translateY(-2px);
}

footer.glass-pane {
  width: min(1100px, calc(100% - 4rem));
  margin: 3rem auto 2.5rem;
  padding: 2rem;
  text-align: center;
  color: var(--white);
  background: linear-gradient(
    135deg,
    rgba(var(--navy-rgb), 0.7) 0%,
    rgba(var(--navy-rgb), 0.85) 50%,
    var(--navy) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  border-radius: 24px;
}

/* ==========================================================================
   Mobile & Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
  header.glass-pane {
    width: calc(100% - 2rem);
    overflow: visible; /* Ensures overflow remains visible on smaller screens */
  }

  section.section-dark.glass-pane,
  .container,
  footer.glass-pane {
    width: calc(100% - 2rem);
  }

  nav {
    padding: 0.75rem 1.25rem;
  }

  /* Hamburger Toggle Button */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--white);
    border-radius: 4px;
    transition: all 0.3s var(--glass-ease);
  }

  /* Hamburger Animation on Active/Open */
  .nav-toggle.active span:nth-child(1),
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2),
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3),
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* Mobile Navigation Menu Dropdown */
  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    border-radius: 20px;
    background: linear-gradient(
      135deg,
      rgba(var(--navy-rgb), 0.92) 0%,
      rgba(20, 45, 70, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.35s var(--glass-ease);
    pointer-events: none;
    z-index: 1000;
  }

  /* Mobile Navigation Menu Active State */
  .nav-links.active,
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  #hero .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-image.glass-pane {
    width: 100%;
  }

  .video-region:nth-of-type(2) {
    padding: 6rem 0;
    min-height: auto;
  }

  section.section-dark.glass-pane,
  .contact-card.glass-pane {
    padding: 2.5rem 1.5rem;
  }

  .services-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 0.75rem;
  }

  form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  header.glass-pane {
    width: calc(100% - 1.5rem);
  }

  section.section-dark.glass-pane,
  .container,
  footer.glass-pane {
    width: calc(100% - 1.5rem);
  }

  .nav-title {
    font-size: 0.85rem;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  section.section-dark h2 {
    font-size: 1.75rem;
  }
}
