/* ===== فونت ===== */
@font-face {
    font-family: 'IranFont';
    src: url('assets/fonts/iran.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== ریست ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IranFont', 'Vazirmatn', system-ui, sans-serif;
    background: #FFFFFF;
    color: #1A1A2E;
    line-height: 1.8;
    direction: rtl;
    padding: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== هدر ===== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: #FFFFFF;
    padding: 14px 20px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-bottom: 2px solid #f0f0f0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #00C853;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.85;
}

/* ===== منو ===== */
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    background: #f5f5f5;
    padding: 7px 18px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 13px;
    color: #1A1A2E;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav a:hover {
    background: #e8f5e9;
    border-color: #00C853;
    color: #00C853;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.15);
}

.nav a.active {
    background: #00C853;
    color: #FFFFFF;
}

.nav a.active:hover {
    background: #00B848;
}

/* ===== همبرگری ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: #00C853;
    border: none;
    padding: 8px 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 1001;
}

.hamburger:hover {
    background: #00B848;
    transform: scale(1.05);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 6px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== اوورلی ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ===== هیرو ===== */
.hero {
    text-align: center;
    padding: 40px 10px 30px;
    background: linear-gradient(180deg, #f8fff8 0%, #FFFFFF 100%);
    border-radius: 28px;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 40px;
    font-weight: 900;
    color: #1A1A2E;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: #00C853;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: #00C853;
    border-radius: 10px;
    opacity: 0.3;
}

.hero p {
    max-width: 680px;
    margin: 18px auto 28px;
    color: #666;
    font-size: 18px;
    line-height: 2;
}

.btn-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    padding: 13px 38px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 15px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: 'IranFont', 'Vazirmatn', system-ui, sans-serif;
}

.btn-primary {
    background: #00C853;
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.25);
}

.btn-primary:hover {
    background: #00B848;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 200, 83, 0.35);
}

.btn-outline {
    background: transparent;
    color: #00C853;
    border-color: #00C853;
}

.btn-outline:hover {
    background: #f0fdf4;
    border-color: #00B848;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.15);
}

/* ===== بخش‌ها ===== */
.section-title {
    font-size: 28px;
    font-weight: 800;
    margin: 44px 0 22px;
    color: #1A1A2E;
    border-right: 6px solid #00C853;
    padding-right: 18px;
}

.section-title span {
    color: #00C853;
}

/* ===== خدمات ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 16px 0 8px;
}

.service-card {
    background: #FFFFFF;
    padding: 28px 18px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    border-color: #00C853;
    transform: translateY(-8px);
    box-shadow: 0 12px 36px rgba(0, 200, 83, 0.08);
}

.service-card .icon {
    font-size: 44px;
    display: block;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 19px;
    margin-bottom: 6px;
    color: #1A1A2E;
}

.service-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== درباره من ===== */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #f8fff8;
    padding: 36px 32px;
    border-radius: 32px;
    margin: 40px 0 20px;
    align-items: center;
}

.about-avatar {
    font-size: 110px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 14px;
    color: #1A1A2E;
}

.about-content h2 span {
    color: #00C853;
}

.about-content p {
    color: #666;
    margin-bottom: 14px;
    font-size: 15px;
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    list-style: none;
    padding: 0;
    margin-top: 6px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1A1A2E;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    color: #00C853;
    transform: translateX(-4px);
}

.feature-list li::before {
    content: "✓";
    color: #00C853;
    font-weight: 900;
    font-size: 18px;
}

/* ===== فوتر ===== */
.footer {
    margin-top: 40px;
    padding: 30px 0 20px;
    text-align: center;
    background: #FFFFFF;
    border-radius: 20px;
    border-top: 3px solid #00C853;
}

.footer-logo {
    font-size: 20px;
    font-weight: 800;
    color: #00C853;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 0;
}

.footer-links a {
    color: #1A1A2E;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #00C853;
}

.footer-text {
    font-size: 14px;
    color: #666;
}

.footer-copy {
    font-size: 13px;
    color: #999;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
    margin-top: 14px;
}

.footer-copy strong {
    color: #00C853;
}

/* ===== دکمه بازگشت ===== */
.back-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: #00C853;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 200, 83, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    z-index: 1000;
    font-family: 'IranFont', 'Vazirmatn', system-ui, sans-serif;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: #00B848;
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.4);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .nav a {
        font-size: 12px;
        padding: 6px 14px;
    }
    .about-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .feature-list {
        justify-items: center;
    }
    .hero h1 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        padding: 80px 20px 30px;
        gap: 8px;
        align-items: stretch;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 3px solid #00C853;
        overflow-y: auto;
    }

    .nav.open {
        right: 0;
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
        font-size: 14px;
        background: #f8fafc;
        border-radius: 14px;
        white-space: normal;
    }

    .nav a:hover {
        background: #e8f5e9;
        transform: translateX(-4px);
    }

    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .about-wrap {
        padding: 24px 18px;
    }
    .about-avatar {
        font-size: 80px;
    }
    .about-content h2 {
        font-size: 26px;
    }
    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 24px;
    }
    .btn {
        padding: 11px 26px;
        font-size: 14px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .section-title {
        font-size: 22px;
        padding-right: 14px;
    }
}