@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    overflow: hidden; /* Zapobiega pojawieniu się suwaków */
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a237e, #283593, #3949ab, #5c6bc0, #3f51b5, #303f9f, #1a237e);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    z-index: -1;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.main-text {
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    border-right: .15em solid orange;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

.service-name {
    font-size: 1.5rem;
    font-weight: 400;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 2s ease 4s forwards;
}

/* Animacja pisania */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* Animacja migotania kursora */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange; }
}

/* Animacja pojawiania się nazwy serwisu */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsywność */
@media (max-width: 768px) {
    .main-text {
        font-size: 3rem;
    }

    .service-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 2rem;
    }

    .service-name {
        font-size: 1rem;
    }
}