/* --- Cyber-Forge Theme (Revised) --- */
:root {
    --cyber-bg: #050a14;
    --cyber-card-bg: rgba(20, 30, 50, 0.6);
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-green: #0aff0a;
    --text-primary: #e2e8f0;
    --text-light: #cbd5e1; /* رنگ روشن برای متن‌های توضیحات */
    --font-mono: 'Fira Code', monospace;
}

body.cyber-body {
    background-color: var(--cyber-bg);
    color: var(--text-primary);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    margin: 0;
}

/* Canvas Background */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    pointer-events: none;
}

/* Navbar - Enhanced Glassmorphism Effect */
.cyber-nav {
    background: rgba(5, 10, 20, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 243, 255, 0.4);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

/* Terminal Hero */
.terminal-window {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    border: 1px solid #333;
    position: relative;
    z-index: 10;
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title { margin-left: 10px; color: #999; font-size: 0.8rem; }

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    color: var(--neon-green);
    min-height: 120px;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.cyber-title {
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
    letter-spacing: -1px;
}

/* --- Search Box Fix (فیکس قطعی کادر جستجو) --- */
.cyber-search-wrapper {
    position: relative;
    width: 100%;
    z-index: 10;
}

.cyber-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-blue);
    font-size: 1.4rem;
    z-index: 11;
    pointer-events: none;
}

.cyber-input {
    width: 100%;
    background: rgba(5, 10, 20, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    /* فاصله زیاد از چپ برای اینکه متن زیر آیکون نره */
    padding: 18px 20px 18px 60px !important; 
    border-radius: 12px;
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cyber-input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.15);
    background: rgba(0, 0, 0, 0.9);
}

.cyber-input::placeholder {
    color: rgba(0, 243, 255, 0.4);
}

/* Glassmorphism Cards */
.cyber-card {
    background: var(--cyber-card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    z-index: 5;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.cyber-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
                0 0 15px rgba(0, 243, 255, 0.1);
    border-color: rgba(0, 243, 255, 0.3);
}

.cyber-card:hover::before {
    transform: translateX(100%);
    transition: transform 0.8s;
}

/* 3D Icons */
.icon-3d {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: transform 0.4s ease;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.cyber-card:hover .icon-3d {
    transform: scale(1.1) rotateZ(5deg);
    text-shadow: 4px 4px 0px rgba(0,0,0,0.3), 0 0 20px currentColor;
}

.cyber-card-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cyber-card-desc {
    font-size: 0.9rem;
    color: var(--text-light); /* رنگ روشن‌تر برای خوانایی بهتر */
}

/* --- Enhanced Hologram Animation --- */
.hologram-container {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    overflow: visible;
}

.hologram-shield {
    font-size: 9rem;
    color: #00ff00 !important;
    animation: floatHolo 3s ease-in-out infinite;
    z-index: 10;
    position: relative;
}

.hologram-shield .bi {
    color: #00ff00 !important;
}




.hologram-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hologram-particles::before,
.hologram-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 50%;
    animation: particleFloat 3s infinite ease-in-out;
}

.hologram-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.hologram-particles::after {
    top: 70%;
    right: 15%;
    animation-delay: 1.5s;
}

.data-text {
    position: absolute;
    bottom: 15px;
    font-family: var(--font-mono);
    color: var(--neon-green);
    font-size: 0.75rem;
    letter-spacing: 3px;
    animation: blink 1.5s infinite, textGlow 3s infinite alternate;
    text-shadow: 0 0 10px var(--neon-green);
    font-weight: 600;
}

@keyframes floatHolo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-25px);
    }
}



@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-30px) scale(1);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px var(--neon-green);
        color: var(--neon-green);
    }
    100% {
        text-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-green);
        color: #fff;
    }
}

/* --- Footer Fixes --- */
.cyber-footer {
    background: #020408; 
    border-top: 1px solid rgba(0, 243, 255, 0.15);
    margin-top: auto;
    position: relative;
    z-index: 100;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #050a14;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.2);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue);
}

.cyber-footer-link {
    color: #cbd5e1 !important; /* رنگ طوسی روشن */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-left: 15px;
    display: inline-block;
}

.cyber-footer-link:hover {
    color: var(--neon-blue) !important;
    text-shadow: 0 0 8px var(--neon-blue);
}
