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

:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent-yellow: #FFE66D;
    --accent-blue: #45B7D1;
    --accent-purple: #DDA0DD;
    --accent-green: #96CEB4;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
}

/* هدر */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    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.5rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* دکمه‌ها */
.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-login:hover {
    background: var(--primary);
    color: white;
}

.btn-signup {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: white;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-card {
    background: var(--card-color);
    color: white;
    width: 100%;
}

.btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* هیرو */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #fff5f5 0%, #f0fffe 50%, #fff9e6 100%);
    gap: 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.highlight-yellow {
    background: linear-gradient(135deg, #FFE66D, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-blue {
    background: linear-gradient(135deg, var(--accent-blue), #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* انیمیشن گربه اسکرچ */
.scratch-cat-container {
    position: relative;
}

.cat-body {
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.cat-face {
    font-size: 12rem;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

.scratch-blocks {
    margin-top: 2rem;
}

.block {
    padding: 1rem 2rem;
    border-radius: 10px;
    margin: 0.5rem auto;
    max-width: 300px;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow);
    animation: slideIn 0.5s ease-out;
}

.block-green { background: linear-gradient(135deg, #4CAF50, #8BC34A); }
.block-blue { background: linear-gradient(135deg, #2196F3, #03A9F4); }
.block-purple { background: linear-gradient(135deg, #9C27B0, #E040FB); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* آمار */
.stats-section {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    padding: 3rem 2rem;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* هدر بخش‌ها */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* دسته‌بندی‌ها */
.categories-section {
    padding: 5rem 2rem;
}

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

.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 5px solid var(--card-color);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--card-color);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card-level {
    display: inline-block;
    background: var(--card-color);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.card-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--card-color);
    font-weight: bold;
}

/* پروژه‌ها */
.projects-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

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

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-emoji {
    font-size: 5rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* مزایا */
.benefits-section {
    padding: 5rem 2rem;
}

.benefits-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
}

/* درباره ما */
.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    color: white;
}

.about-avatar {
    width: 250px;
    height: 250px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    flex-shrink: 0;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.about-skills {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.about-skills span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* تماس با ما */
.contact-section {
    padding: 5rem 2rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: var(--radius);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* حمایت مالی */
.donate-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 50%, #ffd93d 100%);
}

.donate-container {
    max-width: 800px;
    margin: 0 auto;
}

.donate-content {
    text-align: center;
    color: white;
}

.donate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.donate-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.donate-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.donate-card {
    background: white;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.donate-card-label {
    color: var(--text-dark);
    font-weight: 600;
}

.donate-card-number {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
    direction: ltr;
}

.btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.btn-copy:hover {
    background: #e55555;
    transform: scale(1.05);
}

.btn-copy.copied {
    background: #4CAF50;
}

.donate-note {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* فوتر */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

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

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul a:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-link {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.social-link:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.7;
}

/* مودال‌ها */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-success {
    text-align: center;
    padding: 3rem;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.modal-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
}

.modal-footer-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* چت بات */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 3000;
}

.chatbot-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(255,107,107,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 1.8rem;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(255,107,107,0.6);
}

.chatbot-box {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-box.active {
    display: flex;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chatbot-avatar {
    font-size: 2.5rem;
}

.chatbot-header-info h4 {
    font-size: 1.1rem;
    margin: 0;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.9;
}

.chatbot-close {
    margin-right: auto;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #f8f9fa;
}

.chat-message {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.bot-message {
    flex-direction: row;
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message-bubble {
    background: white;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    border-top-right-radius: 5px;
    max-width: 80%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.6;
    font-size: 0.95rem;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: white;
    border-radius: 15px;
    border-top-left-radius: 5px;
    border-top-right-radius: 15px;
}

.chatbot-input {
    display: flex;
    padding: 0.8rem;
    gap: 0.5rem;
    background: white;
    border-top: 1px solid #eee;
}

.chatbot-input input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid #eee;
    border-radius: 25px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
}

.chatbot-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.chatbot-input button {
    background: linear-gradient(135deg, var(--primary), #ff8e8e);
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

.chat-link {
    display: inline-block;
    background: linear-gradient(135deg, #4CAF50, #8BC34A);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.chat-link:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(76,175,80,0.4);
}

@keyframes typing {
    0%, 100% { transform: translateY(0); background: #ccc; }
    50% { transform: translateY(-5px); background: var(--primary); }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .cat-face {
        font-size: 8rem;
    }

    .stats-container {
        flex-direction: column;
        text-align: center;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-avatar {
        width: 180px;
        height: 180px;
        font-size: 5rem;
    }

    .about-skills {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .chatbot-box {
        width: calc(100vw - 2rem);
        height: 70vh;
        left: -1rem;
        bottom: 75px;
    }
}
