.instagram-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, #0F172A 0%, #1F2937 100%);
    position: relative;
    overflow: hidden;
}

.instagram-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: rotate 25s linear infinite;
    z-index: 0;
}

.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.carousel-wrapper {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-slide {
    flex: 0 0 calc(33.333% - 1.35rem);
    min-width: 280px;
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

.instagram-card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.08));
    border: 3px solid var(--primary);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.instagram-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
    transform: translateY(-8px) scale(1.02);
}

.instagram-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    filter: brightness(1) contrast(1.1);
    transition: filter 0.3s ease;
}

.instagram-card:hover .instagram-image {
    filter: brightness(1.1) contrast(1.15);
}

.instagram-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.instagram-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 92, 246, 0.3);
}

.instagram-likes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--primary-light);
}

.instagram-link-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instagram-link-btn:hover {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    transform: scale(1.05);
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: 3px solid var(--white);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    position: relative;
    flex-shrink: 0;
}

.carousel-btn:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.4);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    transform: scale(1.3);
}

.indicator:hover {
    box-shadow: 0 0 10px var(--primary);
}

.instagram-link {
    display: inline-block;
    margin: 2rem auto 0;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    text-decoration: none;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.75rem;
    border: 3px solid var(--white);
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    text-align: center;
    position: relative;
    z-index: 10;
}

.instagram-link:hover {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.8);
    transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .instagram-section {
        padding: 4rem 1.5rem;
    }

    .carousel-container {
        gap: 1rem;
    }

    .carousel-slide {
        flex: 0 0 100%;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .instagram-caption {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    .carousel-indicators {
        gap: 0.8rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .instagram-section {
        padding: 3rem 1rem;
    }

    .carousel-container {
        gap: 0.8rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .instagram-card {
        border: 2px solid var(--primary);
    }

    .instagram-content {
        padding: 1rem;
    }

    .instagram-caption {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .instagram-link {
        padding: 0.8rem 1.5rem;
        font-size: 0.6rem;
    }
}