        @keyframes gradient {
            0% {background: rgb(124, 122, 107);}
            50% {background: rgb(29, 41, 24);}
            100% {background: rgb(124, 122, 107);}
        }
    
        @keyframes pulse {
            0% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
    
        body {
            font-family: 'Montserrat', sans-serif;
            margin: 0;
            overflow: hidden;
            background-image: url('../sparky/sparkybg.gif');
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center top;
            transition: background 2s ease-in-out;
            user-select: none; /* Add this line */
        }
    
        #header {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            z-index: 5;
        }
    
        #header h1 {
            margin: 0;
            color: rgb(255, 255, 255);
            animation: pulse 2s infinite;
            text-shadow: 0 0 5px #fff, 0 0 10px #fff; /* Updated */
            letter-spacing: 1.2px;
            line-height: 1.6;
        }
    
        #header a {
            margin-right: 10px;
            transition: color 0.3s ease;
            color: rgb(255, 255, 255);
            text-decoration: none;
        }
    
        #header a:hover {
            color: rgb(255, 255, 255);
        }
    
        #header #avatar {
            box-shadow: 0 0 10px rgb(255, 255, 255);
            width: 100px;
            height: 100px;
            object-fit: cover;
            border-radius: 50%;
            margin-bottom: 10px;
        }
        
        #quote {
            font-style: italic;
            color: rgb(255, 255, 255);
            text-shadow: 0 0 5px #fff, 0 0 10px #fff; /* Updated */
            letter-spacing: 1.1px;
            line-height: 1.5;
        }

        #socials a .icon {
            display: inline-block;
            transition: transform 0.3s ease;
            width: 1.4em;
            height: 1.4em;
            object-fit: cover;
            border-radius: 0%;
            filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 15px #fff); /* Updated */
        }
        
        #socials a:hover .icon {
            transform: rotate(360deg);
        }

        #particles-js {
            position: absolute;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .back-button {
            position: absolute;
            top: 10px;
            right: 10px;
            padding: 10px 20px;
            background-color: rgba(255, 255, 255, 0); /* Make the button transparent */
            color: #fff;
            text-decoration: none;
            border: 1px solid #fff; /* Add a border so the button is still visible */
            border-radius: 5px;
            transition: background-color 0.3s ease;
            z-index: 6;
        }
        
        .back-button:hover {
            background-color: rgba(255, 255, 255, 0.1); /* Add a slight background color on hover */
        }

        @media (max-width: 1000px) {
            body {
                /* Adjust styles as needed for mobile devices */
                background-size: 300% 1200%; /* Change this back to cover for mobile devices if it looks better */
            }

            #header {
                /* Adjust styles as needed for mobile devices */
                padding: 10px;
                top: 30%;
            }

            #header h1 {
                /* Adjust styles as needed for mobile devices */
                font-size: 1.5em;
            }

            #header #avatar {
                /* Adjust styles as needed for mobile devices */
                width: 80px;
                height: 80px;
            }

            .back-button {
                /* Adjust styles as needed for mobile devices */
                top: 5px;
                right: 5px;
                padding: 5px 10px;
            }
        }

        :root {
            --profile-box-background: #000000;
            --profile-box-border: #1a1a1a;
        }
        
        #profile-box {
            position: relative;
            width: 300px;
            padding: 20px;
            border: 1px solid var(--profile-box-border);
            border-radius: 10px;
            box-shadow: 0 10px 20px rgb(255, 255, 255), 0 6px 6px rgb(255, 255, 255); /* New */
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(51, 51, 51, 0.5)); /* Updated */
            transition: transform 0.3s, border 0.3s;
            transform-style: preserve-3d;
            perspective: 1000px;
        }
        
        #profile-box-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: inherit;
            transition: opacity 0.3s;
            z-index: 1; /* New */
        }
        
        #profile-box > * {
            position: relative;
            z-index: 2; /* New */
        }

