/* ==========================================================================
   RESPONSIVE.CSS — Kapish Rawat Portfolio
   Mobile-First Breakpoints: 480px, 768px, 1024px, 1440px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Large Desktop (1440px and above)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  :root {
    --container-max-width: 1320px;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .hero__tagline {
    font-size: 1.2rem;
    max-width: 580px;
  }

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

/* --------------------------------------------------------------------------
   2. Desktop & Tablet Landscape (Max 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero__container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .hero__roles-wrapper {
    justify-content: center;
  }

  .hero__cta-group {
    justify-content: center;
  }

  .hero__socials {
    justify-content: center;
  }

  .hero__visual {
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

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

  .about__visual {
    margin: 0 auto;
  }

  .about__content {
    text-align: left;
  }

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

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

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

/* --------------------------------------------------------------------------
   3. Tablet Portrait (Max 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 68px;
  }

  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Mobile Navigation Menu */
  .nav-toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    border-top: 1px solid var(--glass-border);
    z-index: 999;
  }

  .navbar__menu.active {
    transform: translateX(0);
  }

  .navbar__link {
    font-size: 1.25rem;
  }

  .hero__title {
    font-size: 2.75rem;
  }

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

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

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

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

  .edu-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .edu-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

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

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* --------------------------------------------------------------------------
   4. Small Mobile Phones (Max 480px & 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2.15rem;
  }

  .hero__roles-wrapper {
    font-size: 1.1rem;
  }

  .hero__cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta-group .btn {
    width: 100%;
  }

  .about__image-wrapper {
    max-width: 290px;
  }

  .floating-badge--top {
    right: 0;
    font-size: 0.75rem;
  }

  .floating-badge--bottom {
    left: 0;
    font-size: 0.75rem;
  }

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

  .counter-card {
    padding: 1rem 0.5rem;
  }

  .counter-card__number {
    font-size: 1.65rem;
  }

  .projects__filters {
    gap: 0.45rem;
  }

  .filter-btn {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }

  .contact__info,
  .contact__form-wrapper {
    padding: 1.5rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .hero__title {
    font-size: 1.85rem;
  }

  .navbar__logo {
    font-size: 1.15rem;
  }

  .counter-card__label {
    font-size: 0.7rem;
  }
}

