/* ==========================================================================
   ToolsNexNova - Responsive Layouts
   ========================================================================== */

/* Large screens and laptops */
@media (max-width: 1200px) {
  :root {
    --max-width: 960px;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
  }
}

/* Tablets and small laptops */
@media (max-width: 992px) {
  :root {
    --max-width: 720px;
  }

  .tool-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .hero-sec {
    padding: 120px 0 60px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    max-width: 100% !important;
  }
  
  .hero-buttons {
    justify-content: center;
  }

  .hero-cards-visual {
    justify-content: center;
  }

  .why-choose-grid, 
  .features-grid, 
  .latest-tools-grid, 
  .testimonials-grid,
  .tools-category-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Mobile Screens (Landscape and Portrait) */
@media (max-width: 768px) {
  :root {
    --max-width: 100%;
    --header-height: 70px;
  }

  /* Hamburger Menu Toggle Display */
  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    transition: var(--transition);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.active {
    left: 0;
  }

  .nav-list {
    flex-direction: column;
    padding: 40px 20px;
    align-items: stretch;
    gap: 20px;
  }

  .nav-link {
    font-size: 1.1rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link::after {
    display: none;
  }

  .nav-item-dropdown:hover .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-primary);
    margin-top: 10px;
  }

  .dropdown-toggle svg {
    margin-left: auto;
  }

  /* Header adjustments */
  .header-actions {
    gap: 12px;
  }

  /* Mobile menu open animation */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

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

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

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Sections adjustments */
  .why-choose-grid, 
  .features-grid, 
  .latest-tools-grid, 
  .testimonials-grid,
  .tools-category-grid {
    grid-template-columns: 1fr !important;
  }

  .tool-title {
    font-size: 2rem;
  }

  .tool-main-card {
    padding: 20px;
  }

  .tool-content-sec {
    padding: 20px;
  }

  /* Statistics Section */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  .breadcrumbs {
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
}
