/* =========================
   TABLET (<=1024px)
========================= */

@media (max-width: 1024px) {

  .hero-title {
    font-size: 48px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 40px;
  }

}

/* =========================
   MOBILE (<=768px)
========================= */

@media (max-width: 768px) {

  section {
    padding: 80px 0;
  }

  .container {
    width: 92%;
  }

 /* =========================
   PREMIUM MOBILE NAV
========================= */

.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--text-primary);
  left: 0;
  transition: 0.4s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Slide Menu */
.nav-menu ul {
  transition: 0.4s ease;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(17,24,39,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 120px 40px;
    gap: 30px;
    transition: 0.4s ease;
    z-index: 1000;
  }

  nav ul.active {
    right: 0;
  }

  body.menu-open {
    overflow: hidden;
  }

}

  /* HERO */

  .hero {
    height: auto;
    padding-top: 120px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

}

/* =========================
   SMALL MOBILE (<=480px)
========================= */

@media (max-width: 480px) {

  .hero-title {
    font-size: 28px;
  }

  .stat h3 {
    font-size: 36px;
  }

}

/* =====================================
   CLIENTS SECTION - MOBILE RESPONSIVE
===================================== */
@media(max-width:1000px){

.clients-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:600px){

.clients-grid{
grid-template-columns:1fr;
}

.clients-header h2{
font-size:32px;
}

}

/* =====================================
   EXPERTISE SECTION - MOBILE RESPONSIVE
===================================== */

@media (max-width: 992px) {

  .expertise-container {
    grid-template-columns: 1fr;   /* stack layout */
    gap: 50px;
    padding: 60px 35px;
  }

  /* Remove vertical divider */
  .expertise-divider {
    display: none;
  }

  /* Left Section */
  .expertise-left h2 {
    font-size: 30px;
    line-height: 1.4;
  }

  /* Stats stack nicely */
  .expertise-stats {
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
  }

  .stat h3 {
    font-size: 28px;
  }

  .stat p {
    font-size: 13px;
    max-width: 100%;
  }

  /* Right Section */
  .expertise-item {
    margin-bottom: 30px;
  }

  .expertise-item h4 {
    font-size: 16px;
  }

  .expertise-item p {
    font-size: 13px;
  }
}

/* =====================================
   SMALL DEVICES (Extra Clean)
===================================== */

@media (max-width: 576px) {

  .expertise-section {
    padding: 100px 0;
  }

  .expertise-container {
    width: 92%;
    padding: 45px 25px;
    border-radius: 25px;
  }

  .expertise-left h2 {
    font-size: 24px;
  }

  .stat h3 {
    font-size: 24px;
  }

  .expertise-item h4 span {
    font-size: 18px;
  }
}



/* ========================================
   CAPABILITIES SECTION - MOBILE RESPONSIVE
======================================== */

@media (max-width: 992px) {

  .capabilities-section {
    padding: 100px 0;
  }

  .cap-container {
    width: 92%;
    padding: 50px 30px;
    border-radius: 28px;
  }

  /* Header layout stack */
  .cap-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .cap-title {
    font-size: 26px;
    margin-bottom: 15px;
  }

  .cap-sub {
    font-size: 14px;
    max-width: 100%;
  }

  /* Circle smaller */
  .cap-circle {
    width: 130px;
    height: 130px;
    align-self: flex-start;
  }

  .circle-arrow {
    width: 22px;
    height: 22px;
  }

  .circle-arrow::before {
    width: 22px;
  }

  .circle-arrow::after {
    height: 22px;
  }

  /* Marquee spacing */
  .cap-marquee {
    margin-top: 50px;
  }

  .cap-track {
    gap: 18px;
    padding: 20px 10px;
  }

  .cap-card {
    width: 150px;
    height: 80px;
    border-radius: 16px;
  }

  .cap-card img {
    max-width: 65%;
  }

}


/* Extra small devices */

@media (max-width: 576px) {

  .cap-container {
    padding: 40px 20px;
  }

  .cap-title {
    font-size: 22px;
  }

  .cap-sub {
    font-size: 13px;
  }

  .cap-circle {
    width: 110px;
    height: 110px;
  }

  .cap-card {
    width: 130px;
    height: 70px;
  }

}



/*-------------------------------
 ABOUT US SECTION - MOBILE RESPONSIVE 
 ------------------------------- */

@media (max-width:768px){

.about-page-hero{
height:300px;
}

.about-hero-content h1{
font-size:40px;
}

.breadcrumb{
font-size:14px;
}

}


/* who we are section */

@media (max-width:992px){

.who-grid{
grid-template-columns:1fr;
}

.who-cards{
grid-template-columns:1fr;
}

.who-left h2{
font-size:36px;
}

}

/* Timeline section */

@media (max-width:768px){

.timeline-title{
font-size:36px;
}

.timeline-wrapper{
max-width:100%;
}

.timeline-item{
padding-left:60px;
}

.timeline-dot{
left:6px;
}

}

/* Mission section */

@media(max-width:900px){

.mission-grid{
grid-template-columns:1fr;
gap:60px;
}

.mission-left h2{
font-size:36px;
}

.mission-3d{
display:none;
}

}

/* APPRPACH SECTION */

@media(max-width:900px){

.approach-header{
flex-direction:column;
gap:30px;
}

.approach-left h2{
font-size:36px;
}

.approach-cards{
grid-template-columns:1fr;
}

}


/* =============================
DIGITAL INNOVATION SECTION
============================= */

@media(max-width:900px){

.innovation-wrapper{
grid-template-columns:1fr;
gap:60px;
}

.innovation-content h2{
font-size:34px;
}

.innovation-stats{
grid-template-columns:1fr;
}

.innovation-media img{
width:100%;
}

}


/* =====================================
PARTNERS SECTION
===================================== */


@media(max-width:900px){

.partners-grid{
grid-template-columns:1fr;
gap:50px;
padding:50px;
}

.partners-left h2{
font-size:36px;
}

.partners-logos{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:500px){

.partners-logos{
grid-template-columns:1fr;
}

}


/* =====================================
FAQ SECTION
===================================== */


@media(max-width:900px){

.faq-grid{
grid-template-columns:1fr;
}

.floating-img{
display:none;
}

.faq-content h2{
font-size:34px;
}

}
/* =====================================
TEAM SECTION
===================================== */

@media(max-width:1000px){

.team-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:600px){

.team-grid{
grid-template-columns:1fr;
}

.team-header h2{
font-size:32px;
}

}