/* styles/responsive.css - Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .nav-container {
    padding: 0 clamp(0.75rem, 1.2vw, 1.75rem);
    gap: clamp(0.45rem, 0.7vw, 1.1rem);
  }
  .nav-links {
    gap: clamp(0.45rem, 0.7vw, 1rem);
  }
  .nav-links a {
    font-size: clamp(0.88rem, 1vw, 0.98rem);
    padding: clamp(0.48rem, 0.7vw, 0.62rem) clamp(0.92rem, 1.4vw, 1.2rem);
  }
  .nav-right {
    gap: clamp(0.45rem, 0.7vw, 1rem);
  }
  .hero {
    padding: calc(var(--nav-offset, 84px) + 18px) 1.5rem 0.8rem;
  }
  .home-page .hero {
    padding: calc(var(--nav-offset, 84px) + 24px) 1.5rem clamp(108px, 12vw, 126px);
  }
  .hero-content h1 {
    font-size: clamp(2rem, 3vw, 3rem);
  }
  .home-page .hero-content h1 {
    font-size: clamp(2.55rem, 5vw, 4rem);
    margin-bottom: clamp(1.35rem, 2vw, 1.65rem);
  }
  .hero-sub {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
  }
  .home-page .hero-sub {
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  }
  .home-page .platform-grid {
    padding: 0 1.5rem 3.25rem;
  }
  .theme-toggle {
    width: 60px;
    height: 30px;
  }
  .theme-toggle::before {
    width: 22px;
    height: 22px;
  }
  [data-theme="dark"] .theme-toggle::before {
    transform: translateX(30px);
  }
  .theme-icon {
    width: 20px;
    height: 20px;
  }
  .theme-icon.sun {
    left: 32px;
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .hero {
    padding: calc(var(--nav-offset, 84px) + 22px) 1rem 0.9rem;
  }
  .home-page .hero {
    padding: calc(var(--nav-offset, 84px) + 30px) 1rem 82px;
  }
  .home-page .hero-content {
    width: min(100%, 20rem);
    max-width: 20rem;
    padding-inline: 0.25rem;
  }
  .home-page .hero-content h1 {
    font-size: clamp(1.78rem, 7.6vw, 2.22rem);
    margin-bottom: 1rem;
    line-height: 1.08;
    text-wrap: balance;
  }
  .hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  .hero-sub {
    font-size: clamp(0.92rem, 2vw, 1.1rem);
  }
  .home-page .hero-sub {
    font-size: clamp(1rem, 3.1vw, 1.18rem);
    max-width: 20.5rem;
  }
  .home-page .platform-grid {
    padding: 0 1rem 2.6rem;
  }
  .container,
  .row,
  .col-md-6,
  .col-lg-4,
  .col-sm-6,
  .col-lg-2,
  .col-12,
  .widget1,
  .widget2,
  .widget3,
  .widget4,
  .footer-blog-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .hero-section {
    margin-top: calc(var(--nav-offset, 84px) + 18px) !important;
  }
  .footer {
    padding: 1.5rem 1rem;
  }
  .theme-toggle {
    width: clamp(40px, 5vw, 50px);
    height: clamp(20px, 2.5vw, 26px);
  }
  .theme-toggle::before {
    width: clamp(16px, 2vw, 18px);
    height: clamp(16px, 2vw, 18px);
  }
  [data-theme="dark"] .theme-toggle::before {
    transform: translateX(clamp(20px, 3vw, 24px));
  }
  .theme-icon {
    width: clamp(12px, 1.5vw, 16px);
    height: clamp(12px, 1.5vw, 16px);
  }
  .theme-icon.sun {
    left: clamp(20px, 3vw, 28px);
  }
}

@media (max-width: 540px) {
  .nav-container {
    padding: 0 0.75rem;
    gap: 0.5rem;
  }
  .nav-right {
    gap: 0.5rem;
  }
  .nav-links {
    gap: 0.45rem;
  }
  .nav-links a {
    font-size: clamp(0.8rem, 2.7vw, 0.92rem);
    padding: 0.46rem 0.9rem;
  }
}

/* Small Mobile (max-width: 343px) */
@media (max-width: 343px) {
  .nav-container {
    padding: 0 0.45rem;
    gap: 0.35rem;
  }
  .logo {
    font-size: clamp(0.88rem, 4vw, 1rem);
  }
  .nav-links a {
    font-size: clamp(0.66rem, 3vw, 0.76rem);
    padding: 0.34rem 0.62rem;
  }
  .nav-right {
    gap: 0.35rem;
  }
  .hero-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  .home-page .hero-content {
    width: min(100%, 18rem);
    max-width: 18rem;
    padding-inline: 0.2rem;
  }
  .home-page .hero-content h1 {
    font-size: clamp(1.62rem, 7vw, 1.95rem);
  }
  .hero-sub {
    font-size: clamp(0.8rem, 2vw, 1rem);
  }
  .theme-toggle {
    width: clamp(30px, 4vw, 40px);
    height: clamp(18px, 2vw, 22px);
  }
  .theme-toggle::before {
    width: clamp(12px, 1.5vw, 14px);
    height: clamp(12px, 1.5vw, 14px);
  }
  [data-theme="dark"] .theme-toggle::before {
    transform: translateX(clamp(16px, 2vw, 18px));
  }
  .theme-icon {
    width: clamp(10px, 1.2vw, 12px);
    height: clamp(10px, 1.2vw, 12px);
  }
  .theme-icon.sun {
    left: clamp(15px, 2vw, 23px);
  }
  .hero-section {
    margin-top: calc(var(--nav-offset, 84px) + 16px) !important;
  }
}
