/* 404 Page Styles */

.error-404-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.error-404-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Animated 404 Number */
.error-404-number {
    margin-bottom: 40px;
}

.number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.number-4,
.number-0 {
    font-size: 120px;
    font-weight: 800;
    color: #ed174f;
    line-height: 1;
}

/* Bounce Animation for 4s */
.animate-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.animate-bounce-delay {
    animation: bounce 2s ease-in-out 0.3s infinite;
}

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

/* Rotating Circle for 0 */
.number-0-wrapper {
    position: relative;
}

.circle-outer {
    width: 140px;
    height: 140px;
    border: 8px dashed #ed174f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.animate-rotate {
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.circle-inner {
    width: 110px;
    height: 110px;
    background: #ed174f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.number-0 {
    color: #ffffff;
}

/* Error Message */
.error-message {
    margin-bottom: 40px;
}

.error-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.error-description {
    font-size: 18px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Action Buttons */
.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-btn-primary {
    background: #ed174f;
    border-color: #ed174f;
    color: #ffffff;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.error-btn-primary:hover {
    background: #c91342;
    border-color: #c91342;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.3);
}

.error-btn-secondary {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.error-btn-secondary:hover {
    border-color: #ed174f;
    color: #ed174f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-element {
    position: absolute;
    color: #ed174f;
    opacity: 0.15;
}

.float-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.float-2 {
    top: 20%;
    right: 15%;
    animation: float 7s ease-in-out 1s infinite;
}

.float-3 {
    bottom: 15%;
    left: 15%;
    animation: float 8s ease-in-out 2s infinite;
}

.float-4 {
    bottom: 20%;
    right: 10%;
    animation: float 9s ease-in-out 3s infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-40px) rotate(-5deg);
    }
    75% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .error-404-container {
        min-height: 60vh;
        padding: 40px 20px;
    }

    .number-4,
    .number-0 {
        font-size: 80px;
    }

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

    .circle-inner {
        width: 80px;
        height: 80px;
    }

    .number-wrapper {
        gap: 15px;
    }

    .error-title {
        font-size: 28px;
    }

    .error-description {
        font-size: 16px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-btn-primary,
    .error-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .float-element {
        display: none;
    }
}

@media (max-width: 480px) {
    .number-4,
    .number-0 {
        font-size: 60px;
    }

    .circle-outer {
        width: 80px;
        height: 80px;
        border-width: 5px;
    }

    .circle-inner {
        width: 65px;
        height: 65px;
    }

    .error-title {
        font-size: 24px;
    }

    .error-description {
        font-size: 14px;
    }
}
