/* 404 Error Page Styles - Modern Theme */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --primary-color: #8B5CF6;
    --secondary-color: #F59E0B;
    --accent-color: #10B981;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Error Page Container */
.error-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.floating-tooth,
.floating-graduation {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-tooth {
    color: var(--white);
}

.floating-graduation {
    color: var(--secondary-color);
}

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

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

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

.graduation-1 {
    top: 40%;
    right: 10%;
    animation-delay: 1s;
}

.graduation-2 {
    bottom: 20%;
    right: 30%;
    animation-delay: 3s;
}

/* Logo */
.error-logo {
    position: relative;
    z-index: 2;
}

.logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* 404 Number */
.error-number {
    position: relative;
    z-index: 2;
    margin: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.number-4,
.number-0 {
    font-size: 8rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Alegreya', serif;
    animation: bounce 2s ease-in-out infinite;
}

.number-0 {
    animation-delay: 0.5s;
    color: var(--secondary-color);
}

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

/* Error Content */
.error-content {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.error-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Alegreya', serif;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

/* Search Section */
.search-section {
    position: relative;
    z-index: 2;
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.search-input:focus {
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50px;
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #7C3AED;
    transform: translateY(-50%) scale(1.05);
}

/* Quick Links */
.quick-links {
    position: relative;
    z-index: 2;
}

.links-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    padding: 20px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: var(--white);
    text-decoration: none;
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.quick-link span {
    font-weight: 500;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    position: relative;
    z-index: 2;
}

.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #7C3AED;
    border-color: #7C3AED;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Fun Facts */
.fun-facts {
    position: relative;
    z-index: 2;
}

.fact-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.fact-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.fact-text {
    color: var(--white);
    line-height: 1.6;
}

.fact-text strong {
    color: var(--secondary-color);
}

/* Footer */
.error-footer {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 14px;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .error-number {
        gap: 10px;
    }
    
    .number-4,
    .number-0 {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .quick-link {
        padding: 15px 10px;
    }
    
    .link-icon {
        font-size: 1.5rem;
    }
    
    .quick-link span {
        font-size: 12px;
    }
    
    .floating-tooth,
    .floating-graduation {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .error-number {
        gap: 5px;
    }
    
    .number-4,
    .number-0 {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .search-input {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 8px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .fact-card {
        padding: 20px;
    }
}

/* Loading Animation */
.error-page.loading {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.error-page.loaded {
    opacity: 1;
}

/* Hover Effects */
.quick-link:hover .link-icon {
    animation: pulse 0.6s ease;
}

.search-btn:hover i {
    animation: pulse 0.6s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7C3AED;
}
