﻿.kedar-gallery-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

.kedar-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.kedar-gallery-header {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.kedar-gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 30px;
    border-radius: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: kedar-badge-pulse 2s ease-in-out infinite;
}

@keyframes kedar-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.kedar-gallery-icon {
    font-size: 1.5rem;
}

.kedar-gallery-badge-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.kedar-gallery-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #ffeb3b, #4caf50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: kedar-title-glow 3s ease-in-out infinite;
}

@keyframes kedar-title-glow {
    0%, 100% {
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    50% {
        text-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    }
}

.kedar-gallery-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Gallery Filters */
.kedar-gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.kedar-filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .kedar-filter-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .kedar-filter-btn:hover::before {
        left: 100%;
    }

    .kedar-filter-btn:hover,
    .kedar-filter-btn.active {
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
        border-color: transparent;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    }

/* Gallery Grid */
.kedar-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.kedar-gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: kedar-item-appear 0.8s ease forwards;
}

@keyframes kedar-item-appear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.kedar-gallery-item:hover {
    transform: translateY(-15px) scale(1.03) rotate(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.kedar-gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.6s ease;
    filter: brightness(0.9);
}

.kedar-gallery-item:hover .kedar-gallery-img {
    transform: scale(1.15) rotate(-1deg);
    filter: brightness(1.1);
}

.kedar-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px 25px 25px;
    color: white;
    transform: translateY(100%);
    transition: all 0.5s ease;
}

.kedar-gallery-item:hover .kedar-gallery-overlay {
    transform: translateY(0);
}

.kedar-gallery-category {
    display: inline-block;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kedar-gallery-img-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.kedar-gallery-desc {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 15px;
}

.kedar-gallery-date {
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Modal Styles */
.kedar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    backdrop-filter: blur(15px);
    animation: kedar-modal-appear 0.3s ease;
}

@keyframes kedar-modal-appear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.kedar-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85%;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    animation: kedar-modal-scale 0.4s ease;
}

@keyframes kedar-modal-scale {
    from {
        transform: translate(-50%, -50%) scale(0.7);
    }

    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

.kedar-modal-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 70vh;
    object-fit: contain;
}

.kedar-modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .kedar-modal-close:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(90deg) scale(1.1);
    }

.kedar-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kedar-modal-prev {
    left: 25px;
}

.kedar-modal-next {
    right: 25px;
}

.kedar-modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.kedar-modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 40px;
    transform: translateY(0);
}

/* Loading Animation */
.kedar-loading {
    display: none;
    text-align: center;
    padding: 60px;
    color: white;
}

.kedar-spinner {
    width: 70px;
    height: 70px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #4ECDC4;
    border-radius: 50%;
    animation: kedar-spin 1.5s linear infinite;
    margin: 0 auto 25px;
}

@keyframes kedar-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Floating Elements */
.kedar-floating-element {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.4;
    animation: kedar-float-element 10s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.kedar-float-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.kedar-float-2 {
    top: 15%;
    right: 8%;
    animation-delay: 2s;
}

.kedar-float-3 {
    bottom: 25%;
    left: 7%;
    animation-delay: 4s;
}

.kedar-float-4 {
    bottom: 20%;
    right: 6%;
    animation-delay: 6s;
}

.kedar-float-5 {
    top: 40%;
    left: 12%;
    animation-delay: 1s;
}

.kedar-float-6 {
    bottom: 35%;
    right: 15%;
    animation-delay: 3s;
}

.kedar-float-7 {
    top: 60%;
    left: 8%;
    animation-delay: 5s;
}

.kedar-float-8 {
    top: 25%;
    right: 12%;
    animation-delay: 7s;
}

@keyframes kedar-float-element {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translateY(-60px) rotate(180deg) scale(1.2);
    }

    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.1);
    }
}

/* Particle Background */
.kedar-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.kedar-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: kedar-particle-float 20s linear infinite;
}

@keyframes kedar-particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kedar-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .kedar-gallery-section {
        padding: 60px 0;
    }

    .kedar-gallery-title {
        font-size: 2.8rem;
    }

    .kedar-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .kedar-gallery-filters {
        flex-direction: column;
        align-items: center;
    }

    .kedar-filter-btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .kedar-modal-content {
        max-width: 95%;
        max-height: 80%;
    }

    .kedar-modal-nav {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .kedar-gallery-title {
        font-size: 2.2rem;
    }

    .kedar-gallery-grid {
        grid-template-columns: 1fr;
    }

    .kedar-gallery-badge {
        padding: 10px 20px;
    }

    .kedar-gallery-badge-text {
        font-size: 0.9rem;
    }
}
