/* Mobile Responsive Styles */

/* Tablet and below */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 40px;
  }
  
  .hero-background {
    padding: 150px 80px;
  }
  
  .hero-images {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    padding: 0 20px;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 40px;
  }
  
  .benefits-container {
    flex-direction: column;
  }
  
  .benefits-content,
  .benefits-visual {
    max-width: 100%;
    padding: 40px;
  }
  
  /* .theme-container {
    flex-direction: column;
  }
  
  .theme-content {
    padding: 40px;
  } */
  
  .package-features {
    padding: 80px 40px;
  }
  
  .features-grid-detailed {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .nav-menu {
    position: fixed;
    top: 109px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(204, 204, 204, 0.2);
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-dropdown {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }
  
  .nav-items {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .nav-item {
    color: var(--text-primary);
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(204, 204, 204, 0.2);
    width: 100%;
  }
  
  .nav-actions {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0;
  }
  
  .nav-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .nav-buttons .btn-secondary,
  .nav-buttons .btn-primary {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }
  
  .nav-buttons .btn-secondary {
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .hero-background {
    padding: 100px 20px 0px 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .hero-title {
    font-size: 24px;
    line-height: 1.1;
    padding: 0 5px;
    max-width: 100%;
    word-spacing: -1px;
    letter-spacing: -0.5px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .hero-subtitle-under {
    font-size: 16px;
    line-height: 1.4;
    color: var(--text-secondary);
    text-align: center;
    margin: 15px 0 0 0;
    padding: 0 5px;
    max-width: 100%;
    white-space: normal;
  }
  
  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 0px;
  }
  
  .hero-text {
    margin-bottom: 0px;
  }
  
  .hero-title {
    margin-bottom: 0px !important;
    font-size: 24px;
    line-height: 1.1;
    max-width: 100%;
    word-spacing: -1px;
    letter-spacing: -0.5px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .hero-subtitle-below {
    text-align: center;
    margin: 20px 0;
  }
  
  .hero-subtitle-below .hero-subtitle {
    font-size: 14px;
    margin: 0 auto;
    max-width: 658px;
    padding: 0 20px;
  }
  
  /* Mobile spacing fixes for homepage sections - no spacing */
  .hero {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
  }
  
  .hero-background {
    padding-bottom: 0px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .hero-images-slider {
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }
  
  .hero-content {
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
  }
  
  .hero-subtitle-below {
    margin: 0px !important;
  }
  
  .hero-badges {
    margin-top: 10px !important;
    margin-bottom: 20px !important;
  }
  
  .intro-third-line {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin: 10px 0 0 0;
    font-weight: 500;
  }
  
  .footer {
    padding: 24px 20px 48px;
  }
  
  .footer-main {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* PC - Keep title in 2 lines */
@media (min-width: 769px) {
  .hero-title {
    font-size: 42px;
    line-height: 1.1;
    max-width: 1000px;
  }
  
  .intro-third-line {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin: 15px 0 0 0;
    font-weight: 500;
  }
  
  .hero-subtitle-under {
    font-size: 18px;
    line-height: 1.5;
    color: var(--text-secondary);
    text-align: center;
    margin: 20px 0 0 0;
    padding: 0 10px;
    max-width: 100%;
    white-space: nowrap;
  }
  
  .hero-badges {
    flex-direction: row !important;
    gap: 20px !important;
    margin-top: 20px !important;
    margin-bottom: 40px !important;
    position: relative !important;
    z-index: 5 !important;
  }
  
  /* Restore original desktop footer layout */
  .footer {
    padding: 24px 80px 48px;
  }
  
  .footer-main {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-direction: row;
    text-align: left;
  }
  
  .footer-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    flex-direction: row;
  }
  
  .footer-social {
    justify-content: flex-end;
  }
}
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-badges {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 0px;
    position: relative;
    z-index: 5;
  }
  
  .hero-images {
    position: static;
    transform: none;
    margin-top: 0px;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .app-screenshot {
    width: 200px;
    height: 400px;
  }
  
  .intro-title {
    font-size: 24px;
  }
  
  .intro-subtitle {
    font-size: 32px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 20px;
  }
  
  .partners-container {
    gap: 30px;
    padding: 0 20px;
  }
  
  .benefits-content {
    padding: 40px 20px;
  }
  
  .benefits-content h2 {
    font-size: 28px;
  }
  
  .benefits-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .benefits-visual {
    padding: 20px;
  }
  
  .device-mockup {
    width: 300px;
    height: 334px;
  }
  
  .cta-section {
    padding: 60px 20px;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .cta-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .testimonials {
    padding: 60px 20px;
  }
  
  .testimonial-card {
    flex-direction: column;
  }
  
  .testimonial-sidebar {
    width: 100%;
    padding: 30px 20px;
  }
  
  .package-features {
    padding: 60px 20px;
  }
  
  .theme-content {
    padding: 40px 20px;
  }
  
  .theme-content h2 {
    font-size: 28px;
  }
  
  /* .theme-visual {
    padding: 20px;
  } */
  
  .mobile-devices {
    width: 300px;
    height: 310px;
  }
  
  .mobile-device {
    width: 160px;
    height: 322px;
  }
  
  .faq {
    padding: 60px 20px;
  }
}

/* iPad specific styles */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-images-swiper .swiper-pagination {
    margin-bottom: 60px;
    position: relative;
    z-index: 10;
  }
  
  .hero-badges {
    margin-top: 20px;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
  }
}

/* iPad landscape */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .hero-images-swiper .swiper-pagination {
    margin-bottom: 50px;
  }
  
  .hero-badges {
    margin-top: 15px;
    margin-bottom: 40px;
  }
  
  .hero-images-swiper .app-screenshot {
    height: 500px;
  }
  
  .hero-images-slider {
    width: 1100px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero {
    padding-top: 80px;
  }
  
  .hero-title {
    font-size: 22px;
    padding: 0 3px;
    line-height: 1.1;
    max-width: 100%;
    word-spacing: -1px;
    letter-spacing: -0.5px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .intro-subtitle {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .hero-badges {
    align-items: stretch;
  }
  
  .badge {
    justify-content: center;
    text-align: center;
  }
  
  .app-screenshot {
    width: 160px;
    height: 320px;
  }
  
  .benefits-content h2,
  .theme-content h2,
  .cta-content h2 {
    font-size: 24px;
  }
  
  .device-mockup {
    width: 250px;
    height: 279px;
  }
  
  .mobile-devices {
    width: 250px;
    height: 260px;
  }
  
  .mobile-device {
    width: 130px;
    height: 261px;
  }
}

/* Responsive styles for testimonial slider */


@media (max-width: 900px) {
  .testimonials-swiper {
    max-width: 100%;
    padding-left: 10px;
    padding-right: 10px;
  }
  .testimonial-card {
    padding: 24px 16px;
    gap: 16px;
  }
  .mobile-screens.swiper {
    display: block !important;
    gap: 0 !important;
    width: 100%;
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .testimonials-swiper {
    @media (max-width: 900px) {
      .mobile-screens.swiper {
        display: block !important;
        gap: 0 !important;
        width: 100%;
        overflow: visible;
      }
    }
    @media (max-width: 600px) {
      .mobile-screens.swiper {
        display: block !important;
        gap: 0 !important;
        width: 100%;
        overflow: visible;
      }
      .mobile-screen {
        width: auto !important;
        height: auto !important;
        max-width: 100%;
        max-height: 100%;
      }
    }    padding-bottom: 40px !important; /* Normal space for mobile */
  }
  .swiper-pagination {
    position: static !important;
    margin-top: 20px;
    text-align: center;
    width: 100%;
    z-index: 10;
    pointer-events: auto;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 12px;
  }
  .testimonial-sidebar {
    align-self: flex-end;
  }
  .testimonial-header h3 {
    font-size: 1.1rem;
  }
  .testimonial-content blockquote {
    font-size: 1rem;
  }
}

/* Desktop: bullets outside and below the slider - place this AFTER the mobile media query */
@media (min-width: 601px) {
  .swiper-pagination {
    position: static !important;
    margin-top: 32px;
    text-align: center;
    z-index: 1;
  }
}

