/* =============================================
   GSME ENTERPRISES - RESPONSIVE CSS
   ============================================= */

/* Large Desktop */
@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .mega-menu  { width: 700px; }
}

/* Desktop */
@media (max-width: 1100px) {
  .hero-container    { gap: 40px; }
  .about-wrapper     { gap: 50px; }
  .why-wrapper       { gap: 50px; }
  .footer-grid       { grid-template-columns: 1fr 1fr; gap: 40px; }
  .svc-grid          { grid-template-columns: repeat(2, 1fr); }
  .tech-grid         { grid-template-columns: repeat(2, 1fr); }
  .proj-grid         { grid-template-columns: repeat(2, 1fr); }
  .mega-menu         { width: 600px; }
  .mega-menu-grid    { grid-template-columns: 1fr 1fr; }
  .mega-highlight    { display: none; }
}

/* Tablet */
@media (max-width: 900px) {
  /* Navbar */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 77vh;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 24px 32px;
    gap: 4px;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    overflow-y: auto;
    z-index: 1000;
  }
  .nav-menu.open { right: 0; }
  .nav-menu > li { width: 100%; }
  .nav-menu > li > a {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 15px;
  }
  .hamburger { display: flex; }
  .btn-consultation { display: none; }

  /* Mega menu mobile */
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    display: none;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    margin: 4px 0;
  }
  .mega-menu .container { padding: 16px; }
  .mega-menu-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .has-mega-menu.open .mega-menu { display: block; }

  /* Hero */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding-top: 100px;
  }
  .hero-left { order: 1; }
  .hero-right { order: 2; }
  .hero-para { margin: 0 auto 36px; }
  .hero-btns { justify-content: center; }
  .hero-stats-row { justify-content: center; }
  .hero-main-img { width: 280px; height: 280px; margin: 60px auto; }
  .h-ring-1 { width: 220px; height: 220px; }
  .h-ring-2 { width: 320px; height: 320px; }
  .h-ring-3 { width: 400px; height: 400px; }
  .fc-1 { left: 0; top: 20px; }
  .fc-2 { right: 0; top: 20px; }
  .fc-3 { bottom: 20px; }

  /* About */
  .about-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .aimg-small, .aimg-small-2 { display: none; }
  .about-checklist { grid-template-columns: 1fr; }

  /* Services */
    .svc-grid { grid-template-columns: repeat(2, 1fr); }

  /* Technology */
  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  /* Projects */
  .proj-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why */
  .why-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .wi-sub { display: none; }
  .wi-badge { right: 16px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(3, 1fr); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Topbar */
  .topbar-left  { display: none; }
  .topbar-right { width: 100%; justify-content: center; }
}

/* Mobile Large */
@media (max-width: 640px) {
  .page-header {padding: 16px 35px 16px !important;}

  /* General */
  .container { padding: 0 16px; }

  .sec-title { font-size: 26px; }
  .sec-sub   { font-size: 15px; }

  /* Topbar */
  .topbar { display: none; }

  /* Hero */
  .hero-heading  { font-size: 32px; }
  .hero-para     { font-size: 15px; }
  .hero-btns     { flex-direction: column; align-items: center; }
  .btn-hero-primary,
  .btn-hero-outline { width: 100%; justify-content: center; }

  .hero-stats-row {
     width: 100%;
    gap: 14px;
    padding: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hs-sep         { display: none; }
  .hs-item        { min-width: 80px; }
  .hs-item strong { font-size: 22px; }

  .hero-main-img { width: 240px; height: 240px; }
  .h-float-card  { display: none; }

  /* Clients */
  .client-card { min-width: 170px; padding: 12px 18px; }
  .cc-icon      { font-size: 22px; }
  .cc-info strong { font-size: 15px; }

  /* About */
  .aimg-main img   { height: 300px; }
  .aimg-badge      { padding: 12px 16px; }
  .ab-num          { font-size: 28px; }
  .about-actions   { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn-primary     { width: 100%; justify-content: center; }

  /* Services */
  .svc-grid  { grid-template-columns: 1fr; }
  .svc-img   { height: 180px; }

  /* Technology */
  .tech-grid { grid-template-columns: 1fr; }
  .tech-section { padding: 70px 0; }

  /* Projects */
  .proj-grid     { grid-template-columns: 1fr; }
  .proj-filters  { gap: 8px; }
  .pf-btn        { padding: 8px 18px; font-size: 13px; }

  /* Why */
  .why-cards  { gap: 14px; }
  .why-card   { flex-direction: column; gap: 12px; }
  .wi-main    { height: 300px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-box   { padding: 24px 12px; }
  .sb-number  { font-size: 28px; }
  .sb-icon    { font-size: 26px; }

  /* Testimonials */
  .testi-card           { padding: 28px 22px; }
  .testiSwiper .swiper-button-prev,
  .testiSwiper .swiper-button-next { display: none; }

  /* CTA */
  .cta-btns        { flex-direction: column; align-items: center; }
  .btn-cta-white,
  .btn-cta-outline { width: 100%; justify-content: center; }
  .cta-contact-row { flex-direction: column; gap: 10px; }
  .cta-content h2  { font-size: 26px; }

  /* Footer */
  .footer-grid         { grid-template-columns: 1fr; gap: 32px; }
  .footer-top          { padding: 50px 0 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; gap: 6px; }

  /* Floating Buttons */
  .wa-float    { bottom: 80px; right: 16px; width: 50px; height: 50px; font-size: 22px; }
  .back-to-top { bottom: 20px; right: 16px; width: 42px; height: 42px; }
}

/* Mobile Small */
@media (max-width: 400px) {
.proj-filters{
  display: none;
 }
  
  .hero-heading   { font-size: 28px; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .about-checklist { grid-template-columns: 1fr; }
  .hero-main-img  { width: 200px; height: 200px; }
  .navbar-logo .logo-sub { display: block; }
}