/* --- CSS Variables (for easy customization) --- */
:root {
    --primary-color: #00D9FF; /* فیروزه‌ای روشن */
    --secondary-color: #0A192F; /* سرمه‌ای تیره */
    --accent-color: #FF6B6B; /* قرمز-صورتی برای دکمه‌ها و تاکید */
    --text-color-light: #E6F1FF;
    --text-color-dark: #333;
    --bg-color-light: #F8F9FA;
    --bg-color-dark: #172A45;
    --font-family: 'Iran Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Global Styles & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

@font-face {
    font-family: 'Iran Sans';
    src: url('/assest/iran-sans-web.woff2') format('woff2'),
         url('/assest/iran-sans-web.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.section-header p {
    font-size: 1.1rem;
    color: #666;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.3);
}
.btn-secondary {
    background-color: var(--bg-color-dark);
    color: var(--text-color-light);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
}
.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline-light:hover {
    background-color: #fff;
    color: var(--secondary-color);
}
.btn-light {
    background-color: #fff;
    color: var(--secondary-color);
}
.btn-light:hover {
    background-color: var(--bg-color-light);
    transform: translateY(-3px);
}
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* --- Header --- */
.main-header {
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-info a {
    color: var(--text-color-light);
    font-size: 0.9rem;
}
.contact-info i {
    color: var(--primary-color);
    margin-left: 8px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}
.logo img {
    height: 40px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}
.nav-menu li a {
    color: var(--text-color-light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-menu li a:hover {
    color: var(--primary-color);
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-menu li a:hover::after {
    width: 100%;
}

/* --- Mega Menu --- */
.mega-dropdown {
    position: relative;
}
.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 600px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 25px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.mega-menu-column h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--bg-color-light);
    padding-bottom: 10px;
}
.mega-menu-column ul li a {
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    padding: 8px 0;
    transition: all 0.2s ease;
}
.mega-menu-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}
.mega-menu-column ul li a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}
.mega-menu-column-banner {
    grid-column: span 2;
    text-align: center;
    background: linear-gradient(45deg, var(--secondary-color), var(--bg-color-dark));
    padding: 20px;
    border-radius: 8px;
    color: #fff;
}
.mega-menu-column-banner p { font-size: 0.9rem; margin-bottom: 5px;}
.mega-menu-column-banner h3 { font-size: 1.3rem; margin-bottom: 15px;}
.mega-menu-column-banner img { border-radius: 8px; }

.hamburger { display: none; flex-direction: column; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background-color: #fff; margin: 3px 0; transition: 0.3s; }

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-color-dark) 100%);
    color: var(--text-color-light);
    padding: 180px 0 100px;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 20px;
}
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}
#lottie-hero { width: 100%; max-width: 450px; }

/* --- Features Section --- */
.features {
    padding: 100px 0;
    background-color: var(--bg-color-light);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.feature-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.feature-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.feature-card p {
    color: #666;
    line-height: 1.7;
}

/* --- Services Showcase Section --- */
.services-showcase {
    padding: 100px 0;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.service-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.service-image {
    background: linear-gradient(45deg, var(--secondary-color), var(--bg-color-dark));
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}
#lottie-hosting, #lottie-vps, #lottie-other { width: 150px; height: 150px; }
.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.service-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}
.service-content p {
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-content ul {
    list-style: none;
    margin-bottom: 25px;
}
.service-content ul li {
    padding: 5px 0;
    color: #555;
}
.service-content ul li::before {
    content: '✔';
    color: var(--primary-color);
    margin-left: 10px;
}

/* --- Stats Section --- */
.stats {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--bg-color-dark) 100%);
    color: var(--text-color-light);
    padding: 80px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-color);
    display: inline-block;
}
.stat-item span {
    font-size: 2rem;
    color: var(--primary-color);
}
.stat-item p {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-color-light);
}
.testimonial-card {
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.testimonial-text {
    margin-bottom: 30px;
}
.testimonial-text i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 15px;
}
.testimonial-text p {
    font-size: 1.05rem;
    color: #555;
    line-height: 1.8;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
}
.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-left: 15px;
}
.author-info h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
}
.author-info span {
    color: #888;
    font-size: 0.9rem;
}
.swiper-pagination-bullet-active { background-color: var(--primary-color); }

/* --- CTA Section --- */
.cta {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 100px 0;
}
.cta .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}
.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
#lottie-cta { width: 100%; max-width: 400px; }

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 70px 0 20px;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}
.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
}
.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}
.footer-column p {
    line-height: 1.8;
    opacity: 0.8;
}
.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}
.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--bg-color-dark);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}
.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}
.footer-column ul li {
    margin-bottom: 12px;
    opacity: 0.8;
    transition: all 0.3s ease;
}
.footer-column ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}
.footer-column ul li i {
    color: var(--primary-color);
    margin-left: 10px;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .nav-menu { gap: 20px; }
    .mega-menu { width: 500px; }
    .hero .container, .cta .container { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 3rem; }
    .hero-buttons { justify-content: center; }
    .cta-image { order: -1; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        gap: 0;
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { margin: 15px 0; }
    .mega-dropdown:hover .mega-menu { display: none; } /* Hide mega menu on mobile */
    .mega-dropdown > a::after { content: ' (+'); } /* Indicate submenu */
    
    .section-header h2 { font-size: 2rem; }
    .hero { padding: 150px 0 80px; }
    .hero-content h1 { font-size: 2.5rem; }
    .features, .services-showcase, .testimonials { padding: 70px 0; }
    .cta { padding: 70px 0; }
    .cta-content h2 { font-size: 2rem; }
    .stats { padding: 60px 0; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-column h4::after { right: 50%; transform: translateX(50%); }
    .social-links { margin-top: 20px; }
}

@media (max-width: 576px) {
    .container { padding: 0 15px; }
    .hero-content h1 { font-size: 2rem; }
    .features-grid, .services-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 80%; }
}