@import url('https://fonts.googleapis.com/css2?family=Edu+SA+Hand:wght@400..700&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: "Edu SA Hand", cursive;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000033;
    background-image: linear-gradient(to bottom right, #000033, #000000);
    z-index: -1;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    color: white;
    padding: 20px;
}

h1 {
    font-size: 3rem;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .10em;
    animation: typing 3.5s steps(40, end);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

p {
    margin-top: 20px;
    font-size: 1.2rem;
    animation: zoomIn 1s ease-in-out 3.5s forwards;
    transform: scale(0);
}

@keyframes zoomIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

a {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px dotted #ffffff;
}

a:hover {
    color: #cccccc;
    border-bottom-color: #cccccc;
}

.hidden {
    visibility: hidden;
    animation: reveal 0.1s forwards;
}

@keyframes reveal {
    to {
        visibility: visible;
    }
}

.hidden-contact {
    visibility: hidden;
    animation: revealContact 0.1s forwards 3.5s;
}

@keyframes revealContact {
    to {
        visibility: visible;
    }
}


/* Tablet */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    p {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
        white-space: normal;
        animation: none; /* Disable typing animation for better readability */
    }

    p {
        font-size: 0.9rem;
    }

    .hidden {
        visibility: visible;
        animation: none;
    }

    .hidden-contact {
        visibility: visible;
        animation: zoomIn 1s ease-in-out forwards;
        transform: scale(0);
    }
}