/* Gallery Section Mobile Responsive */
@media screen and (max-width: 768px) {
    .gallery {
        padding: 3rem 1rem !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 !important;
    }

    .gallery-item {
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .gallery-placeholder i {
        font-size: 2.5rem !important;
    }

    .gallery-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem !important;
    }
}

@media screen and (max-width: 480px) {
    .gallery-placeholder i {
        font-size: 2rem !important;
    }

    .gallery-placeholder p {
        font-size: 0.9rem !important;
    }
}

/* Gallery Section Desktop */
.gallery {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.gallery .section-title {
    color: white;
}

.gallery .section-title::after {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
}

.gallery::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 60%);
    border-radius: 50%;
    animation: galleryFloat 15s ease-in-out infinite;
}

.gallery::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    animation: galleryFloat 20s ease-in-out infinite reverse;
}

@keyframes galleryFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.gallery-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.95);
    aspect-ratio: 4 / 3;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: none;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(251, 191, 36, 0.3);
    border-color: rgba(251, 191, 36, 0.8);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed15, #8b5cf615);
    border: 2px dashed #7c3aed40;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(135deg, #7c3aed25, #8b5cf625);
    border-color: #7c3aed;
}

.gallery-placeholder i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

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

.gallery-placeholder p {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}