@font-face {
    font-family: 'iranyekan';
    font-weight: 300;
    src: url('font/fonts/woff/iranyekanweblightfanum.woff') format('woff');
}
@font-face {
    font-family: 'iranyekan';
    font-weight: normal;
    src: url('font/fonts/woff/iranyekanwebregularfanum.woff') format('woff');
}
@font-face {
    font-family: 'iranyekan';
    font-weight: bold;
    src: url('font/fonts/woff/iranyekanwebboldfanum.woff') format('woff');
}
:root {
    --primary-color: #00bcd4;
    --background-color: #121212;
    --card-background: rgba(28, 28, 30, 0.75);
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #333;
    --shadow-color: rgba(0, 188, 212, 0.5);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'iranyekan', sans-serif !important;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #fff;
}
h1, h2, h3 {
    font-weight: bold;
}
h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}
h2 i {
    margin-left: 10px;
}
.text-center {
    text-align: center;
}
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}
.music-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    background: var(--card-background);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.music-btn:hover {
    background: var(--primary-color);
    color: var(--background-color);
    transform: scale(1.1);
}
.music-btn.playing {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 var(--shadow-color); }
    70% { box-shadow: 0 0 0 10px rgba(0, 188, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0); }
}
.content-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.intro-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 50px 20px;
}
.avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px var(--shadow-color);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.avatar img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px var(--shadow-color);
}
h1 {
    font-size: 2.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    min-height: 40px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}
.skill-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.skill-box:hover {
    transform: translateY(-10px);
    background: var(--primary-color);
    color: #111;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.language-skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.lang-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: bold;
}
.progress-bar {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background: linear-gradient(90deg, #00bcd4, #007bff);
    border-radius: 5px;
    transition: width 1s ease-in-out;
}
.timeline {
    position: relative;
    padding-right: 30px;
    border-right: 3px solid var(--primary-color);
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    right: -17.5px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border: 2px solid var(--background-color);
    border-radius: 50%;
}
.timeline-date {
    color: var(--text-muted);
    margin-bottom: 5px;
    font-size: 0.9rem;
}
.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: #111;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}
.btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}
.contact-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.contact-info a {
    font-size: 1.1rem;
    transition: transform 0.3s;
}
.contact-info a:hover {
    transform: translateY(-5px);
}
.contact-info i {
    margin-left: 8px;
}
[data-animation] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
[data-animation].animate {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .content-section {
        padding: 30px 25px;
    }
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
@media (max-width: 480px) {
    .music-btn {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .avatar img {
        width: 120px;
        height: 120px;
    }
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
}