body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: black;
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

#theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

#theme-toggle svg {
    width: 24px;
    height: 24px;
}

body[data-theme="dark"] .icon-sun {
    display: block;
}

body[data-theme="dark"] .icon-moon {
    display: none;
}

body[data-theme="light"] .icon-sun {
    display: none;
}

body[data-theme="light"] .icon-moon {
    display: block;
}

.title {
    display: flex;
    justify-content: center;
    gap: 5vw;
}

.title span {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
}

.subtitle {
    display: flex;
    justify-content: center;
    gap: 2vw;
}

.subtitle span {
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 400;
}

.contact {
    margin-top: 2rem;
    font-size: clamp(1rem, 4vw, 1.1rem);
    font-weight: 400;
}

.contact span {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.contact a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

body[data-theme="dark"] .contact a {
    color: rgb(124, 124, 124);
}

body[data-theme="light"] .contact a {
    color: rgb(124, 124, 124); 
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle span {
    animation: color-fade 8s infinite alternate;
}

@keyframes color-fade {
    from {
        color: hsl(0, 0%, 65%);
    }

    to {
        color: hsl(0, 0%, 15%);
    }
}

@media (prefers-color-scheme: dark) {
    .subtitle span {
        animation-name: color-fade-dark;
    }

    @keyframes color-fade-dark {
        from {
            color: hsl(0, 0%, 45%);
        }

        to {
            color: hsl(0, 0%, 95%);
        }
    }
}