/* Responsive Styles for Masal Shading Website */

/* Base Mobile Menu Styles */
.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu.active i {
    transform: rotate(90deg);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Large Screens (Desktops) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }
    
    .hero {
        height: 700px;
    }
}

/* Medium Screens (Tablets and Small Laptops) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Screens (Tablets) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .steps-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .step {
        flex: 0 0 33.333%;
        margin-bottom: 1.5rem;
    }
    
    .featured-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Extra Small Screens (Mobile Phones) */
@media screen and (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 15px;
        width: 100%;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.5rem 0.8rem;
        height: 60px;
        justify-content: space-between;
    }
    
    .logo {
        font-size: 1.3rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--dark-bg);
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        padding: 1.5rem 1rem;
        z-index: 1000;
        text-align: center;
        transition: all 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-links.active {
        display: flex !important;
        animation: fadeIn 0.3s ease forwards;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .nav-links a {
        padding: 0.8rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 1rem;
        color: var(--text-light);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .navbar {
        padding: 0.5rem 0.8rem;
        height: 60px;
    }
    
    .nav-left {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        display: block;
        cursor: pointer;
        padding: 0.5rem;
        z-index: 1002;
        color: var(--text-light);
    }
    
    .mobile-menu i {
        font-size: 1.4rem;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu.active i {
        transform: rotate(90deg);
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-language-selector {
        margin-top: 2rem;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .mobile-language-selector a {
        font-weight: bold;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: rgba(255,255,255,0.1);
        color: var(--text-light);
    }
    
    .mobile-language-selector a.active {
        background: var(--accent-color);
        color: var(--dark-bg);
    }
    
    .language-selector {
        margin-left: 0;
        z-index: 1002;
        background: rgba(255,255,255,0.1);
        border-radius: 15px;
        padding: 0.2rem;
    }
    
    /* Hero Section */
    .hero {
        height: 350px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .slide-content {
        width: 90%;
        padding: 0 0.8rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    /* Hide slider arrows on mobile */
    .slider-nav {
        display: none;
    }
    
    /* Make slider dots more visible */
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-dots button {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }
    
    /* Features Section */
    .features {
        padding: 40px 0;
    }
    
    .features-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-card {
        padding: 15px;
    }
    
    /* Process Steps Section */
    .process-steps {
        padding: 30px 0;
    }
    
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .step {
        width: 100%;
        max-width: 250px;
        padding: 15px 10px;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    /* Add down arrow between steps */
    .step:not(:last-child)::before {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.3);
        font-size: 14px;
    }
    
    /* Products Section */
    .product-categories {
        padding: 40px 0;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .category-tab {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin: 0 2px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        margin-bottom: 20px;
    }
    
    /* Featured Products */
    .featured-products-showcase {
        padding: 40px 0;
    }
    
    .featured-products-showcase h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .featured-products-showcase .subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .featured-products {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer */
    .modern-footer {
        padding: 40px 0 0 0;
    }
    
    .footer-sections {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-payment-methods {
        justify-content: center;
    }
}

/* Very Small Screens (Small Mobile Phones) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 18px;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .step-number {
        font-size: 28px;
    }
    
    .step-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon i {
        font-size: 18px;
    }
    
    .step h3 {
        font-size: 0.9rem;
    }
}
