
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* رنگ‌های پایه */
body {
    background-color: #121212; /* رنگ مشکی تیره */
    color: #fff; /* متن سفید */
}

/* طراحی هدر */
header {
    background-color: #1f1f1f; /* رنگ تیره برای هدر */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

header nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

header nav ul li {
    display: inline-block;
}

header nav ul li a {
    color: #f7b801; /* رنگ طلایی */
    text-decoration: none;
    font-size: 1.2rem;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s ease;
}

header nav ul li a:hover {
    background-color: #f7b801;
    color: #121212;
    transform: scale(1.1);
}

/* طراحی بخش گالری */
.container {
    text-align: center;
    padding: 20px;
}

h1 {
    font-size: 2.5rem;
    color: #f7b801; /* رنگ طلایی */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* گالری */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.gallery-item {
    background-color: #333; /* رنگ پس‌زمینه تیره برای هر آیتم */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
    object-fit: cover;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

.gallery-item img:hover, .gallery-item video:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.gallery-item video {
    background-color: #000;
}

footer {
    background-color: #1f1f1f;
    padding: 20px;
    text-align: center;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.6);
}

footer p {
    color: #f7b801;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    h1 {
        font-size: 2rem;
    }

    header nav ul {
        flex-direction: column;
    }

    header nav ul li {
        margin-bottom: 10px;
    }
}
