/* Base */

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: visible;
  font-family: "Helvetica Now", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #EEF5FF;
  color: #081F60;
}

@font-face {
  font-family: 'Manifold Extended CF';
  src: url('../fonts/ManifoldExtendedCF-Regular.otf') format('opentype'),
       url('../fonts/ManifoldExtendedCF-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Manifold Extended CF';
  src: url('../fonts/ManifoldExtendedCF-Bold.otf') format('opentype'),
       url('../fonts/ManifoldExtendedCF-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Manifold Extended CF Extra Bold';
  src: url('../fonts/ManifoldExtendedCF-ExtraBold.otf') format('opentype'),
       url('../fonts/ManifoldExtendedCF-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'AerolunaBrand';
  src: url('../fonts/ManifoldExtendedCF-ExtraBold.otf') format('opentype'),
       url('../fonts/ManifoldExtendedCF-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

/* Global Font Overrides */
body, p, span, a, input, select, textarea, button, label, li, div, section, option {
  font-family: "Helvetica Now", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6, 
.logo-text, .section-title, .aero-card-title, 
.illusion-title, .drone-overlay-title, .specs-heading,
.footer-about h3, .footer-column h3, .contact-title, .contact-grid-label,
.tech-badge, .spec-value, .scrolly-title, .fleet-card h2, .fleet-card-id {
  font-family: "Manifold Extended CF Extra Bold", "AerolunaBrand", sans-serif !important;
}

/* Navbar */

.navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 8px 60px;
  box-sizing: border-box;

  background: rgba(238, 245, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border-bottom: none;
  transition: all 0.3s ease;
}

/* Product page navbar: fixed overlay so it's always on top and        */
/* doesn't participate in document flow (Android scroll-safe).          */
.product-page .navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(238, 245, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-page .navbar {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.home-page .navbar:not(.scrolled) .nav-links a {
  color: #ffffff;
}

.home-page .navbar:not(.scrolled) .nav-links a:hover {
  background: white;
  color: #081F60;
}

.home-page .navbar.scrolled {
  background: rgba(238, 245, 255, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-bottom: none;
  box-shadow: 0px 6px 18px rgba(8, 31, 96, 0.08);
}

.home-page .navbar.scrolled .nav-links a {
  color: #081F60;
}

.home-page .navbar.scrolled .nav-links a:hover {
  background: white;
  color: #081F60;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 38px;
  width: auto;
}

.logo-text {
  font-family: 'AerolunaBrand', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #081F60;
}

.logo-full {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.nav-links a {
  display: inline-block;

  text-decoration: none;
  color: #081F60;

  padding: 6px 14px;

  border-radius: 22px;

  transition:
    transform 0.5s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Hover button lift effect */

.nav-links a:hover {
  background: white;

  transform: translateY(-6px);

  box-shadow:
    0px 10px 20px rgba(8, 31, 96, 0.18),
    0px 2px 6px rgba(8, 31, 96, 0.08);

  border-radius: 22px;
}

/* In-drawer mobile close button: hidden by default (desktop) */
.nav-drawer-close {
  display: none;
}

/* Hero */

.hero {
  text-align: left;
  padding: 240px 80px 120px;
  /* Increased top padding to accommodate overlay navbar */
  background: #081F60;
  position: relative;
  overflow: hidden;
}

/* Hero background video */
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

/* Linear gradient overlay: starts strong from bottom, decreases gradually to top (fully transparent at top) */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 31, 96, 0.95) 0%, rgba(8, 31, 96, 0.4) 60%, rgba(8, 31, 96, 0) 100%);
  z-index: 2;
}

/* Ensure hero content sits above the video */
.hero>*:not(.hero-bg-video):not(.hero-video-overlay) {
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1.15;
  margin-bottom: 24px;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 24px;
  color: #E2ECFF;
  margin-bottom: 38px;
}

/* Ensure hero secondary button is visible over dark video background */
.hero .secondary-btn {
  border-color: #FFFFFF;
  color: #FFFFFF;
}

.hero .secondary-btn:hover {
  background: #FFFFFF;
  color: #081F60;
}


/* Buttons */

.primary-btn,
.secondary-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 16px;
  text-decoration: none;
  transition: 0.3s ease;
  cursor: pointer;
}

.primary-btn {
  border: none;
  background: #081F60;
  color: white;
}

.primary-btn:hover {
  background: #4B6FBF;
  transform: translateY(-2px);
}

.secondary-btn {
  border: 1px solid #081F60;
  color: #081F60;
  background: transparent;
}

.secondary-btn:hover {
  background: #081F60;
  color: white;
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sections */

.home-feature-section,
.products-section,
.dashboard-section {
  padding: 30px 60px 80px;
}

.section-title {
  font-size: 46px;
  text-align: center;
  margin-bottom: 50px;
  color: #081F60;
}

/* Product + dashboard grids */

.product-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* General Cards */

.product-card,
.dashboard-card,
.login-card {
  background: white;
  padding: 36px;
  border-radius: 22px;
  box-shadow: 0px 4px 18px rgba(8, 31, 96, 0.08);
  text-align: center;
  transition: 0.3s ease;
  box-sizing: border-box;
}

.product-card:hover,
.dashboard-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 24px rgba(8, 31, 96, 0.12);
}

/* Solutions Page Specific Card Styling */
.solution-card {
  background: white;
  padding: 40px 36px;
  border-radius: 24px;
  box-shadow: 0px 4px 18px rgba(8, 31, 96, 0.08);
  text-align: left;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0px 10px 24px rgba(8, 31, 96, 0.12);
}

.solution-card-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #8A99AD;
  margin-bottom: 12px;
  display: block;
}

.solution-card h2 {
  font-family: 'Manifold Extended CF Extra Bold', sans-serif;
  font-size: clamp(22px, 2.5vw, 28px);
  line-height: 1.25;
  color: #081F60;
  margin-bottom: 16px;
  text-align: left;
}

.solution-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #4B6FBF;
  margin-bottom: 28px;
  text-align: left;
}

.solution-card .primary-btn,
.solution-card a.primary-btn {
  margin-top: auto;
  align-self: flex-start;
}

.product-card h2,
.dashboard-card h2 {
  margin-bottom: 14px;
  color: #081F60;
}

.product-card p,
.dashboard-card p,
.dashboard-header p,
.login-card p {
  color: #4B6FBF;
}

/* Login */

.login-section {
  min-height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.login-card {
  width: 100%;
  max-width: 420px;
}

.login-card h1 {
  margin-bottom: 10px;
  font-size: 36px;
  color: #081F60;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form input,
.login-form textarea {
  padding: 14px 16px;
  border: 1px solid rgba(8, 31, 96, 0.15);
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

.login-form input:focus,
.login-form textarea:focus {
  border-color: #4B6FBF;
}

.login-form textarea {
  resize: vertical;
}

.login-form .primary-btn {
  width: 100%;
}

.error-message {
  color: #d93025;
  background: #fdecec;
  border: 1px solid #f5c2c0;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
}

/* Dashboard */

.dashboard-header {
  text-align: center;
  margin-bottom: 50px;
}

.dashboard-header h1 {
  font-size: 42px;
  margin-bottom: 12px;
  color: #081F60;
}

/* Hero animation */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title,
.hero-subtitle,
.hero-actions {
  opacity: 0;
  animation: fadeSlideUp 0.9s ease forwards;
}

.hero-title {
  animation-delay: 0.1s;
}

.hero-subtitle {
  animation-delay: 0.4s;
}

.hero-actions {
  animation-delay: 0.7s;
}


.site-footer {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0px 4px 20px rgba(8, 31, 96, 0.05);
  max-width: 1128px;
  margin: 80px auto 40px;
  padding: 48px 48px 36px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8, 31, 96, 0.04);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(8, 31, 96, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.8;
  pointer-events: none;
}

.footer-top,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}

.footer-about h3,
.footer-column h3 {
  font-size: 14px;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  color: #9eb8ff;
}

.footer-about p,
.footer-column p,
.footer-column a,
.footer-bottom p,
.footer-bottom a {
  font-size: 15px;
  line-height: 1.8;
  color: #040000;
  text-decoration: none;
}

.footer-column span {
  font-size: 12px;
  letter-spacing: 1px;
  color: #9eb8ff;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-self: end;
}

.footer-column a:hover,
.footer-bottom a:hover {
  color: #9eb8ff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 12px !important;
  line-height: 1.5;
  color: #5E5E62;
  text-decoration: none;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .site-footer {
    margin: 80px 24px 40px;
  }
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin: 60px 14px 14px;
    padding: 36px 24px 24px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-column {
    justify-self: start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    width: 180px;
  }
}

/* Contact page styles */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #ffffff;
  padding: 80px 20px 100px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.contact-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

.contact-title {
  font-size: 48px;
  font-weight: 800;
  color: #081F60;
  line-height: 1.1;
  margin-bottom: 50px;
  font-family: 'Outfit', sans-serif;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  margin-bottom: 40px;
}

.contact-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f5f5f7;
  border-radius: 20px;
  padding: 40px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  min-height: 280px;
  box-shadow: 0px 4px 12px rgba(8, 31, 96, 0.02);
}

.contact-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 12px 30px rgba(8, 31, 96, 0.08);
}

.contact-grid-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-grid-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.8;
}

/* Icon colors matching mockup */
.icon-blue {
  color: #0066cc;
}

.icon-red {
  color: #ff3b30;
}

.icon-green {
  color: #34c759;
}

.icon-orange {
  color: #ff9500;
}

.contact-grid-label {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #081F60;
  margin: 0 0 12px 0;
}

.contact-grid-text {
  font-size: 18px;
  color: #4B6FBF;
  line-height: 1.6;
  margin: 0;
}

.contact-grid-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.contact-grid-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.maps-btn-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.google-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #081F60;
  background: #ffffff;
  border: 1px solid rgba(8, 31, 96, 0.15);
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  box-shadow: 0px 2px 8px rgba(8, 31, 96, 0.03);
}

.google-maps-btn:hover {
  background-color: rgba(8, 31, 96, 0.03);
  border-color: #081F60;
  transform: translateY(-1px);
}

.maps-icon {
  color: #081F60;
}

.arrow-symbol {
  display: inline-block;
  transition: transform 0.2s ease;
}

.google-maps-btn:hover .arrow-symbol {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .contact-title {
    font-size: 36px;
    margin-bottom: 30px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid-card {
    min-height: auto;
    padding: 30px 20px;
  }
}

/* Aero-style Product Cards Grid for Homepage */
.aero-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.aero-card {
  position: relative;
  width: 100%;
  height: 480px; /* Exact height for premium Aero-style postcards */
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0px 4px 20px rgba(8, 31, 96, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  box-sizing: border-box;
  
  /* GPU acceleration */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.aero-card:hover {
  transform: scale(1.02) translateY(-4px) translate3d(0, 0, 0);
  box-shadow: 0px 20px 40px rgba(8, 31, 96, 0.12);
}

.aero-card-header {
  padding: 36px 36px 12px;
  z-index: 2;
}

.aero-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.aero-card-title {
  font-size: 32px;
  font-weight: 700;
  color: #081F60;
  margin: 0 0 8px 0;
  line-height: 1.15;
  font-family: 'Outfit', sans-serif;
}

.aero-card-subtitle {
  font-size: 14px;
  color: #4B6FBF;
  margin: 0 0 6px 0;
  line-height: 1.4;
  font-weight: 500;
}

.aero-card-extra {
  font-size: 12px;
  color: #86868b;
  margin: 0;
}

/* Image container at bottom of card */
.aero-card-img-container {
  width: 100%;
  height: 52%;
  padding: 0 20px 28px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aero-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.aero-card:hover .aero-card-img {
  transform: scale(1.05);
}

/* Special Dark Theme Card variation */
.aero-card.dark-theme {
  background: #000000;
}

.aero-card.dark-theme .aero-card-title {
  color: #FFFFFF;
}

.aero-card.dark-theme .aero-card-subtitle {
  color: #A1A1A6;
}

.aero-card.dark-theme .aero-card-extra {
  color: #86868B;
}

@media (max-width: 768px) {
  .hero {
    padding: 160px 24px 80px;
  }
}

/* Aero Card Slider custom styles */
.aero-card-slider {
  will-change: scroll-position;
  -webkit-overflow-scrolling: touch;
}

.aero-card-slider::-webkit-scrollbar {
  display: none;
}

.slider-btn:hover {
  background: #081F60 !important;
  color: #ffffff !important;
  border-color: #081F60 !important;
  box-shadow: 0 6px 16px rgba(8, 31, 96, 0.15) !important;
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95) !important;
}

@media (max-width: 768px) {
  .slider-btn {
    display: none !important;
  }
  .slider-fade-overlay {
    display: none !important;
  }
  .aero-card-slider-wrapper {
    padding: 0 !important;
  }
  .aero-card-slider {
    gap: 16px !important;
    padding: 30px 24px 60px !important;
  }
  .aero-card-slider .aero-card {
    flex: 0 0 224px !important;
    width: 224px !important;
    height: 304px !important;
  }
  .aero-card-header {
    padding: 18px 16px 6px !important;
  }
  .aero-card-tag {
    font-size: 10px !important;
    margin-bottom: 4px !important;
    letter-spacing: 0.5px !important;
  }
  .aero-card-title {
    font-size: 16px !important;
    line-height: 1.25 !important;
    margin: 0 0 6px 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  .aero-card-extra {
    font-size: 11px !important;
    margin: 0 !important;
  }
  .product-card h2,
  .product-card h3 {
    font-size: 20px !important;
    line-height: 1.25 !important;
    word-wrap: break-word !important;
  }
  .aero-card-subtitle {
    display: none !important;
  }
  .aero-card-img {
    width: 140px !important;
    height: 110px !important;
    object-fit: contain !important;
  }
  .aero-card[href="/products"] .aero-card-img,
  .aero-card[href="/solutions"] .aero-card-img,
  .aero-card[href="/research-innovation"] .aero-card-img,
  .aero-card[href="/intelligent-flight"] .aero-card-img {
    width: 170px !important;
    height: 130px !important;
  }
  .aero-card[href="/engineering-before-manufacturing"] .aero-card-img {
    margin-top: 15px !important;
  }
  .aero-card-img-container {
    height: 50% !important;
  }
}

/* Mobile Responsive Navigation Bar and Burger Menu Toggle */
@media (max-width: 991px) {
  .navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    padding: 12px 24px;
    box-sizing: border-box;
    background: rgba(238, 245, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 4px 16px rgba(8, 31, 96, 0.08);
  }

  .mobile-nav-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 100002 !important;
    outline: none;
  }

  .mobile-nav-toggle .hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background: #081F60;
    transition: background 0.2s ease-in-out;
  }

  .mobile-nav-toggle .hamburger::before,
  .mobile-nav-toggle .hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #081F60;
    transition: transform 0.2s ease-in-out, top 0.2s ease-in-out;
  }

  .mobile-nav-toggle .hamburger::before {
    top: -8px;
  }

  .mobile-nav-toggle .hamburger::after {
    top: 8px;
  }

  .mobile-nav-toggle.active .hamburger {
    background: transparent;
  }

  .mobile-nav-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
  }

  .mobile-nav-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
  }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    transform: translateX(100%);
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(238, 245, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: -10px 0px 30px rgba(8, 31, 96, 0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 40px;
    gap: 20px;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.35s;
    z-index: 100000 !important;
    box-sizing: border-box;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  /* In-drawer close (X) button */
  .nav-drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(8, 31, 96, 0.06);
    border: 1px solid rgba(8, 31, 96, 0.12);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    z-index: 1;
  }

  .nav-drawer-close:hover,
  .nav-drawer-close:active {
    background: rgba(8, 31, 96, 0.12);
    transform: scale(1.08);
  }

  .nav-links a {
    display: block;
    width: 100%;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 16px;
    box-sizing: border-box;
    border-radius: 12px;
    transform: none !important;
    box-shadow: none !important;
    color: #081F60 !important;
  }

  .nav-links a:hover {
    background: white;
    box-shadow: 0px 4px 12px rgba(8, 31, 96, 0.08) !important;
  }
  
  .home-page .navbar:not(.scrolled) .mobile-nav-toggle .hamburger,
  .home-page .navbar:not(.scrolled) .mobile-nav-toggle .hamburger::before,
  .home-page .navbar:not(.scrolled) .mobile-nav-toggle .hamburger::after {
    background: #ffffff;
  }
  
  .home-page .navbar:not(.scrolled) .mobile-nav-toggle.active .hamburger {
    background: transparent;
  }
  
  .home-page .navbar:not(.scrolled) .mobile-nav-toggle.active .hamburger::before,
  .home-page .navbar:not(.scrolled) .mobile-nav-toggle.active .hamburger::after {
    background: #081F60;
  }

  /* Drone widget mobile positioning: hide by default, center at bottom of menu drawer when open */
  #tracking-drone-container {
    display: none !important;
  }

  body.mobile-menu-open #tracking-drone-container {
    display: flex !important;
    left: auto !important;
    right: 76px !important; /* Centers 128px container inside 280px drawer: (280 - 128) / 2 = 76px */
    bottom: 24px !important;
    z-index: 100001 !important; /* Place above the drawer */
  }

  html.mobile-menu-open,
  body.mobile-menu-open {
    overflow: hidden !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }
}

/* Mobile Navigation Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(8, 31, 96, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 992px) {
  .nav-drawer-close {
    display: none !important;
  }
  .mobile-nav-backdrop {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: none;
  }
}

/* Base styles for project form card & grid elements */
.start-project-card {
  padding: 48px;
}

.project-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}

/* Mobile responsive layout overrides for About Us and Start a Project pages */
@media (max-width: 768px) {
  .products-section,
  .dashboard-section {
    padding: 30px 16px 60px !important;
  }

  .home-feature-section {
    padding: 30px 0 60px !important;
  }

  .product-card {
    padding: 24px 20px !important;
    border-radius: 16px !important;
  }

  .product-card + .product-card {
    margin-top: 24px !important;
  }
  
  .product-grid {
    gap: 20px !important;
  }

  .start-project-card {
    padding: 28px 20px !important;
    border-radius: 20px !important;
  }

  .project-form-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .project-form-grid > * {
    grid-column: span 1 !important;
  }
}

/* Mobile Centering Pop-up Effect */
@media (max-width: 768px) {
  /* Set smooth transition for cards on mobile — same relaxed speed as desktop */
  .aero-card,
  .product-card,
  .contact-grid-card,
  .specs-card {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                box-shadow 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
  }

  /* Active popup state when centered */
  .aero-card.mobile-center-active {
    transform: scale(1.05) translateY(-6px) !important;
    box-shadow: 0px 16px 36px rgba(8, 31, 96, 0.16) !important;
    z-index: 10;
  }
  
  .aero-card.mobile-center-active .aero-card-img {
    transform: scale(1.06) !important;
  }

  .product-card.mobile-center-active,
  .contact-grid-card.mobile-center-active,
  .specs-card.mobile-center-active {
    transform: scale(1.05) translateY(-4px) !important;
    box-shadow: 0px 12px 28px rgba(8, 31, 96, 0.14) !important;
    z-index: 5;
  }
}

/* ─── 3D Experience Badge (Products card) ─────────────────────────────────── */
@keyframes aero-3d-ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2);   opacity: 0;   }
  100% { transform: scale(2);   opacity: 0;   }
}

@keyframes aero-3d-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}

.aero-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 6px 14px 6px 9px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(8, 31, 96, 0.06) 0%, rgba(59, 100, 220, 0.10) 100%);
  border: 1px solid rgba(8, 31, 96, 0.14);
  width: fit-content;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease,
              box-shadow 0.3s ease;
}

.aero-card:hover .aero-3d-badge {
  background: linear-gradient(135deg, rgba(8, 31, 96, 0.10) 0%, rgba(59, 100, 220, 0.16) 100%);
  border-color: rgba(8, 31, 96, 0.28);
  box-shadow: 0 2px 10px rgba(8, 31, 96, 0.10);
  transform: translateY(-1px);
}

/* Pulsing live-dot */
.aero-3d-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.aero-3d-pulse::before,
.aero-3d-pulse::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.aero-3d-pulse::before {
  width: 10px;
  height: 10px;
  background: #3b64dc;
}

.aero-3d-pulse::after {
  width: 10px;
  height: 10px;
  background: rgba(59, 100, 220, 0.5);
  animation: aero-3d-ring 1.8s cubic-bezier(0.215, 0.610, 0.355, 1.000) infinite;
}

/* Cube icon */
.aero-3d-icon {
  width: 17px;
  height: 17px;
  color: #081F60;
  flex-shrink: 0;
  transition: transform 0.6s ease;
}

.aero-card:hover .aero-3d-icon {
  transform: rotate(30deg) scale(1.1);
}

/* Label text */
.aero-3d-label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #081F60;
  white-space: nowrap;
}

/* Mobile: keep badge readable but compact */
@media (max-width: 768px) {
  .aero-3d-badge {
    padding: 5px 11px 5px 7px;
    gap: 6px;
  }

  .aero-3d-label {
    font-size: 11px;
  }

  .aero-3d-icon {
    width: 14px;
    height: 14px;
  }

  .aero-3d-pulse {
    width: 8px;
    height: 8px;
  }

  .aero-3d-pulse::before,
  .aero-3d-pulse::after {
    width: 8px;
    height: 8px;
  }
}