@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0b0f19;
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(99, 102, 241, 0.08),
            transparent 35%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(14, 165, 233, 0.06),
            transparent 40%
        );
}

.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.blob-1 { width: 50vw; height: 50vw; background: #4f46e5; top: -20%; left: -10%; }
.blob-2 { width: 60vw; height: 60vw; background: #9333ea; bottom: -20%; right: -10%; animation-delay: -5s; animation-duration: 25s; }
.blob-3 { width: 40vw; height: 40vw; background: #0ea5e9; top: 40%; left: 40%; animation-delay: -10s; animation-duration: 20s; }

.background-effects::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 1; 
    mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 90%);
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 10%) scale(1.1); }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; 
    transform: translateY(-6vh);
}

.logo {
    max-width: 80vw;
    max-height: 55vh; 
    object-fit: contain;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    animation: float 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes float {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -20px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

.text-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 0.25em;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(0);
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.4em;
    color: #94a3b8;
    text-transform: lowercase;
    text-align: center;
}

.error-title {
    font-size: 5rem;
    background: linear-gradient(to right, #ff3366, #ff99cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.15em;
}

.forbidden-title {
    background: linear-gradient(to right, #ff8c00, #ffcc33);
    -webkit-background-clip: text;
}

.logo-small {
    max-height: 35vh;
}

.return-button {
    margin-top: 2rem;
    padding: 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.return-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .logo {
        max-width: 90vw;
        max-height: 40vh;
    }
    
    .brand-title {
        font-size: 1.8rem;
        letter-spacing: 0.2em;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }
    
    .content-wrapper {
        gap: 1.5rem;
        transform: translateY(-8vh);
    }
    
    .error-title {
        font-size: 3.5rem;
    }
    
    .logo-small {
        max-height: 25vh;
    }
}