/* Tablet Styles */
@media (max-width: 768px) {
  /* Navigation */
  .nav-menu {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
  }

  /* Hero Section */
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  /* General Padding Adjustments */
  .container {
    padding: 0 1.5rem;
  }

  .projects {
    padding: 3rem 0;
  }
}

/* Mobile Styles */
@media (max-width: 480px) {
  /* Navigation */
  .navbar {
    height: 50px;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-logo {
    font-size: 1.2rem;
  }

  .nav-menu {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  /* Hero Section */
  .hero {
    padding: 1rem;
    padding-top: calc(50px + 2rem);
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .social-links {
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .social-links a {
    font-size: 1.25rem;
  }

  /* Scroll Indicator */
  .scroll-indicator {
    bottom: 1rem;
  }

  .scroll-indicator i {
    font-size: 1.25rem;
  }

  /* Projects Section */
  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .subsection-title {
    font-size: 1.5rem;
    margin: 2rem 0 1.5rem;
  }

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

  .project-card {
    padding: 1.25rem;
  }

  .project-title {
    font-size: 1.1rem;
  }

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

  .tech-tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
  }

  .footer p {
    font-size: 0.875rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .nav-menu {
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.75rem;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }

  .hero-title {
    font-size: 6rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

/* Hover Effects - Disable on Touch Devices */
@media (hover: none) {
  .project-card:hover {
    transform: none;
  }

  .social-links a:hover {
    transform: none;
  }

  .hover-lift:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
  }
}

/* Light Mode Support */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(255, 255, 255, 0.05);
  }
}

/* Print Styles */
@media print {
  .navbar,
  .scroll-indicator,
  .social-links,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero-title,
  .section-title {
    color: black;
  }
}
