:root {
    --primary-color: #0ea5e9;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --gray-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 20px;
    --border-radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "B Nazanin", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
    font-size: 18px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "B Nazanin", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: bold;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 25px;
}

section {
    padding: 100px 0;
}

/* ناوبری مدرن */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.9rem;
    font-weight: bold;
    color: var(--dark-color);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text span:first-child {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.logo-text span:last-child {
    font-size: 0.9rem;
    color: var(--gray-color);
    font-weight: normal;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 45px;
}

.nav-link {
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    padding: 8px 0;
    color: var(--dark-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s ease;
    border-radius: 2px;
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
}

.nav-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* هیرو مدرن */
.hero {
    padding-top: 200px;
    padding-bottom: 150px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -300px;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--dark-color) 30%, var(--primary-color) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    line-height: 1.9;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--gray-light);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1rem;
    color: var(--gray-color);
}

.hero-image {
    position: relative;
}

.hero-image-main {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.hero-image-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-main:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 25px;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* دکمه مدرن */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.3);
    gap: 12px;
    font-family: "B Nazanin", sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #7c3aed);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

/* بخش خدمات مدرن */
.services {
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    color: var(--dark-color);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray-color);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.9;
}

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

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 50px 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(14, 165, 233, 0.03));
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card:hover::before {
    background: linear-gradient(135deg, transparent, rgba(14, 165, 233, 0.08));
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 35px;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.service-content h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.service-content p {
    color: var(--gray-color);
    margin-bottom: 30px;
    line-height: 1.9;
}

.service-features {
    margin-top: 25px;
}

.service-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray-color);
}

.service-feature i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* بخش پروژه‌های مدرن */
.projects {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 45px;
}

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.project-content {
    padding: 35px;
}

.project-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.project-content p {
    color: var(--gray-color);
    margin-bottom: 25px;
    line-height: 1.8;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.project-category {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--gray-light);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

/* بخش فرآیند کار */
.process {
    background-color: white;
}

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

.process-steps::before {
    content: '';
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--secondary-color));
    z-index: 1;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-color);
    line-height: 1.8;
}

/* بخش تماس مدرن */
.contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    color: white;
}

.contact-info p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-detail-text h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.contact-detail-text p {
    opacity: 0.8;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 60px 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: bold;
    color: white;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: "B Nazanin", sans-serif;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* فوتر مدرن */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-bottom: 25px;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 30px;
    line-height: 1.9;
    font-size: 1.1rem;
}

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

.footer-social a {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-5px);
}

.footer-links h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: white;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-light);
    transform: translateX(-8px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    opacity: 0.7;
}

/* رسپانسیو */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .hero-container {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .hero {
        padding-top: 170px;
        padding-bottom: 100px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        right: -100%;
        flex-direction: column;
        background-color: white;
        width: 300px;
        height: calc(100vh - 100px);
        padding: 50px 30px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s ease;
        z-index: 999;
        gap: 30px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 16px 35px;
        font-size: 1rem;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .contact-form {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 1.9rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .service-card {
        padding: 40px 25px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
}