@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
    height: 100vh; /* Full viewport height */
    margin: 0;
    padding: 0;
    background-attachment: fixed; 
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
    background-size: 100% 100%; /* Increased size to allow all colors to transition */
    animation: gradient-wave 2s infinite linear;
    overflow-y: hidden;
}

@keyframes gradient-wave {
    0% {
        background-position: 0% 50%;
    }
    33% {
        background-position: 50% 50%;
    }
    66% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 3em;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Pixelated effect */
    image-rendering: pixelated;  
    image-rendering: crisp-edges;
    -webkit-font-smoothing: none;  
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 2px 2px 0px #000, 
                 -2px -2px 0px #000, 
                 2px -2px 0px #000, 
                 -2px 2px 0px #000;
    
    margin: 0; /* Remove extra margin */
    /* Twinkling animation applied continuously */
    animation: twinkle 1s infinite alternate ease-in-out;
    }
    
    
    @keyframes twinkle {
        0% {
            text-shadow: 2px 2px 5px #ffffff, 
                         -2px -2px 5px #fffa, 
                         2px -2px 5px #ff0, 
                         -2px 2px 5px #0ff;
        }
        50% {
            text-shadow: 3px 3px 8px #fff, 
                         -3px -3px 8px #ff0, 
                         3px -3px 8px #0ff, 
                         -3px 3px 8px #f0f;
        }
        100% {
            text-shadow: 2px 2px 5px #fff, 
                         -2px -2px 5px #0ff, 
                         2px -2px 5px #f0f, 
                         -2px 2px 5px #ff0;
        }
    }  

/* Image with White/Silver Highlight Animation */
.image-container {
    position: relative;
    display: inline-block;
}

img {
    width: 150px;
    height: auto;
    position: relative;
    z-index: 2;
}

/* Glowing highlight moving along the surface in white/silver */
.image-container::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%; /* Smooth boundary effect */
    pointer-events: none;
    z-index: 1;
    animation: highlight-move 2s infinite linear;
}

/* Keyframes for moving white/silver glow */
@keyframes highlight-move {
    0% {
        box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    }
    25% {
        box-shadow: 5px 0 15px 3px rgba(192, 192, 192, 0.8);
    }
    50% {
        box-shadow: 0 5px 15px 3px rgba(255, 255, 255, 0.8);
    }
    75% {
        box-shadow: -5px 0 15px 3px rgba(192, 192, 192, 0.8);
    }
    100% {
        box-shadow: 0 -5px 15px 3px rgba(255, 255, 255, 0.8);
    }
}

/* Navigation styles */
.navbar {
    position: absolute;
    bottom: 20px; /* Position at the bottom */
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 100px; /* Space between links */
}

.navbar a {
    font-family: 'Press Start 2P', cursive;
    color: white;
    text-decoration: none;
    font-size: 1em;
    transition: 0.3s;
}

.navbar a:hover {
    transform: scale(1.1);
    background-color: #33076d;
    color: rgba(14, 239, 209, 0.997);
    box-shadow: 0 0 10px rgba(14, 239, 209, 0.997); /* Glowing box effect */
    border: 2px solid rgba(14, 239, 209, 0.997); /* Highlight border */
    padding: 5px 10px; /* Add padding to keep spacing */
    border-radius: 5px; /* Optional: rounded corners */
    text-decoration: none; /* Remove underline for cleaner hover effect */
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .navbar a {
        font-size: 0.9em;
    }

    section {
        height: auto;
        padding: 50px 20px;
    }

    h2 {
        font-size: 1.8em;
    }

    p {
        font-size: 1em;
    }
}

 /* Ensure the particles container covers the entire screen */
        #particles-js {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to bottom right, 
        #184050 20%,  
        #41226a 40%,  
        #1d0f3a 50%,  
        #190e41 75%,  
        #1c1f3f 85%   
        );
            z-index: -1; /* Ensure it stays behind other content */
        }
/* Media query for larger screens */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Media query for very small devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .navbar {
        flex-direction: column;
        align-items: center;
    }
}
