/* style.css - طراحی کامل با منوی متحرک */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.0.0/Vazirmatn-font-face.css');

:root {
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --accent: #81c784;
    --bg: #f9fbe7;
    --surface: #ffffff;
    --text: #1f1f1f;
    --border: #c8e6c9;
    --shadow: 0 8px 30px rgba(0,0,0,0.08);
    --radius: 20px;
}
* { margin:0; padding:0; box-sizing:border-box; }
body {
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e9 100%);
    color: var(--text);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}
/* ==================== هدر سایت ==================== */
.site-header {
    background: linear-gradient(135deg, #1b5e20, #2e7d32);
    color: white;
    text-align: center;
    padding: 3rem 1rem 2rem;
    position: relative;
    overflow: hidden;
}
.site-header::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 25s linear infinite;
}
@keyframes rotate { 100% { transform: rotate(360deg); } }
.site-header h1 { font-size: 2.8rem; position: relative; z-index: 1; margin-bottom: 0.5rem; }
.site-header p { font-size: 1.2rem; opacity: 0.9; position: relative; z-index: 1; }

/* ==================== منوی ناوبری ==================== */
.navbar {
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    border-bottom: 3px solid var(--accent);
}
.navbar .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar .logo span { color: var(--primary); }
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
}
.nav-menu li a {
    text-decoration: none;
    color: var(--primary);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}
.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}
/* دکمه همبرگری */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}
.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--primary-dark);
    transition: all 0.3s;
}
/* موبایل */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--surface);
        width: 100%;
        height: calc(100% - 70px);
        text-align: center;
        transition: 0.4s;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding-top: 2rem;
        gap: 1.5rem;
        z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-menu li a { font-size: 1.2rem; padding: 0.8rem 2rem; }
    .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); }
}

/* ==================== محتوای عمومی ==================== */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.section {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border-right: 6px solid var(--primary-light);
    transition: transform 0.3s, box-shadow 0.3s;
}
.section:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
h2 {
    color: var(--primary); font-size: 2rem; margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent); padding-bottom: 0.5rem;
    display: flex; align-items: center; gap: 0.5rem;
}
h3 {
    color: var(--primary-dark); margin: 2rem 0 1rem; font-size: 1.5rem;
    border-right: 5px solid var(--primary-light); padding-right: 1rem;
}
p { margin-bottom: 1.2rem; text-align: justify; }
.table-wrapper {
    overflow-x: auto; margin: 1.5rem 0; border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
table {
    width: 100%; border-collapse: collapse; background: #f1f8e9; border-radius: 15px; overflow: hidden;
}
th {
    background: var(--primary); color: white; padding: 0.9rem; font-weight: bold; text-align: center;
}
td {
    padding: 0.8rem; border-bottom: 1px solid var(--border); text-align: center;
}
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #e8f5e9; }
.highlight {
    background: #e8f5e9; border-right: 5px solid var(--primary);
    padding: 1.2rem; border-radius: 15px; margin: 1.5rem 0;
}
.flex-grid { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1rem; }
.card {
    flex: 1 1 250px; background: linear-gradient(145deg, #f1f8e9, #e8f5e9);
    padding: 1.5rem; border-radius: 15px; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid var(--accent); transition: transform 0.2s;
}
.card:hover { transform: translateY(-5px); }
.card h4 { color: var(--primary); margin-bottom: 0.5rem; }
.chart-container {
    position: relative; width: 100%; max-width: 700px; margin: 2rem auto;
    background: white; border-radius: 20px; padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}
canvas { max-height: 350px; }
.steps {
    counter-reset: step-counter; list-style: none; padding: 0;
}
.steps li {
    counter-increment: step-counter; margin-bottom: 2rem; position: relative;
    padding-right: 3.8rem;
}
.steps li::before {
    content: counter(step-counter); position: absolute; right: 0; top: 0;
    background: var(--primary); color: white; font-weight: bold;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; box-shadow: 0 4px 10px rgba(46,125,50,0.3);
}

/* ==================== کارت‌های صفحه اصلی ==================== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.home-card {
    background: var(--surface);
    border-radius: 25px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.4s;
    border-top: 6px solid var(--accent);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.home-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-top-color: var(--primary);
}
.home-card .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.home-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-size: 1.6rem;
    border: none;
    padding: 0;
}
.home-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}
/* فوتر */
footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    padding-top: 3rem;
}

/* AOS */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos].aos-animate { opacity: 1; transform: translate(0, 0); }