@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;
    }
}

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

/* Center the image directly */
#contact {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    text-align: center; /* Center text */
}

/* Ensure the image is centered and responsive */
#contact img {
    width: 150px; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
    margin-top: 20px; /* Add some space between h2 and the image */
}

/* 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 */
}

/* Responsive Design for Mobile Screens */
@media (max-width: 768px) {
    /* Adjust body and section for smaller screens */
    body {
        height: auto; /* Allow content to scroll */
        padding: 20px; /* Add padding for better spacing */
    }

    h1 {
        font-size: 2em; /* Reduce font size for smaller screens */
        margin-left: 0; /* Remove left margin */
    }

    h2 {
        font-size: 1.5em; /* Reduce font size for smaller screens */
    }

    /* Adjust navigation for mobile */
    .navbar {
        position: static; /* Remove absolute positioning */
        flex-direction: column; /* Stack navigation links vertically */
        gap: 10px; /* Reduce gap between links */
        padding: 15px 0; /* Add padding for better spacing */
    }

    .navbar a {
        font-size: 0.9em; /* Reduce font size for smaller screens */
    }
}
