/* ========================================
   STANDARDIZED BREAKPOINTS
   Mobile-first approach
   ======================================== */

/* Base: Mobile (< 640px) */
/* All base styles defined above */

/* Tablet & Small Desktop (640px+) */
@media (min-width: 640px) {
  .nav.nav-inner {
    width: min(1800px, calc(100% - 48px));
    margin: 0 auto;
  }

  .content-box {
    width: min(860px, 95vw);
    padding: 48px;
  }

  .video-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .video-card {
    padding: 16px;
  }

  .auth-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .glass-btn {
    min-width: 220px;
    padding: 12px 32px;
  }

  .title-pics {
    font-size: 42px;
    line-height: 1.2;
  }

  .description p {
    font-size: 18px;
    width: min(560px, 75vw);
  }

  .spinman img {
    opacity: 0.35; /* Increased from 0.20 */
  }

  .vidspecial {
    opacity: 0.80; /* Increased from 0.65 */
  }

  .vidtalk {
    opacity: 0.80; /* Increased from 0.65 */
  }

  .seedblue {
    width: 450px;
    height: 450px;
  }

  .c-ball {
    width: 300px;
    height: 300px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .nav.nav-inner {
    top: 10px;
    width: min(1800px, calc(100% - 24px));
    padding: 16px 24px;
  }

  .content-box {
    width: min(860px, 92vw);
    padding: 56px;
  }

  .video-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .video-card {
    padding: 20px;
  }

  .auth-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .glass-btn {
    min-width: 240px;
    padding: 14px 40px;
    font-size: 16px;
  }

  .title-pics {
    font-size: 56px;
    line-height: 1.1;
  }

  .description p {
    font-size: 20px;
    width: min(560px, 60vw);
  }

  .hero-card {
    padding: 48px;
  }

  .mandala-wrap {
    right: 24px;
    bottom: 24px;
  }

  .button-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .seedblue {
    width: 500px;
    height: 500px;
  }

  .c-ball {
    width: 350px;
    height: 350px;
  }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .nav.nav-inner {
    width: min(1800px, calc(100% - 40px));
    padding: 20px 40px;
  }

  .content-box {
    width: 860px;
    padding: 64px;
  }

  .video-gallery {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .video-card {
    padding: 24px;
  }

  .auth-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
  }

  .glass-btn {
    min-width: 260px;
    padding: 16px 48px;
    font-size: 18px;
  }

  .title-pics {
    font-size: 64px;
    line-height: 1;
  }

  .description p {
    font-size: 22px;
  }

  .hero-card {
    padding: 64px;
  }

  .button-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .seedblue {
    width: 550px;
    height: 550px;
  }

  .c-ball {
    width: 400px;
    height: 400px;
  }
}

/* Extra-Large Desktop (1600px+) – Optional refinement */
@media (min-width: 1600px) {
  .nav.nav-inner {
    width: min(1800px, 100%);
    max-width: 1800px;
    margin: 0 auto;
  }

  .video-gallery {
    grid-template-columns: repeat(5, 1fr);
  }

  .glass-btn {
    min-width: 280px;
    font-size: 20px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .mandala-wrap,
  .sparkle,
  .seal,
  .orb {
    animation: none !important;
  }
}

/* Mobile Optimization (< 640px) */
@media (max-width: 639px) {
  .nav.nav-inner {
    width: calc(100% - 24px);
    margin: 10px 12px 0 12px;
  }

  .content-box {
    width: 92vw;
    padding: 24px;
  }

  .video-gallery {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-card {
    padding: 12px;
  }

  .auth-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glass-btn {
    min-width: 160px;
    padding: 10px 24px;
    font-size: 14px;
  }

  .title-pics {
    font-size: 28px;
    line-height: 1.3;
  }

  .description p {
    font-size: 16px;
    width: 90vw;
  }

  .hero-card {
    padding: 24px;
  }

  .button-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mandala-wrap {
    right: 12px;
    bottom: 12px;
    width: 160px;
    height: 160px;
  }

  .seedblue {
    width: 300px;
    height: 300px;
  }

  .c-ball {
    width: 200px;
    height: 200px;
  }

  /* Reduced sparkle frequency on mobile */
  #sparklesContainer {
    --sparkle-interval: 500ms;
  }
}
