/* RESPONSIVE CSS FOR AL SHAIKH EMBROIDERY */

/* Responsive CSS additions */
.touch-active {
    transform: scale(0.95) !important;
    opacity: 0.9 !important;
}

.mobile-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.mobile-loading i {
    font-size: 3rem;
    color: #D4AF37;
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Reduce motion for performance */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* Save data mode */
.save-data .gallery-overlay,
.save-data .image-frame::before,
.save-data .image-frame::after,
.save-data .btn::before,
.save-data .social-icons a::before {
    display: none !important;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .main-header {
        transition: transform 0.3s ease !important;
    }
    
    .hero-slide {
        background-attachment: scroll !important;
    }
    
    .form-control:focus {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    
    .lb-nav a.lb-next,
    .lb-nav a.lb-prev {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0 !important;
    }
    
    .hero-btns .btn,
    .cta-btns .btn {
        min-height: 50px !important;
        font-size: 1rem !important;
    }
    
    .nav-menu {
        padding-top: 120px !important;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available !important;
    }
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

/* Fix for lightbox on mobile */
@media (max-width: 768px) {
    .lb-container {
        padding: 0 10px !important;
    }
    
    .lb-dataContainer {
        margin: 0 auto !important;
        max-width: 90% !important;
    }
    
    .lb-close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 28px !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover .gallery-overlay {
        opacity: 1 !important;
    }
    
    .gallery-item:hover img {
        transform: none !important;
    }
    
    .service-card:hover {
        transform: none !important;
    }
    
    .btn:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .top-header,
    .main-header,
    .hero-btns,
    .footer-social,
    .mobile-menu-btn {
        display: none !important;
    }
    
    .hero {
        height: auto !important;
        min-height: auto !important;
    }
    
    .hero-slide {
        position: relative !important;
        opacity: 1 !important;
        height: 300px !important;
    }
    
    a {
        text-decoration: none !important;
        color: #000 !important;
    }
    
    .footer {
        background: #fff !important;
        color: #000 !important;
    }
    
    .footer-bottom {
        border-top: 1px solid #000 !important;
    }
}