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

/* Large devices (desktops, 1200px and up) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 968px;
    }
    
    .hero__container {
        gap: 3rem;
    }
    
    .hero__image {
        width: 350px;
        height: 350px;
    }
}

/* Medium devices (tablets, 992px and down) */
@media screen and (max-width: 992px) {
    :root {
        --h1-font-size: 3rem;
        --h2-font-size: 2rem;
        --h3-font-size: 1.5rem;
        --section-padding: 4rem 0;
    }
    
    .container {
        max-width: 720px;
    }
    
    .hero__container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero__content {
        order: 2;
    }
    
    .hero__visual {
        order: 1;
    }
    
    .hero__image {
        width: 300px;
        height: 300px;
    }
    
    .about__mission {
        grid-template-columns: 1fr;
    }
    
    .values__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact__content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small devices (landscape phones, 768px and down) */
@media screen and (max-width: 768px) {
    :root {
        --h1-font-size: 2.5rem;
        --h2-font-size: 1.75rem;
        --h3-font-size: 1.25rem;
        --section-padding: 3rem 0;
        --container-padding: 0 1rem;
    }
    
    .container {
        max-width: 540px;
    }
    
    /* Header Mobile */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-medium);
        z-index: var(--z-modal);
    }
    
    .nav__menu.show-menu {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .nav__link {
        font-size: 1.25rem;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 2rem;
        right: 2rem;
        font-size: 2rem;
    }
    
    .nav__toggle {
        display: block;
    }
    
    .nav__actions .btn {
        display: none;
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 90vh;
        padding-top: var(--header-height);
    }
    
    .hero__actions {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero__image {
        width: 250px;
        height: 250px;
    }
    
    .floating-element {
        width: 50px;
        height: 50px;
    }
    
    .floating-element i {
        font-size: 1.25rem;
    }
    
    /* About Mobile */
    .about__card {
        padding: 2rem;
    }
    
    .values__grid {
        grid-template-columns: 1fr;
    }
    
    .value__item {
        padding: 1.5rem;
    }
    
    /* Services Mobile */
    .services__grid {
        grid-template-columns: 1fr;
    }
    
    .service__card {
        padding: 2rem;
    }
    
    /* Testimonials Mobile */
    .testimonial__card {
        padding: 2rem;
    }
    
    .testimonial__author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial__info {
        text-align: center;
    }
    
    /* Contact Mobile */
    .contact__form {
        padding: 2rem;
    }
    
    /* Footer Mobile */
    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer__legal {
        justify-content: center;
    }
}

/* Extra small devices (portrait phones, 576px and down) */
@media screen and (max-width: 576px) {
    :root {
        --h1-font-size: 2rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.125rem;
        --section-padding: 2.5rem 0;
        --container-padding: 0 0.75rem;
    }
    
    .container {
        max-width: 100%;
    }
    
    /* Header Extra Small */
    .nav {
        padding: 0 1rem;
    }
    
    .nav__logo-img {
        height: 2rem;
    }
    
    /* Hero Extra Small */
    .hero__title {
        font-size: 1.75rem;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .hero__image {
        width: 200px;
        height: 200px;
    }
    
    .floating-element {
        width: 40px;
        height: 40px;
    }
    
    .floating-element i {
        font-size: 1rem;
    }
    
    /* Buttons Extra Small */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn--large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Cards Extra Small */
    .about__card,
    .service__card,
    .testimonial__card,
    .contact__form {
        padding: 1.5rem;
    }
    
    .value__item {
        padding: 1.25rem;
    }
    
    /* Icons Extra Small */
    .about__card-icon,
    .service__icon {
        width: 60px;
        height: 60px;
    }
    
    .about__card-icon i,
    .service__icon i {
        font-size: 1.5rem;
    }
    
    .value__icon {
        width: 50px;
        height: 50px;
    }
    
    .value__icon i {
        font-size: 1.25rem;
    }
    
    /* Form Extra Small */
    .form__input,
    .form__select,
    .form__textarea {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Testimonials Extra Small */
    .testimonial__text {
        font-size: 1rem;
    }
    
    .testimonials__btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonials__btn i {
        font-size: 1rem;
    }
    
    /* Footer Extra Small */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer__social-link {
        width: 35px;
        height: 35px;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 1.5rem;
        right: 1.5rem;
        font-size: 1.125rem;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: var(--header-height) 0 2rem;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: center;
    }
    
    .hero__content {
        order: 1;
    }
    
    .hero__visual {
        order: 2;
    }
    
    .hero__image {
        width: 200px;
        height: 200px;
    }
    
    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .hero__description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }
    
    .hero__actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero__actions .btn {
        width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .hero__image {
        background-size: cover;
    }
    
    .floating-element {
        box-shadow: 0 4px 16px rgba(30, 127, 255, 0.2);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-element {
        animation: none;
    }
    
    .scroll-top,
    .btn,
    .service__card,
    .about__card,
    .value__item {
        transition: none;
    }
}

/* Print styles */
@media print {
    .header,
    .nav__toggle,
    .nav__close,
    .scroll-top,
    .testimonials__navigation,
    .testimonials__dots {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
        break-inside: avoid;
    }
    
    .hero__actions,
    .contact__form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero__title {
        font-size: 24pt;
    }
    
    .section__title {
        font-size: 18pt;
    }
}

