/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Large Tablets */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image-wrapper {
    order: 1;
  }

  .hero-intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-social {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cert-card {
    flex-direction: column;
    text-align: center;
  }

  .cert-image {
    width: 100%;
    max-width: 300px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --navbar-height: 60px;
  }

  body {
    cursor: auto;
  }

  .cursor-dot, .cursor-outline {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 70px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .hero-image {
    width: 220px;
    height: 220px;
  }

  .hero-image-ring {
    width: 260px;
    height: 260px;
  }

  .hero-image-glow {
    width: 240px;
    height: 240px;
  }

  .float-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: minmax(300px, 550px);
    justify-content: center;
  }
  .project-card {
    max-width: 100%;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 12px;
    right: auto;
  }

  .achievements-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .github-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .project-actions {
    flex-direction: column;
  }

  .project-actions .btn {
    justify-content: center;
  }

  .cert-slider {
    flex-direction: column;
  }

  .slider-btn {
    display: none;
  }

  .testimonial-card {
    padding: 28px 20px;
  }

  .fab-container {
    bottom: 20px;
    right: 20px;
  }

  .color-picker {
    right: 20px;
    bottom: 80px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-titles {
    font-size: 1.1rem;
  }

  .hero-image {
    width: 180px;
    height: 180px;
  }

  .hero-image-ring {
    width: 210px;
    height: 210px;
  }

  .hero-image-glow {
    width: 200px;
    height: 200px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .repo-stats {
    grid-template-columns: 1fr;
  }

  .streak-stats {
    flex-direction: column;
    gap: 20px;
  }

  .contact-form {
    padding: 20px;
  }

  .scroll-indicator {
    display: none;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }
}

/* 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;
  }

  .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.2);
  }

  .glass-card {
    border-width: 2px;
  }
}

/* Print */
@media print {
  .navbar, .loader, .cursor-dot, .cursor-outline,
  #particles-canvas, .fab-container, .color-picker,
  .scroll-progress, .scroll-indicator, .hamburger,
  .mobile-menu, .theme-toggle {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    cursor: auto;
  }

  .section {
    padding: 30px 0;
    page-break-inside: avoid;
  }

  .glass-card {
    border: 1px solid #ccc;
    box-shadow: none;
    background: #fff;
  }
}
