/* ========================================
   Coralhymn Website - Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1023px) {
  .hero-wordmark {
    font-size: 4rem;
  }

  .storystream-header {
    font-size: 3rem;
  }

  .page-title {
    font-size: 4rem;
  }

  .timeline {
    padding-left: 60px;
  }

  .timeline-timestamp {
    left: -60px;
    width: 50px;
    font-size: 10px;
  }
}

/* Large Mobile */
@media (max-width: 767px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-wrap: nowrap;
    position: relative;
  }

  .logo {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .mobile-menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--canvas-black);
    border-bottom: 1px solid var(--hazard-white);
    padding: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    padding: 6rem 5% 2rem;
  }

  .hero-wordmark {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

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

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

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

  .software-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  /* Portfolio page mobile */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-overlay {
    transform: translateY(0);
    background: linear-gradient(to top, rgba(19, 19, 19, 0.9), transparent);
  }

  .portfolio-link-icon {
    opacity: 1;
    transform: scale(1);
  }

  /* Project detail mobile */
  .project-header .project-title {
    font-size: 2.5rem;
  }

  .project-meta {
    flex-direction: column;
  }

  .meta-item {
    min-width: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-wordmark {
    font-size: 2.5rem;
  }

  .storystream-header {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .section-title,
  .about-title,
  .contact-title {
    font-size: 24px;
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-timestamp {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: 0.5rem;
  }

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

  .social-links a {
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}
