/*  LAPTOP  */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .magazine-feature {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .magazine-cover {
    max-width: 360px;
    margin: 0 auto;
  }
  .magazine-info .issue-highlights {
    text-align: left;
  }
  .magazine-actions {
    justify-content: center;
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-article .featured-image {
    min-height: 300px;
  }
  .featured-article .featured-content {
    padding: 2rem;
  }

  .ad-showcase {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .hero-content p {
    margin: auto;
    margin-bottom: 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-cover {
    width: 300px;
  }

  .issue-card {
    right: 0;
  }

  .floating-badge {
    display: none;
  }
}

/*  TABLET  */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 56px 0;
  }

  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 56px 0;
  }

  /*  Mobile Nav  */

  .menu-toggle {
    
    display: flex;
  
  }

  .navbar{
padding: 37px;
  }


  .menu-toggle span {
    background-color: var(--color-dark) !important;
    height: 2px;
    width: 24px;
    transition: 0.3s ease-in-out;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    justify-content: flex-start; /* Upar se shuru ho ga */
    align-items: stretch; /* Poori width lega */
    padding: 80px 25px 30px; /* Upar hero/header ke liye jagah */
    gap: 12px;
    transition: right 0.4s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto; /* Agar links zyada hon toh scroll ho sakein */
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links li a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    color: var(--color-dark);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa; /* Halki background strip */
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    color: #ffffff;
    background-color: var(--color-primary); /* Hover par primary accent color */
    transform: translateX(5px); /* Halki si slide animation */
  }

  /* Hamburger to Cross Animation for spans */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

 .nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* Background shade */
  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* Bahut zaroori hai taaki jab menu band ho toh clicks block na kare */
  transition: 0.3s ease-in-out;
  z-index: 997; /* Menu se thoda kam z-index taaki menu upar rahe */
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; /* Jab active ho tabhi clicks catch kare */
}

  .hero-badge {
    margin-top: -40px;
  }
  .hero {
    min-height: auto;

    padding: 100px 0 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;

    gap: 50px;

    text-align: center;
  }
  .hero-content {
    display: flex;

    flex-direction: column;

    align-items: center;
  }

  .hero-badge {
    font-size: 0.7rem;

    padding: 10px 16px;

    letter-spacing: 1px;

    margin-bottom: 20px;
  }

  .hero-content h1 {
    font-size: 3rem;

    line-height: 1.15;

    letter-spacing: -1px;

    margin-bottom: 20px;
  }

  .hero-content p {
    font-size: 1rem;

    line-height: 1.7;

    max-width: 600px;

    margin-bottom: 35px;
  }

  .hero-actions {
    width: 100%;

    flex-direction: column;

    gap: 15px;

    margin-bottom: 40px;
  }
  .hero-actions .btn {
    width: 100%;

    text-align: center;

    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    display: grid;
    margin-bottom: -50%;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;
  }
  .stat-card {
    min-width: auto;

    padding: 18px 10px;
  }
  .stat-card h2 {
    font-size: 1.8rem;
  }
  .stat-card span {
    font-size: 0.7rem;
  }

  .hero-visual {
    min-height: 520px;
  }

  .hero-glow {
    width: 350px;

    height: 350px;
  }

  .hero-ring {
    width: 340px;

    height: 340px;
  }

  .hero-cover {
    width: 260px;
  }

  .issue-card {
    right: 0;

    bottom: 90px;

    width: 200px;

    padding: 18px;
  }

  .issue-card h3 {
    font-size: 1.4rem;
  }

  .floating-badge {
    top: 30px;

    left: 0;

    padding: 12px 18px;

    font-size: 0.7rem;
  }

  .hero-news {
    height: 55px;
  }

  .news-label {
    width: 120px;

    font-size: 0.7rem;
  }

  .news-track {
    gap: 40px;
  }
  .news-track span {
    font-size: 0.75rem;
  }

  .scroll-down {
    display: none;
  }

  .article-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .interview-card {
    grid-template-columns: 1fr;
  }

  .interview-photo {
    height: 200px;
  }
  .interview-body {
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .magazine-cover {
    max-width: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto 1.5rem;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter {
    padding: 2.5rem 1.5rem;
  }
  .newsletter-form {
    flex-direction: column;
  }

  .article-detail {
    padding: 2rem 0;
  }
  .article-detail .article-content {
    font-size: 1rem;
  }

  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .slider-slide img {
    height: 320px;
  }
  .slider-overlay {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
  }
  .modal-body iframe {
    height: 400px;
  }
}
/*  MOBILE  */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section {
    padding: 40px 0;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }

  .hero {
    min-height: 75vh;
  }
  .hero-content {
    padding: 1rem 0;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
    gap: 1rem;
  }
  .hero-stat .stat-num {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .ad-showcase {
    padding: 1.5rem;
  }

  .newsletter {
    padding: 2rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .modal-overlay {
    padding: 0;
  }
  .modal-content {
    border-radius: 0;
    min-height: 100vh;
    max-height: 100vh;
  }
  .modal-body {
    padding: 1.25rem;
  }
  .modal-body iframe {
    height: 300px;
  }
}

/*  Large Desktop  */
@media (min-width: 1440px) {
  :root {
    --container: 1360px;
  }
}

/*  Print  */
@media print {
  .navbar,
  .footer,
  .back-to-top,
  .newsletter,
  .ad-showcase {
    display: none;
  }
  body {
    color: #000;
    background: #fff;
  }
}
