        :root {
            --card-width: 320px;
            --card-height: 440px;
            --perspective: 1500px;
            --bg-color: #050505;
            --accent-color: #ffffff;
        }

        body {
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            background-image:
                radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
            color: #fff;
            font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }

        /* Ambient background overlay for "Rich" feel */
        body::before {
            content: "";
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background-image: url('https://grainy-gradients.vercel.app/noise.svg');
            opacity: 0.05;
            pointer-events: none;
            z-index: 10;
        }

        .gallery-container {
            position: relative;
            width: 100%;
            height: 100%;
            perspective: var(--perspective);
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: grab;
        }

        .gallery-container:active {
            cursor: grabbing;
        }

        .gallery-inner {
            position: relative;
            width: var(--card-width);
            height: var(--card-height);
            transform-style: preserve-3d;
            will-change: transform;
        }

        .card-wrapper {
            position: absolute;
            top: 0;
            left: 0;
            width: var(--card-width);
            height: var(--card-height);
            transform-style: preserve-3d;
            /* Reflection effect using webkit-box-reflect */
            -webkit-box-reflect: below 15px linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.2) 100%);
        }

        .card {
            position: relative;
            width: 100%;
            height: 100%;
            border-radius: 24px;
            overflow: hidden;
            background: #111;
            box-shadow: 0 30px 60px rgba(0,0,0,0.8);
            border: 1px solid rgba(255,255,255,0.1);
            transition: border-color 0.4s ease;
        }

        .card:hover {
            border-color: rgba(255,255,255,0.4);
        }

        .card-image-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
        }

        .card img {
            width: 110%; /* Larger for parallax */
            height: 110%;
            object-fit: cover;
            filter: brightness(0.7);
            transition: filter 0.6s cubic-bezier(0.23, 1, 0.32, 1);
            transform: translate(-5%, -5%);
        }

        .card:hover img {
            filter: brightness(1.1);
        }

        .card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 40px 30px;
            box-sizing: border-box;
            background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
            transform: translateZ(20px); /* Lift text slightly in 3D */
        }

        .card-content h3 {
            margin: 0 0 12px 0;
            font-size: 26px;
            font-weight: 800;
            letter-spacing: -0.02em;
            text-transform: uppercase;
        }

        .card-content p {
            margin: 0;
            font-size: 14px;
            line-height: 1.7;
            color: rgba(255,255,255,0.7);
            font-weight: 300;
        }

        .instructions {
            position: absolute;
            bottom: 40px;
            text-align: center;
            width: 100%;
            opacity: 0.3;
            font-size: 12px;
            pointer-events: none;
            letter-spacing: 0.4em;
            text-transform: uppercase;
        }