/* -------------------- reset & base -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    background-color: #f9fafc;
    color: #1e293b;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* -------------------- header & navigation -------------------- */
header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li a {
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #1e293b;
}

/* -------------------- buttons -------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.btn-light {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.btn-light:hover {
    background: #eff6ff;
}

/* -------------------- hero -------------------- */
.hero {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    border-radius: 0 0 30px 30px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* -------------------- cards -------------------- */
.cards-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #0f172a;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.8rem;
}

/* -------------------- cta -------------------- */
.cta {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 3rem 0;
    border-radius: 30px 30px 0 0;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 1.5rem;
}

/* -------------------- footer -------------------- */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding-top: 2.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about h4, .footer-links h4, .footer-social h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    font-size: 1.5rem;
    margin-left: 1rem;
    color: #cbd5e1;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* -------------------- page header (about, services, contact) -------------------- */
.page-header {
    background: linear-gradient(120deg, #2563eb, #7c3aed);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* -------------------- about page -------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

.about-image i {
    font-size: 12rem;
    color: #2563eb;
    text-align: center;
    display: block;
}

.team {
    background: #f1f5f9;
    padding: 3rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member i {
    font-size: 3rem;
    color: #2563eb;
}

/* -------------------- services page -------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
}

.service-item {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-item i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.faq {
    padding: 2rem 0 4rem;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
}

.faq-item h3 {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item p {
    display: none;
    margin-top: 1rem;
    color: #475569;
}

.faq-item.open p {
    display: block;
}

/* -------------------- contact page -------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    padding: 3rem 0;
}

.contact-info ul {
    margin: 1.5rem 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-placeholder {
    background: #e2e8f0;
    padding: 1.5rem;
    text-align: center;
    border-radius: 16px;
    margin-top: 1rem;
}

.map-placeholder i {
    font-size: 3rem;
    color: #2563eb;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-family: inherit;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.error-message {
    color: #e11d48;
    font-size: 0.8rem;
    margin-top: 5px;
}

.form-result {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}

/* -------------------- responsive -------------------- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 70%;
        height: calc(100vh - 70px);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding: 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-image i {
        font-size: 8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .btn {
        padding: 8px 20px;
    }
}