/* Responsive Design - Mobile First */

/* Desktop Navigation - Show desktop nav, hide mobile nav */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex !important; /* Force show on desktop */
  }

  .nav-links {
    display: flex !important; /* Show navigation links */
  }

  .nav-actions {
    display: flex !important; /* Show navigation actions */
  }

  .mobile-nav {
    display: none !important; /* Force hide mobile nav */
  }

  .mobile-menu {
    display: none !important; /* Force hide mobile menu */
  }
}

/* Tablet and Mobile - Show mobile nav, hide desktop nav */
@media (max-width: 767px) {
  .desktop-nav {
    display: none !important; /* Force hide desktop nav */
  }

  .nav-links {
    display: none !important; /* Hide navigation links */
  }

  .nav-actions {
    display: none !important; /* Hide navigation actions */
  }

  .mobile-nav {
    display: flex !important; /* Force show mobile nav */
  }
}

/* Extra Small devices (phones, 320px and up) */
@media (max-width: 479px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-title {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }

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

  .section-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

  .profile-container {
    width: 10rem;
    height: 10rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 3rem;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }

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

  .social-link {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
  }

  .social-link .icon {
    width: 1rem;
    height: 1rem;
  }

  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
  }

  .feature-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
  }

  .timeline-content {
    margin-left: 1.5rem;
  }

  .timeline-line {
    left: 0.75rem;
  }

  .timeline-dot {
    left: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
  }

  .project-card {
    padding: 1.25rem;
  }

  .project-image {
    height: 160px;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .contact-item {
    padding: 1rem;
  }

  .toast-container {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    min-width: auto;
    max-width: none;
    width: 100%;
  }

  .toast-content {
    gap: 0.75rem;
  }

  .toast-icon {
    width: 2rem;
    height: 2rem;
  }

  .toast-icon svg {
    width: 1rem;
    height: 1rem;
  }

  .toast-title {
    font-size: 0.9rem;
  }

  .toast-description {
    font-size: 0.8rem;
  }

  .coming-soon-card {
    min-height: 300px;
    padding: 2rem 1rem;
  }
  
  .coming-soon-title {
    font-size: 1.5rem;
  }
  
  .coming-soon-description {
    font-size: 1rem;
  }
  
  .coming-soon-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .feature-item {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .install-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .install-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* Small devices (landscape phones, 480px to 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .container {
    padding: 0 1.25rem;
  }

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

  .hero-title {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
  }

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

  .profile-container {
    width: 11rem;
    height: 11rem;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 3rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-width: auto;
    min-width: 140px;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }

  .social-links {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .social-link {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.625rem;
  }

  .social-link .icon {
    width: 1.125rem;
    height: 1.125rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .project-filters {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

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

/* Medium devices (tablets, 768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 2rem;
  }

  .hero-content {
    max-width: 48rem;
  }

  .profile-container {
    width: 12rem;
    height: 12rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .skills-categories {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

  .timeline-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .timeline-meta {
    flex-direction: row;
    gap: 1rem;
  }
}

/* Large devices (desktops, 1024px to 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .container {
    padding: 0 2.5rem;
  }

  .hero-content {
    max-width: 56rem;
  }

  .profile-container {
    width: 13rem;
    height: 13rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .skills-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

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

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
  }

  .hero-content {
    max-width: 64rem;
  }

  .profile-container {
    width: 14rem;
    height: 14rem;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }

  .skills-categories {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

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

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }

  .hero-content {
    max-width: 72rem;
  }

  .features-grid,
  .skills-categories,
  .projects-grid {
    gap: 3rem;
  }

  .contact-grid {
    gap: 5rem;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) and (max-width: 1023px) {
  .hero-section {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .profile-container {
    width: 8rem;
    height: 8rem;
    margin-bottom: 1rem;
  }

  .hero-buttons {
    margin-bottom: 1.5rem;
  }

  .social-links {
    margin-bottom: 1.5rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .profile-image,
  .project-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Desktop responsive */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Mobile responsive install button */
@media (max-width: 767px) {
  .install-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .install-btn svg {
    width: 14px;
    height: 14px;
  }
}

