/* style.css - نسخه پیشرفته با فونت‌های فارسی */

@font-face {
    font-family: 'Tanha';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/tanha-font@v0.10/dist/Tanha.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Vazir';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Shabnam';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/shabnam-font@v5.0.1/dist/Shabnam.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANSans';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/iran-sans-font@v4.0.0/dist/IRANSans.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

:root {
    --neon-blue: #00ffff;
    --neon-pink: #ff00ff;
    --neon-purple: #b300ff;
    --neon-yellow: #ffff00;
    --bg-dark: #0a0a1f;
    --card-bg: rgba(16, 16, 40, 0.8);
    --glass-effect: rgba(255, 255, 255, 0.05);
    --font-primary: 'Vazir', 'Tanha', 'Shabnam', 'IRANSans', sans-serif;
    --font-display: 'Orbitron', var(--font-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* استایل‌های مختلف عنوان */
.glitch-style-1 h1 {
    font-size: 5rem;
    font-weight: 900;
    text-shadow: 3px 3px 0 var(--neon-pink), -3px -3px 0 var(--neon-blue);
    animation: glitch-skew 4s infinite;
}

.glitch-style-2 h1 {
    font-size: 5rem;
    position: relative;
    filter: drop-shadow(0 0 15px var(--neon-blue));
    animation: smokeGlitch 5s infinite;
}

.glitch-style-3 h1 {
    font-size: 5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hologram 3s infinite;
}

.glitch-style-4 h1 {
    font-size: 5rem;
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue), 0 0 30px var(--neon-pink);
    animation: pulseLight 2s infinite;
}

.glitch-style-5 h1 {
    font-size: 5rem;
    transform: perspective(500px) rotateX(10deg);
    text-shadow: 2px 2px 0 var(--neon-blue), 4px 4px 0 var(--neon-pink);
    animation: float3D 6s infinite;
}

@keyframes smokeGlitch {
    0%, 100% { filter: blur(0px) drop-shadow(0 0 15px var(--neon-blue)); }
    25% { filter: blur(2px) drop-shadow(0 0 25px var(--neon-pink)); }
    50% { filter: blur(0px) drop-shadow(0 0 15px var(--neon-purple)); }
    75% { filter: blur(1px) drop-shadow(0 0 20px var(--neon-yellow)); }
}

@keyframes hologram {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    50% { opacity: 0.8; filter: hue-rotate(90deg); }
}

@keyframes pulseLight {
    0%, 100% { text-shadow: 0 0 20px var(--neon-blue), 0 0 40px var(--neon-pink); }
    50% { text-shadow: 0 0 30px var(--neon-pink), 0 0 60px var(--neon-blue); }
}

@keyframes float3D {
    0%, 100% { transform: perspective(500px) rotateX(10deg) translateY(0); }
    50% { transform: perspective(500px) rotateX(15deg) translateY(-10px); }
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.vignette {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 30%, #0a0a1f 95%);
    z-index: -1;
    pointer-events: none;
}

.ai-particles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--neon-blue);
    opacity: 0;
    animation: floatUp linear infinite;
}

.particle:nth-child(3n) {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.particle:nth-child(3n+1) {
    background: var(--neon-purple);
    box-shadow: 0 0 15px var(--neon-purple);
}

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.9; }
    80% { opacity: 0.9; }
    100% { transform: translateY(-10vh) scale(1.5) rotate(360deg); opacity: 0; }
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.glitch-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.header h1 {
    font-family: var(--font-display);
    letter-spacing: 4px;
    position: relative;
}

.header h1 span {
    display: inline-block;
    animation: letterGlitch 3s infinite;
}

@keyframes letterGlitch {
    0%, 100% { transform: translate(0); }
    5% { transform: translate(-2px, 1px); }
    10% { transform: translate(2px, -1px); }
    15% { transform: translate(-1px, 2px); }
    20% { transform: translate(0); }
}

.subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.95);
    margin-top: 30px;
    border: 2px solid var(--neon-blue);
    display: inline-block;
    padding: 15px 50px;
    border-radius: 50px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 350px;
    font-family: var(--font-primary);
    letter-spacing: 1px;
}

/* بخش ساب‌تایتل - جایگزین بخش قبلی */

.subtitle {
    font-size: 1.8rem;
    color: #ffffff !important; /* رنگ متن سفید ثابت */
    margin-top: 30px;
    border: 2px solid var(--neon-blue);
    display: inline-block;
    padding: 15px 50px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.7); /* پس‌زمینه تیره‌تر */
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 350px;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    text-align: center;
    direction: ltr; /* برای نمایش بهتر متن انگلیسی */
}

.subtitle span {
    color: #ffffff !important; /* رنگ متن سفید */
    text-shadow: 0 0 8px var(--neon-blue); /* سایه نئون */
}

.subtitle span[style*="color:var(--neon-pink)"] {
    color: var(--neon-pink) !important;
    text-shadow: 0 0 8px var(--neon-pink);
}

.subtitle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

/* استایل کرسر */
.cursor {
    display: inline-block;
    width: 3px;
    margin: 0 2px;
    background-color: var(--neon-pink);
    color: var(--neon-pink);
    font-weight: bold;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}



.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 60px 0;
}

.product-card {
    background: var(--card-bg);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
    backdrop-filter: blur(10px);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%,
        rgba(255,0,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.product-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--neon-blue));
    transform: translateZ(30px);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateZ(30px) translateY(0); }
    50% { transform: translateZ(30px) translateY(-10px); }
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--neon-blue);
    transform: translateZ(40px);
    font-family: var(--font-display);
}

.product-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1rem;
    transform: translateZ(20px);
}

.product-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    transform: translateZ(25px);
}

.tag {
    padding: 8px 15px;
    border: 1px solid var(--neon-pink);
    border-radius: 25px;
    font-size: 0.85rem;
    color: var(--neon-pink);
    background: rgba(255,0,255,0.1);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.product-card:hover .tag {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 20px var(--neon-pink);
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin: 100px 0;
}

.stat-item {
    text-align: center;
    padding: 40px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--neon-blue), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--neon-blue));
}

.stat-label {
    color: var(--neon-blue);
    font-size: 1.3rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin: 100px 0;
}

.tech-item {
    background: rgba(0,0,0,0.4);
    padding: 40px;
    border-radius: 20px;
    border-right: 6px solid var(--neon-pink);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tech-item:hover {
    transform: translateX(-10px);
    border-right-color: var(--neon-blue);
    box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
}

.tech-title {
    font-size: 1.8rem;
    color: var(--neon-blue);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tech-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.tech-bar-bg {
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    margin: 25px 0 20px;
    overflow: hidden;
    position: relative;
}

.tech-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-pink), var(--neon-purple));
    width: 0;
    border-radius: 6px;
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    animation: barGlow 2s infinite;
}

@keyframes barGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.cyber-button {
    display: inline-block;
    padding: 18px 45px;
    margin: 15px;
    border: 2px solid var(--neon-blue);
    background: transparent;
    color: var(--neon-blue);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    letter-spacing: 1px;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cyber-button:hover::before {
    left: 100%;
}

.cyber-button:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 40px var(--neon-blue);
    transform: scale(1.05);
}

.cyber-button.pink {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
}

.cyber-button.pink:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 40px var(--neon-pink);
}

.footer {
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(20px);
    padding: 80px 0 40px;
    margin-top: 120px;
    border-top: 2px solid var(--neon-blue);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-pink), transparent);
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-section h3 {
    color: var(--neon-blue);
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-family: var(--font-display);
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background: var(--neon-pink);
    transition: width 0.3s;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--neon-blue);
    transform: translateX(-5px);
}

.footer-links i {
    font-size: 1.2rem;
    width: 25px;
    color: var(--neon-pink);
}

.footer-bottom {
    text-align: center;
    padding-top: 60px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: linear-gradient(135deg, #111, #1a1a2a);
    border: 2px solid var(--neon-blue);
    padding: 50px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 0 70px rgba(0,255,255,0.3);
    transform: scale(0.7) rotate(-5deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1) rotate(0);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    color: var(--neon-pink);
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,0,255,0.1);
}

.close-modal:hover {
    transform: rotate(180deg) scale(1.2);
    background: var(--neon-pink);
    color: #000;
}

@media (max-width: 768px) {
    .header h1 { font-size: 3rem; }
    .subtitle { font-size: 1.2rem; min-width: 280px; padding: 12px 25px; }
    .tech-showcase { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-section h3::after { left: 25%; }
}