/* RESPONSIVE STYLES FOR SOUND CLOUD DOWNLOADER */

/* Laptop / Medium Desktop (1024px to 1199px) */
@media screen and (max-width: 1199px) {
  .container {
    max-width: 1024px;
    padding: 0 1.8rem;
  }
  .hero-headline {
    font-size: 3.2rem;
  }
  .why-grid, .benefits-grid, .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }
  .footer-four-columns {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* Tablet & iPad (768px to 1023px) */
@media screen and (max-width: 1023px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-subheading {
    margin: 0 auto 2.2rem auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  
  /* Navigation on Tablet */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem 1.5rem;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    gap: 1.2rem;
    z-index: 1001;
  }
  .nav-links.active {
    display: flex;
    animation: slideDownMenu 0.3s ease forwards;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .nav-actions .btn-primary {
    display: none; /* Hide primary button on compact tablet header to avoid crowding */
  }
  
  /* Steps Timeline */
  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }
  .step-connector {
    display: none;
  }
  
  /* Testimonials & About grids */
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  /* Footer */
  .footer-four-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  
  /* Statistics Counter Section on Tablet */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .stat-item {
    padding: 1.3rem;
  }
  
  .tool-card {
    padding: 2.5rem 1.8rem;
  }
  .result-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .artwork-preview {
    max-width: 220px;
    margin: 0 auto;
  }
  .track-metadata .artist-name {
    justify-content: center;
  }
  .meta-tags {
    justify-content: center;
  }
  .result-actions {
    justify-content: center;
  }
}

/* Mobile Devices (Under 768px) */
@media screen and (max-width: 767px) {
  .logo {
    width: 210px;
    height: 37px;
  }
  .logo img {
    width: 100%;
    height: 100%;
  }
  .footer-col-1 .footer-logo {
    width: 220px;
    height: 39px;
  }
  .footer-col-1 .footer-logo img {
    width: 100%;
    height: 100%;
  }
  .hero {
    padding: 3rem 0 4rem 0;
  }
  .hero-headline {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
  }
  .section-title {
    font-size: 2.1rem;
  }
  
  .tool-input-box {
    flex-direction: column;
    border-radius: 20px;
    padding: 1.2rem;
    gap: 1rem;
  }
  .tool-input-box input {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    border-bottom: 1px dashed var(--border);
    padding-bottom: 0.6rem;
  }
  .tool-input-actions {
    width: 100%;
    justify-content: center;
  }
  .btn-analyze {
    width: 100%;
  }
  
  .why-grid, .benefits-grid, .features-grid {
    grid-template-columns: 1fr;
  }
  .steps-timeline {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-card, .legal-content-container {
    padding: 2rem 1.5rem;
  }
  
  .cta-headline {
    font-size: 2.3rem;
  }
  
  /* Statistics Counter Section on Mobile */
  .stats-section {
    padding: 3.5rem 0;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }
  .stat-item {
    padding: 1.2rem 0.8rem;
  }
  .stat-item i {
    margin-bottom: 0.6rem;
  }
  .stat-number {
    margin-bottom: 0.3rem;
  }
}

/* Large Mobile (480px to 767px specific tuning) */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .hero-headline {
    font-size: 2.8rem;
  }
  .footer-four-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile (Under 480px) */
@media screen and (max-width: 479px) {
  .container {
    padding: 0 1.2rem;
  }
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-subheading {
    font-size: 1.05rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .tool-card {
    padding: 2rem 1.2rem;
    border-radius: 20px;
  }
  .tool-card-header h2 {
    font-size: 1.7rem;
  }
  
  /* Footer folds down cleanly for compact phone viewing while maintaining 4 separate column sections */
  .footer-four-columns {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    text-align: center;
  }
  .footer-col h4::after {
    left: calc(50% - 20px);
  }
  .footer-nav-list li a, .footer-col-4 .contact-info-item {
    justify-content: center;
  }
  .social-icons-group {
    justify-content: center;
  }
  
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  
  /* Statistics Counter Section on Small Mobile: 2-column compact grid (keeps counters
     visible and balanced instead of an overly tall single-column stack) */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .stat-item {
    padding: 1rem 0.6rem;
    border-radius: 14px;
  }
}

/* Extra Small Mobile (Under 360px): switch to single column for maximum readability */
@media screen and (max-width: 359px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .stat-item {
    padding: 1.2rem;
  }
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
