/* /css/mobile.css */
/* Mobile-first overrides for NCT GeoVision */

* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* ===== TOP NAVIGATION (WHITE BACKGROUND) ===== */
.topnav {
  height: 70px;
  padding: 0 16px;
  background: white !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topnav::before {
  display: none;
}

a.title {
  padding-left: 0;
}

a.title img {
  height: 50px;
  width: 50px;
  margin-right: 8px;
}

a.title .home h2 {
  font-size: 18px;
  color: #21346e;
}

a.title .home h3 {
  font-size: 12px;
  color: #314d7d;
  font-family: "Cairo", sans-serif
}

/* Hide desktop navigation */
.nav-desktop {
  display: none !important;
}

/* Hamburger button with Bootstrap icon */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  margin-right: 0px;
  font-size: 32px;
  color: #21346e;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(0 0 0 / 95%);
  backdrop-filter: blur(12px);
  z-index: 999;
  overflow-y: auto;
  padding: 20px 16px 40px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a,
.mobile-menu .menu-section-title {
  color: #eb6623;
  text-decoration: none;
  font-family: "Bahnschrift", sans-serif;
  font-size: 18px;
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid rgba(235, 102, 35, 0.2);
}

.mobile-menu .menu-section-title {
  font-weight: 600;
  color: #eb6623;
  border-bottom: none;
  padding-bottom: 4px;
  margin-top: 8px;
}

.mobile-menu .sub-link {
  font-size: 16px;
  color:#fff;
  padding-left: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu .sub-link:last-child {
  border-bottom: none;
}

.mobile-menu .lang-switch {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.mobile-menu .lang-switch a {
  border-bottom: none;
  font-size: 18px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
}

/* ===== HERO SECTION ===== */
.hero {
  height: 85vh;
}

.hero-image2 {
  width: 90%;
  left: -10px;
  top: 20px;
}

.hero-content {
  bottom: 18%;
  left: 5%;
  max-width: 85%;
}

.hero-content h2 {
  font-size: 3.1rem !important;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.45rem;
}

/* ===== SLIDERS (SERVICES & SECTORS) ===== */
.single-slider-container,
.services-slider {
  height: 75vh;
}

/* Slide content at bottom */
.service-slide {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px 40px;
  padding-top: 0;
}

.service-slide .slide-content {
    max-width: 100%;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(0);
    margin-bottom: 71px;
}

.slide-title {
  font-size: 2rem;
}

.slide-description {
  font-size: 1rem;
  padding-left: 0;
  max-width: 100%;
}

.learn-more {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  margin-top: 12px;
}

.slider-arrow {
  width: 40px;
  height: 40px;
}

.slider-arrow i {
  font-size: 20px;
}

.left-arrow {
  left: 8px;
}

.right-arrow {
  right: 8px;
}

.slider-indicators {
  bottom: 1rem;
  gap: 0.6rem;
}

.slider-dash {
  width: 25px;
  height: 3px;
}

/* Section titles */
.section-title {
  font-size: 1.3rem;
  padding: 0.6rem 1.5rem;
  top: 10px;
  white-space: nowrap;
}

/* ===== HOW WE WORK (TIMELINE) ===== */
.how-we-work-section {
  padding: 2.5rem 1rem 3rem;
}

.how-we-work-title {
  font-size: 1.8rem;
}

.how-we-work-subtitle {
  font-size: 0.95rem;
}

.steps-timeline {
  gap: 0.5rem;
  padding-bottom: 1rem;
}

.timeline-item {
  min-width: 130px;
  max-width: 140px;
}

.number-circle {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
}

.timeline-line {
  height: 20px;
}

.timeline-card {
  padding: 1rem 0.5rem;
  min-height: 125px;
}

.timeline-card i {
  font-size: 1.5rem;
}

.timeline-card p {
  font-size: 0.8rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  height: auto;
  padding: 3rem 1.5rem 4rem;
}

.cta-section .frame {
  width: 100%;
  margin-top: 1rem;
  padding: 2rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.cta-section h2 {
  font-size: 1.6rem;
}

.cta-section p {
  font-size: 0.95rem;
}

.cta-button {
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
}

/* CTA image centered & cropped */
.cta-section img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1000;
  filter: brightness(0) invert(1);
}

/* ===== BOTTOM NAVIGATION (FOOTER) ===== */
.bottom-navigation-bar {
  padding: 30px 16px 16px;
}

.bottom-navigation-bar .upper {
  gap: 20px 0;
}

.bottom-navigation-bar .section {
  width: 50%;
  padding: 0 10px;
  margin-bottom: 20px;
}

.bottom-navigation-bar .section h1 {
  font-size: 16px;
}

.bottom-navigation-bar .section .line {
  width: 60px;
}

.bottom-navigation-bar .section p,
.bottom-navigation-bar .section li,
.bottom-navigation-bar .section a {
  font-size: 11px;
}

.social-icons a {
  font-size: 18px;
}

.copyright {
  padding: 15px 0 5px;
  font-size: 10px;
}

/* ===== HOVER NAV ===== */
.hover-nav {
  bottom: 20px;
  right: 20px;
  gap: 10px;
}

.hover-nav i {
  font-size: 24px;
  padding: 6px 12px;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
  bottom: 15px;
  font-size: 0.75rem;
  padding: 8px 16px;
  white-space: nowrap;
}

/* ===== LOADER ===== */
.rotating-logo {
  width: 70px;
  height: 70px;
}

.loader-text {
  font-size: 12px;
}

/* ===== UTILITY ===== */
.hidden-on-mobile {
  display: none !important;
}

@media screen and (max-width: 400px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }
  
  .slide-title {
    font-size: 1.6rem;
  }
  
  .bottom-navigation-bar .section {
    width: 100%;
  }
  
  .timeline-item {
    min-width: 120px;
  }
}
.topnav .title
{
    padding-left: 0px;
}
a.title .home {
    margin-left: -4px;
}
.services-section, .applications-section {
    padding: 0rem 0;
}
/* ===== ABOUT US PAGE MOBILE STYLES ===== */

/* Sectionbox (main content wrapper) */
.sectionbox {
    padding-top: 90px; /* space for fixed header */
}

/* Header hero area */
.header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
}

.header .items .title {
    font-size: 2.2rem;
}

.header .items .slogon {
    font-size: 1.1rem;
    max-width: 90%;
    margin: 0 auto;
}

/* Container adjustments */
.container {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    margin-bottom: 20px;
}

.container .box {
    width: 100%;
    padding: 1.5rem 1rem;
    margin-bottom: 16px;
    background: rgb(0 0 0 / 36%);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(235, 102, 35, 0.15);
}

.container .box .title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.container .box .line {
    width: 60px;
    height: 3px;
    background: #eb6623;
    margin-bottom: 1rem;
}

.container .box p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Values list */
.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.values-list li strong {
    color: #eb6623;
    display: inline-block;
    margin-right: 6px;
}

.values-list li::before {
    content: "▹";
    color: #eb6623;
    position: absolute;
    left: 0;
    top: 0;
}

/* Remove left padding on RTL? Not needed here */

/* Footer already handled by existing mobile.css */

/* Adjust hover nav for about page */
.hover-nav {
    bottom: 20px;
    right: 20px;
}

/* Ensure the header doesn't overlap content */
@media screen and (max-width: 480px) {
    .header .items .title {
        font-size: 1.8rem;
    }
    .container .box .title {
        font-size: 1.4rem;
    }
    .sectionbox {
        padding-top: 80px;
    }
}
/* ===== ABOUT US PAGE MOBILE OVERRIDES ===== */

/* Show hamburger and mobile menu on mobile (override inline style) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex !important;  /* Override desktop 'display: none' */
    }
    
    .mobile-menu {
        display: block !important; /* Override desktop 'display: none' */
    }
    
    /* Ensure desktop navigation is hidden on mobile */
    .nav-desktop {
        display: none !important;
    }
    
    /* Additional About Us specific mobile adjustments */
    .sectionbox {
        padding-top: 80px;
    }
    
    .header {
        min-height: 35vh;
        padding: 1.5rem 1rem;
    }
    
    .header .items .title {
        font-size: 2rem;
    }
    
    .header .items .slogon {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .container .box {
        padding: 1.2rem 1rem;
        margin-bottom: 12px;
    }
    
    .container .box .title {
        font-size: 1.5rem;
    }
    
    .container .box p {
        font-size: 0.9rem;
    }
    
    .values-list li {
        font-size: 0.9rem;
        padding-left: 18px;
    }
    
    /* Footer mobile adjustments (already in mobile.css but reinforce) */
    .bottom-navigation-bar .section {
        width: 50%;
        padding: 0 8px;
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .header .items .title {
        font-size: 1.8rem;
    }
    
    .container .box .title {
        font-size: 1.3rem;
    }
    
    .bottom-navigation-bar .section {
        width: 100%;
    }
}