/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    background-color: #fafafa;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.btn-primary {
    background: linear-gradient(135deg, #007AFF, #005ADB);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #005ADB, #004BB8);
    color: white !important;
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: transparent !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid white !important;
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 20%, #2c3e50 40%, #34495e 60%, #2a2a2a 80%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 60px;
}

.hero-content {
    color: white !important;
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Video */
.hero-video {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

/* Video hover effect removed */

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.hero-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
    border-radius: 20px;
    z-index: 1;
    pointer-events: none;
}

.hero-video .video-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
}

.hero-video .video-fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 28px;
    color: white !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.highlight {
    color: #ffd700 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.92;
    line-height: 1.7;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 45px;
    padding-left: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: white !important;
}

.hero-features .feature-icon {
    background: linear-gradient(135deg, #007AFF, #005ADB);
    color: white !important;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25);
    flex-shrink: 0;
    font-size: 14px;
    font-weight: bold;
}

.hero-features .feature-icon:hover {
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 3px 10px rgba(0, 122, 255, 0.35);
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Removed unused slider styles - replaced with video */

/* Trust Section */
.trust-section {
    padding: 60px 0;
    background: white;
}

.trust-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-number {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 8px;
}

.trust-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3c72;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #007AFF, #005ADB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    pointer-events: none;
}

.service-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 122, 255, 0.4);
}

.service-icon .icon {
    width: 42px;
    height: 42px;
    stroke-width: 1.8;
    z-index: 1;
    position: relative;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 16px;
}

.service-card p {
    color: #666;
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    text-align: right;
}

.service-features li {
    padding: 8px 0;
    color: #555;
    position: relative;
    padding-right: 24px;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: #4CAF50;
    font-weight: bold;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: white;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 12px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.testimonial-content {
    margin-bottom: 24px;
}

.testimonial-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 4px;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    color: #2c3e50 !important;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #007AFF, #005ADB);
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 150%, rgba(0, 122, 255, 0.05) 30%, transparent 70%),
                      radial-gradient(circle at 80% -50%, rgba(0, 90, 219, 0.05) 40%, transparent 80%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50 !important;
    position: relative;
}

.contact-info h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #005ADB, #007AFF);
    border-radius: 2px;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.7;
    color: #4a5568 !important;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.feature-icon {
    background: linear-gradient(135deg, #007AFF, #005ADB);
    color: white !important;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.25);
    flex-shrink: 0;
}

.feature-icon:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.35);
}

.feature-icon .icon {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.contact-section .feature h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50 !important;
}

.contact-section .feature p {
    opacity: 0.8;
    margin: 0 0 8px;
    color: #2c3e50 !important;
}

.contact-link {
    display: inline-block;
    color: #007AFF !important;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    direction: rtl;
    text-align: right;
}

/* Phone number specific style */
a[href^="tel:"].contact-link {
    direction: ltr !important;
    unicode-bidi: bidi-override;
    display: block;
}

.contact-link:hover {
    color: #005ADB !important;
    transform: translateX(-3px);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 122, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007AFF, #005ADB);
    opacity: 0.7;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8eef4;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2c3e50;
}

/* Style for LTR inputs */
.form-group input[dir="ltr"] {
    text-align: left;
    padding-left: 16px;
}

/* Style for auto-direction inputs */
.form-group input[dir="auto"],
.form-group textarea[dir="auto"] {
    text-align: start;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #ccd9e6;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: #1a1a1a;
    color: white !important;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white !important;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
    color: white !important;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    /* Mobile hero adjustments */
    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-inner {
        gap: 40px;
    }

    .hero-video {
        height: 350px;
        max-width: 500px;
        margin: 0 auto;
        border-radius: 16px;
    }

    .service-icon {
        width: 75px;
        height: 75px;
        margin: 0 auto 20px;
    }

    .service-icon .icon {
        width: 32px;
        height: 32px;
    }

    .hero-features .feature-icon {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }

    .hero-video video,
    .hero-video .video-overlay,
    .hero-video .video-fallback,
    .hero-video .video-fallback img {
        border-radius: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .trust-indicators {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    /* Small mobile slider adjustments */
    .hero-slider {
        height: 250px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for form submission */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#submitBtn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#submitBtn.loading span {
    opacity: 0.7;
}

#submitBtn.loading .loading-spinner {
    display: inline-block;
} 