:root {
    --primary-color: #2563eb; /* آبی اصلی */
    --secondary-color: #1e293b; /* سرمه‌ای تیره */
    --accent-color: #f59e0b; /* نارنجی برای تاکید */
    --light-bg: #f8fafc;
    --text-color: #334155;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header / Navbar */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    height: 48px; /* Adjust as needed */
    vertical-align: middle;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Hero Section */
.hero {
    /* استفاده از گرادینت تیره روی عکس پس‌زمینه برای خوانایی بهتر متن */
    background: linear-gradient(rgba(30, 41, 59, 0.8), rgba(30, 41, 59, 0.8)), url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e2e8f0;
}

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

/* Why Us Section */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #64748b;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 12px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.service-card h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.service-list {
    list-style: disc;
    padding-right: 20px;
    margin-top: 20px;
}

.service-list li {
    margin-bottom: 10px;
}

/* Process Section */
.process-steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    min-width: 150px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

/* Portfolio Placeholder */
.portfolio-placeholder {
    height: 200px; 
    background: #ddd; 
    border-radius: 8px; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: #666;
}

.portfolio-placeholder img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    object-fit: cover;
}

/* FAQ */
.faq-item {
    background: var(--light-bg);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
}

.faq-question {
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* CTA Final */
.cta-section {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a:hover {
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 0.9rem;
}

/* --- HAMBURGER MENU STYLES --- */
.hamburger {
    display: none; /* Hidden on desktop */
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--secondary-color);
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    /* 1. Reset Navbar layout for mobile */
    .navbar {
        position: relative; /* Needed for absolute positioning of menu */
        justify-content: space-between;
        padding: 0 20px;
    }

    /* 2. Show Hamburger */
    .hamburger {
        display: block;
        z-index: 1001; /* Ensure it sits above the menu */
    }

    /* 3. Animate Hamburger to X when active */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* 4. Style the Mobile Menu (Hidden by default) */
    .nav-links {
        position: fixed; /* Fixed covers the screen better on scroll */
        left: -100%; /* Hide off-screen to the left */
        top: 80px; /* Below the header */
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding-bottom: 20px;
    }

    /* 5. Show menu when active */
    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links a {
        margin: 16px 0;
        display: block;
        font-size: 1.1rem;
    }

    /* 6. Hide the header CTA button on mobile to save space 
       (The user can use the big button in the Hero section instead) */
    .header-btn {
        display: none; 
    }
}

/* Mobile Adjustments (Responsive) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        height: auto;
        padding: 20px 20px;
    }
    .nav-links {
        margin: 20px 0;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .process-steps {
        flex-direction: column;
    }
}