/* ===== RESPONSIVE DESIGN - MOBILE OPTIMIZED ===== */

/* Large Tablets and Small Desktops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 60px 0;
    }

    .section__title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero__name {
        font-size: 3.5rem;
        line-height: 1.2;
    }

    .hero__title {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .hero__container,
    .welcome__content,
    .gift-voucher__content {
        gap: 40px;
    }

    .services__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    /* Touch target optimization */
    .btn {
        min-height: 44px;
        padding: 14px 32px;
    }

    .nav__link {
        padding: 12px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Tablets (max-width: 768px) */
@media screen and (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 50px 0;
    }

    .section__title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .section__subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Navigation - Enhanced Mobile Menu */
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        padding: 90px 35px 40px;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        overflow-y: auto;
    }

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

    .nav__list {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 16px 12px;
        min-height: 52px;
        display: flex;
        align-items: center;
        width: 100%;
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .nav__link:hover,
    .nav__link.active {
        background-color: var(--bg-light);
        padding-left: 20px;
    }

    .nav__toggle,
    .nav__close {
        display: block;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .nav__close {
        position: absolute;
        top: 24px;
        right: 24px;
        font-size: 2rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: var(--bg-light);
        transition: all 0.3s ease;
    }

    .nav__close:hover {
        background-color: var(--border-color);
        transform: rotate(90deg);
    }

    .nav__toggle {
        font-size: 1.8rem;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Mobile Menu Overlay */
    .nav__menu::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: -1;
    }

    .nav__menu.show-menu::before {
        opacity: 1;
        visibility: visible;
    }

    /* Hero Section - Mobile Optimized */
    .hero {
        min-height: calc(var(--vh, 1vh) * 100);
        padding: calc(var(--header-height) + 50px) 0 70px;
    }

    .hero__bg-image {
        object-position: center top;
    }

    .hero__content {
        padding: 0 20px;
    }

    .hero__name {
        font-size: 3rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .hero__title {
        font-size: 1.3rem;
        line-height: 1.5;
        margin-bottom: 35px;
    }

    .hero__buttons {
        justify-content: center;
        gap: 15px;
    }

    .hero__buttons .btn {
        min-height: 48px;
        padding: 16px 28px;
        font-size: 0.9rem;
    }

    .hero__scroll {
        display: none;
    }

    /* Welcome Section - Mobile Optimized */
    .welcome__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .welcome__image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .welcome__text p {
        font-size: 1.05rem;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .welcome__text .btn {
        min-height: 48px;
        margin-top: 25px;
    }

    /* Services - Mobile Optimized */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-card {
        box-shadow: var(--shadow-md);
    }

    .service-card__content {
        padding: 30px 25px;
    }

    .service-card__buttons {
        justify-content: center;
        gap: 12px;
    }

    .service-card__buttons .btn {
        min-height: 44px;
    }

    /* Gift Voucher - Mobile Optimized */
    .gift-voucher__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .gift-voucher__title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .gift-voucher__description {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    .gift-voucher__image {
        max-width: 500px;
        margin: 0 auto;
    }

    .gift-voucher__text .btn {
        min-height: 48px;
        margin-top: 25px;
    }

    /* Testimonials - Mobile Optimized */
    .testimonials__slider {
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .testimonial-slide {
        padding: 10px 15px;
        min-width: 100%;
        width: 100%;
    }

    .testimonial__image {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 600px;
        object-fit: contain;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-md);
        border-width: 1px;
    }

    .testimonials__controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        margin-top: 25px;
        padding: 0 20px;
        max-width: 100%;
    }

    .testimonial__btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        min-width: 44px;
        min-height: 44px;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .testimonials__dots {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 180px;
        flex: 1;
    }

    .testimonial__dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        min-height: 8px;
        cursor: pointer;
        flex-shrink: 0;
        -webkit-tap-highlight-color: transparent;
    }

    .testimonial__dot.active {
        width: 20px;
    }

    /* CTA - Mobile Optimized */
    .cta__title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 18px;
    }

    .cta__text {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 35px;
    }

    .cta .btn {
        min-height: 52px;
    }

    .cta__buttons {
        gap: 15px;
    }

    /* Footer - Mobile Optimized */
    .footer__content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 35px;
    }

    .footer__social-link {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        -webkit-tap-highlight-color: transparent;
    }

    /* Buttons - Touch Optimized */
    .btn {
        padding: 14px 28px;
        font-size: 0.9rem;
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .btn-large {
        padding: 18px 40px;
        font-size: 1rem;
        min-height: 52px;
    }

    .btn-small {
        padding: 12px 22px;
        font-size: 0.85rem;
        min-height: 44px;
    }

    /* About Page - Mobile Optimized */
    .about__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about__image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .about__description {
        font-size: 1.05rem;
        line-height: 1.8;
    }

    /* Formations - Mobile Optimized */
    .formations__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .formation-card {
        padding: 35px 25px;
    }

    /* Philosophy - Mobile Optimized */
    .philosophy__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .philosophy__image {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Values - Mobile Optimized */
    .values__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Massage Detail - Mobile Optimized */
    .massage-detail__content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .massage-detail:nth-child(even) .massage-detail__content {
        direction: ltr;
    }

    .massage-detail__image {
        max-width: 500px;
        margin: 0 auto;
    }

    .massage-detail__buttons {
        flex-wrap: wrap;
        gap: 12px;
    }

    .massage-detail__buttons .btn {
        min-height: 44px;
    }

    /* Pricing - Mobile Optimized */
    .pricing__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-card {
        padding: 45px 35px;
    }

    /* Contact - Mobile Optimized */
    .contact-info__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info-card__icon {
        width: 64px;
        height: 64px;
        font-size: 1.6rem;
    }

    /* Forms - Mobile Optimized */
    .form-input,
    .form-textarea {
        padding: 16px 18px;
        font-size: 1rem;
        min-height: 48px;
        -webkit-appearance: none;
        border-radius: var(--radius-sm);
    }

    .form-textarea {
        min-height: 160px;
    }

    .form-button {
        min-height: 52px;
        font-size: 1rem;
    }

    /* Map - Mobile Optimized */
    .map-container {
        height: 400px;
    }
}

/* Mobile Devices (max-width: 480px) - Enhanced */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section__title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .section__subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .section__header {
        margin-bottom: 35px;
    }

    /* Navigation - Full Width Mobile */
    .nav__logo {
        font-size: 0.95rem;
        letter-spacing: 1.5px;
    }

    .nav__menu {
        width: 100%;
        max-width: 100%;
        padding: 80px 25px 30px;
    }

    .nav__link {
        font-size: 1.05rem;
        padding: 14px 12px;
        min-height: 50px;
    }

    .nav__close {
        top: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 1.8rem;
    }

    .nav__toggle {
        width: 42px;
        height: 42px;
        font-size: 1.6rem;
    }

    /* Hero Section - Mobile Optimized */
    .hero {
        padding: calc(var(--header-height) + 35px) 0 50px;
    }

    .hero__content {
        padding: 0 16px;
    }

    .hero__name {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero__title {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
        min-height: 50px;
        padding: 16px 24px;
        font-size: 0.9rem;
    }

    /* Page Header - Mobile */
    .page-header {
        padding: 120px 0 60px;
    }

    .page-header__title {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .page-header__subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    /* Welcome Section - Mobile */
    .welcome__text p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .welcome__image {
        max-width: 100%;
    }

    /* Service Cards - Mobile Optimized */
    .service-card__content {
        padding: 25px 20px;
    }

    .service-card__title {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .service-card__description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .service-card__buttons {
        flex-direction: column;
        gap: 10px;
    }

    .service-card__buttons-row {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .service-card__buttons .btn {
        width: 100%;
        min-height: 46px;
    }

    /* Gift Voucher - Mobile */
    .gift-voucher__title {
        font-size: 1.4rem;
        line-height: 1.4;
    }

    .gift-voucher__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .gift-voucher__validity {
        font-size: 0.95rem;
        margin: 25px 0;
    }

    .gift-voucher__image {
        max-width: 100%;
    }

    /* Testimonials - Mobile Optimized */
    .testimonials__slider {
        max-width: 100%;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .testimonial-slide {
        padding: 8px 12px;
        min-width: 100%;
        width: 100%;
    }

    .testimonial__image {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 550px;
        object-fit: contain;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
        border-width: 1px;
    }

    .testimonials__controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 20px;
        padding: 0 16px;
        max-width: 100%;
    }

    .testimonial__btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .testimonials__dots {
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 160px;
        flex: 1;
    }

    .testimonial__dot {
        width: 7px;
        height: 7px;
        min-width: 7px;
        min-height: 7px;
        flex-shrink: 0;
    }

    .testimonial__dot.active {
        width: 18px;
    }

    /* CTA - Mobile */
    .cta__title {
        font-size: 1.6rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .cta__text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 30px;
    }

    .cta__buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .cta__buttons .btn {
        width: 100%;
        min-height: 50px;
    }

    /* Footer - Mobile Centered */
    .footer {
        padding: 40px 0 20px;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer__links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer__social {
        justify-content: center;
        gap: 12px;
    }

    .footer__social-link {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

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

    /* Buttons - Mobile Touch Optimized */
    .btn {
        padding: 14px 24px;
        font-size: 0.85rem;
        min-height: 48px;
    }

    .btn-small {
        padding: 12px 20px;
        font-size: 0.8rem;
        min-height: 44px;
    }

    .btn-large {
        padding: 16px 32px;
        font-size: 0.95rem;
        min-height: 52px;
    }

    /* Scroll to Top - Mobile */
    .scroll-top {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 1.1rem;
    }

    /* About Page - Mobile */
    .about__title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .about__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .about__image {
        max-width: 100%;
    }

    /* Formations - Mobile */
    .formation-card {
        padding: 30px 20px;
    }

    .formation-card__title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .formation-card__subtitle {
        font-size: 0.9rem;
    }

    /* Philosophy - Mobile */
    .philosophy__title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .philosophy__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .philosophy__image {
        max-width: 100%;
    }

    /* Values - Mobile */
    .value-card {
        padding: 35px 25px;
    }

    .value-card__icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .value-card__title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .value-card__description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Massage Detail - Mobile */
    .massage-detail__title {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .massage-detail__subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .massage-detail__description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .massage-detail__benefits-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .massage-detail__benefits-list li {
        font-size: 0.95rem;
        padding: 6px 0;
        padding-left: 28px;
    }

    .massage-detail__image {
        max-width: 100%;
    }

    .massage-detail__buttons {
        flex-direction: column;
        gap: 10px;
    }

    .massage-detail__buttons .btn {
        width: 100%;
        min-height: 46px;
    }

    /* Pricing - Mobile */
    .pricing-card {
        padding: 40px 25px;
    }

    .pricing-card__duration {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .pricing-card__price {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }

    .pricing-card__price span {
        font-size: 1.3rem;
    }

    .pricing-card__features li {
        font-size: 0.95rem;
        padding: 10px 0;
    }

    .pricing-note__text {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Contact - Mobile */
    .contact-info-card {
        padding: 25px 20px;
    }

    .contact-info-card__icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 18px;
    }

    .contact-info-card__title {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .contact-info-card__text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Forms - Mobile Touch Optimized */
    .form-group {
        margin-bottom: 20px;
    }

    .form-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }

    .form-input,
    .form-textarea {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 50px;
    }

    .form-textarea {
        min-height: 150px;
    }

    .form-button {
        width: 100%;
        min-height: 52px;
        font-size: 1rem;
    }

    .form-message {
        padding: 12px 16px;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    /* Map - Mobile */
    .map-container {
        height: 350px;
        border-radius: var(--radius-sm);
    }

    /* Booking - Mobile */
    .booking-iframe {
        min-height: 650px;
        border-radius: var(--radius-sm);
    }

    /* Privacy Policy - Mobile */
    .privacy-policy__content {
        max-width: 100%;
    }

    .privacy-article {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .privacy-article__title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .privacy-article__subtitle {
        font-size: 1.2rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .privacy-article__text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .privacy-article__text p {
        margin-bottom: 18px;
    }

    .privacy-article__text ul li {
        padding: 10px 0 10px 30px;
        font-size: 0.95rem;
    }

    .privacy-cta {
        padding: 50px 30px;
        margin-top: 50px;
    }

    .privacy-cta__title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .privacy-cta__text {
        font-size: 1.05rem;
        margin-bottom: 25px;
    }

    .privacy-cta .btn {
        min-height: 52px;
    }
}

/* Extra Small Devices (max-width: 360px) - Ultra Compact */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 14px;
    }

    .section {
        padding: 35px 0;
    }

    .section__title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .section__subtitle {
        font-size: 0.9rem;
    }

    .hero__name {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero__title {
        font-size: 1rem;
        line-height: 1.5;
    }

    .hero__buttons .btn {
        padding: 14px 20px;
        font-size: 0.85rem;
    }

    .page-header__title {
        font-size: 2rem;
    }

    .page-header__subtitle {
        font-size: 1rem;
    }

    .cta__title {
        font-size: 1.4rem;
    }

    .cta__text {
        font-size: 0.95rem;
    }

    .gift-voucher__title {
        font-size: 1.2rem;
    }

    .gift-voucher__description {
        font-size: 0.95rem;
    }

    .service-card__title {
        font-size: 1.1rem;
    }

    .service-card__description {
        font-size: 0.9rem;
    }

    .service-card__content {
        padding: 20px 16px;
    }

    .massage-detail__title {
        font-size: 1.5rem;
    }

    .massage-detail__subtitle {
        font-size: 1rem;
    }

    .about__title,
    .philosophy__title {
        font-size: 1.6rem;
    }

    .value-card__title {
        font-size: 1.2rem;
    }

    .formation-card__title {
        font-size: 1.1rem;
    }

    .pricing-card__price {
        font-size: 2.2rem;
    }

    .nav__logo {
        font-size: 0.9rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 12px 20px;
    }

    .btn-large {
        font-size: 0.9rem;
        padding: 14px 28px;
    }

    /* Privacy Policy - Extra Small */
    .privacy-article__title {
        font-size: 1.2rem;
    }

    .privacy-article__subtitle {
        font-size: 1rem;
    }

    .privacy-article__text {
        font-size: 0.9rem;
    }

    .privacy-article__text ul li {
        padding: 6px 0 6px 26px;
        font-size: 0.85rem;
    }

    .privacy-cta {
        padding: 35px 20px;
    }

    .privacy-cta__title {
        font-size: 1.4rem;
    }

    .privacy-cta__text {
        font-size: 0.95rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn:hover::before {
        display: none;
    }

    /* Increase touch targets */
    .nav__link,
    .btn,
    .footer__social-link,
    .testimonial__btn,
    .testimonial__dot,
    .scroll-top {
        -webkit-tap-highlight-color: rgba(106, 169, 154, 0.2);
    }

    /* Prevent text selection on buttons */
    .btn,
    .nav__toggle,
    .nav__close,
    .testimonial__btn {
        -webkit-user-select: none;
        user-select: none;
    }

    /* Optimize scrolling */
    .nav__menu,
    .testimonials__slider {
        -webkit-overflow-scrolling: touch;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav__toggle,
    .hero__scroll,
    .scroll-top,
    .footer__social,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .section__title {
        color: #000;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }

    .service-card,
    .testimonial-card,
    .pricing-card {
        border: 1px solid #000;
        page-break-inside: avoid;
    }
}

/* Landscape Orientation for Mobile - Enhanced */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + 20px) 0 40px;
        background-attachment: scroll;
    }

    .hero__name {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 10px;
    }

    .hero__title {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .hero__buttons {
        flex-direction: row;
        gap: 12px;
    }

    .hero__buttons .btn {
        width: auto;
        min-width: 140px;
    }

    .section {
        padding: 40px 0;
    }

    .section__header {
        margin-bottom: 30px;
    }

    .nav__menu {
        padding: 70px 30px 30px;
    }

    .page-header {
        padding: 100px 0 50px;
    }
}

/* Landscape Orientation for Tablets */
@media screen and (min-width: 768px) and (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: calc(var(--header-height) + 30px) 0 50px;
    }

    .section {
        padding: 50px 0;
    }
}

/* High Resolution Displays - Enhanced */
@media screen and (min-width: 1400px) {
    :root {
        --max-width: 1320px;
    }

    .section__title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero__name {
        font-size: 5rem;
        line-height: 1.1;
    }

    .hero__title {
        font-size: 2rem;
        line-height: 1.4;
    }

    .section__subtitle {
        font-size: 1.3rem;
    }

    .btn-large {
        padding: 20px 52px;
        font-size: 1.15rem;
    }
}

/* Ultra High Resolution Displays */
@media screen and (min-width: 1920px) {
    :root {
        --max-width: 1440px;
    }

    .section {
        padding: 100px 0;
    }

    .section__title {
        font-size: 3.5rem;
    }

    .hero__name {
        font-size: 5.5rem;
    }
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero__scroll {
        animation: none;
    }

    .testimonials__track {
        transition: none;
    }

    .nav__menu {
        transition: right 0.01ms !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    .btn,
    .service-card,
    .testimonial-card,
    .pricing-card {
        border-width: 3px;
    }

    .nav__link::after {
        height: 3px;
    }

    .section__title,
    .hero__name {
        font-weight: 700;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --text-dark: #f8f9fa;
        --text-light: #adb5bd;
        --bg-white: #212529;
        --bg-light: #343a40;
        --border-color: #495057;
    }

    .header {
        background-color: #212529;
    }

    .service-card,
    .testimonial-card {
        background-color: #343a40;
    }
    */
}
