/* ========================================
   /css/mobile.css
   Mobile-first overrides for NCT GeoVision
   ======================================== */

/* ---------- RESET & BASE ---------- */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* ---------- UTILITY ---------- */
.hidden-on-mobile {
  display: none !important;
}


/* ========================================
   TOP NAVIGATION
   ======================================== */

.topnav {
  height: 70px;
  padding: 0 0px;
  background: white !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.topnav::before {
  display: none;
}

/* Brand / Logo */
a.title {
  padding-left: 0;
}

a.title .home {
  margin-left: -4px;
}

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;
}

/* Desktop nav hidden on mobile */
.nav-desktop {
  display: none !important;
}

/* Hamburger */
.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  font-size: 32px;
  color: #21346e;
  margin-right: 0.3rem;
}


/* ========================================
   MOBILE MENU
   ======================================== */

.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 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;
  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: 100vh;
  background: rgba(0, 0, 0, 0.75);
  padding: 0;
  position: relative;
}

.hero-image2 {
  width: 90%;
  left: -10px;
  top: 20px;
}

.hero-content {
  text-align: center;
  bottom: 0;
  left: 0;
  max-width: 100%;
}

.hero-content h2 {
  font-size: 2.7rem !important;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1rem;
  line-height: 1.5rem;
  font-family: "Cairo", sans-serif;
  padding: 0 7px;
  font-weight: 500;
}

.hero-content .latest-news {
  margin-top: 20px;
  font-size: 1.1rem;
  background-color: #eb6623;
  padding: 12px 25px;
  border-radius: 20px;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-content .latest-news:hover {
  background-color: #d4551f;
}

.hero-content .latest-news a {
  color: #ffffff;
  font-family: "Bahnschrift", sans-serif;
  text-decoration: none;
}

.hero-content .latest-news a i {
  margin-left: 8px;
  font-size: 1.2rem;
}


/* ========================================
   SLIDERS (Services & Sectors)
   ======================================== */

.services-section,
.applications-section {
  padding: 0;
  z-index: 100;
}

.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 arrows */
.slider-arrow {
  width: 40px;
  height: 40px;
}

.slider-arrow i {
  font-size: 20px;
}

.left-arrow {
  left: 8px;
}

.right-arrow {
  right: 8px;
}

/* Indicators */
.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 - MODERN TIMELINE
   ======================================== */

.how-we-work-section {
  padding: 4rem 1rem 5rem;
  position: relative;
  z-index: 100;
  background: #0e0e0e;
  overflow: hidden;
}

.how-we-work-section .container {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #eb662300;
  background: rgba(235, 102, 35, 0.12);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  font-family: "Bahnschrift", sans-serif;
}

.section-header .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  font-family: "Bahnschrift", sans-serif;
}

.section-header .title-underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #eb6623, #f08a4a);
  margin: 0.5rem auto 1rem;
  border-radius: 2px;
}

.section-header .section-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
  font-family: "Cairo", sans-serif;
}

/* Timeline Grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
  position: relative;
}

/* Desktop connecting line */
.timeline-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(235, 102, 35, 0.1) 0%,
    rgba(235, 102, 35, 0.4) 50%,
    rgba(235, 102, 35, 0.1) 100%
  );
  transform: translateY(-50%);
  z-index: 0;
}

/* Individual Step */
.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  height: auto;
}

/* Step Number */
.step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  width: 100%;
}

.step-number span {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(235, 102, 35, 0.3);
  font-family: "Bahnschrift", sans-serif;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(235, 102, 35, 0.08);
}

.step-line {
  display: none;
}

/* Step Content Card */
.step-content {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  width: 100%;
  height: auto;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.step-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(235, 102, 35, 0.05) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 16px;
}

.step-content:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 102, 35, 0.25);
  box-shadow: 0 8px 30px rgba(235, 102, 35, 0.08);
}

.step-content:hover::before {
  opacity: 1;
}

/* Step Icon */
.step-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(235, 102, 35, 0.15), rgba(235, 102, 35, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #eb6623;
  transition: all 0.3s ease;
  border: 1px solid rgba(235, 102, 35, 0.1);
  flex-shrink: 0;
}

.step-content:hover .step-icon {
  background: linear-gradient(135deg, rgba(235, 102, 35, 0.25), rgba(235, 102, 35, 0.1));
  transform: scale(1.05);
  border-color: rgba(235, 102, 35, 0.2);
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
  font-family: "Bahnschrift", sans-serif;
  letter-spacing: 0.3px;
}

.step-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  line-height: 1.4;
  font-family: "Cairo", sans-serif;
}


/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  height: auto;
  position: relative;
  z-index: 100;
  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-section img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1000;
  filter: brightness(0) invert(1);
}


/* ========================================
   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;
}


/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* ---------- Tablet & Small Screens (≤768px) ---------- */
@media screen and (max-width: 768px) {
  /* Navigation overrides */
  .hamburger {
    display: flex !important;
  }

  .mobile-menu {
    display: block !important;
  }

  .nav-desktop {
    display: none !important;
  }
}

/* ---------- Tablet: How We Work (601-1024px) ---------- */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .timeline-grid::before {
    display: none;
  }

  .step-number span {
    font-size: 0.75rem;
  }

  .step-content {
    padding: 1.5rem 1rem;
  }
}

/* ---------- Mobile: How We Work (≤600px) ---------- */
@media screen and (max-width: 600px) {
  .how-we-work-section {
    padding: 2.5rem 0.5rem 3rem;
  }

  .section-header .section-title {
    font-size: 1.8rem;
  }

  .section-header .section-subtitle {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .timeline-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0.25rem 1.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: auto;
    max-height: none;
  }

  .timeline-grid::-webkit-scrollbar {
    display: none;
  }

  .timeline-grid::before {
    display: none;
  }

  .timeline-step {
    flex: 0 0 160px;
    scroll-snap-align: start;
    height: auto;
    max-height: none;
  }

  .step-number span {
    font-size: 0.7rem;
    padding: 0.15rem 0.8rem;
  }

  .step-content {
    padding: 1.25rem 0.75rem;
    min-height: 140px;
    height: auto;
    overflow: hidden;
  }

  .step-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }

  .step-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .step-content p {
    font-size: 0.7rem;
    line-height: 1.3;
  }

}

/* ---------- Small Mobile (≤480px) ---------- */
@media screen and (max-width: 480px) {
  .hero-content h2 {
    font-size: 1.8rem;
  }

  .slide-title {
    font-size: 1.6rem;
  }

  .bottom-navigation-bar .section {
    width: 100%;
  }

  .timeline-step {
    flex: 0 0 140px;
  }

  .step-content {
    min-height: 130px;
    padding: 1rem 0.6rem;
  }
}

/* ---------- Extra Small (≤400px) ---------- */
@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;
  }
}

/* ---------- Remove connecting line on tablet/mobile ---------- */
@media screen and (max-width: 1024px) {
  .timeline-grid::before {
    display: none;
  }
}


/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes swipePulse {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0);
  }
  50% {
    opacity: 0.6;
    transform: translateX(4px);
  }
}


/* ========================================
   ABOUT US PAGE MOBILE STYLES
   ======================================== */

/* Main wrapper */
.sectionbox {
  padding-top: 90px;
}

/* Header hero */
.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;
}

/* Content containers */
.container {
  display: flex;
  flex-direction: column;
  padding: 0 16px;
  margin-bottom: 20px;
}

.container .box {
  width: 100%;
  padding: 1.5rem 1rem;
  margin-bottom: 16px;
  background: rgba(0, 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;
}

/* About Us - Tablet & Small Screens (≤768px) */
@media screen and (max-width: 768px) {
  .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;
  }

  .bottom-navigation-bar .section {
    width: 50%;
    padding: 0 8px;
  }
}

/* About Us - Extra Small (≤480px) */
@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%;
  }
}
/* ========================================
   RTL / ARABIC OVERRIDES
   ======================================== */

/* ---------- Navigation ---------- */
[dir="rtl"] .topnav .title {
    flex-direction: row;
}

[dir="rtl"] .topnav .title .home {
    text-align: right;
    margin-right: 10px;
    margin-left: 0;
}

[dir="rtl"] .mobile-menu {
    text-align: right;
}

[dir="rtl"] .mobile-menu .sub-link {
    padding-right: 20px;
    padding-left: 0;
}

/* ---------- Footer ---------- */
[dir="rtl"] .bottom-navigation-bar .section ul li i {
    margin-left: 8px;
    margin-right: 0;
}

/* ---------- Slider Arrows (RTL flip) ---------- */
[dir="rtl"] .slider-arrow.left-arrow i,
[dir="rtl"] .slider-arrow.right-arrow i {
    transform: scaleX(-1);
}

[dir="rtl"] .left-arrow {
    left: auto;
    right: 8px;
}

[dir="rtl"] .right-arrow {
    right: auto;
    left: 8px;
}

/* ---------- Hover Nav ---------- */
[dir="rtl"] .hover-nav {
    right: auto;
    left: 20px;
}

[dir="rtl"] .hover-nav i {
    transform: scaleX(-1);
}

/* ---------- Slide Content ---------- */
[dir="rtl"] .service-slide .slide-content {
    text-align: right;
}

[dir="rtl"] .learn-more {
    float: right;
}

/* ---------- Swipe Hints (RTL) ---------- */
[dir="rtl"] .slider-left-hint {
    left: auto;
    right: 15px;
}

[dir="rtl"] .slider-right-hint {
    right: auto;
    left: 15px;
}

[dir="rtl"] .slider-hint i {
    transform: scaleX(-1);
}

/* ---------- Back to Top ---------- */
[dir="rtl"] .back-to-top {
    right: 30px;
}

/* ---------- Hero Content ---------- */
[dir="rtl"] .hero-content .latest-news a i {
    margin-left: 0;
    margin-right: 8px;
    transform: scaleX(-1);
}



/* ---------- Mobile Swipe Hint ---------- */


/* ---------- Fix for container conflict ---------- */
/* The .container class is used in both the timeline AND About Us */
/* We need to scope the About Us styles more specifically */

/* About Us container - only apply to About Us page */
.sectionbox .container {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
    margin-bottom: 20px;
}

.sectionbox .container .box {
    width: 100%;
    padding: 1.5rem 1rem;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    border: 1px solid rgba(235, 102, 35, 0.15);
}

/* The timeline container stays as-is */
.how-we-work-section .container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

/* RTL About Us adjustments */
[dir="rtl"] .sectionbox .container .box .line {
    margin-right: 0;
    margin-left: auto;
}

[dir="rtl"] .values-list li {
    padding-left: 0;
    padding-right: 20px;
}

[dir="rtl"] .values-list li::before {
    left: auto;
    right: 0;
}