/* styles.css */
body {
    font-family: 'Arial', sans-serif; /* Default font for English */
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d); /* Dark milky to dark blue gradient */
    color: #fff; /* Text color to white for better contrast */
}

body[dir="rtl"] {
    font-family: 'Vazir', sans-serif; /* Persian font for Farsi */
}

header {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s, transform 0.3s;
}

nav ul li a:hover {
    color: #FFEB3B;
    transform: scale(1.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

section {
    padding: 50px 0;
    text-align: center;
}

#home {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    padding: 100px 0;
}

#products {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

#about {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
}

#contact {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
}

footer {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background for better readability */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: transform 0.3s;
    width: 200px; /* Set a fixed width */
    height: 200px; /* Set a fixed height */
    object-fit: cover; /* Ensure the image covers the area without distortion */
}

.product-item:hover img {
    transform: scale(1.1);
}

.product-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff; /* Text color to white for better contrast */
}

.product-item p {
    font-size: 16px;
    color: #ddd; /* Light gray text color for better contrast */
    line-height: 1.6;
}

/* Feature List */
.feature-list {
    text-align: left; /* Default for English */
}

body[dir="rtl"] .feature-list {
    text-align: right; /* For Farsi */
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}