/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media screen and (max-width: 1024px) {
  .container {
    padding: 0 var(--mb-1-5);
  }
  
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--mb-1-5);
  }
  
  .service {
    min-height: 400px;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  /* Variables for mobile */
  :root {
    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
  }

  /* Header - Mobile Navigation */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--light-color);
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: var(--z-modal);
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 4rem 0 0 2rem;
  }

  .nav__item {
    margin-bottom: var(--mb-2);
  }

  .nav__link {
    font-size: 1.1rem;
    color: var(--dark-color);
  }

  .nav__toggle {
    display: flex;
  }

  .nav__close {
    display: block;
  }

  /* Mobile menu animation */
  .nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

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

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

  /* Hero Section */
  .hero {
    padding: 7rem 0 4rem;
  }

  .hero__title {
    font-size: var(--big-font-size);
    margin-bottom: var(--mb-1);
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .hero__description {
    font-size: 1rem;
    padding: 0 var(--mb-1);
  }

  /* Banner */
  .banner__text {
    font-size: 1.1rem;
    padding: 0 var(--mb-1);
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
    gap: var(--mb-2);
  }

  .service {
    padding: var(--mb-1-5);
    min-height: auto;
  }

  .service__header {
    margin-bottom: var(--mb-1);
  }

  .service__icon {
    font-size: 2rem;
  }

  .service__title {
    font-size: 1.2rem;
  }

  .service__tags {
    gap: 0.3rem;
  }

  .service__tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }

  /* About */
  .about__content {
    grid-template-columns: 1fr;
    gap: var(--mb-2);
    text-align: center;
  }

  .about__values {
    grid-template-columns: 1fr;
    gap: var(--mb-1);
  }

  .about__image {
    height: 250px;
    order: -1;
  }

  /* Contact */
  .contact__content {
    grid-template-columns: 1fr;
    gap: var(--mb-2);
  }

  .contact__buttons {
    order: 2;
    gap: var(--mb-1);
  }

  .contact__info {
    order: 1;
  }

  .contact__button {
    padding: 1rem 1.5rem;
  }

  .contact__button-icon {
    font-size: 1.1rem;
  }

  .contact__button-text h4 {
    font-size: 0.9rem;
  }

  .contact__button-text p {
    font-size: 0.75rem;
  }

  .contact__item {
    padding: 0.8rem;
  }

  .contact__item-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* Mobile Phones */
@media screen and (max-width: 480px) {
  /* Variables for small mobile */
  :root {
    --big-font-size: 2rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
  }

  .container {
    padding: 0 var(--mb-1);
  }

  /* Navigation */
  .nav {
    height: 3.5rem;
    padding: 0 var(--mb-1);
  }

  .nav__logo {
    font-size: 1.8rem;
  }

  .nav__menu {
    width: 80%;
  }

  .nav__list {
    padding: 3rem 0 0 1.5rem;
  }

  /* Hero */
  .hero {
    padding: 6rem 0 3rem;
  }

  .hero__title {
    font-size: var(--big-font-size);
    line-height: 1.2;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__description {
    font-size: 0.9rem;
  }

  .hero__cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Banner */
  .banner {
    padding: 2rem 0;
  }

  .banner__content {
    min-height: 60px;
  }

  .banner__text {
    font-size: 0.95rem;
    padding: 0 var(--mb-0-5);
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  .section__title {
    font-size: var(--h1-font-size);
  }

  .section__subtitle {
    font-size: 1rem;
    margin-bottom: var(--mb-2);
  }

  /* Services */
  .service {
    padding: var(--mb-1);
  }

  .service__icon {
    font-size: 1.8rem;
  }

  .service__title {
    font-size: 1.1rem;
  }

  .service__description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* About */
  .about__title {
    font-size: var(--h1-font-size);
  }

  .about__description {
    font-size: 0.9rem;
  }

  .about__image {
    height: 200px;
  }

  .about__image-content h3 {
    font-size: 1.2rem;
  }

  .about__image-content p {
    font-size: 0.9rem;
  }

  /* Contact */
  .contact__button {
    padding: 0.9rem 1.2rem;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .contact__button-icon {
    font-size: 1.5rem;
  }

  .contact__item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding: var(--mb-1);
  }

  .contact__item-icon {
    width: 50px;
    height: 50px;
  }
}

/* Small Mobile Phones */
@media screen and (max-width: 320px) {
  /* Variables for very small mobile */
  :root {
    --big-font-size: 1.8rem;
    --h1-font-size: 1.5rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .nav__logo {
    font-size: 1.6rem;
  }

  .hero__title {
    font-size: var(--big-font-size);
  }

  .banner__text {
    font-size: 0.85rem;
  }

  .service {
    padding: 0.75rem;
  }

  .service__icon {
    font-size: 1.6rem;
  }

  .service__title {
    font-size: 1rem;
  }

  .service__description {
    font-size: 0.85rem;
  }

  .service__tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
  }

  .contact__button {
    padding: 0.8rem 1rem;
  }
}

/* ===== UTILITY CLASSES FOR RESPONSIVE ===== */

/* Hide elements on mobile */
.hide-mobile {
  display: block;
}

@media screen and (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

/* Show only on mobile */
.show-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .show-mobile {
    display: block;
  }
}

/* Text alignment responsive */
.text-center-mobile {
  text-align: left;
}

@media screen and (max-width: 768px) {
  .text-center-mobile {
    text-align: center;
  }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 5rem 0 2rem;
  }

  .hero__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .banner {
    padding: 1.5rem 0;
  }

  .banner__content {
    min-height: 50px;
  }

  .section {
    padding: 3rem 0;
  }
}

/* ===== HIGH DPI DISPLAYS ===== */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  /* Optimizations for retina displays */
  .nav__toggle-line {
    height: 2px;
  }
  
  .service {
    border-width: 0.5px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .header,
  .nav__toggle,
  .nav__close,
  .banner,
  .contact__buttons,
  .footer {
    display: none;
  }

  .hero {
    background: none;
    color: var(--dark-color);
    padding: 1rem 0;
  }

  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }

  .service {
    background: none;
    border: 1px solid var(--dark-color);
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }
}