* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInLinks {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileColorChange {
    0% {
        filter: blur(0px);
    }
    15% {
        filter: blur(8px);
    }
    85% {
        filter: blur(8px);
    }
    100% {
        filter: blur(0px);
    }
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html {
    height: -webkit-fill-available;
}

body {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 300;
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    overflow: hidden;
    position: relative;
    background-color: #0155CF;
    margin: 0;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #0155CF;
    pointer-events: auto;
}

.container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 80px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

header {
    flex: 0 0 auto;
}

.hero {
    flex: 1 0 auto;
    display: flex;
    align-items: center;
}

header h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    opacity: 0;
    animation: fadeInOpacity 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.headline {
    font-size: 96px;
    font-weight: 300;
    line-height: 1.1;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.error-code {
    font-size: 196px;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.error-text {
    font-size: 20px;
    font-weight: 300;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.8s;
}

footer {
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 300;
}

footer p + p {
    margin-top: 1rem;
}

a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

@media (hover: hover) {
    a:hover {
        opacity: 1;
    }

    .contact-link:hover::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

.contact-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards 1s;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.phone {
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards 1.4s;
    transition: opacity 0.3s ease;
}

.ico {
    color: #fff;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards 1.8s;
    transition: opacity 0.3s ease;
}

.digital {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: 0.6s;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(0px);
    cursor: pointer;
}

@media (hover: hover) {
    .digital:hover {
        filter: blur(8px);
    }
}

@media (hover: none) {
    .digital {
        cursor: default;
        transition: color 2.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 32px;
    }
    
    .headline {
        font-size: 48px;
    }

    .error-code {
        font-size: 128px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 32px;
    }
    
    header h1 {
        font-size: 16px;
    }
    
    .headline {
        font-size: 48px;
    }

    .error-code {
        font-size: 96px;
    }

    .error-text {
        font-size: 16px;
    }
    
    footer {
        font-size: 16px;
    }

    footer p + p {
        margin-top: 0.25rem;
    }
}