/* Reset & Base Styles */
* {

    box-sizing: border-box;
}

:root {
    /* Smart Communication Theme Colors */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --accent: #00d4aa;
    --accent-dark: #00b894;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 0.75rem;
    --border-radius-lg: 1rem;

    /* Typography */
    --font-family: 'Vazir', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Reset & Base Styles */



/* Hero Section with Slideshow */
.hero {
    padding-top: 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.slideshow-container {
    margin-bottom: 2rem;
    position: relative;
    width: 100%;
    z-index: 1;
}

.slide {
    display: none;
    animation: fadeIn 1s ease-in-out;
    width: 100%;
}

.slide.active {
    display: block;

}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    color: white;
    min-height: 400px;
}

.slide-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.slide-text p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.slide-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.slide-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.5s ease;
    max-width: 500px;
    width: 100%;
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.visual-card h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.25rem;
}

.visual-card p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.slideshow-nav {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: white;
    transform: scale(1.3);
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Hero Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding-top: 4rem;
        min-height: 90vh;
    }

    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1rem 0;
    }

    .slide-visual {
        order: -1;
    }

    .visual-card {
        transform: none;
        padding: 2rem 1.5rem;
        max-width: 380px;
    }

    .visual-card:hover {
        transform: scale(1.02);
    }

    .slide-actions {
        justify-content: center;
        gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-width: 140px;
        justify-content: center;
    }

    .slideshow-nav {
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding-top: 3rem;
    }

    .slide-content {
        padding: 0.5rem 0;
    }

    .visual-card {
        padding: 1.5rem 1rem;
        max-width: 240px;
    }

    .slide-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 360px) {
    .slide-text h1 {
        font-size: 1.5rem;
    }

    .visual-card {
        max-width: 300px;
        padding: 1rem;
    }
}

/* Hero Section with Slideshow */



/* Video Section */
.video-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.video-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Video Section */


/* Why Section */
.why-section {
    padding: var(--section-padding);
}

.why-content h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gray-800);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.why-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.why-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* تصویر why-card با نسبت 4:3 */
.why-card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-lg);
}

.why-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;

}

.why-card:hover .why-card-image img {
    transform: scale(1.05);
}

/* محتوای متنی why-card */
.why-card-content {
    padding: 2rem;
}

.why-card-image.no-image {
    background: var(--gradient-primary);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card-image.no-image::before {
    content: '📱';
    font-size: 3rem;
}

/* تنظیمات ریسپانسیو */
@media (max-width: 768px) {
    .why-card-content {
        padding: 1.5rem;
    }

    .why-card h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .why-card-content {
        padding: 1rem;
    }
}

/* Why Section */


/* Products Section */
.products-section {
    padding: var(--section-padding);
    background: var(--gray-50);
}

.products-header {
    text-align: center;
    margin-bottom: 3rem;
}

.products-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.products-header p {
    font-size: 1.1rem;
    color: var(--gray-600);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-info h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
}

.product-info p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

.slideshow {
    position: relative;
}

.slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slides-wrapper img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.slides-wrapper img.slide.active {
    opacity: 1;
}


/* Products Section */


/* Features Section */
.features-section {
    padding: var(--section-padding);
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Features Section */