/* Reset و فونت پایه - تم تیره */
:root {
    --primary-color: #5e72e4;
    --secondary-color: #4a5bd6;
    --dark-color: #0f172a;
    --darker-color: #020617;
    --light-color: #e2e8f0;
    --lighter-color: #1e293b;
    --success-color: #4cc9f0;
    --warning-color: #f8961e;
    --danger-color: #f94144;
    --text-color: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-gradient);
    color: var(--text-color);
    line-height: 1.6;
}


/*slider heroo*/
/* تم تیره - متغیرهای رنگ */
:root {
    --slider-bg: #0f172a;
    --slider-text: #e2e8f0;
    --slider-accent: #5e72e4;
    --slider-overlay: rgba(2, 6, 23, 0.7);
    --primary-color: #5e72e4;
    --dark-color: #0f172a;
    --text-color: #f8fafc;
    --border-radius: 12px;
}

/* استایل اصلی اسلایدر */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    height: 90vh;
    max-height: 800px;
    margin-bottom: 3rem;
}

.hero-slider {
    height: 100%;
}

.hero-slider .carousel-inner,
.hero-slider .carousel-item {
    height: 100%;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--slider-overlay);
    z-index: 1;
}

/* کپشن اسلایدر */
.hero-slider .carousel-caption {
    bottom: 30%;
    z-index: 2;
    text-align: center;
    padding: 0 15%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--slider-text);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--slider-text);
}

.slider-btn {
    background-color: var(--slider-accent);
    border: none;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(94, 114, 228, 0.4);
}

.slider-btn:hover {
    background-color: #4a5bd6;
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(94, 114, 228, 0.6);
}

/* اندیکاتورها */
.hero-slider .carousel-indicators {
    bottom: 50px;
    z-index: 3;
}

.hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.hero-slider .carousel-indicators button.active {
    background-color: var(--slider-accent);
    width: 30px;
    border-radius: 6px;
}

/* کنترل‌های اسلایدر */
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.hero-slider:hover .carousel-control-prev,
.hero-slider:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider .carousel-control-prev {
    left: 30px;
}

.hero-slider .carousel-control-next {
    right: 30px;
}

.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
    width: 2rem;
    height: 2rem;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 1s;
}

.animate__delay-2s {
    animation-delay: 2s;
}

/* رسپانسیو */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .hero-slider-section {
        height: 70vh;
    }
    
    .hero-slider .carousel-caption {
        bottom: 25%;
        padding: 0 10%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-slider-section {
        height: 60vh;
    }
    
    .hero-slider .carousel-caption {
        bottom: 20%;
        padding: 0 5%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-slider .carousel-indicators {
        bottom: 20px;
    }
}



/* ناوبری */
nav {
    width: 100%;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    padding-top: 10px;
    padding-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    color: var(--light-color);
    text-decoration: none;
    font-size: 25px;
    margin: 7px;
}

#menu {
    width: 100%;
    display: none;
}

#menu ul li {
    list-style-type: none;
    opacity: 0.9;
    margin-top: 35px;
}

#menu ul li a {
    text-decoration: none;
    margin-right: 15px;
    color: var(--light-color);
    transition: var(--transition);
}

#menu ul li a:hover {
    color: var(--primary-color);
}

.btn-menu {
    text-decoration: none;
    color: var(--light-color);
    font-size: 30px;
    float: left;
    margin-left: 30px;
}

@media (min-width: 768px) {
    nav {
        padding-right: 10px;
        padding-left: 10px;
    }
    .btn-menu {
        display: none;
    }
    #menu {
        display: block;
    }
    #menu, .brand {
        display: inline-block;
    }
    #menu ul li {
        margin: 5px;
        display: inline-block;
        float: left;
    }
}



/* بخش اپلیکیشن‌ها */
.apps-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    color: var(--text-color);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    text-decoration: underline;
}

.apps-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.apps-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.apps-scroller::-webkit-scrollbar {
    height: 6px;
}

.apps-scroller::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.apps-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.apps-scroller::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.app-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 180px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.app-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.app-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.app-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.app-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    color: #f6ad55;
    font-size: 0.9rem;
}

.scroll-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

/* بخش مقالات */
.articles-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 1.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(5px);
}

.articles-container {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.articles-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
}

.articles-scroller::-webkit-scrollbar {
    height: 6px;
}

.articles-scroller::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.articles-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.article-card {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 300px;
    background: rgba(15, 23, 42, 0.7);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-card:hover {
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.article-image {
    height: 160px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.article-image span {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.article-content {
    padding: 1.2rem;
}

.article-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    color: var(--text-color);
    line-height: 1.4;
}

.article-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta i {
    font-size: 0.9rem;
}

/* فوتر */
.modern-footer {
    background: linear-gradient(to bottom, #0f172a, #020617);
    color: var(--text-color);
    padding: 80px 0 0;
    position: relative;
    font-family: 'Vazir', sans-serif;
    overflow: hidden;
    margin-top: 3rem;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V60C200,100,400,20,600,60S800,100,1000,40s200-80,200-80V0Z" fill="%230f172a"/></svg>');
    background-size: cover;
    animation: wave-animation 8s linear infinite;
}

@keyframes wave-animation {
    0% { background-position-x: 0; }
    100% { background-position-x: 1200px; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    padding-right: 20px;
}

.footer-logo {
    width: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    line-height: 1.8;
    margin-bottom: 25px;
    opacity: 0.8;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: var(--text-color);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.footer-links li:hover,
.footer-contact li:hover {
    transform: translateX(5px);
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding-bottom: 3px;
    transition: var(--transition);
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-link:hover::before {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    position: relative;
}

.social-icon:hover {
    background: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* اسکرول بار */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* رسپانسیو */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .app-card, .article-card {
        width: 260px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .app-card, .article-card {
        width: 240px;
    }
    
    .article-image {
        height: 120px;
    }
}