/*============================
Responsive Styles
============================*/

/* Large Screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* Desktop */
@media (max-width: 1199px) {
  .container {
    max-width: 1024px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .timeline:after {
    left: 31px; /* Adjust the center line position */
  }
  
  .timeline-item {
    flex-direction: row;
  }
  
  .timeline-item:nth-child(odd) {
    flex-direction: row;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 20px;
  }
  
  .model-preview {
    width: 250px; /* Reduce model preview size */
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .container {
    max-width: 768px;
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 120px 0 80px;
  }
  
  .hero-section .container {
    flex-direction: column;
  }
  
  .hero-content,
  .hero-3d-card {
    width: 100%;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 3rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .qr-content {
    flex-direction: column;
  }
  
  .qr-info, 
  .qr-visual {
    width: 100%;
  }
  
  .qr-visual {
    order: -1; /* Show visual first on mobile */
    margin-bottom: 2rem;
  }
  
  .models-display {
    flex-direction: column;
    align-items: center;
  }
  
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .pricing-card {
    max-width: 320px;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: scale(1) translateY(-10px);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-info,
  .contact-form {
    width: 100%;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-social {
    margin-bottom: 1rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .features-grid,
  .benefits-grid,
  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    padding: 1rem;
  }
  
  .pricing-cards {
    gap: 2rem;
  }
  
  .pricing-card {
    max-width: 100%;
  }
  
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    font-size: 0.875rem;
  }
  
  .comparison-feature,
  .comparison-item {
    padding: 0.75rem 0.5rem;
  }
  
  .portfolio-filter {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
  }
  
  .filter-btn {
    padding: 6px 15px;
    font-size: 0.75rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form .btn-primary {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .payment-methods {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 70px; /* Move up to account for mobile bottom nav */
    right: 20px;
    width: 40px;
    height: 40px;
  }
  
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .blog-card {
    max-width: 100%;
  }
  
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1fr;
  }
  
  .comparison-feature {
    font-weight: 600;
    background-color: rgba(88, 101, 242, 0.1);
  }
  
  .comparison-item:not(.comparison-feature) {
    border-bottom: none;
  }
  
  .comparison-row {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
  }
}
