/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================================== */

@media screen and (max-width: 768px) {

  /* -----------------------------------------------------------------------
     1. GLOBAL OVERFLOW & BOX SIZING FIXES
     ----------------------------------------------------------------------- */
  html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* Prevents unwanted horizontal scrolling */
    height: auto;       /* Allows body to expand vertically */
  }

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

  /* -----------------------------------------------------------------------
     2. HEADER & NAVIGATION
     ----------------------------------------------------------------------- */
  .navbar {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    background-color: rgba(19, 19, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .trenchanttitle {
    position: relative;
    left: auto;
    margin-bottom: 10px;
    justify-content: center;
    gap: 10px;
  }

  .trenchantlogo {
    height: 22px;
    margin-left: 0;
  }

  .toplink {
    font-size: 12px;
    padding: 6px 10px;
    height: auto;
  }

  /* -----------------------------------------------------------------------
     3. HERO BANNER & HERO SECTIONS
     ----------------------------------------------------------------------- */
  .webbanner {
    height: 60vh; /* Reduced height on mobile screens */
  }

  .vidbg {
    height: 100%;
    object-fit: cover; /* Keeps video full cover without stretching */
  }

  .page-intro-sec {
    padding: 140px 5% 40px 5%;
  }

  .page-title {
    font-size: 32px;
  }

  .page-lead-text {
    font-size: 16px;
    line-height: 26px;
  }

  .lead-in {
    left: 5vw;
    right: 5vw;
    font-size: 14px;
    padding: 8px 20px;
    bottom: 20px;
  }

  /* -----------------------------------------------------------------------
     4. MISSION & TRACK RECORD SECTIONS
     ----------------------------------------------------------------------- */
  .OURMISSION-SEC {
    padding: 24px 0% 0px 0%;
  }

  .OURMISSION-SEC .text-block-centered h1,
  .TRACKRECORD-SEC .text-block-centered h1 {
    font-size: 28px;
    flex-direction: row;
    text-align: center;
  }
  .TRACKRECORD-SEC .text-block-centered svg{
    height: 34px;
    width: 34px;
  }

  .OURMISSION-SEC .text-block-centered p {
    font-size: 15px;
    margin-top: 20px;
    line-height: 22px;
    font-weight: 420;
    padding: 0;
  }

  /* Convert horizontal bullet row to vertical stack */
  .BULLET-LIST {
    flex-direction: column;
    gap: 0px;
  }

  .TRACKRECORD-SEC .BULLET-LIST p {
    font-size: 13px;
    line-height: 20px;
    padding: 8px;
    gap: 8px;
    margin-bottom: 4px;
  }

.TRACKRECORD-SEC .BULLET-LIST p svg{
    height: 20px; 
    width: auto;
}
  .TRACKRECORD-SEC .text-block-centered {
    width: 88%;
  }

.slide-bg-1 {
   border-top: 20px solid #13141b;
}
  /* -----------------------------------------------------------------------
     5. HOME PAGE SLIDES (Architecture / Integration / Execution)
     ----------------------------------------------------------------------- */
  .slide {
    width: 100%;
    height: auto;
  }

  .slide-content {
    width: 100%;
    margin: 0 auto;
    padding: 0px 28px;
  }

  .slide-content:hover {
    padding: 18px 28px; /* Disable expanded padding jump on hover for mobile touch */
  }

  .slide-content a {
    font-size: 24px;
  }
  .slide-content a svg{
    height: 26px;
    width: auto;
  }

  .slide-sub-header {
    font-size: 16px;
  }

  .slide-desc {
    font-size: 14px;
    line-height: 22px;
  }

  /* -----------------------------------------------------------------------
     6. SUBPAGE SERVICE CARDS
     ----------------------------------------------------------------------- */
  .service-container {
    width: 92%;
  }

  .service-card {
    padding: 14px;
  }

  .service-card-title {
    font-size: 20px;
  }

  .service-card-body {
    font-size: 15px;
    line-height: 26px;
  }

  .service-card p {
    margin-left: 0;
    padding-left: 16px;
    font-size: 14px;
    border-color: #83b1ffb3 ; 
}

.TRACKRECORD-SEC .text-block-centered svg{
    height: 32px;
    width: auto;
  }
    
    /* -----------------------------------------------------------------------
     7. FIELD ANIMATION SECTION (TRUCK & MISSILE)
     ----------------------------------------------------------------------- */
  .field-section {
    height: 50vh;
  }

  .field-lead {
    font-size: 24px;
    padding: 10px 20px;
    top: 5%;
  }

  .field-title {
    font-size: 40px;
    padding: 10px 20px;
    bottom: 5%;
  }

  .defense-mark-logo {
    width: 160px;
  }

  .launch-assembly {
    width: 180px;
  }

  .muzzle-flash {
    width: 240px;
  }

  /* -----------------------------------------------------------------------
     8. FOOTER
     ----------------------------------------------------------------------- */
  .contactGRID {
    grid-template-columns: 1fr; /* Stack footer elements vertically */
    gap: 12px;
  }

  .contactblock {
    padding: 20px 10px;
    font-size: 13px;
  }

  .lead-in{
    display: none;
  }
}




/* ==========================================================================
   MOBILE NAVIGATION OVERRIDES (Replace or merge with your previous media query)
   ========================================================================== */
@media screen and (max-width: 768px) {
   .navbar {
      flex-direction: row; /* Keeps logo and hamburger on the same horizontal line */
      justify-content: space-between;
      padding: 12px 18px 12px 16px;
   }

   .trenchantlogo {
      height:18px;
      margin-top: 8px;
   }

   /* Show the hamburger menu */
   .hamburger {
      display: flex;
   }

   /* Style the dropdown menu (Hidden by default) */
   .nav-links {
      position: absolute;
      top: 100%; /* Positions it directly below the navbar */
      left: 0;
      width: 100%;
      flex-direction: column;
      background-color: rgba(19, 19, 20, 0.98); /* Matches your dark theme */
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(203, 203, 203, 0.1);
      padding: 10px 0 20px 0;
      box-shadow: 0 15px 20px rgba(0,0,0,0.4);
      
      /* Slide up & hide initially */
      transform: translateY(-150%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
   }

   /* Class applied via JavaScript to trigger the slide down */
   .nav-links.active {
      transform: translateY(0);
      opacity: 1;
      pointer-events: auto;
   }

   .toplink {
      padding: 15px 20px;
      width: 100%;
      text-align: center;
      font-size: 16px;
   }

   .page-intro-sec {
   position: relative;
   padding: 100px 11% 40px 11%; /* Padding clears fixed glass navbar */
   text-align: center;
   overflow: hidden;
   background-size: cover;
   background-position: center;
}

   /* Hamburger Animation: Turns into an 'X' when active */
   .hamburger.active .bar:nth-child(1) {
      transform: translateY(8px) rotate(45deg);
   }
   .hamburger.active .bar:nth-child(2) {
      opacity: 0; /* Hides the middle line */
   }
   .hamburger.active .bar:nth-child(3) {
      transform: translateY(-8px) rotate(-45deg);
   }

.slide-bg-1 {
   background-image: linear-gradient(#133e83e9, #2c251b7f), url('HI.jpg');
   background-size: cover;
   background-position: center;
   border-top: 30px solid #13141b;
}



  .slide-content {
   padding: 1% 7%;

   box-sizing: border-box;
   display: flex;
   flex-direction: column;
   justify-content: left;
   text-align: left;
   backdrop-filter: blur(3px);
   background: #1b202b7a;

   transition: all 0.6s;
  }

  .slide-content:hover {
   background: #1b202b36;
  }


}