/*-----------------------------------------------------------------------------------

    Theme Name: Amin AskariX
    Theme URI: https://aminaskarix.ir/
    Description: Personal Portfolio & Professional IT Services Website
    Author: M. Amin Askari
    Author URI: https://aminaskarix.ir/
    Version: 2.0.1

-----------------------------------------------------------------------------------*/

/* استایل‌های اختصاصی صفحه 404 */
.error-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 0;
}

.error-page h1 {
    font-size: 72px;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    margin-bottom: 15px;
}

.error-page h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.error-page .content {
    margin-bottom: 50px !important;
    margin-top: 20px !important;
}

/* استایل برای ترمینال 404 */
.error-404-terminal {
    margin: 40px auto;
    min-height: 200px;
}

/* استایل دکمه‌های ماتریکسی */
.butn-bord-matrix {
    position: relative;
    border: 1px solid rgba(0, 255, 0, 0.4);
    background: transparent;
    color: #0f0 !important;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 2;
}

.butn-bord-matrix span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.butn-bord-matrix:before {
    content: '';
    width: 100%;
    height: 0;
    background: rgba(0, 255, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.butn-bord-matrix:hover {
    border-color: rgba(0, 255, 0, 0.7);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.4), inset 0 0 5px rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

.butn-bord-matrix:hover:before {
    height: 100%;
}

.butn-bord-matrix:hover span {
    color: #00ff00 !important;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.butn-bord-matrix:after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 0, 0.2), transparent);
    top: 0;
    left: -200%;
    opacity: 0;
    transition: all 0.5s ease;
}

.butn-bord-matrix:hover:after {
    left: 100%;
    opacity: 1;
    transition: all 0.8s ease;
}

/* تنظیمات اضافی برای ظاهر بهتر */
.butn-container {
    display: flex;
    justify-content: center;
    gap: 25px; /* افزایش فاصله بین دکمه‌ها */
}

.butn-container .butn {
    min-width: 200px;
    margin: 0;
    letter-spacing: 1px;
}

/* افکت گلو برای تیتر */
.error-page h1.main-color {
    position: relative;
}

.error-page h1.main-color::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(10px);
}

/* افکت فلیکر برای تیتر 404 */
@keyframes text-flicker {
    0% { opacity: 1; }
    2% { opacity: 0.8; }
    4% { opacity: 1; }
    19% { opacity: 1; }
    21% { opacity: 0.4; }
    23% { opacity: 1; }
    80% { opacity: 1; }
    83% { opacity: 0.4; }
    87% { opacity: 1; }
}

.error-page h1.main-color {
    animation: text-flicker 3s linear infinite;
}

/* تغییرات مخصوص نسخه موبایل */
@media (max-width: 768px) {
    .error-page h1 {
        font-size: 56px;
    }
    
    .error-page h2 {
        font-size: 24px;
    }
    
    .butn-container {
        flex-direction: column;
        align-items: center;
    }
    
    .butn-container .butn {
        margin-bottom: 10px;
    }
    .terminal-container {
        transform: translateZ(0)!important;
    }
}

@media (max-width: 480px) {
    .error-page h1 {
        font-size: 42px;
    }
}

/* استایل‌های اضافی برای باکس ترمینال */
.terminal-container {
    margin: 0px auto;
    height: 125px;
    padding: 20px;
    overflow: hidden;
    transform: translateZ(0);
}

.terminal-line {
    margin-bottom: 15px;
    min-height: 22px;
}

.terminal-text {
    display: inline-block;
    word-break: break-word;
    line-height: 1.5;
}

.typed-text {
    color: #ffcc00 !important;
    font-weight: 500;
}

.terminal-cursor {
    animation: blink 1s step-end infinite;
    display: inline-block;
    margin-left: 2px;
}

@keyframes blink {
    from, to { opacity: 1; }
    50% { opacity: 0; }
} 