.hero {
    background: var(--gradient-dark);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    top: -50%;
    left: -50%;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-section {
    padding: 40px 0 32px 0;
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    max-width: 90%;
    margin: 0 auto 32px auto;
}

.gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.gallery-modal.active {
    display: flex;
}

.gallery-modal-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
    background: #fff;
}

.gallery-modal-close {
    position: absolute;
    top: 32px;
    right: 48px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-modal-close {
        top: 16px;
        right: 16px;
        font-size: 2rem;
        width: 36px;
        height: 36px;
    }
}

.pagination-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    padding: 0;
    clear: both;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    background: var(--bg-secondary, #2d2d2d);
    color: var(--text-primary, #fff);
    border: none;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 44px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .current-page {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #181818;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pagination a:hover {
    background: var(--accent-color, #FFD700);
    color: #181818;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pagination .arrow {
    font-size: 1.2rem;
    padding: 12px 14px;
    font-weight: bold;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background: var(--bg-secondary, #2d2d2d);
}

@media (max-width: 768px) {
    .pagination-wrapper {
        margin-top: 2rem;
    }

    .pagination {
        gap: 8px;
    }

    .pagination a,
    .pagination span {
        padding: 10px 12px;
        font-size: 0.9rem;
        min-width: 40px;
    }

    .pagination .arrow {
        font-size: 1.1rem;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .pagination-wrapper {
        margin-top: 1.5rem;
    }

    .pagination a,
    .pagination span {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-width: 36px;
    }

    .pagination .arrow {
        font-size: 1rem;
        padding: 8px 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pagination a {
        padding: 9px 12px;
        font-size: 0.95rem;
    }
}