/* Responsive Styles for Vellamattathu Traders Website */

/* Large Devices (Desktops) */
@media screen and (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Medium Devices (Tablets) */
@media screen and (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .intro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Small Devices (Mobile Landscape) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--white-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Extra Small Devices (Mobile Portrait) */
@media screen and (max-width: 576px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .carousel-item {
        min-width: 150px;
    }
    
    .carousel-item img {
        max-height: 60px;
    }
}

/* Landscape Orientation for Mobile */
@media screen and (max-height: 450px) and (orientation: landscape) {
    #hero {
        height: auto;
        padding: 100px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
}