/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0F172A;
    --accent-color: #3B82F6;
    --accent-hover: #2563EB;
    --success-color: #10B981;
    --text-gray: #64748B;
    --light-gray: #F1F5F9;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --purple-accent: #8B5CF6;
    --orange-accent: #F59E0B;
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-secondary: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --gradient-purple: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-gray);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Decorative Elements */
.section-decoration {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    filter: blur(40px);
    z-index: -1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.logo {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* تغییر بک‌گراند منوی همبرگر از خاکستری به سفید */

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px; /* اضافه کردن padding برای فضای بیشتر */
    background: #FFFFFF; /* تغییر از خاکستری به سفید */
    border-radius: 6px; /* گرد کردن گوشه‌ها */
    border: none; /* حذف border */
    transition: all 0.3s ease; /* انیمیشن برای hover */
}

.mobile-menu:hover {
    background: #F9FAFB; /* رنگ خیلی روشن برای hover */
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--primary-color); /* خطوط داخل منو */
    transition: all 0.3s ease;
    border-radius: 2px;
    margin: 2px 0; /* فاصله بین خطوط */
}

.mobile-menu:hover span {
    background: var(--accent-color); /* تغییر رنگ خطوط در hover */
}

/* حالت active (وقتی منو باز است) */
.mobile-menu.active {
    background: #FFFFFF;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section Enhanced */
.hero {
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 50%, #DBEAFE 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-reverse 15s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-10deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-badge::before {
    content: "✓";
    font-size: 1.25rem;
}

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.15));
    border-radius: 20px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 20%;
    right: -50px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    left: -50px;
    animation-delay: 2s;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trusted By Section */
.trusted-by {
    padding: 4rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
}

.trusted-by-container {
    text-align: center;
}

.trusted-by h3 {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 2rem;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.trusted-logos:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.trusted-logos img {
    height: 40px;
    width: auto;
}

/* Services Section Enhanced */
.services {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:nth-child(3)::before,
.service-card:nth-child(4)::before {
    background: var(--gradient-purple);
}

.service-card:nth-child(5)::before,
.service-card:nth-child(6)::before {
    background: var(--gradient-secondary);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(59, 130, 246, 0.1);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-icon::after {
    content: "✓";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.1);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.service-card:hover .service-icon::after {
    top: 150%;
    right: 150%;
}

.service-card:nth-child(3) .service-icon,
.service-card:nth-child(4) .service-icon {
    border-color: var(--purple-accent);
    color: var(--purple-accent);
    background: rgba(139, 92, 246, 0.1);
}

.service-card:nth-child(5) .service-icon,
.service-card:nth-child(6) .service-icon {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.service-card:nth-child(3):hover .service-icon,
.service-card:nth-child(4):hover .service-icon {
    background: var(--purple-accent);
    color: var(--white);
}

.service-card:nth-child(5):hover .service-icon,
.service-card:nth-child(6):hover .service-icon {
    background: var(--success-color);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.service-features {
    list-style: none;
    margin-top: 2rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 2rem;
    font-size: 1.0625rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.25rem;
}

.service-cta {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.service-cta:hover {
    gap: 1rem;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.portfolio-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Case Studies Section */
.case-studies {
    padding: 6rem 0;
    background: #edeff1;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.case-study:nth-child(even) {
    direction: rtl;
}

.case-study:nth-child(even) > * {
    direction: ltr;
}

.case-study-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.metric {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 16px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    display: block;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
    padding: 0.5rem;
}

.case-study-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Team Section */
.team {
    padding: 6rem 0;
    background: var(--light-gray);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.team-member {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-member-image {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .team-member-image img {
    transform: scale(1.1);
}

.team-member-info {
    padding: 2rem;
}

.team-member-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.team-member-role {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member-bio {
    font-size: 0.875rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-social a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Why Choose Us Enhanced */
.why-us {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.why-us-features {
    display: grid;
    gap: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: var(--light-gray);
    transform: translateX(10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.feature-content h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Process Section Enhanced */
.process {
    padding: 6rem 0;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0E7FF 100%);
    position: relative;
}

.process-timeline {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto;
}

.process-timeline::before {
    content: "✓";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 90%;
    position: relative;
}

.timeline-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

.timeline-item:nth-child(odd) .timeline-number {
    right: -80px;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -80px;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--light-gray);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 400;
}

.pricing-description {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
}

/* Testimonials Enhanced */
.testimonials {
    padding: 6rem 0;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: 50px;
    font-size: 300px;
    color: var(--accent-color);
    opacity: 0.05;
    font-family: serif;
}

.testimonials-slider {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-content {
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.author-info p {
    font-size: 1rem;
    color: var(--text-gray);
}

.author-company {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
}

.stars {
    color: #FDB833;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Blog Section */
.blog {
    padding: 6rem 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.blog-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--accent-color);
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 1rem;
}

/* Awards Section */
.awards {
    padding: 3rem 0;
    background: var(--light-gray);
}

.awards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.award-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.award-item:hover {
    transform: scale(1.1);
}

.award-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.award-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.award-year {
    color: var(--text-gray);
    font-size: 0.75rem;
}

/* FAQ Section Enhanced */
.faq {
    padding: 6rem 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 4rem;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 2rem;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    color: var(--accent-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

/* CTA Banner Enhanced */
.cta-banner {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-color), #1E293B);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section Enhanced */
.contact {
    padding: 6rem 0;
    background: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    transform: translateX(10px);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.office-hours {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.office-hours h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hours-list li:last-child {
    border-bottom: none;
}

/* Footer Enhanced */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-color), var(--success-color), var(--purple-accent));
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand .logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.125rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 2;
}

.footer-section a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.newsletter {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.newsletter h4 {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--white);
}


/* Who We Are Section */
.who-we-are {
    padding: 6rem 0 0 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.who-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
    background: #779be3;
    padding: 6rem 0;
    margin-left: -100vw;
    margin-right: -100vw;
    padding-left: 100vw;
    padding-right: 100vw;
}

.who-image {
    position: relative;
}

.who-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.who-image img:hover {
    transform: scale(1.02);
}

.who-text h3 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: var(--white) !important;
    margin-bottom: 1.5rem !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.story-content {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.2;
}

.story-content p {
    margin-bottom: 1rem;
    opacity: 0.95;
    color: var(--white);
    line-height: 1.3;
}

.story-content strong {
    color: var(--white);
    font-weight: 500;
}

.story-content .highlight-text {
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Who We Are - Section Header Override */
.who-we-are .section-subtitle {
    color: var(--accent-color);
}

.who-we-are .section-header h2 {
    color: var(--primary-color);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

.who-we-are .section-header p {
    color: var(--text-gray);
}






/* Our Story Mobile Card Overlay */
@media (max-width: 768px) {
    .who-we-are .who-text {
        position: relative;
    }
    
    /* کادر شفاف سفید روی بدنه آبی - مثل service-card-modern */
    .who-we-are .who-text::before {
        content: '';
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
        background: rgba(255, 255, 255, 0.1); /* سفید شفاف 10 درصد */
        border-radius: 20px;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1.7px solid rgba(255, 255, 255, 0.15); /* سفید کم‌رنگ */
        box-shadow: 0 8px 32px 0 rgba(119,155,227,0.10), 0 1.5px 7px 0 rgba(16,24,40,0.03);
        z-index: 1;
    }
    
    /* محتوا روی کادر */
    .who-we-are .who-text > * {
        position: relative;
        z-index: 2;
    }
    
    /* تیتر Our Story - مثل service h3 */
    .who-we-are .who-text h3 {
        text-align: left !important;
        font-size: 1.24rem !important; /* مثل service h3 */
        margin-bottom: 0.4rem !important; /* مثل service h3 */
        color: #FFFFFF !important;
        font-weight: 700 !important;
        padding: 2.4rem 2rem 0 2rem !important; /* مثل service-card padding */
    }
    
    /* بدنه متن - مثل service-desc-modern */
    .who-we-are .story-content {
        text-align: left !important;
        line-height: 1.61 !important; /* مثل service-desc-modern */
        font-size: 1.06rem !important; /* مثل service-desc-modern */
        padding: 1.15rem 2rem 2rem 2rem !important; /* مثل service spacing */
    }
    
    .who-we-are .story-content p {
        text-align: left !important;
        margin-bottom: 1.15rem !important; /* مثل service-desc-modern */
        line-height: 1.61 !important;
        color: #FFFFFF !important;
    }
    
    .who-we-are .story-content .highlight-text {
        text-align: left !important;
        font-weight: 600 !important;
        margin-bottom: 0 !important;
        color: #FFFFFF !important;
    }
    
    .who-we-are .story-content strong {
        color: #FFFFFF !important;
    }
}

@media (max-width: 480px) {
    /* موبایل کوچکتر */
    .who-we-are .who-text::before {
        left: 0.25rem;
        right: 0.25rem;
        top: 0.25rem;
        bottom: 0.25rem;
        border-radius: 16px;
    }
    
    .who-we-are .who-text h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.3rem !important;
        padding: 2rem 1.5rem 0 1.5rem !important;
    }
    
    .who-we-are .story-content {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        padding: 1rem 1.5rem 1.5rem 1.5rem !important;
    }
    
    .who-we-are .story-content p {
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }
}






/* Mobile Responsive */
@media (max-width: 1024px) {
    .who-content {
        gap: 3rem;
    }
    
    .who-text h3 {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .who-we-are {
        padding: 4rem 0 0 0;
    }
    
    .who-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 4rem 1rem;
        margin-top: 3rem;
        margin-left: -50vw;
        margin-right: -50vw;
        padding-left: 50vw;
        padding-right: 50vw;
    }
    
    .who-text h3 {
        font-size: 1.75rem !important;
    }
    
    .story-content {
        font-size: 1rem;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .who-we-are {
        padding: 3rem 0 0 0;
    }
    
    .who-content {
        padding: 3rem 1rem;
        margin-top: 2rem;
        margin-left: -25vw;
        margin-right: -25vw;
        padding-left: 25vw;
        padding-right: 25vw;
    }
    
    .who-text h3 {
        font-size: 1.5rem !important;
        font-weight: 800 !important;
    }
}
/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
    @media (max-width: 1024px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .services-grid {
            grid-template-columns: 1fr;
        }
    }

    .case-study {
        grid-template-columns: 1fr;
    }

    .case-study:nth-child(even) {
        direction: ltr;
    }


@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero-content,
    .why-us-content,
    .contact-container,
    .footer-content,
    .case-study {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .timeline-item {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-number {
        display: none;
    }

    .process-timeline::before {
        display: none;
    }

    .services-grid,
    .testimonials-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .floating-card {
        display: none;
    }

    .cta-banner h2 {
        font-size: 2rem;
    }

    .cta-banner p {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid,
    .portfolio-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.faq {
padding: 6rem 0;
background: #f5f7fb; 
}

.faq-modern {
max-width: 680px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1.4rem;
margin-top: 3rem;
}

/* --- Ú©Ø§Ø±Øª FAQ --- */
.faq-modern-item {
background: #f9fafb;
border-radius: 16px;
box-shadow: 0 6px 30px 0 rgba(30, 41, 59, 0.07), 0 1.5px 4px rgba(100,116,139,0.06);
border: 1.3px solid #ececec;
overflow: hidden;
position: relative;
transition:
box-shadow .21s cubic-bezier(.4,0,.2,1),
border-color .26s,
background .23s;
}

.faq-modern-item.open {
box-shadow: 0 12px 40px 0 rgba(99,102,241,.16), 0 2.5px 8px rgba(100,116,139,0.08);
border-color: var(--accent-color, #6366F1);
background: linear-gradient(104deg,#f9fafb 80%,#f1f5fd 100%);
}
.faq-modern-item.open::before {
content: "";
position: absolute;
left: 0; top: 0; bottom: 0; width: 3.5px;
background: var(--accent-color, #6366F1);
border-radius: 2px;
transition: background .2s;
}
.faq-modern-item:hover:not(.open) {
box-shadow: 0 14px 32px 0 rgba(30,41,59,0.14), 0 1.2px 5px rgba(99,102,241,0.05);
border-color: #e0e7ef;
background: #f3f6fa;
}

/* --- Ø³ÙˆØ§Ù„ --- */
.faq-modern-question {
background: none;
border: none;
outline: none;
width: 100%;
text-align: left;
padding: 1.45rem 1.2rem 1.45rem 2.5rem;
font-size: 1.13rem;
font-weight: 700;
color: #2d3748;
display: flex;
align-items: center;
gap: 0.85rem;
cursor: pointer;
position: relative;
transition: color .16s;
}
.faq-modern-item.open .faq-modern-question {
color: var(--accent-color, #6366F1);
}


.faq-icon {
display: inline-flex;
font-size: 1.33rem;
opacity: 0.68;
}


.faq-arrow {
margin-left: auto;
width: 24px; height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
}
.faq-arrow::before {
content: '';
display: block;
width: 13px;
height: 13px;
border-bottom: 2.2px solid #cbd5e1;
border-right: 2.2px solid #cbd5e1;
transform: rotate(45deg);
transition: border-color .18s, transform .25s cubic-bezier(.65,.05,.36,1);
}
.faq-modern-item.open .faq-arrow::before {
border-color: var(--accent-color, #6366F1);
transform: rotate(135deg);
}

.faq-modern-answer {
max-height: 0;
padding: 0 2rem;
overflow: hidden;
opacity: 0;
font-size: 1.065rem;
color: #5c6573;
line-height: 1.78;
transition: max-height 0.33s cubic-bezier(0.4,0,0.2,1), opacity 0.28s, padding 0.21s;
}
.faq-modern-item.open .faq-modern-answer {
max-height: 380px;
opacity: 1;
padding: 0 2rem 1.75rem 2rem;
}

@media (max-width: 700px) {
.faq-modern {margin-top:2rem;}
.faq-modern-question {padding: 1rem 0.5rem 1rem 2rem;}
.faq-modern-answer {padding: 0 1.1rem;}
.faq-modern-item.open .faq-modern-answer {padding: 0 1.1rem 1.2rem 1.1rem;}
}

@media (prefers-color-scheme: light) {
.faq-modern-item {
box-shadow: 0 7px 28px rgba(100,116,139,0.09);
}
}


/* Modern Services Cards */
.service-card-modern {
background: rgba(255,255,255, 0.97);
box-shadow: 0 8px 32px 0 rgba(59,130,246,0.10), 0 1.5px 7px 0 rgba(16,24,40,0.03);
border-radius: 20px;
padding: 2.4rem 2rem 2rem 2rem;
border: 1.7px solid rgba(59,130,246,0.11);
transition: box-shadow .18s cubic-bezier(.4,0,.2,1), transform .16s cubic-bezier(.4,0,.2,1), border .2s;
position: relative;
overflow: visible;
min-height: 360px;
}
.service-card-modern:hover {
box-shadow: 0 18px 48px 0 rgba(59,130,246,0.18), 0 2px 16px 0 rgba(16,24,40,.10);
transform: translateY(-7px) scale(1.022);
border-color: var(--accent-color,#3B82F6);
z-index:2;
}
.service-icon-modern {
background: rgba(59,130,246,0.12);
border-radius: 14px;
padding: 0.7rem;
width: 48px;
height: 48px;
margin-bottom: 1.2rem;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 18px 0 rgba(59,130,246,.07);
}
h3 {
font-size: 1.24rem !important;
font-weight: 700;
margin-bottom: 0.4rem;
}
.service-desc-modern {
color: #64748B;
font-size: 1.06rem;
margin-bottom: 1.15rem;
line-height: 1.61;
}
.service-features-modern {
list-style: none;
padding: 0;
margin: 0 0 0.1rem 0;
}
.service-features-modern li {
padding: 0.34rem 0 0.34rem 1.45rem;
font-size: 1.025rem;
color: #3b4151;
position: relative;
}
.service-features-modern li::before {
content: "✓";
position: absolute;
left: 0;
color: var(--accent-color, #3B82F6);
font-weight: bold;
font-size: 1.13rem;
}

.accent-blue { --accent-color: #3B82F6; }      /* Blue */
.accent-purple { --accent-color: #8B5CF6; }
.accent-green { --accent-color: #10B981; }
.accent-yellow { --accent-color: #F59E42; }
.accent-orange { --accent-color: #F472B6; }
.accent-red { --accent-color: #F43F5E; }

@media (max-width: 997px) {
.services-grid {
grid-template-columns: 1fr 1fr !important;
gap: 1.3rem !important;
}
}
@media (max-width: 700px) {
.services-grid {
grid-template-columns: 1fr !important;
gap: 1rem !important;
}
}




    nav {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 1000;
        box-shadow: 0 1px 40px rgba(0, 0, 0, 0.03);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
    }

    nav.scrolled {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    }

    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        height: 60px;
    }

    .logo {
        font-size: 1.5rem;
        font-weight: 800;
        text-decoration: none;
        color: var(--primary-color);
        letter-spacing: -0.5px;
        transition: transform 0.3s ease;
    }

    .logo:hover {
        transform: scale(1.05);
    }

    .logo span {
        background: linear-gradient(135deg, var(--accent-color), var(--purple-accent));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .nav-links {
        display: flex;
        list-style: none;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        position: relative;
        transition: all 0.3s ease;
        display: block;
    }

    .nav-links li:not(.nav-cta) a::before {
        content: attr(data-text);
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: var(--accent-color);
        font-weight: 600;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links li:not(.nav-cta) a:hover {
        color: transparent;
    }

    .nav-links li:not(.nav-cta) a:hover::before {
        opacity: 1;
    }

    .nav-links li:not(.nav-cta) a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transform: translateX(-50%);
        transition: width 0.3s ease;
    }

    .nav-links li:not(.nav-cta) a:hover::after {
        width: 80%;
    }

    .nav-cta {
        margin-left: 1rem;
    }

    .btn-nav {
        background: linear-gradient(135deg, var(--accent-color), var(--purple-accent));
        color: var(--white) !important;
        padding: 0.6rem 1.8rem !important;
        border-radius: 50px;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        text-decoration: none;
        transition: all 0.3s ease;
        display: inline-block;
        position: relative;
        overflow: hidden;
    }

    .btn-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s ease;
    }

    .btn-nav:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

    .btn-nav:hover::before {
        left: 100%;
    }


    @media (max-width: 768px) {
        .nav-links {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            flex-direction: column;
            padding: 2rem 0;
            transform: translateY(-20px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        .nav-links.active {
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

        .nav-links li {
            width: 100%;
            text-align: center;
            margin: 0.5rem 0;
        }

        .nav-links a {
            padding: 0.75rem 2rem;
            font-size: 1rem;
        }

        .nav-cta {
            margin-left: 0;
            margin-top: 1rem;
        }

        .mobile-menu {
            display: flex;
        }
    }



    .portfolio {
        padding: 5rem 0;
        background: var(--light-gray);
        position: relative;
        overflow: hidden;
    }
    
    .portfolio-slider-wrapper {
        position: relative;
        max-width: 1200px;
        margin: 4rem auto 0;
        padding: 0 4rem;
    }
    
    .portfolio-slider {
        overflow: hidden;
        border-radius: 20px;
    }
    
    .portfolio-track {
        display: flex;
        transition: transform 0.5s ease;
        gap: 1.5rem;
    }
    
    .portfolio-slide {
        min-width: calc(33.333% - 1rem);
        flex-shrink: 0;
    }
    
    .portfolio-card {
        background: var(--white);
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    
    .portfolio-image {
        height: 200px;
        overflow: hidden;
        position: relative;
        margin-top: 1rem;
    }
    
    .portfolio-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .portfolio-card:hover .portfolio-image img {
        transform: scale(1.05);
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .portfolio-content h4 {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color);
    }
    
    .portfolio-content p {
        font-size: 0.875rem;
        color: var(--text-gray);
        margin-bottom: 1rem;
    }
    
    .portfolio-tags {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .portfolio-tags span {
        padding: 0.25rem 0.75rem;
        background: var(--light-gray);
        color: var(--text-gray);
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    .portfolio-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        display: flex;
        justify-content: space-between;
        pointer-events: none;
    }
    
    .portfolio-nav button {
        width: 45px;
        height: 45px;
        background: var(--white);
        border: none;
        border-radius: 50%;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        pointer-events: all;
    }
    
    .portfolio-nav button:hover {
        background: var(--accent-color);
        color: var(--white);
        transform: scale(1.1);
    }
    
    .portfolio-prev {
        margin-left: -20px;
    }
    
    .portfolio-next {
        margin-right: -20px;
    }
    
    .portfolio-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 2rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .dot.active {
        width: 24px;
        background: var(--accent-color);
        border-radius: 4px;
    }
    
    @media (max-width: 1024px) {
        .portfolio-slide {
            min-width: calc(50% - 0.75rem);
        }
    }
    
    @media (max-width: 768px) {
        .portfolio-slider-wrapper {
            padding: 0 2rem;
        }
        
        .portfolio-slide {
            min-width: 100%;
        }
        
        .portfolio-nav button {
            width: 40px;
            height: 40px;
            font-size: 1.25rem;
        }
    }



    footer {
        background: #0A0E1B;
        color: #E2E8F0;
        padding: 0;
        margin-top: 1rem;
        position: relative;
        overflow: hidden;
    }
    
    footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, #3B82F6, transparent);
    }
    
    .footer-top {
        background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
        padding: 4rem 0;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-cta h3 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #FFFFFF;
    }
    
    .footer-cta p {
        font-size: 1.25rem;
        color: #94A3B8;
        margin-bottom: 2rem;
    }
    
    .footer-main {
        padding: 5rem 0 3rem;
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 6rem;
    }
    
    .footer-brand-section {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-logo {
        display: inline-block;
        text-decoration: none;
    }
    
    .logo-text {
        font-size: 2rem;
        font-weight: 800;
        color: #FFFFFF;
    }
    
    .logo-text span {
        background: linear-gradient(135deg, #3B82F6, #60A5FA);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .footer-tagline {
        font-size: 1.125rem;
        color: #94A3B8;
        line-height: 1.6;
    }
    
    .footer-contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-contact-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        color: #CBD5E1;
        font-size: 0.95rem;
    }
    
    .footer-contact-item a {
        color: #CBD5E1;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer-contact-item a:hover {
        color: #3B82F6;
    }
    
    .contact-icon {
        font-size: 1.125rem;
    }
    
    .footer-social {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94A3B8;
        transition: all 0.3s ease;
    }
    
    .social-link:hover {
        background: #3B82F6;
        border-color: #3B82F6;
        color: #FFFFFF;
        transform: translateY(-3px);
    }
    
    .footer-links-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #FFFFFF;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .footer-column ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-column a {
        color: #94A3B8;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.3s ease;
        position: relative;
    }
    
    .footer-column a:hover {
        color: #3B82F6;
        padding-left: 5px;
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .copyright {
        color: #64748B;
        font-size: 0.875rem;
    }
    
    .footer-badges {
        display: flex;
        gap: 1.5rem;
    }
    
    .badge {
        padding: 0.375rem 0.875rem;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 20px;
        font-size: 0.75rem;
        color: #60A5FA;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    @media (max-width: 1024px) {
        .footer-main {
            grid-template-columns: 1fr;
            gap: 4rem;
        }
        
        .footer-links-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    
    @media (max-width: 768px) {
        .footer-cta h3 {
            font-size: 2rem;
        }
        
        .footer-links-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        .footer-bottom {
            flex-direction: column;
            gap: 1.5rem;
            text-align: center;
        }
        
        .footer-badges {
            flex-wrap: wrap;
            justify-content: center;
        }
    }
    
    /* ===== MOBILE SERVICE BANNERS ===== */
/* Hide banners by default on all screen sizes */
.mobile-only-banner {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* Mobile-specific styles */
@media only screen and (max-width: 768px) {
    /* Show banners only on mobile */
    .mobile-only-banner {
        display: block !important;
        visibility: visible;
        height: auto;
        overflow: visible;
        margin: 2rem 0;
        width: 100%;
    }
    
    /* Override the existing grid styles for services on mobile */
    .services .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        grid-template-columns: none !important;
    }
    
    /* Set order for all items to show banners in correct position */
    .services-grid > .service-card-modern:nth-child(1) { order: 1; }  /* SEO */
    .services-grid > .service-card-modern:nth-child(2) { order: 2; }  /* Web Design */
    .services-grid > .mobile-only-banner:nth-child(3) { order: 3; }   /* Banner 1 */
    .services-grid > .service-card-modern:nth-child(4) { order: 4; }  /* Digital Marketing */
    .services-grid > .service-card-modern:nth-child(5) { order: 5; }  /* Workflow */
    .services-grid > .mobile-only-banner:nth-child(6) { order: 6; }   /* Banner 2 */
    .services-grid > .service-card-modern:nth-child(7) { order: 7; }  /* Copywriting */
    .services-grid > .service-card-modern:nth-child(8) { order: 8; }  /* Branding */
}

/* Desktop-specific styles - ensure banners stay hidden */
@media only screen and (min-width: 769px) {
    .mobile-only-banner {
        display: none !important;
        position: absolute;
        visibility: hidden;
        width: 0;
        height: 0;
        overflow: hidden;
    }
    
    /* Ensure services grid stays as 3 columns on desktop */
    .services .services-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
}

/* Extra specificity to override any conflicts */
@media print {
    .mobile-only-banner {
        display: none !important;
    }
}







/* تغییرات برای Hero Section در موبایل */

/* 1. مخفی کردن hero-badge در موبایل */
@media (max-width: 768px) {
    .hero-badge {
        display: none !important;
    }
    
    /* 2. تنظیم تیتر اصلی - فاصله از بالا و کناره‌ها */
    .hero-text h1 {
        margin-top: 2rem !important;
        padding: 0 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* 3. تنظیم دکمه‌های CTA برای موبایل */
    .hero-text div[style*="margin-top: 2rem"] {
        margin-top: 2rem !important;
        display: flex !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-text .btn {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        white-space: nowrap !important;
        flex: 1 !important;
        max-width: none !important;
        text-align: center !important;
    }
    
    .hero-text .btn-primary {
        min-width: auto !important;
    }
    
    .hero-text .btn-secondary {
        min-width: auto !important;
    }
}

/* در صورت نیاز به تنظیمات اضافی برای صفحه‌نمایش‌های کوچکتر */
@media (max-width: 480px) {
    .hero-text h1 {
        margin-top: 1.5rem !important;
        padding: 0 0.75rem !important;
    }
    
    .hero-text .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }
}


