:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --container-padding: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    direction: rtl;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    background-color: #f8fafc;
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.nav {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    margin-right: auto;
}

.cta-button, .primary-button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    text-decoration: none;
}

.cta-button:hover, .primary-button:hover {
    background-color: var(--secondary-color);
}

main {
    margin-top: 80px;
    width: 100%;
    padding: 2rem 1rem;
}

.hero {
    max-width: 100%;
    margin: 0 auto 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 250px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.2), rgba(29, 78, 216, 0.1));
    z-index: 1;
}

.hero:hover .image-container img {
    transform: scale(1.05);
}

.features {
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: center;
}

.features h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-400);
}

.footer {
    background-color: white;
    padding: 4rem 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--gray-200);
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.footer-section p:last-child {
    margin-bottom: 0;
}

.footer-title-btn {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-align: right;
    width: 100%;
    color: var(--text-color);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    display: block;
    text-align: right;
    font-weight: 700;
}

.footer-title-btn:hover {
    color: var(--text-color);
    cursor: pointer;
}

@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo-image {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
        margin-top: 2rem;
    }

    .image-container {
        min-height: 300px;
    }

    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .footer-content > div {
        flex-direction: column;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

.about {
    padding: 1rem 2rem;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about-text {
    flex: 1;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        order: -1;
    }
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: row-reverse;
}

.login-button, .register-button {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.login-button {
    border: 1px solid var(--gray-300);
    color: var(--text-color);
}

.login-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.register-button {
    background-color: var(--primary-color);
    color: white;
}

.register-button:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .auth-buttons {
        gap: 0.5rem;
    }

    .login-button, .register-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* دکمه نمایش خدمات بیشتر */
.more-services-btn {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.more-services-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* مودال خدمات */
.services-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 1rem;
    position: relative;
}

.draggable {
    cursor: move;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-color);
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-400);
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.service-item {
    margin-bottom: 2rem;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-item li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.service-item li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    right: 0;
}

@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        margin: 10px;
    }
    
    .modal-body {
        max-height: 70vh;
    }

    .businesses-image {
        width: 100%;
    }
}

.businesses-content {
    text-align: center;
}

.businesses-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* استایل‌های آکاردئون */
.accordion {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 1200px;
    overflow: hidden;
}

.accordion-header {
    background-color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: var(--gray-100);
}

.accordion-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 500px;
    padding: 1.5rem;
}

/* بخش قهرمان */
.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-direction: row-reverse;
}

.secondary-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: all 0.2s;
}

.secondary-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* بخش خدمات */
.services {
    max-width: 1200px;
    margin: 0 auto 4rem;
    text-align: center;
    padding: 2rem 1rem;
}

.services h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-400);
}

/* بخش تماس با ما */
.contact {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 2rem 1rem;
}

.contact h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
}

/* فوتر جدید */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
    opacity: 0.7;
    font-size: 0.9rem;
}

.contact-form input:focus::placeholder,
.contact-form textarea:focus::placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
} 