@media (max-width: 768px) {
    .product-card {
        width: calc(40% - (1 * 20px / 2)); 
    }
    
    .product-card img {
        width: 100%
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    header {
        flex-direction: column;
        height: auto; 
    }

    header img {
        margin: 0 auto;
    }
    
    .menu {
        margin: 0;
        text-align: center
    }
    
    .contact-content {
        margin-top: 50px
    }

    .go-to-products-btn {
        top: 85%;
        transform: translateX(-50%) translateY(-50%);
    }
    
    .main-container {
        height: auto
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .product-card {
        width: calc(50% - 20px);
    }

    .product-card img {
        width: 100%; 
    }

    header {
        flex-direction: row;
        justify-content: space-between; 
    }

    header img {
        margin: 0; 
    }

    .menu {
        flex-direction: row; 
        gap: 15px;
        margin: 0 auto;
        padding: 0 20px; 
        font-size: 2rem
    }
    
    .welcome-message {
        margin-top: 250px
    }
    
    .welcome-message h2 {
        font-size: 3rem
    }
    
    .welcome-message p {
        font-size: 2rem
    }
    
    .product-card h3 {
        font-size: 1.5rem
    }
    
    .product-card p {
        font-size: 1.3rem
    }
    
    .product-card button {
        font-size: 1.3rem
    }

    .go-to-products-btn {
        top: 70%; 
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
        font-size: 2.5rem
    }

    .welcome-section, .contact-section {
        height: auto; 
        padding: 50px 0;
    }
    
    .contact-content h1 {
        font-size: 3rem
    }
    
    .contact-content h2 {
        font-size: 2.5rem
    }
    
    .contact-content p {
        font-size: 2rem;
        width: 80%;
        margin: auto;
    }
    
    .product-details {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%; 
        max-width: 600px; 
        background-color: #fff;
        padding: 20px;
    }
    
    .product-details h3 {
        font-size: 2.5rem;
    }

    .product-details p {
        font-size: 2rem; 
    }
}
