/* =====================================================
   ROCKET.BD — Responsive Styles
   Fully consolidated media queries ordered by screen size
   ===================================================== */

/* ---------- Breakpoints ----------
   1024px: Large tablets / Small laptops
   992px:  Tablets landscape
   900px:  Tablets landscape (alt)
   768px:  Tablets portrait
   640px:  Mobile landscape
   480px:  Mobile portrait
   -------------------------- */

/* =====================================================
   1024px BREAKPOINT
   ===================================================== */
@media (max-width: 1024px) {

  /* Navigation (global) */
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* Grids (global) */
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Homepage - Hero */
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-orb-wrap {
    width: 300px;
    height: 300px;
  }

  .hero-orb {
    width: 240px;
    height: 240px;
  }

  /* Homepage - Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Homepage - Testimonials */
  .testimonials {
    grid-template-columns: 1fr 1fr;
  }

  /* Homepage - Steps */
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   992px BREAKPOINT
   ===================================================== */
@media (max-width: 992px) {

  /* Blog Page */
  .featured-blog-inner {
    grid-template-columns: 1fr 1fr;
  }

  /* Trending Page */
  .trending-layout {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   900px BREAKPOINT
   ===================================================== */
@media (max-width: 900px) {

  /* Pricing Page */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* Contact Page */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Homepage - Hero Orbit Animation */
  .orbit-scene {
    height: 340px;
  }

  .solar-earth {
    width: 90px;
    height: 90px;
  }

  .earth-body {
    width: 75px;
    height: 75px;
  }

  .earth-glow-outer {
    width: 130px;
    height: 130px;
  }

  .orbit-1 {
    width: 160px;
    height: 160px;
  }

  .orbit-2 {
    width: 240px;
    height: 240px;
  }

  .orbit-3 {
    width: 320px;
    height: 320px;
  }

  .orbit-container-1 {
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
  }

  .orbit-container-2 {
    width: 240px;
    height: 240px;
    margin-left: -120px;
    margin-top: -120px;
  }

  .orbit-container-3 {
    width: 320px;
    height: 320px;
    margin-left: -160px;
    margin-top: -160px;
  }

  .orbiting-rocket {
    width: 30px;
    height: 50px;
    top: -35px;
  }

  .orbiting-moon {
    width: 28px;
    height: 28px;
    top: -14px;
  }

  .orbiting-satellite {
    width: 18px;
    height: 18px;
    top: -9px;
  }

  .hero-orb-wrap {
    height: 300px;
  }

  /* Grids (global) */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =====================================================
   768px BREAKPOINT
   ===================================================== */
@media (max-width: 768px) {

  /* Typography (global) */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Homepage - Hero */
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
    justify-content: center;
  }

  /* Trending & Launches - Tabs */
  .tabs {
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .tab-btn {
    white-space: nowrap;
  }

  /* Launches Page - Search & Filter */
  .search-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  /* Homepage - Footer */
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Homepage - Newsletter */
  .newsletter-form {
    flex-direction: column;
  }

  /* Homepage - Testimonials */
  .testimonials {
    grid-template-columns: 1fr;
  }

  /* Homepage - Steps */
  .steps {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  /* Grids (global) */
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Login/Signup Pages */
  .auth-container {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  /* Launch Detail Page */
  .launch-detail-header {
    grid-template-columns: 1fr;
  }

  /* Blog Page */
  .featured-blog {
    grid-column: span 1;
  }

  .featured-blog-inner {
    grid-template-columns: 1fr;
  }

  .featured-blog .blog-card-content {
    padding: var(--space-lg);
  }

  .featured-blog .blog-card-image {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    height: 220px;
  }

  /* FAQ Page */
  .page-header h1 {
    font-size: 2.2rem;
  }

  .faq-category-title {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .accordion-header {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
  }

  .accordion-inner {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
  }

  .faq-cta {
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
  }
}

/* =====================================================
   640px BREAKPOINT
   ===================================================== */
@media (max-width: 640px) {

  .section {
    padding: var(--space-3xl) 0;
  }

  /* Grids (global) */
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  /* Homepage - Hero */
  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .orb-stat-badge {
    display: none;
  }

  .solar-earth {
    width: 70px;
    height: 70px;
  }

  .earth-body {
    width: 58px;
    height: 58px;
  }

  .earth-glow-outer {
    width: 100px;
    height: 100px;
  }

  .orbit-container-1 {
    width: 130px;
    height: 130px;
    margin-left: -65px;
    margin-top: -65px;
  }

  .orbiting-rocket {
    width: 25px;
    height: 40px;
    top: -28px;
  }

  .orbiting-moon {
    width: 22px;
    height: 22px;
    top: -11px;
  }

  .launch-detail-gallery {
    position: unset;
  }

  /* FAQ Page Mobile */
  .page-header h1 {
    font-size: 1.8rem;
  }

  .faq-category-title {
    font-size: 1.15rem;
    margin-top: 1.5rem;
  }

  .accordion-header {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .accordion-inner {
    padding: 0 1.25rem 1rem;
  }

  .faq-cta {
    padding: 2rem 1rem;
    margin-top: 3rem;
  }
}

/* =====================================================
   480px BREAKPOINT
   ===================================================== */
@media (max-width: 480px) {

  .section {
    padding: var(--space-2xl) 0;
  }

  .page-header {
    padding: 120px 0 4rem;
  }

  .footer {
    padding: var(--space-2xl) 0 var(--space-md);
  }

  .newsletter {
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
  }

  .logo-icon {
    width: 35px;
    height: 35px;
  }

  .logo {
    font-size: 1.2rem;
  }
}