﻿:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #fdfdfd 100%);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    padding: 0.5rem 0; /* Reduced padding */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    direction: rtl;
}

    .navbar.scrolled {
        padding: 0.3rem 0; /* Further reduced padding */
        box-shadow: var(--shadow-lg);
    }

.logo {
    display: inline-block;
    margin: 0;
    font-size: 1.2rem; /* Smaller font size */
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

nav {
    float: right;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

    nav a {
        margin-left: 0;
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        transition: all 0.3s ease;
    }

        nav a:hover {
            color: var(--primary);
            background-color: rgba(99, 102, 241, 0.1);
        }

        nav a.active {
            color: var(--primary);
            background-color: rgba(99, 102, 241, 0.1);
        }

main {
    text-align: center;
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

    h2:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 4px;
        background: var(--primary);
        border-radius: 2px;
    }

p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

    .btn-outline-primary:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

.card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow);
    border: none;
    margin-bottom: 1.5rem;
    position: relative;
}

    .card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lg);
    }

.card-body {
    padding: 2rem;
}

section {
    padding: 5rem 0;
    position: relative;
    direction: rtl;
}

.section-light {
    background: var(--white);
}

.section-gradient {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
}

.feature-section {
    position: relative;
    overflow: hidden;
}

    .feature-section:before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.1);
        z-index: 0;
    }

    .feature-section:after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -100px;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: rgba(16, 185, 129, 0.1);
        z-index: 0;
    }

    .feature-section > .container {
        position: relative;
        z-index: 1;
    }

.testimonial-card {
    border-radius: 15px;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.avatar img {
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.testimonial-card:hover .avatar img {
    transform: scale(1.05);
}

.footer {
    border-top: 1px solid var(--light-gray);
    background: var(--dark);
    color: white;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    direction: rtl;
}

    .footer h3, .footer h4 {
        color: white;
    }

    .footer p {
        color: var(--gray);
    }

.footer-links {
    list-style: none;
    padding: 0;
}

    .footer-links li {
        margin-bottom: 0.5rem;
    }

    .footer-links a {
        color: var(--gray);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .footer-links a:hover {
            color: var(--primary);
            padding-right: 5px;
        }

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-link:hover {
        background: var(--primary);
        transform: translateY(-3px);
    }

.contact-info {
    list-style: none;
    padding: 0;
    color: var(--gray);
}

    .contact-info li {
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
    }

    .contact-info i {
        color: var(--primary);
    }

.footer hr {
    background-color: rgba(255, 255, 255, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

    .animate-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

    .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    nav {
        gap: 0.5rem;
    }

        nav a {
            padding: 0.3rem; /* Reduced padding */
            font-size: 0.9rem;
        }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-section, .faq-section, .social-section {
        padding: 2rem 1rem;
    }

    .footer {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .text-center.text-md-end {
        text-align: center !important;
    }
    
    .navbar {
        padding: 0.3rem 0; /* Reduced padding for mobile */
    }
    
    .logo {
        font-size: 1.1rem; /* Even smaller font size for mobile */
    }
}
