/* تنظیمات عمومی و ریست */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700;900&display=swap');

:root {
    --primary-color: #0077b6; /* آبی عمیق برای اصلی‌ترین المان‌ها */
    --secondary-color: #00b4d8; /* آبی روشن‌تر برای تاکید */
    --accent-color: #90e0ef; /* آبی ملایم برای پس‌زمینه/سایه‌ها */
    --dark-color: #03045e; /* آبی تیره برای متن/عناوین */
    --light-color: #f0f8ff; /* سفید مایل به آبی برای پس‌زمینه */
    --text-color: #333;
    --border-radius: 8px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- سربرگ (Header) و نوار ناوبری (Navigation) --- */
header {
    background-color: var(--dark-color);
    color: white;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-heavy);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0;
    color: var(--accent-color);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 0;
    transition: color 0.3s, border-bottom 0.3s;
    font-weight: 400;
}

nav a:hover, nav a.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}

/* استایل Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.dropbtn {
    background-color: transparent;
    color: white;
    padding: 10px 0;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    transition: color 0.3s;
}

.dropbtn:hover {
    color: var(--secondary-color);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--dark-color);
    min-width: 160px;
    box-shadow: var(--shadow-light);
    z-index: 1;
    border-radius: var(--border-radius);
    top: 100%; /* نمایش زیر دکمه */
    right: 0; /* تراز به راست */
    text-align: right;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0; /* حذف margin ناوبری اصلی */
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* --- بخش اصلی (Main) و بخش Hero --- */
main {
    padding: 20px 5%;
    min-height: calc(100vh - 200px); /* برای اینکه فوتر همیشه در پایین باشد */
}

#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow-heavy);
}

.hero-card {
    background: rgba(3, 4, 94, 0.8); /* پس‌زمینه شفاف تیره روی گرادیانت */
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
}

.hero-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 900;
}

.hero-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 400;
}

/* استایل دکمه اصلی */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--dark-color);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- فوتر (Footer) --- */
footer {
    background-color: var(--dark-color);
    color: var(--accent-color);
    padding: 20px 5%;
    text-align: center;
    border-top: 3px solid var(--secondary-color);
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
    font-weight: 400;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.footer-copy p {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.7;
}

/* --- واکنش‌گرایی (Media Queries) --- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 5%;
    }

    header h1 {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    nav a, .dropdown {
        margin: 5px 0;
        width: 100%;
        text-align: right;
    }

    .dropdown {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 5px 0;
    }

    .dropbtn {
        width: 100%;
        text-align: right;
        padding: 10px 0;
    }

    .dropdown-content {
        position: static; /* نمایش زیر منو در حالت عمودی */
        min-width: 100%;
        border-radius: 0;
    }

    #hero {
        height: auto;
        padding: 50px 20px;
    }

    .hero-card h2 {
        font-size: 2rem;
    }
}