@import url('https://fonts.googleapis.com/css2?family=Protest+Guerrilla&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:30px;
    flex-direction: column;
}
#logo{
    top: -30px;
    position: relative;
    mix-blend-mode: screen;
    width: 20vw;
    z-index: 0;
}
h1{
    top: -40px;
    position: relative;
    text-align: center;
    color: aliceblue;
    font-family: "Protest Guerrilla", sans-serif;
    z-index: 0;
}

#dev {
    color: rgb(94, 255, 0);
    font-size: 0.4em;   
    font-style: italic; 
}

#name{
    color:rgb(212, 43, 122);
    font-size: 45px;
}
#va{
    margin-left: 2em;
    color:rgb(43, 206, 212);
    font-size: 45px; 
}
#voice{
    top: -40px;
    position: relative;
    mix-blend-mode: screen;
    width: 100px;
    display: none;
    z-index: 0;
   
}
#btn{
top: -40px;
position: relative;
width: 30%;
background: linear-gradient(to right,rgb(21, 145, 207),rgb(201, 41, 116));
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
font-size: 20px;
border-radius: 20px;
color: white;
box-shadow: 2px 2px 10px rgb(21, 145, 207),2px 2px 10px rgb(201, 41, 116);
border: none;
transition: all 0.5s;
cursor: pointer;
z-index: 0;
}
#btn:hover{
    box-shadow: 2px 2px 20px rgb(21, 145, 207),2px 2px 20px rgb(201, 41, 116);
    letter-spacing: 2px;
}








section {
    position: absolute;
    background: #000;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
    overflow: hidden;
    z-index: 0;
}

/* Animated gradient effect */
section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(#000, #0f0, #000);
    animation: animate 5s linear infinite;
}

/* Animation keyframes */
@keyframes animate {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* Styling for individual spans */
section span {
    position: relative;
    display: block;
    width: calc(6.25vw - 2px);
    height: calc(6.25vw - 2px);
    background: #181818;
    z-index: 2;
    transition: 1.5s;
}

section span:hover {
    background: #0f0;
    transition: 0s;
}





/* For small screens (e.g., smartphones) */
@media (max-width: 768px) {
    body {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    #logo {
        top: 20px;
        position: relative;
        width: 40vw;
    }

    h1 {
        top: 40px;
        position: relative;
        font-size: 20px;
        text-align: center;
    }

    #name, #va {
        font-size: 30px;
    }

    #btn {
        top: 40px;
        position: relative;
        width: 80%;
        font-size: 16px;
        padding: 8px;
        border-radius: 15px;
    }

    #voice {
        top: 40px;
        position: relative;
        width: 80px;
    }

    section span {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }
}

/* For very small screens (e.g., older smartphones) */
@media (max-width: 480px) {
    #logo {
        width: 50vw;
    }

    #btn {
        font-size: 14px;
        width: 90%;
        padding: 6px;
    }

    section span {
        width: calc(10vw - 2px);
        height: calc(10vw - 2px);
    }
}
