body {
    display: flex;
    min-height: 100vmin;
    background: radial-gradient(ellipse at bottom, #142236 0%, #06114e 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    overflow: hidden;
}

.background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind the container */
}

.container {
    text-align: center;
    display: grid;
    grid-template-columns: 1 1 1;
    padding: 40px;
    background-color: rgb(245, 245, 245);
    border-radius: 10px;
    -webkit-box-shadow: 0px 0px 63px 33px rgb(17, 0, 255);
    -moz-box-shadow: 0px 0px 63px 33px rgba(153, 0, 255, 0.44);
    box-shadow: 0px 0px 63px 33px rgba(153, 0, 255, 0.44);
    position: relative;
    z-index: 10;
    /* Above the background layer */
}

.resume-btn,
.Linkdln-btn,
.GitHub-btn,
.myButton {
    display: inline-block;
    padding: 15px 30px;
    padding-bottom: 20px;
    background-color: #6c07df;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.resume-btn:hover,
.GitHub-btn:hover,
.Linkdln-btn:hover {
    background-color: #055183;
    animation: pulse 2s infinite;
}

h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 4em;
}

* {
    font-family: Arial, sans-serif;
}

.myButton {
    box-shadow: 7px 5px 17px 1px #42237d;
    background: linear-gradient(to bottom, #601baf 5%, #890add 100%);
    width: 10em;
}

.myButton:hover {
    background: linear-gradient(to bottom, #8b0be0 5%, #be8ef5 100%);
    background-color: #5f0c96;
    animation: pulse 2s infinite;
}

.myButton:active {
    position: relative;
    top: 1px;
}

/* Add a class to the dots for styling */
.star{
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    margin: 0;
    z-index: 1;
    /* Lower z-index to appear behind the container */
}

.blink {
    animation: blink 2s infinite;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    margin: 0;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: animate 20s linear infinite;
    animation-play-state: running;
}

span::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animate {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }

    70% {
        opacity: 1;

    }

    100% {
        transform: rotate(315deg) translateX(-1500px);
        opacity: 0;

    }

}

span:nth-child(1) {
    top: 0;
    right: 0;
    left: initial;
    animation-delay: 0;
    animation-duration: 1s;
}

span:nth-child(2) {
    top: 0;
    right: 80px;
    left: initial;
    animation-delay: 0.2s;
    animation-duration: 3s;
}

span:nth-child(3) {
    top: 80px;
    right: 0px;
    left: initial;
    animation-delay: 0.4s;
    animation-duration: 2s;
}

span:nth-child(4) {
    top: 0;
    right: 180px;
    left: initial;
    animation-delay: 0.6s;
    animation-duration: 1.5s;
}

span:nth-child(5) {
    top: 0;
    right: 400px;
    left: initial;
    animation-delay: 0.8s;
    animation-duration: 2.5s;
}

span:nth-child(6) {
    top: 0;
    right: 600px;
    left: initial;
    animation-delay: 1s;
    animation-duration: 3s;
}

span:nth-child(7) {
    top: 300px;
    right: 0px;
    left: initial;
    animation-delay: 1s;
    animation-duration: 1.75s;
}

span:nth-child(8) {
    top: 0px;
    right: 700px;
    left: initial;
    animation-delay: 1.4s;
    animation-duration: 1.25s;
}

span:nth-child(9) {
    top: 0px;
    right: 1000px;
    left: initial;
    animation-delay: 0.75s;
    animation-duration: 2.25s;
}

span:nth-child(10) {
    top: 0px;
    right: 1000px;
    left: initial;
    animation-delay: 2.75s;
    animation-duration: 2.25s;
}


@media (max-width: 600px) {
    body {
        overflow: auto;
        min-height: 100vh;
    }

    .container {
        padding: 20px;
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 90%;
        box-shadow: 0px 0px 30px 15px rgb(153, 0, 255);
    }

    h1 {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    h1::after {
        width: 40px;
        height: 3px;
    }

    .resume-btn,
    .Linkdln-btn,
    .GitHub-btn,
    .myButton {
        padding: 12px 25px;
        font-size: 1em;
        width: 50%;
        margin: 5px 0;
        border-radius: 8px;
        /* Consistent with desktop */
    }

    .myButton {
        width: 80%;
    }

    .star {
        width: 2px;
        height: 2px;
        animation: twinkle 3s infinite alternate;
        /* Added twinkle effect */
    }

    span {
        animation-play-state: paused;
        width: 3px;
        height: 3px;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1),
            0 0 0 6px rgba(255, 255, 255, 0.1),
            0 0 15px rgba(255, 255, 255, 0.8);
    }

    span::before {
        width: 150px;
    }
}