/* Responsive styles - Mobile and tablet adaptations */

/* Large Desktop (1441px and above) */
@media (min-width: 1441px) {
  .about__container,
  .methods__container {
    max-width: 1400px;
  }
}

/* Desktop (1025px - 1440px) */
@media (max-width: 1440px) {
  .contact__form-wrapper {
    padding: 120px 100px;
  }

  .contact__image {
    width: 50%;
    height: 60vw;
  }

  .gallery__container {
    max-width: 1200px;
  }
}

/* Large Tablets (769px - 1024px) */
@media (max-width: 1024px) {
  .header__nav-list {
    gap: var(--spacing-lg);
  }

  .about__content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .about__profile {
    width: 100%;
  }

  .about__avatar {
    width: 30%;
    height: 27vw;
  }

  .about__name {
    font-size: var(--font-size-3xl);
  }

  .about__telegram {
    flex-direction: column;
    max-width: 400px;
  }

  .about__telegram-content {
    border: 1px solid var(--color-border);
    border-top: none;
    text-align: center;
    align-items: center;
  }

  .about__telegram-image {
    width: 100%;
    height: 400px;
  }

  .contact__submit {
    width: 100%;
    height: 70px;
    font-size: var(--font-size-lg);
  }

  .methods__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .methods__grid .methods__item:nth-child(4),
  .methods__grid .methods__item:nth-child(5),
  .methods__grid .methods__item:nth-child(6) {
    margin-top: 0;
  }

  .contact {
    flex-direction: column;
    min-height: auto;
  }

  .contact__image {
    width: 100%;
    height: 100vw;
  }

  .contact__container {
    flex-direction: column;
  }

  .contact__form-wrapper {
    padding: var(--spacing-4xl) var(--spacing-2xl);
  }

  .gallery__slider {
    height: 400px;
  }
}

/* Tablets (577px - 768px) */
@media (max-width: 768px) {
  /* Show mobile menu */
  .header__nav {
    display: none;
  }

  .header__mobile-toggle {
    display: flex;
  }

  .hero {
    height: 400px;
  }

  .about {
    padding: var(--spacing-xl) 0;
  }

  .about__avatar {
    width: 50%;
    height: 47vw;
  }

  .about__description {
    font-size: var(--font-size-xl);
  }

  .about__name {
    font-size: var(--font-size-xl);
  }

  .about__telegram-title {
    font-size: var(--font-size-4xl);
  }

  .about__telegram-image {
    width: 100%;
    height: 400px;
  }

  .methods {
    padding: var(--spacing-2xl) 0;
  }

  .methods__title {
    font-size: var(--font-size-4xl);
  }

  .methods__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .methods__item-title {
    font-size: var(--font-size-3xl);
  }

  .contact__title {
    font-size: var(--font-size-5xl);
  }

  .contact__form-wrapper {
    padding: var(--spacing-2xl) var(--spacing-lg);
  }

  .gallery__slider {
    height: 300px;
  }

  .gallery__title {
    font-size: var(--font-size-4xl);
  }

  .footer__content {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }
}

/* Mobile Phones (up to 576px) */
@media (max-width: 576px) {
  :root {
    --container-padding: 16px;
  }

  .header__container {
    padding: 0 var(--container-padding);
  }

  .hero {
    height: 300px;
  }

  .about__description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
  }

  .about__telegram {
    max-width: 100%;
  }

  .about__telegram-image {
    width: 100%;
    /* min-height: 150px;
    max-height: 535px; */
    height: 100vw;
  }

  .about__telegram-content {
    padding: var(--spacing-lg);
    height: auto;
    text-align: center;
    align-items: center;
  }

  .about__telegram-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
  }

  .methods__title {
    font-size: var(--font-size-3xl);
  }

  .methods__item-title {
    font-size: var(--font-size-2xl);
    min-height: auto;
  }

  .methods__item-description {
    font-size: var(--font-size-lg);
  }

  .methods__footer-text {
    font-size: var(--font-size-2xl);
  }

  .contact__image {
    height: 250px;
  }

  .contact__title {
    font-size: var(--font-size-4xl);
  }

  .contact__form-wrapper {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .contact__label {
    font-size: var(--font-size-lg);
  }

  .contact__input {
    height: 50px;
    font-size: var(--font-size-base);
  }

  .contact__submit {
    width: 100%;
    height: 50px;
    font-size: var(--font-size-base);
  }

  .gallery__slider {
    height: 250px;
  }

  .gallery__title {
    font-size: var(--font-size-3xl);
  }

  .gallery__btn {
    width: 35px;
    height: 35px;
  }

  .gallery__btn--prev {
    left: var(--spacing-sm);
  }

  .gallery__btn--next {
    right: var(--spacing-sm);
  }

  .footer__name,
  .footer__title {
    font-size: var(--font-size-2xl);
  }

  .footer__main {
    padding: var(--spacing-xl) 0;
  }
}

/* Extra small devices */
@media (max-width: 375px) {
  .about__description {
    font-size: var(--font-size-base);
  }

  .methods__item-title {
    font-size: var(--font-size-xl);
  }

  .contact__title {
    font-size: var(--font-size-3xl);
  }

  .gallery__title {
    font-size: var(--font-size-2xl);
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: 250px;
  }

  .contact__image {
    height: 200px;
  }

  .gallery__slider {
    height: 200px;
  }
}
