/* Instagram Reels Section Styles */
.instagram-reels-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.instagram-reels-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.instagram-reel-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 450px;
}

.instagram-reel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.reel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.reel-container iframe {
    border-radius: 20px 20px 0 0;
    transition: all 0.3s ease;
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    padding: 15px;
    color: white;
    text-align: center;
    border-radius: 0 0 20px 20px;
}

.reel-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.reel-info i {
    font-size: 1.2rem;
}

/* Gallery Section Styles */
.gallery-section {
    background: #ffffff;
    position: relative;
}

.gallery-filter {
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 12px 25px;
    margin: 0 8px 8px 0;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #c5edd2 0%, #ff989b 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(197, 237, 210, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
     aspect-ratio: 4 / 6;
}

.gallery-item:hover {
    transform: translateY(-10px);
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(197, 237, 210, 0.9) 0%,
        rgba(255, 152, 155, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-content {
    text-align: center;
    color: #ffffff;
    padding: 20px;
}

.gallery-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.gallery-content i {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.gallery-content i:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
    transition: all 0.3s ease;
    aspect-ratio: 4 / 6;
}
    .instagram-reel-card {
        height: 400px;
        margin-bottom: 20px;
    }

    .reel-container {
        height: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        margin: 0 5px 5px 0;
    }

    .gallery-content h4 {
        font-size: 1.1rem;
    }

    .gallery-content i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .instagram-reel-card {
        height: 350px;
    }

    .reel-container {
        height: 300px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filter-btn {
        width: calc(50% - 5px);
        margin: 0 2.5px 5px 2.5px;
    }
}

/* Animation for gallery items */
.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item:nth-child(1) {
    animation-delay: 0.1s;
}
.gallery-item:nth-child(2) {
    animation-delay: 0.2s;
}
.gallery-item:nth-child(3) {
    animation-delay: 0.3s;
}
.gallery-item:nth-child(4) {
    animation-delay: 0.4s;
}
.gallery-item:nth-child(5) {
    animation-delay: 0.5s;
}
.gallery-item:nth-child(6) {
    animation-delay: 0.6s;
}

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

/* Instagram reels animation */
.instagram-reel-card {
    animation: slideInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(50px);
}

.instagram-reel-card:nth-child(1) {
    animation-delay: 0.2s;
}
.instagram-reel-card:nth-child(2) {
    animation-delay: 0.4s;
}
.instagram-reel-card:nth-child(3) {
    animation-delay: 0.6s;
}

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