/* Google Fonts - Vazirani (Modern Persian Font) */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-light: #87CEEB;
    --primary: #4A90E2;
    --primary-dark: #2C5F8D;
    --secondary: #5BA3D0;
    --bg-light: #F8FBFF;
    --bg-white: #FFFFFF;
    --text-dark: #1A2332;
    --text-gray: #5A6C7D;
    --text-light: #8A9BAC;
    --border: #E1E8ED;
    --shadow: rgba(74, 144, 226, 0.1);
    --shadow-hover: rgba(74, 144, 226, 0.2);
    --success: #52C41A;
    --warning: #FAAD14;
    --error: #F5222D;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    background: linear-gradient(135deg, #F8FBFF 0%, #EFF6FF 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 12px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    direction: ltr;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(10deg) scale(1.05);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-title a{
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    flex-direction: row-reverse;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-link.active {
    color: var(--primary-dark);
}

.nav-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-highlight::after {
    display: none;
}

.nav-highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-hover);
    color: white !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Back to Home Button */
.back-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-white);
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 2rem 0 0 0;
}

.back-home:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-5px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
    color: white;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4,
.footer-section ul{
    text-align: right;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-section .footer-logo h3{
    font-size: 48px;
}

.footer-section h4{
    font-size: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo a{
    text-decoration: none;
    color: var(--secondary);
}

.footer-message {
    opacity: 0.9;
    line-height: 1.8;
    font-weight: 300;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 1;
    transform: translateX(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
    font-weight: 300;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 25px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

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

.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-dark);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px var(--shadow-hover);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background: var(--border);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    left: -10px;
    top: -50%;
    width: 20px;
    height: 200%;
    background: var(--border);
    clip-path: path('M0,0 Q10,6 0,12 Z');
}

/* Responsive */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 4px 16px var(--shadow);
        transition: right 0.3s ease;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .footer-content {
        padding: 3rem 1rem 1rem 1rem;
        /*grid-template-columns: 1fr;*/
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
