/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #06D6A0;
    --secondary-dark: #05B384;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --error: #EF4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Header Styles */
header {
    background-color: var(--surface);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin: 0 12px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Button Styles */
.cta-button, .secondary-button {
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button {
    background-color: var(--primary);
    color: white;
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.secondary-button {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-button:hover {
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #CBD5E0;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.cta-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
}

.fa-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#formMessage {
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background-color: var(--surface);
    color: var(--text-primary);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-brand .logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    background-color: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.scroll-to-top {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.scroll-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
    gap: 15px;
}

.copyright p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.copyright strong {
    color: var(--primary);
}

.footer-links-mini {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    right: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.footer-link:hover::after {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 50px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text {
        margin-bottom: 50px;
    }
    
    .features-container {
        flex-direction: column;
    }
    
    .feature-main, .feature-details {
        width: 100%;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        background-color: var(--surface);
        width: 80%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: right 0.3s;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 15px 0;
    }
    
    .nav-container {
        padding: 15px 0;
        position: relative;
    }
    
    .nav-container .cta-button {
        display: none;
    }
    
    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }

    section {
        padding: 60px 0;
    }

    .stats-title h2 {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
    
    .feature-main {
        padding: 30px;
    }
    
    .feature-main h2 {
        font-size: 1.8rem;
    }
    
    .feature-details {
        grid-template-columns: 1fr;
    }

    /* Responsive Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links-mini {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 80vh;
        padding: 90px 0 40px;
    }

    .service-card, .pricing-card, .feature-item {
        padding: 20px;
    }
    
    .hero-buttons .cta-button,
    .hero-buttons .secondary-button {
        width: 100%;
    }
    
    .feature-main {
        padding: 25px;
    }
    
    .testimonial-card {
        margin: 10px;
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }

    /* Mobile Footer */
    footer {
        padding: 30px 0 15px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
    
    .footer-links-mini {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title h2 {
        font-size: 1.4rem;
    }
    
    .logo img {
        width: 35px;
        height: 35px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
}

/* Tablet Hero Adjustments */
@media (max-width: 992px) and (min-height: 600px) {
    .hero {
        height: 85vh;
        min-height: 600px;
        max-height: 700px;
        padding: 100px 0 60px;
    }
}

/* Mobile Landscape */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
        padding: 80px 0 40px;
    }
}