/* Base Styles */
        :root {
            --primary-color: #6e48aa;
            --secondary-color: #9d50bb;
            --accent-color: #4776E6;
            --dark-color: #343a40;
            --light-color: #f8f9fa;
            --text-color: #495057;
            --text-light: #6c757d;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f5f7fa;
            color: var(--text-color);
            line-height: 1.6;
        }
        
        #galeri {
            padding: 100px 0;
            background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
        }
        
        .gallery-header {
            text-align: center;
            margin-bottom: 80px;
        }
        
        .gallery-header h1 {
            font-size: 3.2rem;
            margin-bottom: 25px;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
            position: relative;
            font-weight: 700;
            letter-spacing: -1px;
        }
        
        .gallery-header h1::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 5px;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 3px;
        }
        
        .gallery-header p {
            font-size: 1.25rem;
            color: var(--text-light);
            max-width: 700px;
            margin: 0 auto;
            font-weight: 300;
        }
        
        .gallery-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 30px;
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 35px;
            margin-bottom: 60px;
        }
        
        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 16px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.12);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            background: white;
            transform-style: preserve-3d;
        }
        
        .gallery-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(110,72,170,0.1) 0%, rgba(157,80,187,0.1) 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 1;
        }
        
        .gallery-item:hover {
            transform: translateY(-12px) scale(1.02);
            box-shadow: 0 30px 60px rgba(0,0,0,0.2);
        }
        
        .gallery-item:hover::before {
            opacity: 1;
        }
        
        .gallery-item img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            display: block;
            transition: transform 0.8s ease, filter 0.4s ease;
            border-bottom: 1px solid rgba(0,0,0,0.08);
            transform-origin: center center;
        }
        
        .gallery-item:hover img {
            transform: scale(1.1);
            filter: brightness(1.05);
        }
        
        .gallery-caption {
            padding: 25px;
            background: white;
            position: relative;
            z-index: 2;
        }
        
        .gallery-caption h3 {
            margin: 0 0 12px 0;
            font-size: 1.4rem;
            color: var(--dark-color);
            position: relative;
            display: inline-block;
            font-weight: 600;
        }
        
        .gallery-caption h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 3px;
            transition: width 0.3s ease;
        }
        
        .gallery-item:hover .gallery-caption h3::after {
            width: 70px;
        }
        
        .gallery-caption p {
            margin: 0;
            color: var(--text-light);
            font-size: 1rem;
            line-height: 1.6;
        }
        
        /* Lightbox Customization */
        .lightbox .lb-image {
            border: 8px solid white;
            border-radius: 8px;
            box-shadow: 0 0 40px rgba(0,0,0,0.4);
        }
        
        .lb-nav a.lb-prev, 
        .lb-nav a.lb-next {
            opacity: 1 !important;
            transition: all 0.3s ease !important;
        }
        
        .lb-nav a.lb-prev:hover, 
        .lb-nav a.lb-next:hover {
            opacity: 0.8 !important;
            transform: scale(1.1);
        }
        
        .lb-data .lb-close {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            border-radius: 50%;
            width: 45px;
            height: 45px;
            line-height: 45px;
            text-align: center;
            opacity: 1;
            transition: all 0.3s ease;
            font-size: 1.5rem;
        }
        
        .lb-data .lb-close:hover {
            transform: rotate(90deg) scale(1.1);
        }
        
        /* Animation */
        .fade-in {
            animation: fadeIn 1s ease-in-out both;
        }
        
        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(30px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }
        
        /* Gallery Item Stagger Animation */
        .gallery-item {
            animation: fadeInUp 0.6s ease-out both;
        }
        
        @keyframes fadeInUp {
            from { 
                opacity: 0; 
                transform: translateY(40px);
            }
            to { 
                opacity: 1; 
                transform: translateY(0);
            }
        }
        
        /* Delay animations for each item */
        .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; }
        
        /* Back Button */
        .back-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin: 40px 0;
            padding: 12px 28px;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 500;
            box-shadow: 0 5px 15px rgba(110,72,170,0.3);
        }
        
        .back-button i {
            margin-right: 10px;
            transition: transform 0.3s ease;
        }
        
        .back-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(110,72,170,0.4);
        }
        
        .back-button:hover i {
            transform: translateX(-5px);
        }
        
        /* Responsive Adjustments */
        @media (max-width: 1200px) {
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }
        
        @media (max-width: 992px) {
            #galeri {
                padding: 80px 0;
            }
            
            .gallery-header h1 {
                font-size: 2.8rem;
            }
            
            .gallery-grid {
                gap: 25px;
            }
        }
        
        @media (max-width: 768px) {
            .gallery-header h1 {
                font-size: 2.4rem;
            }
            
            .gallery-header p {
                font-size: 1.1rem;
            }
            
            .gallery-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 20px;
            }
            
            .gallery-item img {
                height: 250px;
            }
        }
        
        @media (max-width: 576px) {
            #galeri {
                padding: 60px 0;
            }
            
            .gallery-header h1 {
                font-size: 2rem;
                margin-bottom: 20px;
            }
            
            .gallery-header h1::after {
                width: 80px;
                height: 4px;
                bottom: -12px;
            }
            
            .gallery-header p {
                font-size: 1rem;
                padding: 0 20px;
            }
            
            .gallery-container {
                padding: 0 20px;
            }
            
            .gallery-grid {
                grid-template-columns: 1fr;
            }
            
            .back-button {
                margin: 30px 0;
                width: 100%;
            }
        }