/* ==============================
   MOBILE-FIRST GLOBAL RESET + BOX-SIZING
   ============================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll */
}
body {
  /* FULL-SCREEN BACKGROUND */
  background: url('bannerhero.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==============================
   COLOR PALETTE (SCIFI COCKPIT THEME)
   ============================== */
:root {
  --text-primary:       #f0f5fa;
  --text-secondary:     #d1d8e5;

  --panel-dark:         rgba(20, 23, 30, 0.92);
  --card-dark:          rgba(30, 34, 45, 0.94);
  --overlay-bg:         rgba(15, 17, 23, 0.96);

  --accent-blue:        #00b3ff;
  --accent-blue-hover:  #0099cc;
  --neon-teal:          #00e5c0;
  --neon-teal-hover:    #00cda8;

  --border-light:       #2a313f;

  --btn-bg:             linear-gradient(180deg, #0077aa 0%, #0099cc 95%);
  --btn-hover-bg:       linear-gradient(180deg, #0099cc 0%, #00b3ff 95%);

  --inst-bg:            #0c0f18;
  --inst-needle:        #ff3b3b;
  --inst-text:          #c0d0ff;

  /* CONTAINER GUTTERS */
  --container-max-width: 1000px;
  --gutter-mobile: 1rem;
  --gutter-tablet: 2rem;
  --gutter-desktop: 3rem;
}

/* ==============================
   CONTAINER GUTTERS: HEADER + MAIN
   ============================== */
.header,
main {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-mobile);
  box-sizing: border-box;
  width: 100%;
}

/* ==============================
   HAMBURGER ICON (MOBILE ≤900px)
   ============================== */
.hamburger {
  display: flex;
  position: fixed;
  top: var(--gutter-mobile);
  left: var(--gutter-mobile);
  width: 44px;
  height: 44px;
  background: var(--overlay-bg);
  border: 2px solid var(--accent-blue);
  border-radius: 0.75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
  z-index: 2000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--accent-blue);
  margin: 3px 0;
  border-radius: 3px;
  transition: background 0.25s;
}

/* ==============================
   OVERLAY MENU (FULL-SCREEN FADE-IN)
   ============================== */
#overlayMenu {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1500;
}
#overlayMenu.open {
  opacity: 1;
  visibility: visible;
}
#overlayMenu .overlay-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
#overlayMenu .overlay-logo img {
  height: 48px;
  filter: drop-shadow(0 0 4px #00b3ffcc);
}
#overlayMenu .close-btn {
  position: absolute;
  top: var(--gutter-mobile);
  right: var(--gutter-mobile);
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}
#overlayMenu .close-btn:hover {
  color: var(--accent-blue);
}
#overlayMenu nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
#overlayMenu nav a {
  color: var(--text-primary);
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: color 0.3s, transform 0.2s;
}
#overlayMenu nav a:hover {
  color: var(--accent-blue);
  transform: translateX(5px);
}
#overlayMenu nav a.active {
  color: var(--accent-blue);
}

/* ==============================
   HEADER (DESKTOP >900px)
   ============================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--panel-dark);
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem var(--gutter-tablet);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.4);
}
.header .logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.9rem;
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.header .logo img {
  height: 36px;
  filter: drop-shadow(0 0 4px #00b3ffcc);
}
.header .nav {
  display: none;
}
.header .nav-btn {
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.header .nav-btn:hover,
.header .nav-btn.active {
  background: var(--btn-hover-bg);
  box-shadow: 0 6px 16px rgba(0,179,255,0.6), inset 0 2px 8px rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

/* ==============================
   MAIN & HERO LAYOUT
   ============================== */
main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem var(--gutter-mobile) 1rem;
}
.hero {
  width: 100%;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero-img-box,
.hero-info {
  width: 100%;
  box-sizing: border-box;
}
.hero-img-box {
  aspect-ratio: 16/9;
  border: 3px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-info {
  background: var(--card-dark);
  border: 3px solid var(--border-light);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.hero-info h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}
.hero-info p {
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ==============================
   RESPONSIVE VIDEO EMBED
   ============================== */
.video-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==============================
   G1000 COCKPIT MOCKUP
   ============================== */
.g1000-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  margin: 2rem 0;
}
.g1000-pfd,
.g1000-mfd {
  width: 90vw;
  max-width: 340px;
  aspect-ratio: 1;
}
.g1000-pfd {
  background: var(--inst-bg);
  border: 3px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4), inset 0 2px 8px rgba(255,255,255,0.05);
  position: relative;
}
.g1000-mfd {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* other G1000 elements unchanged */

/* ==============================
   CTA BUTTON (ANY PAGE)
   ============================== */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,179,255,0.6), inset 0 2px 8px rgba(255,255,255,0.08);
}

/* ==============================
   FOOTER (STICKY BOTTOM)
   ============================== */
.footer {
  background: var(--panel-dark);
  color: var(--text-primary);
  text-align: center;
  padding: 1rem;
  border-top: 2px solid var(--border-light);
  margin-top: auto;
}

/* ==============================
   MEDIA QUERIES (RESPONSIVE)
   ============================== */
/* Tablet (≥600px) */
@media (min-width: 600px) {
  .header,
  main {
    padding: 0 var(--gutter-tablet);
  }
  .hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .g1000-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Desktop (≥900px) */
@media (min-width: 900px) {
  .header,
  main {
    padding: 0 var(--gutter-desktop);
  }
  .hamburger { display: none; }
  .header .nav { display: flex; gap: 0.8rem; }
  #overlayMenu { display: none; }
  main { padding: 2rem var(--gutter-desktop) 1rem; }
  .hero { margin-top: 3rem; }
  .g1000-pfd,
  .g1000-mfd {
    width: 340px;
  }
}
