* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styles */
body {
    font-family: 'Vazir', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    transition: background 0.5s, color 0.5s;
}

/* Light and Dark Mode */
.light-mode {
    background-color: #f4f4f4;
    color: #333;
}

.dark-mode {
    background-color: #121212;
    color: #f0f0f0;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-size: cover;
}

/* Header styles */
header {
    background: linear-gradient(to right, #8af8b3, #b8e0ff); /* Green to light blue gradient */
    color: white;
    padding: 20px 0;
    position: relative;
    text-align: center;
}

header .logo img {
    width: 180px;
    margin-bottom: 10px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Button for night/day mode */
.theme-toggle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* Main section */
main {
    padding: 20px;
}

/* Intro section */
.intro {
    text-align: center;
    margin-bottom: 40px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.intro h1 {
    font-size: 2.5rem;
    color: #ff6347;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2rem;
    color: #333;
    text-align: justify;
}

/* Product categories */
.product-highlight {
    text-align: center;
    margin-bottom: 40px;
}

.product-highlight h2 {
    font-size: 2rem;
    color: #ff6347;
    margin-bottom: 20px;
}

.product-categories {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.category {
    width: 22%;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category img {
    width: 100%;
    height: auto;
}

.category-info {
    padding: 10px;
    background-color: #fff;
}

.category-info h3 {
    font-size: 1.1rem;
    color: #333;
}

.category:hover {
    transform: translateY(-10px);
}

/* Category Description Boxes */
.category-description {
    margin-top: 40px;
}

.category-box {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.category-box h4 {
    font-size: 1.8rem;
    color: #ff6347;
    margin-bottom: 15px;
}

.category-box p {
    font-size: 1.2rem;
    color: #333;
}

/* Footer styles */
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

/* Star effect */
body.dark-mode {
    animation: starryNight 3s infinite;
}

@keyframes starryNight {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .product-categories {
        flex-direction: column;
        align-items: center;
    }

    .category {
        width: 100%;
        margin-bottom: 20px;
    }
}
