* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
      
        .header {
            text-align: center;
            margin-bottom: 50px;
            position: relative;
        }
        
        .header h1 {
            color: #2c5aa0;
            font-weight: 800;
            margin-bottom: 15px;
            font-size: 2.8rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        
        .header p {
            color: #6c757d;
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .gallery-card {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            height: 100%;
            cursor: pointer;
        }
        
        .gallery-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }
        
        .box-img {
            position: relative;
            overflow: hidden;
            height: 250px;
            background: #2c5aa0;
        }
        
        .box-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
            backface-visibility: hidden;
        }
        
        .gallery-card:hover .box-img img {
            transform: scale(1.08);
        }
        
        .icon-btn {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: #2c5aa0;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 0;
            transform: translateY(20px) rotate(-180deg);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 2;
        }
        
        .gallery-card:hover .icon-btn {
            opacity: 1;
            transform: translateY(0) rotate(0);
        }
        
        .icon-btn:hover {
            background: #1c3d6f;
            transform: scale(1.1);
        }
        
        .gallery-content {
            padding: 25px;
            background: #1c2359;
        }
        
        .box-title {
            font-size: 1.3rem;
            color: #2c3e50;
            margin: 0;
            line-height: 1.4;
            font-weight: 600;
        }
        
        /* Lightbox styles */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
            backdrop-filter: blur(5px);
        }
        
        .lightbox.open {
            display: flex;
            opacity: 1;
            align-items: center;
            justify-content: center;
        }
        
        .lightbox-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
            transform: scale(0.8);
            transition: transform 0.4s ease;
        }
        
        .lightbox.open .lightbox-content {
            transform: scale(1);
        }
        
        .lightbox-img {
            max-width: 100%;
            max-height: 80vh;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }
        
        .lightbox-close {
            position: absolute;
            top: -40px;
            right: -40px;
            width: 40px;
            height: 40px;
            background: #2c5aa0;
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
            transition: all 0.3s ease;
            z-index: 1001;
        }
        
        .lightbox-close:hover {
            background: #1c3d6f;
            transform: rotate(90deg);
        }
        
        .lightbox-caption {
            position: absolute;
            bottom: -50px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            font-size: 1.2rem;
            padding: 10px;
        }
        
        .lightbox-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            transform: translateY(-50%);
            z-index: 1001;
        }
        
        .lightbox-btn {
            width: 60px;
            height: 60px;
            background: rgba(44, 90, 160, 0.8);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 24px;
            transition: all 0.3s ease;
            border: none;
        }
        
        .lightbox-btn:hover {
            background: rgba(28, 61, 111, 1);
            transform: scale(1.1);
        }
        
        .lightbox-toolbar {
            position: absolute;
            bottom: -80px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 15px;
            z-index: 1001;
        }
        
        .toolbar-btn {
            width: 50px;
            height: 50px;
            background: rgba(44, 90, 160, 0.8);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 20px;
            transition: all 0.3s ease;
            border: none;
        }
        
        .toolbar-btn:hover {
            background: rgba(28, 61, 111, 1);
            transform: scale(1.1);
        }
        
        .image-counter {
            position: absolute;
            top: -60px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            font-size: 1.2rem;
        }
        
        /* Loading animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .gallery-card {
            animation: fadeIn 0.6s ease forwards;
        }
        
        /* Responsive styles */
        @media (max-width: 992px) {
            .header h1 {
                font-size: 2.2rem;
            }
            
            .box-img {
                height: 220px;
            }
        }
        
        @media (max-width: 768px) {
            .header h1 {
                font-size: 1.8rem;
            }
            
            .header p {
                font-size: 1rem;
            }
            
            .gallery-grid {
                grid-template-columns: 1fr;
            }
            
            .box-img {
                height: 200px;
            }
            
            .gallery-content {
                padding: 15px;
            }
            
            .box-title {
                font-size: 1.1rem;
            }
            
            .lightbox-btn {
                width: 50px;
                height: 50px;
                font-size: 20px;
            }
            
            .lightbox-close {
                top: -30px;
                right: 0;
            }
            
            .toolbar-btn {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
        }
        
        /* Performance optimizations */
        .gallery-card {
            will-change: transform, opacity;
        }
        
        .box-img img {
            transform: translateZ(0);
        }