        body {
            margin: 0;
            font-family: Arial, sans-serif;
            overflow-x: hidden;
        }

        .main-footer {
            background: #010614;
            color: #fff;
            padding: 50px 70px;
        }

        .footer-container {
            display: grid;
            grid-template-columns: 1.2fr 1fr 1fr;
            align-items: start;
            gap: 50px;
        }

        /* LOGO ANIMATION */
        .footer-left {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .footer-logo {
            width: 180px;
            animation: logoAnim 2.5s ease-in-out infinite alternate;
        }

        @keyframes logoAnim {
            0% {
                transform: scale(1) translateY(0);
                filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
            }

            100% {
                transform: scale(1.1) translateY(-8px);
                filter: drop-shadow(0 0 30px rgba(255, 215, 0, 1));
            }
        }

        .footer-middle {
            text-align: center;
        }

        .footer-middle h5 {
            color: gold;
            border-bottom: 2px solid gold;
            display: inline-block;
            padding-bottom: 5px;
            margin-bottom: 15px;
        }

        .footer-middle p {
            font-size: 14px;
            margin: 6px 0;
            line-height: 1.7;
        }

        .footer-social-icons a {
            text-decoration: none;
            color: white;
            margin: 0 10px;
            font-size: 22px;
            transition: 0.3s;
        }

        .footer-social-icons a:hover {
            color: gold;
        }

        /* CUBE SYSTEM */
        .footer-right {
            text-align: center;
        }

        .gallery-title {
            color: gold;
            border-bottom: 2px solid gold;
            display: inline-block;
            padding-bottom: 5px;
        }

        .cube-wrapper {
            margin-top: 55px;
        }

        .cube-container {
            perspective: 1000px;
            width: 130px;
            height: 130px;
            margin: auto;
        }

        .cube {
            width: 100%;
            height: 100%;
            position: relative;
            transform-style: preserve-3d;
            animation: rotateCube 15s infinite linear;
        }

        .cube:hover {
            animation-play-state: paused;
        }

        @keyframes rotateCube {
            0% {
                transform: rotateX(0) rotateY(0);
            }

            100% {
                transform: rotateX(360deg) rotateY(360deg);
            }
        }

        /* FIXED IMAGE SIZING */
        .face {
            position: absolute;
            width: 130px;
            height: 130px;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: repeat(2, 1fr);
            gap: 2px;
            background: #111;
            border: 1px solid rgba(255, 215, 0, 0.3);
            overflow: hidden;
        }

        .face img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            /* Forces images to be same size squares */
            cursor: pointer;
            transition: 0.4s;
            display: block;
        }

        .face img:hover {
            transform: scale(1.1);
            filter: brightness(1.2);
        }

        /* 3D POSITIONS */
        .front {
            transform: translateZ(65px);
        }

        .back {
            transform: rotateY(180deg) translateZ(65px);
        }

        .right {
            transform: rotateY(90deg) translateZ(65px);
        }

        .left {
            transform: rotateY(-90deg) translateZ(65px);
        }

        .top {
            transform: rotateX(90deg) translateZ(65px);
        }

        .bottom {
            transform: rotateX(-90deg) translateZ(65px);
        }

        /* BOTTOM BAR & DEVELOPER LOGO */
        .footer-line {
            margin: 30px 0 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: gold;
        }

        .dev-branding {
            text-align: right;
        }

        .dev-branding p {
            margin: 0 0 5px 0;
            color: #fff;
        }

        .logo-row {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
        }

        .logo-row img {
            width: 85px;
        }

        /* POPUP */
        .gallery-popup {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .gallery-popup img {
            max-width: 85%;
            max-height: 65vh;
            border: 2px solid gold;
            border-radius: 8px;
        }

       .popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

/* IMAGE */
#popupImage {
    max-width: 80%;
    max-height: 80%;
    z-index: 1;
}

/* 🔥 CLOSE BUTTON FIX */
.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 10000; /* 🔥 VERY IMPORTANT */
}

/* BUTTONS */
#prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }
        .view-more {
            margin-top: 25px;
            background: gold;
            color: #000;
            padding: 12px 25px;
            border-radius: 50px;
            font-weight: bold;
            text-decoration: none;
        }

        @media (max-width: 992px) {
            .footer-container {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 40px;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }

            .logo-row {
                justify-content: center;
            }

            .dev-branding {
                text-align: center;
            }
        }