/* ========== 404 PAGE DESIGN ========== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #3d0e08, #1a0503); /* coffee gradient */
    padding: 40px;
    text-align: center;
    overflow: hidden;
}

.error-container {
    max-width: 650px;
    color: white;
    animation: fadeIn 1.2s ease-in-out;
}

.error-code {
    font-size: 10rem;
    font-weight: 900;
    color: #e28a24;
    margin-bottom: 20px;
    letter-spacing: 8px;
    animation: shake 2s infinite;
    position: relative;
}

/* Steam effect above 0 */
.error-code::after {
    content: "☕";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    color: #fff;
    opacity: 0.8;
    animation: rise 3s infinite ease-in-out;
}

.error-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.error-message {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #ddd;
}

/* ========== Animations ========== */
@keyframes rise {
    0% { transform: translate(-50%, 0); opacity: 0.7; }
    50% { transform: translate(-50%, -25px); opacity: 1; }
    100% { transform: translate(-50%, -50px); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
