* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

:root {
    --primary-color: #0ea5e9;
    --dark-bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.profile-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    margin: 0 auto 25px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* استایل ساده برای نام */
.name-container {
    text-align: center;
    margin-bottom: 30px;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .name {
        font-size: 2rem;
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.bio {
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 20px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(14, 165, 233, 0.15);
    color: var(--primary-color);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.projects-simple {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.project-item {
    text-align: center;
    width: 180px;
}

.project-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--primary-color);
    background: #1e293b;
}

.project-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.experience-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-item:last-child {
    border-bottom: none;
}

.exp-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.exp-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: rgba(14, 165, 233, 0.2);
    transform: translateY(-3px);
}

.contact-links i {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    section {
        padding: 20px;
    }
    
    .name-animation {
        font-size: 2.2rem;
    }
    
    .dynamic-text {
        min-width: 200px;
    }
    
    .projects-simple {
        gap: 30px;
    }
    
    .project-item {
        width: 150px;
    }
    
    .project-circle {
        width: 120px;
        height: 120px;
    }
}
