        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            line-height: 1.6;
            background: #f8f9fa;
        }

        .header {
            background: linear-gradient(135deg, rgba(1, 41, 112, 0.9) 0%, rgba(26, 79, 185, 0.85) 100%);
            color: white;
            padding: 4rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
            height: 40vh;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: -2rem;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('assets/img/Banner-pic10.jpg') center/cover no-repeat;
            z-index: -2;
        }

        .header::after {
            content: '';
            position: absolute;
            left: 0;
            right: 0;
            bottom: -150px;
            height: 150px;
            background: linear-gradient(180deg, 
                #012970 0%,
                rgba(1, 41, 112, 0.8) 40%,
                rgba(1, 41, 112, 0.4) 80%,
                transparent 100%
            );
            z-index: 1;
        }

        .header h1 {
            font-size: 3.5rem;
            font-weight: 700;
            margin: 0;
            letter-spacing: -0.02em;
            position: relative;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            animation: fadeInUp 0.8s ease-out;
        }

        .image-gallery {
            position: relative;
            padding: 6rem 2rem;
            background: #fff;
            overflow: hidden;
            margin-top: -50px; /* Pull up to meet the curve */
            z-index: 0;
        }

        .image-gallery::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 100%;
            background: radial-gradient(circle at top, rgba(0,0,0,0.03) 0%, transparent 70%);
            pointer-events: none;
        }

        .image-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            grid-auto-rows: 250px;
            gap: 1rem;
            padding: 1rem;
            position: relative;
            z-index: 2;
        }

        .image-item {
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 25px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            animation: fadeIn 0.6s ease-out;
            animation-fill-mode: both;
        }

        .image-item:nth-child(4n-2) {
            grid-row: span 2;
        }

        .image-item:nth-child(8n-1) {
            grid-column: span 2;
        }

        .image-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
            transform-origin: center center;
        }

        .image-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 35px rgba(0,0,0,0.3);
        }

        .image-item:hover img {
            transform: scale(1.1);
        }

        .image-item:hover img[style*="rotate(45deg)"] {
            transform: rotate(45deg) scale(1.1);
        }

        .video-gallery {
            padding: 6rem 2rem;
            background: #1a1a1a;
            position: relative;
            z-index: 1;
            margin-bottom: 50px; /* Compensate for the curve */
        }

        .video-gallery::after {
            content: '';
            position: absolute;
            bottom: -100px; /* Increased height for smoother curve */
            left: 0;
            right: 0;
            height: 100px;
            background: #fff; /* Solid color instead of gradient */
            border-radius: 50% 50% 0 0; /* Creates the upside down U shape */
            transform: translateY(50%); /* Adjusts position to overlap properly */
        }

        .video-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .video-item {
            grid-column: span 4;
            aspect-ratio: 16/9;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 25px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .video-item:nth-child(even) {
            margin-top: 3rem;
        }

        .video-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .section-title {
            font-size: 2.5rem;
            font-weight: 600;
            margin: 3rem 0;
            letter-spacing: -0.01em;
            position: relative;
            padding-bottom: 1rem;
            margin-bottom: 4rem;
            position: relative;
            z-index: 1;
        }

        .section-title::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: #012970;
            border-radius: 3px;
        }

        .section-title::before {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            top: -20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: -1;
        }

        .video-gallery .section-title {
            color: white;
        }

        .video-gallery .section-title::after {
            background: white;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 1000;
            padding: 2rem;
        }

        .modal-content {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal video {
            max-width: 90%;
            max-height: 90vh;
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 2rem;
            cursor: pointer;
        }

        @media (max-width: 768px) {
            .image-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .video-grid {
                grid-template-columns: 1fr;
            }
            .video-item {
                grid-column: span 1;
            }
        }

        .timelapse-gallery {
            padding: 6rem 2rem;
            background: linear-gradient(180deg, 
                transparent 0%,
                #042562 10%,
                #1a1a1a 100%
            );
            position: relative;
            overflow: hidden;
            margin-top: -100px;
            z-index: 0;
        }

        .timelapse-gallery::after {
            content: '';
            position: absolute;
            bottom: -50px;
            left: 0;
            right: 0;
            height: 100px;
            background: linear-gradient(to bottom right, transparent 49%, #1a1a1a 50%);
        }

        .timelapse-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        .timelapse-item {
            aspect-ratio: 16/9;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 15px 25px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .timelapse-item video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .timelapse-gallery .section-title {
            color: white;
        }

        @media (max-width: 768px) {
            .timelapse-grid {
                grid-template-columns: 1fr;
            }
        }

        .fullscreen-modal {
            display: none; /* Remove duplicate display property */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 1000;
            cursor: pointer;
        }

        .fullscreen-modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fullscreen-modal img {
            max-width: 90%;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        .close-image-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            z-index: 1001;
        }

        @media (max-width: 768px) {
            .timelapse-gallery::after,
            .video-gallery::after {
                height: 50px;
                bottom: -25px;
            }

            .timelapse-gallery,
            .video-gallery,
            .image-gallery {
                padding: 4rem 1rem;
            }
        }

        /* Add this new rule for smooth transition */
        .timelapse-gallery::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 250px;
            background: linear-gradient(180deg,
                rgba(1, 41, 112, 0.4) 0%,
                rgba(4, 37, 98, 0.8) 40%,
                #042562 100%
            );
            pointer-events: none;
        }