/* 404 Page Specific Styles */
.error-404 {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--light) 0%, var(--light-gray) 100%);
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.error-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.error-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Error Visual */
.error-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.error-number {
    display: flex;
    align-items: center;
    font-size: 8rem;
    font-weight: 900;
    color: var(--primary);
    animation: fadeInScale 1s ease-out;
}

.digit {
    display: inline-block;
    animation: bounceIn 1s ease-out;
}

.digit-1 {
    animation-delay: 0.2s;
}

.digit-0 {
    position: relative;
    margin: 0 1rem;
    animation-delay: 0.4s;
}

.digit-2 {
    animation-delay: 0.6s;
}

.zero-circle {
    width: 120px;
    height: 120px;
    border: 8px solid var(--primary);
    border-radius: 50%;
    position: relative;
    animation: rotateScale 2s ease-in-out infinite;
}

.zero-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.element {
    position: absolute;
    border-radius: 50%;
    animation: floatAround 8s ease-in-out infinite;
}

.element-1 {
    width: 40px;
    height: 40px;
    background: var(--gradient);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 30px;
    height: 30px;
    background: var(--gradient-accent);
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, #FFA500 100%);
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.element-4 {
    width: 35px;
    height: 35px;
    background: var(--gradient);
    bottom: 15%;
    right: 20%;
    animation-delay: 6s;
}

/* Error Text */
.error-text {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    animation: slideInLeft 1s ease-out 1s both;
}

.error-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 1.2s both;
}

.error-suggestions {
    margin-bottom: 2.5rem;
    animation: slideInLeft 1s ease-out 1.4s both;
}

.error-suggestions h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.error-suggestions ul {
    list-style: none;
    padding: 0;
}

.error-suggestions li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.error-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    animation: slideRight 2s ease-in-out infinite;
}

.error-actions {
    display: flex;
    gap: 1rem;
    animation: slideInLeft 1s ease-out 1.6s both;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(-100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(0);
    }
    70% {
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateScale {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes floatAround {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }
    50% {
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
    }
    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .error-number {
        font-size: 6rem;
    }

    .zero-circle {
        width: 100px;
        height: 100px;
        border-width: 6px;
    }

    .zero-circle::before {
        width: 50px;
        height: 50px;
    }

    .error-title {
        font-size: 2rem;
    }

    .error-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .error-number {
        font-size: 4rem;
    }

    .zero-circle {
        width: 80px;
        height: 80px;
        border-width: 4px;
    }

    .zero-circle::before {
        width: 40px;
        height: 40px;
    }

    .error-title {
        font-size: 1.5rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-actions {
        flex-direction: column;
    }
}