/* 404 Page Styles */

.error-404-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0070e0 0%, #0057b8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.error-404-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.error-404-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.error-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 5;
    max-width: 800px;
    margin: 0 auto;
}

/* Animated 404 Number */
.error-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.number-4 {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

.number-4:first-child {
    animation-delay: 0s;
}

.number-4:last-child {
    animation-delay: 0.4s;
}

.number-0 {
    position: relative;
    width: 120px;
    height: 120px;
    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 3s linear infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tooth-icon {
    font-size: 3rem;
    color: white;
    animation: pulse 2s infinite;
}

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

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

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

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

.error-message h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.error-message p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: white;
    color: #0070e0;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Quick Links */
.quick-links {
    margin-top: 40px;
}

.quick-links h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

.quick-link i {
    font-size: 1.1rem;
    opacity: 0.8;
}

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

.floating-tooth {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.tooth-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.tooth-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.tooth-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .error-number {
        font-size: 5rem;
        gap: 10px;
    }
    
    .number-0 {
        width: 80px;
        height: 80px;
        border-width: 6px;
    }
    
    .tooth-icon {
        font-size: 2rem;
    }
    
    .error-message h1 {
        font-size: 2rem;
    }
    
    .error-message p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .floating-tooth {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-404-section {
        padding: 60px 0;
    }
    
    .error-number {
        font-size: 4rem;
        margin-bottom: 30px;
    }
    
    .number-0 {
        width: 60px;
        height: 60px;
        border-width: 4px;
    }
    
    .tooth-icon {
        font-size: 1.5rem;
    }
    
    .error-message h1 {
        font-size: 1.8rem;
    }
    
    .error-actions {
        margin-bottom: 40px;
    }
}
