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

body {
    font-family: 'Vazirmatn', 'Inter', sans-serif;
    background: linear-gradient(145deg, #f9faff 0%, #f0f3fc 100%);
    color: #1e2a3e;
    scroll-behavior: smooth;
    line-height: 1.5;
}

/* متغیرهای رنگ */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --light: #f8fafc;
    --gray: #cbd5e1;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --radius: 1.5rem;
}

/* اسکرول نرم و نوار اسکرول سفارشی */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

/* کلاس‌های کمکی */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 0.75rem auto 0;
    border-radius: 4px;
}

/* هدر (Hero) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 30%, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.02));
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeUp 0.9s ease-out;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.hero .badge {
    display: inline-block;
    background: rgba(79, 70, 229, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.25s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کارت‌ها */
.skills-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-card,
.project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(79, 70, 229, 0.2);
    background: white;
}

.skill-icon {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-card h3,
.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.skill-level {
    margin-top: 1rem;
    height: 8px;
    background: var(--gray);
    border-radius: 10px;
    overflow: hidden;
}

.skill-level span {
    display: block;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    border-radius: 10px;
    transition: width 1s;
}

.project-card i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
}

/* درباره من */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text-light);
}

.about-stats {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.stat {
    background: white;
    border-radius: 2rem;
    padding: 1.5rem;
    text-align: center;
    min-width: 140px;
    box-shadow: var(--shadow-sm);
}

.stat .number {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* فرم تماس */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(203, 213, 225, 0.4);
}

.input-group {
    margin-bottom: 1.2rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray);
    border-radius: 1rem;
    font-family: inherit;
    background: var(--light);
    transition: all 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

button[type="submit"] {
    width: 100%;
    background: var(--primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.9rem;
    border-radius: 3rem;
    font-size: 1rem;
    transition: 0.2s;
}

button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: scale(0.98);
}

/* فوتر */
footer {
    background: var(--secondary);
    color: #cbd5e1;
    text-align: center;
    padding: .4rem;
    margin-top: .6rem;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: white;
}

/* responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 80%;
        justify-content: center;
    }
}