/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item.large {
        grid-column: span 2;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row-reverse;
        justify-content: space-between;
        padding: 15px;
    }
    
    .logo-container {
        margin-bottom: 0;
        padding: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 100;
        border-radius: 0;
    }
    
    nav ul.active {
        right: 0;
    }
    
    nav ul.active li {
        animation: slideIn 0.3s forwards;
        opacity: 0;
    }
    
    nav ul.active li:nth-child(1) { animation-delay: 0.1s; }
    nav ul.active li:nth-child(2) { animation-delay: 0.2s; }
    nav ul.active li:nth-child(3) { animation-delay: 0.3s; }
    nav ul.active li:nth-child(4) { animation-delay: 0.4s; }
    nav ul.active li:nth-child(5) { animation-delay: 0.5s; }
    
    nav a {
        width: 100%;
        text-align: right;
        padding: 15px;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .custom-content, .about-content, .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .testimonial p {
        font-size: 1rem;
    }
    
    .islamic-pattern-divider {
        height: 30px;
        margin: 40px 0;
    }
    
    .home-section {
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    /* Add elegant hover effects for mobile */
    .feature, .product-card, .gallery-item {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .feature:active, .product-card:active, .gallery-item:active {
        transform: scale(0.98);
    }
    
    /* Add touchable buttons for mobile */
    .cta-button, .contact-button, .submit-button, .whatsapp-button {
        padding: 15px 25px;
        font-size: 1.1rem;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 45px;
        height: 45px;
        margin-left: 8px;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .menu-toggle {
        font-size: 1.2rem;
        padding: 8px;
    }
    
    .hero {
        height: 350px;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .feature i {
        font-size: 2.5rem;
    }
    
    .gallery-caption h3 {
        font-size: 1.2rem;
    }
    
    .home-section {
        padding: 25px 15px;
    }
    
    .product-price-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .whatsapp-button {
        width: 100%;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .category-nav button {
        width: 100%;
    }
    
    .product-action {
        padding: 0 10px 15px;
    }
    
    .inquiry-button {
        width: 100%;
        padding: 12px 15px;
    }
}

/* Add styles for tablets in landscape mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .custom-content, .about-content, .contact-container {
        gap: 20px;
    }
}

/* Ensure form elements are touch-friendly on mobile */
@media (max-width: 768px) {
    .form-group input, .form-group textarea {
        padding: 15px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
    
    .submit-button {
        width: 100%;
        padding: 15px;
    }
}