/* ============================================
   MOBILE & RESPONSIVE FIXES
   ============================================ */

  .mobile-title-line::before {
    content: "";
  }

  .mobile-title-line {
    display: block;
  }

  .hero-subtitle,
  .projects-hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.55;
    max-width: 20rem;
  }

/* Better mobile navigation */
@media (max-width: 768px) {
  /* Fix mobile menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-bg-primary);
    flex-direction: column;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  /* Ensure menu toggle is visible */
  .menu-toggle {
    display: block !important;
    z-index: 1001;
  }
  
  /* Fix hero section on mobile */
  .hero-content {
    flex-direction: column;
    text-align: center;
    width: 100%;
    min-width: 0;
  }

  .hero-text,
  .projects-hero-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-title,
  .hero-subtitle,
  .projects-hero-title,
  .projects-hero-subtitle {
    max-width: 100%;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  .hero-subtitle,
  .projects-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    max-width: 250px;
    margin: 0 auto;
  }
  
  /* Fix bento grid on mobile */
  .bento-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  /* Fix project cards on mobile */
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Better touch targets */
  .btn, .filter-btn, .nav-link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Tablet fixes */
@media (min-width: 769px) and (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small mobile fixes */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.15rem !important;
    line-height: 1.08;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}
