
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .vibe-glow-overlay {
    width: 300px;
    height: 200px;
  }

  .vibe-header {
    margin-top: 40px!important;
  }

  .vibe-header h2 {
    font-size: 1.8rem;
    margin-top: 70px;
  }

  .vibe-item {
    padding: 10px 20px;
    margin: 0 8px;
  }

  .vibe-item img {
    height: 25px;
  }

  .vibe-item span {
    font-size: 0.9rem;
  }

  :root {
    --vibe-speed: 50s;
  }
  .text-size {
    font-size: 17px;
  }
  .padding-left {
    padding-left: 0;
  }
}

@keyframes vibeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* --- MOBILE & TABLET FIXES --- */
@media (max-width: 1024px) {
  .scroll-container {
    height: auto;
    /* Remove artificial height on mobile */
    padding: 40px 0;
  }

    .sticky-box {
        position: relative; /* Disable sticky on mobile */
        height: auto;
        overflow: hidden; /* Hide overflow for slider */
    }

    .steps-wrapper {
        display: flex !important; /* Enable horizontal slider */
        grid-template-columns: none !important;
        gap: 0 !important;
        margin-top: 40px;
        padding: 0 !important;
        width: 100%;
        transition: transform 0.5s ease-in-out;
    }

  .progress-line-track {
    display: none;
    /* Progress bar usually feels broken on mobile vertical scroll */
  }

    .step-inner {
        opacity: 1 !important; /* Fully visible for mobile readability */
        transform: none !important;
        text-align: center;
        padding: 30px 20px;
        background: #ffffff;
        border-radius: 20px;
        border: 1px solid #c1c1c1;
        box-shadow: 0 40px 30px rgba(0,0,0,0.05);
        height: 300px;
    }
    .step-mask {
        min-width: 50%;
        flex: 0 0 50%;
        padding: 30px 15px;
    }
    
    .big-number {
        font-size: 4rem !important;
        display: block;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .step-mask {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

/* --- SMALL MOBILE FIXES --- */
@media (max-width: 480px) {
    .big-number {
        font-size: 3rem !important;
    }
    .step-inner {
        padding: 20px 15px;
        height: 220px!important;
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .side-menu {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .side-menu ul {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 50px;
  }

  .side-menu li {
    border-bottom: none;
    padding: 5px 0;
  }
  .side-menu {
    position: static;
  }
}

/* Zig-Zag Effect (Sirf bade screens par) */
@media (min-width: 769px) {
  .slide-2:nth-child(even) .card {
    margin-top: 60px;
  }
  .header-section h1 {
    font-size: 35px;
  }
  .font-size {
    font-size: 17px;
  }
}

/* Tablet & Mobile Optimization for Services Section */
@media (max-width: 1024px) {
  .content-display {
    height: auto !important;
    overflow: visible !important;
  }
}

.card {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  background: #f9f9f9;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}


.dot.active {
  background: #333;
  transform: scale(1.3);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  :root {
    --card-width: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --card-width: 80%;
  }

  /* Tablet par cards thode bade */
  .carousel-container {
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  :root {
    --card-width: 100%;
  }

  /* Mobile par ek screen par ek card */
  .header h2 {
    font-size: 1.5rem;
  }

  .slide-2 {
    padding: 0 10px;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .cta-container {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px 40px 20px;
  }

  .cta-text {
    margin-bottom: 20px;
    font-size: 1.5rem;
  }
    .projects-section {
      padding: 40px 20px!important;
    }
    .service-card2 {
      height: auto !important;
      margin-bottom: 0px !important;
    }
}

/* contact section popup modal start */
/* Mobile Adjustments */
@media (max-width: 480px) {
  .modal-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  h2 {
    font-size: 22px;
  }
}

/* contact section popup modal end */


@media (max-width: 1440px) {
  .notification-box .box-1 {
    top: 20%;
    left: 10%;
  }

  .notification-box .box-2 {
    top: 25%;
    right: 10%;
  }

  .notification-box .box-3 {
    bottom: 30%;
    left: 10%;
  }

  .notification-box .box-4 {
    bottom: 14%;
    right: 4%;
  }

  .notification-box .box-5 {
    bottom: 2%;
    text-align: center;
  }
}


/* Process Section Slider for Mobile */
@media (max-width: 768px) {
    .sticky-box {
        overflow: hidden !important;
        padding: 0 !important;
    }
    .steps-wrapper {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100%;
        transition: transform 0.5s ease-in-out;
        padding: 0 !important;
    }
}

/* why cubemoons section start */

/* --- Responsive Design (Mobile) --- */
@media (max-width: 991px) {
    .blue-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .content h2 {
        font-size: 1.2rem;
        margin-bottom: 25px;
    }

    .action {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .banner-container {
        background: transparent;
    }

    .banner-gif-wrapper {
        margin-bottom: 0;
    }
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .blue-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .content h2 {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .btn-work {
        margin-right: 0;
    }
    .logo .main-logo {
      width: 60px!important;
      height: 40px!important;
    
    }
}

/* Why Cubemoons Section Mobile Fix */
@media (max-width: 768px) {
    .stack-slider-section {
        height: 450px !important;
        padding: 0 20px !important;
    }
    .stack-card h3 {
        font-size: 22px !important;
    }
    .header-section h1 {
      font-size: 30px;
    }
    .main-container {
      padding : 10px 10px 20px 10px !important;
      min-height: auto !important;
    }
    .industry-card-new {
      flex: 0 0 90% !important;
        width: 90% !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        margin: 0 !important;
        min-height: 500px;
        scroll-snap-align: center;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
        border-radius: 24px !important;
        transform: scale(0.95) !important;
    }
    .industry-card-content h3 {
      font-size: 20px;
    }
    .industry-card-content p {
      font-size: 14px;
    }
    .cta-button {
      padding: 10px 20px;
    }
    .cta-container {
      max-width: 500px;
      padding: 20px 10px;
    }
    .stack-card, .stack-card.active {
        box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    }
    .margin-top-sm {
          margin-top: calc(37vh + 40px)!important;
    }
    .header-section {
      margin : 20px 0px!important;
      padding-top: 0 !important;
    }
    .side-menu {
      margin-bottom: 0px!important;
    }
    .banner-container {
      top: 50px !important;
      transform: none !important;
      margin-top: 20px !important;
    }
}

@media (max-width: 1024px) {
    .section-spacer {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 768px) {
    .section-spacer {
        margin-bottom: 0px !important;
    }

    .hero-bg {
        height: 90vh !important;
    }
    .hero-canvas {
        height: 90vh !important;
        transform: scale(0.75);
    }
    .hero-next-section {
        margin-top: 44vh !important;
        padding: 10px 0px!important;
    }
    #ui-overlay {
        min-height: 0 !important; /* height is auto now from index.css for the slider */
    }
    .hero-title-container {
        margin-top: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-bg {
        height: 60vh !important;
    }
    .hero-canvas {
        height: 60vh !important;
    }
    .hero-next-section {
        margin-top: calc(55vh + 30px) !important;
    }
    #ui-overlay {
        min-height: 60vh !important;
        height: 60vh !important;
    }
}

/* Fix for extra gap in Hero Section on Small Mobile Screens */
@media (max-width: 480px) {
    .hero-bg {
        height: 85vh !important;
    }
    .hero-canvas {
        height: 85vh !important;
        transform: scale(1) !important;
    }
    .hero-next-section {
        margin-top: 36vh !important;
    }
}