/**
 * Homepage Tablet Enhancement CSS
 * Optimized for Xiaomi Redmi Pad 2 and similar large tablets
 */

/* ================================================
   TABLET NAVIGATION ENHANCEMENTS
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    /* Better navbar for tablets */
    .navbar {
        padding: 1rem 0;
        transition: all 0.3s ease;
    }

    .navbar.scrolled {
        padding: 0.75rem 0;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
    }

    .navbar-brand {
        margin-right: 2rem;
    }

    .logo-container {
        width: 55px;
        height: 55px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

    /* Larger touch targets for navigation */
    .nav-link {
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem;
        font-weight: 500;
        border-radius: 30px;
        transition: all 0.3s ease;
        margin: 0 0.25rem;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-link:hover {
        background: var(--salon-soft-pink);
        transform: translateY(-2px);
    }
}

/* ================================================
   HERO SECTION TABLET OPTIMIZATION
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 3.25rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .hero-detail {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    /* Better image sizing for tablets */
    .hero-image {
        width: 350px;
        height: 350px;
        border: 5px solid white;
        box-shadow: 0 25px 50px rgba(233, 30, 99, 0.25);
    }

    .hero-image:hover {
        transform: scale(1.03);
    }

    .admin-hint .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Better button layout */
    .hero-actions {
        margin-top: 2.5rem;
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        min-height: 56px;
        border-radius: 30px;
        transition: all 0.3s ease;
        margin: 0.5rem 0;
    }

    .btn:hover {
        transform: translateY(-3px);
    }
}

/* ================================================
   SERVICE SECTION TABLET LAYOUT
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    .section-title {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
    }

    /* Optimized service cards for tablet grid */
    .service-card {
        padding: 2.5rem 2rem;
        margin-bottom: 2rem;
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
        transition: all 0.3s ease;
        min-height: 400px;
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 45px rgba(233, 30, 99, 0.18);
    }

    .service-icon {
        width: 90px;
        height: 90px;
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }

    .service-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .service-price {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .service-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    .tag {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
        border-radius: 20px;
        margin: 0.25rem;
    }
}

/* ================================================
   VIDEO SECTION TABLET ENHANCEMENTS
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    .video-container {
        max-width: 90%;
        margin: 2rem auto;
        border-radius: 24px;
    }

    .video-wrapper {
        border-radius: 24px 24px 0 0;
    }

    .play-button {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        transition: all 0.3s ease;
    }

    .play-button:hover {
        transform: scale(1.15);
    }

    .video-info {
        padding: 2.5rem;
    }

    .video-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .video-description {
        font-size: 1.15rem;
        line-height: 1.7;
    }
}

/* ================================================
   FEATURE CARDS TABLET LAYOUT
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    .feature-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        margin-bottom: 2rem;
        transition: all 0.3s ease;
        min-height: 300px;
    }

    .feature-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 35px rgba(233, 30, 99, 0.12);
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .feature-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

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

/* ================================================
   CONTACT SECTION TABLET LAYOUT
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    .contact-card {
        padding: 2.5rem 2rem;
        border-radius: 20px;
        margin-bottom: 2rem;
        transition: all 0.3s ease;
        min-height: 280px;
    }

    .contact-card:hover {
        transform: translateY(-6px);
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .contact-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .contact-details p {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .contact-details .highlight {
        font-size: 1.1rem;
    }
}

/* ================================================
   WHATSAPP FLOAT BUTTON TABLET
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    .whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 2.5rem;
        right: 2.5rem;
        font-size: 1.75rem;
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }

    .whatsapp-float:hover {
        transform: scale(1.15);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7);
    }

    .notification-badge {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        top: -8px;
        right: -8px;
    }
}

/* ================================================
   RESPONSIVE GRID IMPROVEMENTS
   ================================================ */

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet portrait - 2 columns */
    .row .col-lg-4,
    .row .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }

    .row .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

@media (min-width: 992px) and (max-width: 1300px) {
    /* Tablet landscape - 3 columns for most content */
    .row .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 2rem;
    }

    .row .col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        margin-bottom: 2rem;
    }

    .row .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
}

/* ================================================
   TOUCH INTERACTION IMPROVEMENTS
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    /* Better touch targets */
    a, button, .btn, .nav-link {
        min-height: 48px;
        min-width: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }

    /* Smooth scrolling for tablet */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Better tap highlights */
    * {
        -webkit-tap-highlight-color: rgba(233, 30, 99, 0.2);
        -webkit-touch-callout: none;
    }

    /* Prevent text selection on UI elements */
    .btn, .nav-link, .card, .service-card, .feature-card {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* ================================================
   PERFORMANCE OPTIMIZATIONS FOR TABLETS
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    /* Hardware acceleration */
    .hero-image,
    .service-card,
    .feature-card,
    .contact-card,
    .whatsapp-float {
        transform: translateZ(0);
        backface-visibility: hidden;
        perspective: 1000px;
    }

    /* Optimize images for tablet display */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        max-width: 100%;
        height: auto;
    }

    /* Better animation performance */
    @keyframes float {
        0%, 100% {
            transform: translateY(0px) translateZ(0);
        }
        25% {
            transform: translateY(-8px) translateZ(0);
        }
        50% {
            transform: translateY(-15px) translateZ(0);
        }
        75% {
            transform: translateY(-8px) translateZ(0);
        }
    }
}

/* ================================================
   ACCESSIBILITY IMPROVEMENTS FOR TABLETS
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    /* Better focus indicators */
    .btn:focus,
    .nav-link:focus,
    a:focus {
        outline: 3px solid #3b82f6;
        outline-offset: 3px;
        border-radius: 6px;
    }

    /* Better contrast for readability */
    .hero-description,
    .service-description,
    .feature-description {
        color: #4b5563;
    }

    /* Larger text for better readability */
    body {
        font-size: 16px;
        line-height: 1.7;
    }

    /* Better spacing for touch */
    .btn-group .btn {
        margin: 0.25rem;
    }
}

/* ================================================
   DARK MODE SUPPORT FOR TABLET HOMEPAGE
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    @media (prefers-color-scheme: dark) {
        .hero-section {
            background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        }

        .service-card,
        .feature-card,
        .contact-card {
            background: #1f2937;
            color: #f9fafb;
        }

        .section-title,
        .hero-title {
            color: #f9fafb;
        }

        .hero-description,
        .service-description,
        .feature-description {
            color: #d1d5db;
        }

        .navbar {
            background: rgba(31, 41, 55, 0.95) !important;
        }

        .nav-link {
            color: #f9fafb !important;
        }

        .nav-link:hover {
            background: rgba(233, 30, 99, 0.2);
        }
    }
}

/* ================================================
   LOADING PERFORMANCE ENHANCEMENTS
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) {

    /* Lazy loading preparation */
    img[data-src] {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    img[data-src].loaded {
        opacity: 1;
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

/* ================================================
   TABLET ORIENTATION HANDLING
   ================================================ */

@media (min-width: 768px) and (max-width: 1300px) and (orientation: portrait) {

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.9rem;
    }

    .hero-image {
        width: 300px;
        height: 300px;
    }

    .service-card,
    .feature-card {
        min-height: 350px;
    }
}

@media (min-width: 768px) and (max-width: 1300px) and (orientation: landscape) {

    .hero-section {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle {
        font-size: 2.5rem;
    }

    .hero-image {
        width: 380px;
        height: 380px;
    }
}