body {
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background: black;
    color: #00ff00;
    overflow: hidden;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff00;
}
header nav a {
    margin: 0 10px;
    text-decoration: none;
    color: #00ff00;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}
header nav a:hover {
    color: #ff0000;
}

/* CMD Window */
.cmd-window {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 400px;
    background: black;
    border: 2px solid #00ff00;
    box-shadow: 0 0 15px #00ff00;
    overflow: hidden;
    display: none;
}
.cmd-title-bar {
    background: #333;
    color: white;
    padding: 5px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cmd-title-bar span {
    margin-left: 10px;
}
.cmd-buttons {
    display: flex;
    gap: 5px;
}
.cmd-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.cmd-close { background: #ff5c5c; }
.cmd-min { background: #fbbc05; }
.cmd-max { background: #00cc44; }

.cmd-content {
    padding: 10px;
    color: #00ff00;
    font-size: 0.9rem;
    overflow-y: auto;
    height: calc(100% - 60px);
}

/* Input Field */
.cmd-input {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background: black;
    border-top: 1px solid #00ff00;
}
.cmd-input span {
    color: #00ff00;
    margin-right: 5px;
}
.cmd-input input {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    outline: none;
    width: 100%;
}

/* Falling numbers background */
.matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}
.matrix span {
    position: absolute;
    top: -100%;
    color: #00ff00;
    animation: fall linear infinite;
    font-size: 20px;
}
@keyframes fall {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(120vh);
    }
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid #00ff00;
    color: #00ff00;
    font-size: 0.8rem;
}
footer a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
}
footer a:hover {
    color: #ff0000;
}

/* Terminal Link Centered */
.centered-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
}

.terminal-link {
    font-size: 3rem;
    font-weight: bold;
    color: #00ff00;
    text-decoration: none;
    transition: color 0.3s;
}
.terminal-link:hover {
    color: #ff0000;
}

.click-here-text {
    font-size: 1rem;
    margin-top: 10px;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

.terminal-link {
    font-size: 4rem;
    font-weight: bold;
    color: #00ff00;
    text-decoration: none;
    position: relative;
    display: inline-block;
    animation: glitch 0.5s infinite;
}

.terminal-link::before,
.terminal-link::after {
    content: attr(data-glitch); /* نمایش گلیچ تصادفی */
    position: absolute;
    left: 0;
    top: 0;
    color: #0a3a01;
    background: black;
    clip-path: rect(0, 900px, 0, 0);
    animation: glitch 0.5s infinite;
}

.terminal-link::before {
    left: 3px;
    text-shadow: -2px 0 #00ff00, -4px 2px #ff00ff;
    animation-delay: 0.1s;
}

.terminal-link::after {
    left: -3px;
    text-shadow: 2px 0 #00ff37, -4px -2px #397e00;
    animation-delay: 0.2s;
}

@keyframes glitch {
    0%, 100% {
        clip-path: inset(0% 0% 0% 0%);
        transform: translate(0, 0);
    }
    20% {
        clip-path: inset(10% 0% 30% 0%);
        transform: translate(-5px, 5px);
    }
    40% {
        clip-path: inset(20% 0% 40% 0%);
        transform: translate(5px, -5px);
    }
    60% {
        clip-path: inset(10% 0% 30% 0%);
        transform: translate(-5px, 0);
    }
    80% {
        clip-path: inset(20% 0% 50% 0%);
        transform: translate(5px, 5px);
    }
}

.matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* ارتفاع کامل صفحه */
    overflow: hidden;
    z-index: 1;
}

.matrix span {
    position: absolute;
    top: -100%;
    color: #00ff00;
    font-size: 20px;
    animation: fall linear infinite;
    animation-duration: 5s; /* زمان حرکت */
}
@keyframes fall {
    from {
        transform: translateY(0); /* شروع از بالای صفحه */
    }
    to {
        transform: translateY(120vh); /* حرکت تا فراتر از انتهای صفحه */
    }
}
