:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --background-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-primary: #1c1e21;
    --text-secondary: #606770;
    --font-family: 'Vazirmatn', sans-serif;
    --border-radius: 16px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --transition-speed: 0.4s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    transition: transform var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
}

.app-container.nav-open {
    transform: translateX(280px);
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, var(--surface-color), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

.menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform var(--transition-speed) cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.mobile-nav.active {
    transform: translateX(0);
}

.nav-header {
    padding: 0 2rem 2rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.mobile-nav ul {
    list-style: none;
    padding: 1.5rem 0;
}

.mobile-nav ul li a {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(20px);
    animation: navLinkFade 0.5s ease forwards;
}

.mobile-nav.active ul li:nth-child(1) a { animation-delay: 0.2s; }
.mobile-nav.active ul li:nth-child(2) a { animation-delay: 0.3s; }
.mobile-nav.active ul li:nth-child(3) a { animation-delay: 0.4s; }
.mobile-nav.active ul li:nth-child(4) a { animation-delay: 0.5s; }
.mobile-nav.active ul li:nth-child(5) a { animation-delay: 0.6s; }
.mobile-nav.active ul li:nth-child(6) a { animation-delay: 0.7s; }

@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.mobile-nav ul li a:hover,
.mobile-nav ul li a:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.mobile-nav ul li a i {
    font-size: 1.2rem;
    width: 40px;
    text-align: center;
    margin-left: 1rem;
}

.main-content {
    padding-top: 80px;
}

.content-wrapper {
    padding: 1.5rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.hero-section {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color)), url('your-image.jpg') no-repeat center center/cover;
    background-blend-mode: multiply;
    color: white;
    padding: 5rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow);
}

.hero-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.features-section {
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.stats-section {
    background-color: var(--surface-color);
    padding: 3rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
    z-index: 998;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
