/* =======================================================================
   home.mobile.css — MOBILE RESPONSIVE OVERRIDES ONLY
   Extracted from home.css. Loaded AFTER home.css in index.html.
   DO NOT place desktop / tablet-only rules here.
   ======================================================================= */


/* ===================== TABLET / MOBILE — max 1024px ===================== */
@media (max-width: 1024px) {

  /* ---- Navbar ---- */
  .nav {
    padding: 12px 24px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  /* Push hero content below fixed nav */
  .hero {
    padding-top: 60px;
  }

  .hamburger {
    display: flex;
  }

  .nav nav {
    justify-content: space-between;
    gap: 0;
  }

  .nav_logo {
    width: 200px;
    height: 38px;
  }

  .nav_links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 80vw);
    background: #000000c2;
    padding: 90px 32px 32px;
    gap: 4px;
    transition: right 0.35s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
  }

  .nav_links.open {
    right: 0;
  }

  .nav_links a {
    margin: 0;
    padding: 14px 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: 50px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transition: color 0.25s ease, padding-left 0.25s ease;
  }

  .nav_links > #home {
    margin-left: 0;
  }

  .nav_links a:hover,
  .nav_links a.active {
    color: #00d4ff;
    padding-left: 6px;
  }

  .nav_links button {
    width: 100%;
    margin-top: 14px;
    padding: 12px 18px;
  }

  .nav_overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .nav_overlay.open {
    display: block;
  }

  /* ---- Hero ---- */
  .hero-inner {
    width: 100% !important;
    padding: 80px 40px !important;
  }

  .big_text {
    font-size: 42px;
  }

  .small_text {
    font-size: 19px;
  }

  .items {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ---- About ---- */
  .center {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .about_vid {
    margin: 0 !important;
    overflow: visible;
  }

  .about_vid video {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
    height: auto;
  }

  /* ---- What We Do ---- */
  .we_flex {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    padding: 0 24px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .what_we {
    width: 100% !important;
    height: auto !important;
    min-height: 180px;
  }

  /* ---- Infrastructure ---- */
  .dialoge > div > div {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .dialoge > div > div > div {
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
  }

  /* ---- Timeline / Market ---- */
  .line {
    padding: 40px 24px 60px;
  }

  .market > div > div > div {
    padding: 30px 20px;
  }

  .market p {
    font-size: 28px !important;
  }

  .idea_vid {
    margin: 0 !important;
    overflow: visible;
  }

  .idea_vid video {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
    margin-right: 0 !important;
    padding: 0 20px;
  }

  /* ---- Why Choose Us ---- */
  .why_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .why_inner {
    padding: 0 20px !important;
  }

  /* ---- Vid section ---- */
  .vid_section {
    margin: 0 !important;
    padding: 30px 16px;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .vid_section video {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
  }

  /* ---- Footer ---- */
  .footer_inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 50px;
  }

  .footer_contact {
    grid-column: 1 / -1;
  }

  .footer_about p {
    max-width: 100%;
  }

  .footer_bottom {
    margin-top: 30px;
  }

  /* ---- Industries We Serve ---- */
  .weserve {
    padding: 60px 24px;
  }

  .weserve > p {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .serve_flex {
    grid-template-columns: repeat(2, 1fr);
    margin-left: 30px;
  }

  /* ---- FAQ ---- */
  .faq {
    padding: 80px 20px;
  }

  /* FAQ answer — tablet */
  .faq_answer p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  /* ---- BADDIE — tablet scaling (641–1024px) ---- */
  .market .baddie {
    max-width: 720px !important;
  }

  .market .baddie .rounded {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .market .baddie .baddie-line {
    top: 16px !important;
    width: 93% !important;
    left: 3.5% !important;
    right: 3.5% !important;
    margin: 0 !important;
  }

  .market .baddie .baddie-circle {
    height: 44px !important;
    padding-bottom: 12px !important;
  }

  .market .baddie .baddie-label {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  /* Serve icon — tablet alignment */
  .serve_icon {
    width: 32px;
    height: 32px;
  }

  .serve_flex img {
    width: 32px;
    height: 32px;
  }

  /* ---- CTA ---- */
  .cta_title {
    font-size: 30px;
    line-height: 36px;
  }
}


/* ===================== MOBILE — max 640px ===================== */
@media (max-width: 640px) {

  /* ---- Overflow prevention ---- */
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* ---- Navbar ---- */
  .nav {
    padding: 10px 16px;
  }

  .nav_logo {
    width: 170px;
    height: 32px;
  }

  .nav_links {
    padding: 70px 24px 24px;
  }

  .nav_links > #home {
    margin-left: 0;
  }

  .nav_links a {
    font-size: 40px;
    font-weight: 700;
    color: #f1f5f9;
    padding: 13px 0;
  }

  /* ---- Hero ---- */
  .hero {
    height: auto;
    min-height: 100vh;
  }

  .hero-inner {
    width: 100% !important;
    padding: 60px 20px !important;
    margin-top: 40px;
  }

  .big_text {
    font-size: 28px;
  }

  .small_text {
    font-size: 16px;
    line-height: 24px;
    padding: 14px 0;
  }

  .items {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .items p {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .items p img {
    width: 22px;
    height: 22px;
  }

  .hero_button {
    flex-direction: column;
    gap: 12px;
  }

  .hero_button button {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  /* ---- About ---- */
  .about {
    padding: 40px 0;
  }

  .center {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .center h2 {
    font-size: 24px;
  }

  .center p {
    font-size: 14px;
    line-height: 1.6;
  }

  .about_vid {
    margin: 0 !important;
    overflow: visible;
  }

  .about_vid video {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
    height: auto;
    border-radius: 992px;
  }

  .about > div {
    padding: 0 10px;
  }

  /* ---- What We Do ---- */
  .what_we_do {
    padding: 50px 0;
  }

  .what_we_do > p {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .we_flex {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 0 16px !important;
    margin: 0 !important;
  }

  .what_we {
    width: 100% !important;
    height: auto !important;
    min-height: auto;
  }

  /* ---- Infrastructure ---- */
  .advance_infra {
    padding: 50px 16px;
  }

  .dialoge > p:first-child {
    font-size: 24px;
  }

  .dialoge > p:nth-child(2) {
    font-size: 14px;
    max-width: 100%;
  }

  .dialoge > div > div {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 0 !important;
  }

  .dialoge > div > div > div {
    width: 100% !important;
    height: auto !important;
    min-height: auto;
  }

  /* ---- Timeline / Market ---- */
  .market {
    padding: 30px 0;
  }

  .market p {
    font-size: 22px !important;
    margin-bottom: 30px !important;
  }

  .market > div > div > div {
    padding: 24px 16px;
  }

  .line {
    padding: 24px 16px 30px;
  }

  .line > p {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .market .line > div > div:first-child,
  .market > div > div > div > div > div:first-child {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0 !important;
  }

  .market .line > div > div:last-child,
  .market > div > div > div > div > div:last-child {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0 !important;
  }

  .market .line hr {
    width: calc(100% - (100% / 6));
  }

  .idea_vid {
    margin: 0 !important;
    overflow: hidden;
  }

  .idea_vid video {
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 1 !important;
    height: auto !important;
    border-radius: 992px;
    padding: 20px;
  }

  /* ---- BADDIE — mobile ---- */
  .baddie {
    padding: 12px 0 !important;
    max-width: 100% !important;
  }

  .market .baddie .rounded {
    width: 22px !important;
    height: 22px !important;
    font-size: 10px !important;
  }

  .market .baddie .baddie-line {
    top: 38px !important;
    width: 93% !important;
    left: 3.5% !important;
    right: 3.5% !important;
    margin: 0 !important;
  }

  .market .baddie .baddie-circle {
    height: 30px !important;
    padding-bottom: 8px !important;
  }

  .market .baddie .baddie-label {
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  /* ---- Industries We Serve ---- */
  .weserve {
    padding: 40px 16px !important;
  }

  .weserve > p {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .serve_flex {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .serve_flex > div {
    padding: 16px 18px !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto;
  }

  .serve_flex p {
    font-size: 14px;
  }

  .serve_icon {
    width: 28px;
    height: 28px;
  }

  .serve_flex img {
    width: 28px;
    height: 28px;
  }

  /* ---- Why Choose Us ---- */
  .us {
    padding: 50px 16px;
  }

  .why_title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .why_grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  .why_inner {
    padding: 0 16px !important;
  }

  .why_card p {
    font-size: 12px;
  }

  /* ---- Vid section ---- */
  .vid_section {
    margin: 0 !important;
    padding: 24px 16px;
    display: flex;
    justify-content: center;
    overflow: hidden;
  }

  .vid_section video {
    border-radius: 992px;
    flex-shrink: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 15px;
  }

  /* ---- FAQ ---- */
  .faq {
    padding: 10px 16px;
  }

  .faq_title {
    font-size: 26px;
  }

  .faq_item {
    padding: 14px 18px;
  }

  .faq_item p {
    font-size: 13px;
  }

  .faq_answer {
    margin-top: 10px;
    padding-top: 10px;
  }

  .faq_answer p {
    font-size: 12px;
    line-height: 1.55;
  }

  /* ---- CTA ---- */
  .cta {
    padding: 60px 16px;
  }

  .cta_title {
    font-size: 24px;
    line-height: 30px;
  }

  .cta_buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta_primary,
  .cta_secondary {
    width: 100%;
  }

  /* ---- Footer ---- */
  .footer {
    padding: 36px 16px 0;
  }

  .footer_inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .footer_col img {
    width: 160px;
    height: auto;
  }

  .footer_about p {
    max-width: 100%;
    font-size: 13px;
    line-height: 19px;
  }

  .footer_head {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .footer_links_grid {
    gap: 10px 20px;
  }

  .footer_links_grid a {
    font-size: 13px;
  }

  .footer_contact_row p {
    font-size: 13px;
    line-height: 20px;
  }

  .footer_bottom {
    padding: 14px 0;
    margin-top: 24px;
  }

  .footer_bottom p {
    font-size: 11px;
  }
}
