
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #EEEEEE;
    color: white;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}


.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 2rem;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.mobile-menu-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.125rem;
    transition: color 0.3s;
}

.mobile-menu-link:hover {
    color: white;
}

/* Герой */


.hero {
    height: 650px;/* Header balandligini hisobga olib, hero balandligini to'liq ekran qilindi */
    width: 100%;
    display: flex;
    flex-direction: column; /* Kontentni vertikal joylashtirish uchun */
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px; /* Kontentni pastga surib, header bilan yopishib qolmasligi uchun */
   background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)),
                      url('{% static "image/haski.jpg" %}'); z-index: 1;
    background-size: cover;
    background-position: center;
}


.hero-content {
    font-size: 20px;
    text-align: center;
    width: 100%; /* To'liq kenglikni belgilash */
    max-width: 1200px; /* O'qish uchun maksimal kenglik cheklovi qo'shildi */
    padding: 0 1rem;
    /*margin-top: auto; !* Matnni biroz pastroqqa joylashtirish uchun *!*/
    margin-bottom: 3rem; /* Pastdan bo'shliq qo'shildi */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2; /* Qatorlar orasidagi bo'shliq yaxshilandi */
}

.hero-text {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6; /* Matnni o'qishni yaxshilash uchun */
}

/* Галерея */
.gallery {
    padding: 4rem 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    overflow-x: auto;
}

.gallery-filter {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
}

.gallery-filter:hover, .gallery-filter.active {
    color: #3b82f6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}


.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Медиа-запросы */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
    }

    .menu-button {
        display: none;
    }

    .hero-title {
        font-size: 3.7rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item:nth-child(3n+1) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}