﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.not-found-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.not-found-content {
    text-align: center;
    z-index: 10;
    max-width: 600px;
    width: 100%;
}

.glitch-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.glitch {
    font-size: clamp(8rem, 25vw, 16rem);
    font-weight: 900;
    color: #ffffff;
    position: relative;
    text-shadow: 0 0 80px rgba(99, 102, 241, 0.5);
    line-height: 1;
    letter-spacing: -0.02em;
    animation: pulse 3s ease-in-out infinite;
}

    .glitch::before,
    .glitch::after {
        content: attr(data-text);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .glitch::before {
        color: #ff6b6b;
        animation: glitch-1 2s infinite linear alternate-reverse;
        clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    }

    .glitch::after {
        color: #4ecdc4;
        animation: glitch-2 3s infinite linear alternate-reverse;
        clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    }

@keyframes glitch-1 {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(3px);
    }

    40% {
        transform: translateX(-3px);
    }

    60% {
        transform: translateX(2px);
    }

    80% {
        transform: translateX(-2px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.9;
    }
}

.not-found-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.not-found-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #94a3b8;
    margin: 0 0 2.5rem;
    line-height: 1.6;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.not-found-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    position: relative;
    overflow: hidden;
}

    .not-found-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .not-found-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    }

        .not-found-button:hover::before {
            left: 100%;
        }

.button-icon {
    transition: transform 0.3s ease;
}

.not-found-button:hover .button-icon {
    transform: translateX(5px);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -10%;
    right: -10%;
    animation: float-1 8s ease-in-out infinite;
}

.shape-2 {
    width: clamp(150px, 30vw, 300px);
    height: clamp(150px, 30vw, 300px);
    background: linear-gradient(135deg, #4ecdc4, #44a3aa);
    bottom: -5%;
    left: -5%;
    animation: float-2 10s ease-in-out infinite;
}

.shape-3 {
    width: clamp(80px, 15vw, 150px);
    height: clamp(80px, 15vw, 150px);
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    top: 20%;
    left: 10%;
    animation: float-3 7s ease-in-out infinite;
}

.shape-4 {
    width: clamp(100px, 20vw, 200px);
    height: clamp(100px, 20vw, 200px);
    background: linear-gradient(135deg, #feca57, #ff9f43);
    bottom: 20%;
    right: 10%;
    animation: float-4 9s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
}

@keyframes float-2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(40px, -20px) rotate(-180deg);
    }
}

@keyframes float-3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, 20px) scale(1.1);
    }
}

@keyframes float-4 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-25px, -15px) scale(0.9);
    }
}

@media (max-width: 768px) {
    .not-found-container {
        padding: 1.5rem;
    }

    .not-found-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .not-found-subtitle {
        letter-spacing: 0.05em;
    }

    .not-found-description {
        padding: 0 1rem;
    }

    .not-found-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .glitch::before,
    .glitch::after,
    .glitch,
    .shape {
        animation: none;
    }

    .not-found-button::before {
        display: none;
    }
}
