/* ============================================
   Mobile-First Responsive Overrides
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

  .tech-skills-wrap {
    padding: 0 0.5rem;
  }

  .tech-skills {
    max-width: 100%;
    border-radius: 20px;
    flex-direction: column;
    gap: 0;
    padding: 0.85rem 0.75rem;
  }

  .tech-skills__divider {
    width: 70%;
    height: 1px;
    margin: 0.5rem auto;
  }

  .tech-skills__item {
    padding: 0.75rem 0;
  }

  .skill-rings {
    gap: 1.75rem 1.25rem;
  }

  .works__masonry {
    columns: 2;
  }

  .photo__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

/* Mobile */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-left: 1px solid var(--glass-border);
    transition: right var(--transition);
  }

  .nav__menu.open {
    right: 0;
  }

  /* Hero Mobile Layout */
  .hero__content {
    padding-top: 5rem;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero__roles {
    font-size: 0.8rem;
    line-height: 1.6;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }

  /* About Mobile */
  .about__image {
    order: -1;
    max-width: 100%;
  }

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

  .stats__card {
    padding: 1rem;
  }

  .stats__number {
    font-size: 1.5rem;
  }

  /* Skills */
  .skill-rings {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .skill-rings::-webkit-scrollbar {
    display: none;
  }

  .skill-ring {
    flex-shrink: 0;
  }

  /* Portfolio 2 Column Grid */
  .works__masonry {
    columns: 2;
    column-gap: 0.75rem;
  }

  .work-card {
    margin-bottom: 0.75rem;
  }

  .work-card--tall .work-card__inner img {
    min-height: 200px;
  }

  .works__filters {
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .works__filter {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  /* Photography Horizontal Swipe */
  .photo__gallery {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .photo__gallery::-webkit-scrollbar {
    display: none;
  }

  .photo__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    width: max-content;
  }

  .photo__item {
    flex: 0 0 75vw;
    max-width: 280px;
    scroll-snap-align: center;
    aspect-ratio: 3/4;
  }

  .photo__swipe-hint {
    display: block;
  }

  .photo__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 1rem 0.5rem;
    scrollbar-width: none;
  }

  .photo__tab {
    flex-shrink: 0;
  }

  /* Films */
  .film-card {
    flex: 0 0 160px;
  }

  /* Timeline */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline__dot {
    left: -1.5rem;
  }

  /* Awards */
  .award-card {
    flex: 0 0 220px;
    padding: 1.5rem;
  }

  /* Education */
  .edu-timeline__item {
    padding-left: 2.5rem;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 1.5rem;
  }

  .testimonial-card p {
    font-size: 0.95rem;
  }

  /* Resume */
  .resume__buttons {
    flex-direction: column;
    align-items: center;
  }

  .resume__buttons .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Contact Single Column */
  .contact__form {
    padding: 1.5rem;
  }

  .contact__map iframe {
    height: 150px;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer__brand p {
    margin: 0 auto;
  }

  .footer__icons {
    justify-content: center;
  }

  /* Lightbox mobile */
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .lightbox__close { top: 1rem; right: 1rem; }
}

/* Small phones */
@media (max-width: 480px) {
  .section__title {
    font-size: 1.75rem;
  }

  .works__masonry {
    columns: 1;
  }

  .hero__social a {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .loader__system {
    width: 110px;
    height: 110px;
    margin-bottom: 1.5rem;
  }

  .loader__core {
    width: 46px;
    height: 46px;
  }

  .loader__letter {
    font-size: 1.35rem;
  }

  .loader__ring-big {
    width: 72px;
    height: 72px;
    margin-left: -36px;
  }

  .loader__title {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
  }

  .loader__subtitle {
    font-size: 0.6rem;
  }
}
