/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .edu-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

/* Mobile Nav: <= 768px */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 100svh;
  }

  .hero-name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-scroll-indicator {
    display: none;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .section-header {
    margin-bottom: 40px;
  }

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

  .project-card-header {
    height: 140px;
  }

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    padding-left: 52px;
  }

  .timeline-dot {
    left: 4px;
    width: 24px;
    height: 24px;
  }

  .timeline-content {
    padding: 20px;
  }

  .contact-grid {
    max-width: 100%;
  }

  .about-highlights {
    gap: 12px;
  }

  .highlight-item {
    padding: 12px;
  }

  .code-body {
    font-size: 0.75rem;
    padding: 16px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Small Mobile: <= 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .projects-filter {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }

  .project-card-body {
    padding: 16px;
  }

  .skill-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .skill-name {
    min-width: 80px;
    font-size: 0.8rem;
  }

  .skill-percent {
    display: none;
  }

  .contact-card {
    padding: 16px;
    gap: 12px;
  }

  .contact-card-icon {
    width: 40px;
    height: 40px;
  }

  .edu-card {
    padding: 20px;
  }
}

/* Hover only for non-touch devices */
@media (hover: none) {
  .cursor-glow {
    display: none !important;
  }

  .project-card:hover {
    transform: none;
  }

  .highlight-item:hover {
    transform: none;
  }

  .timeline-content:hover {
    transform: none;
  }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-particle {
    display: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .cursor-glow,
  .noise-overlay,
  .hero-particles,
  .back-to-top,
  .hero-scroll-indicator,
  .theme-toggle {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 40px 0;
    page-break-inside: avoid;
  }
}
