/* Fine-tuned Responsiveness for Key Finders */

@media (max-width: 1440px) {
  :root {
    --space-xl: calc(var(--space-unit) * 5);
    --space-xxl: calc(var(--space-unit) * 8);
  }
}

@media (max-width: 1024px) {
  :root {
    --space-lg: calc(var(--space-unit) * 2);
    --space-xl: calc(var(--space-unit) * 4);
    --space-xxl: calc(var(--space-unit) * 6);
  }
  
  section {
    padding-block: clamp(3rem, 8vw, 6rem);
  }

  .btn-magnetic {
    padding: 0.85rem 2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  
  .stat-item {
    border-inline-end: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: var(--space-md);
  }
  
  .stat-item:nth-child(even) {
    border-inline-end: none;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-md: calc(var(--space-unit) * 1.2);
    --space-lg: calc(var(--space-unit) * 1.8);
    --space-xl: calc(var(--space-unit) * 3);
    --space-xxl: calc(var(--space-unit) * 4.5);
    --header-height-full: 80px;
    --header-height-shrink: 60px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }
  
  .hero-cta-group .btn-magnetic {
    width: 100%;
  }

  .about-split {
    grid-template-columns: 1fr;
  }

  .service-header {
    grid-template-columns: 0.5fr 3fr 1fr;
  }
  
  .service-tag {
    display: none; /* Hide category tag on smaller viewports */
  }

  .service-content-inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-inline-start: 0;
  }

  .portfolio-filters {
    justify-content: center;
  }

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

  .project-card, .project-card:nth-child(3n+1), .project-card:nth-child(3n+2) {
    grid-column: span 12;
  }

  .journey-step {
    grid-template-columns: 50px 1fr;
    gap: var(--space-sm);
  }

  .journey-badge {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    margin-inline-start: 10px;
  }

  .journey-timeline::after {
    inset-inline-start: 26px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item {
    border-bottom: 1px solid var(--border-color);
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }
  .site-header, .whatsapp-floating, .custom-cursor, .custom-cursor-ring, .preloader {
    display: none !important;
  }
}
