/* ==================================================== */
/* RESPONSIVE DESIGN - MEDIA QUERIES                    */
/* ==================================================== */

/* Laptop & Desktop Adjustments (Under 1200px) */
@media (max-width: 1200px) {
  :root {
    --max-width: 960px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .stat-card:nth-child(2)::after {
    display: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item::after {
    left: 21px;
    right: auto;
  }
  
  .timeline-right {
    left: 0;
  }
  
  .timeline-right::after {
    left: 21px;
  }
}

/* Tablet Layout (Under 1024px) */
@media (max-width: 1024px) {
  :root {
    --max-width: 720px;
    --header-height: 70px;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-graphic {
    height: 400px;
  }
  
  .about-preview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .services-full-item {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-full-item:nth-child(even) {
    direction: ltr;
  }
  
  .devices-list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Navigation Drawer Activation (Under 768px) */
@media (max-width: 768px) {
  :root {
    --max-width: 540px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  /* Navigation Drawer styling */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 30px;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1001;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
  }
  
  .nav-actions {
    margin-top: 10px;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .nav-actions .btn {
    width: 100%;
  }
  
  /* Hamburger menu transformations when active */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
  
  .hero-title {
    font-size: 2.3rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .devices-list-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner {
    padding: 50px 30px;
  }
  
  .cta-title {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .contact-form-panel {
    padding: 30px 20px;
  }
}

/* Small Mobile Screen Adjustments (Under 480px) */
@media (max-width: 480px) {
  :root {
    --max-width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card::after {
    display: none !important;
  }
  
  .about-preview-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
}
