* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #2c3e50;
    line-height: 1.6;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
}

.animation-container {
    margin-bottom: 25px;
}

.not-found-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 300px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #e74c3c;
    font-weight: 700;
}

.text {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #34495e;
}

.contact-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.home-button, .contact-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home-button {
    background: #2ecc71;
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.home-button:hover {
    background: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.contact-button {
    background: #3498db;
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.contact-button:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.copyright {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Animation for the 404 text */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

h1 {
    animation: shake 2.5s ease infinite;
}

/* Responsive design */
@media (max-width: 768px) {
    .content {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .text {
        font-size: 1.1rem;
    }
    
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .home-button, .contact-button {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .text {
        font-size: 1rem;
    }
    
    .not-found-image {
        max-height: 250px;
    }
}