/* Responsive fixes for specific devices */

/* Nest Hub Max (1280x800) */
@media (width: 1280px) and (height: 800px) {
    .hero-container {
        max-width: 80% !important;
        padding-right: 4rem !important;
    }
    
    .hero-heading {
        font-size: 2.75rem !important;
        line-height: 1.15 !important;
    }
    
    .hero-text {
        font-size: 1.375rem !important;
    }
    
    .grid-container {
        gap: 2.5rem !important;
    }
}

/* Nest Hub (1024x600) */
@media (width: 1024px) and (height: 600px) {
    .hero-container {
        max-width: 85% !important;
        padding-right: 3rem !important;
    }
    
    .hero-heading {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-text {
        font-size: 1.125rem !important;
    }
    
    .hero-section {
        min-height: 50vh !important;
    }
}

/* iPad Pro 12.9" (1024x1366) Portrait */
@media (width: 1024px) and (height: 1366px) and (orientation: portrait) {
    .hero-section {
        min-height: 60vh !important;
        padding: 4rem 2rem !important;
    }
    
    .hero-container {
        max-width: 100% !important;
        padding-right: 4rem !important;
        text-align: right !important;
    }
    
    .hero-heading {
        font-size: 2.75rem !important;
        line-height: 1.1 !important;
        text-align: right !important;
    }
    
    .hero-text {
        font-size: 1.375rem !important;
        margin-bottom: 2.5rem !important;
        text-align: right !important;
    }
    
    .content-wrapper {
        align-items: center !important;
        justify-content: flex-end !important;
        padding-top: 2rem !important;
    }
}

/* iPad Pro 11" (834x1194) Portrait */
@media (width: 834px) and (height: 1194px) and (orientation: portrait) {
    .hero-section {
        min-height: 60vh !important;
        padding: 3rem 1.5rem !important;
    }
    
    .hero-container {
        padding-right: 3rem !important;
        text-align: right !important;
    }
    
    .hero-heading {
        font-size: 2.25rem !important;
        text-align: right !important;
    }
    
    .hero-text {
        font-size: 1.25rem !important;
        text-align: right !important;
    }
    
    .content-wrapper {
        justify-content: flex-end !important;
        align-items: center !important;
    }
}

/* iPad Landscape (any iPad in landscape) */
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) and (max-height: 1024px) {
    .hero-section {
        min-height: 70vh !important;
    }
    
    .hero-container {
        max-width: 70% !important;
        padding-right: 8rem !important;
        text-align: right !important;
    }
    
    .hero-heading {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
        text-align: right !important;
    }
    
    .hero-text {
        font-size: 1.25rem !important;
        text-align: right !important;
    }
    
    .content-wrapper {
        justify-content: flex-end !important;
        align-items: center !important;
    }
    
    .grid-container {
        gap: 3rem !important;
    }
}

/* Surface Pro and other 2-in-1 devices */
@media (min-width: 912px) and (max-width: 1368px) and (min-height: 600px) {
    .hero-section {
        min-height: 65vh !important;
    }
    
    .content-wrapper {
        align-items: center !important;
    }
}

/* High DPI (Retina) screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-heading,
    .hero-text {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-device-width: 480px) {
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* Force hardware acceleration for smoother animations on tablets */
@media (min-width: 768px) {
    .hero-container,
    .card-hover {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}