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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0d0d0d;
    color: #e0e0e0;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #c084fc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 50px 0 30px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #c084fc, #7c3aed);
    border-radius: 4px;
}

.section-subtitle {
    color: #aaa;
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 950px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 20px rgba(192, 132, 252, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(192, 132, 252, 0.5);
}

.btn-outline {
    background: transparent;
    color: #c084fc;
    border: 2px solid #c084fc;
}
.btn-outline:hover {
    background: #c084fc;
    color: #0d0d0d;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 1px;
}
.logo span {
    color: #c084fc;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #ccc;
    transition: color 0.3s;
    position: relative;
}
.nav-links a:hover {
    color: #c084fc;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: #c084fc;
    transition: width 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    font-size: 1.6rem;
    color: #e0e0e0;
}

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(192, 132, 252, 0.08),
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(124, 58, 237, 0.06),
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 16px;
}
.hero-text h1 .highlight {
    color: #c084fc;
}

.hero-text .tagline {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 12px;
    font-weight: 500;
    position: relative;
    display: inline-block;
}
.hero-text .tagline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #c084fc, #7c3aed);
}

.hero-text .bio {
    font-size: 1.05rem;
    color: #aaa;
    max-width: 500px;
    margin-bottom: 32px;
    text-align: justify;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-wrapper {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #7c3aed);
    padding: 4px;
    box-shadow: 0 0 60px rgba(192, 132, 252, 0.2);
    transition: transform 0.5s ease;
}
.avatar-wrapper:hover {
    transform: scale(1.02);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #c084fc;
    overflow: hidden;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.avatar img:hover {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-text p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: justify;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.about-detail-item {
    background: #181818;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid #252525;
    transition: border-color 0.3s;
}
.about-detail-item:hover {
    border-color: #c084fc;
}
.about-detail-item .label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}
.about-detail-item .value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f0f0f0;
    margin-top: 4px;
}

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

.skill-card {
    background: #181818;
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    border: 1px solid #252525;
    transition: all 0.3s ease;
}
.skill-card:hover {
    border-color: #c084fc;
    transform: translateY(-8px);
    box-shadow:
        0 0 20px rgba(192, 132, 252, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.4);
}
.skill-card i {
    font-size: 2.2rem;
    margin-bottom: 12px;
}
.skill-card span {
    display: block;
    font-weight: 600;
    font-size: 1rem;
    color: #e0e0e0;
}

.skill-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #ddd;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.learned {
    background-color: #c084fc;
}

.legend-dot.learning {
    background-color: #666;
}

.timeline {
    position: relative;
    padding-right: 30px;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, #c084fc, #7c3aed);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    padding-right: 40px;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    right: -2px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #c084fc;
    border-radius: 50%;
    border: 3px solid #0d0d0d;
    box-shadow: 0 0 0 4px #c084fc33;
}

.timeline-item .date {
    font-size: 0.85rem;
    color: #c084fc;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.timeline-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 4px 0 2px;
}
.timeline-item .company {
    color: #aaa;
    font-weight: 500;
    margin-bottom: 8px;
}
.timeline-item p {
    color: #bbb;
    font-size: 0.98rem;
}

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

.edu-card {
    background: #181818;
    border-radius: 20px;
    padding: 20px 20px;
    border: 1px solid #252525;
    transition: all 0.3s ease;
}
.edu-card:hover {
    border-color: #c084fc;
    transform: translateY(-4px);
}
.edu-card .degree {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}
.edu-card .institution {
    color: #c084fc;
    font-weight: 500;
    margin: 4px 0 6px;
}
.edu-card .year {
    color: #888;
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.contact-info .info-item i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181818;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #c084fc;
    border: 1px solid #252525;
    transition: border-color 0.3s;
}
.contact-info .info-item:hover i {
    border-color: #c084fc;
}
.contact-info .info-item .label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.contact-info .info-item .value {
    font-size: 1.05rem;
    color: #f0f0f0;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 18px;
    margin-top: 12px;
}
.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #181818;
    border: 1px solid #252525;
    color: #ccc;
    font-size: 1.3rem;
    transition: all 0.3s;
}
.social-links a:hover {
    background: #c084fc;
    border-color: #c084fc;
    color: #0d0d0d;
    transform: translateY(-4px);
}

.contact-form {
    background: #181818;
    padding: 24px 24px;
    border-radius: 24px;
    border: 1px solid #252525;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    background: #0d0d0d;
    color: #f0f0f0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #c084fc;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn {
    width: 100%;
    justify-content: center;
}

footer {
    background: #0a0a0a;
    border-top: 1px solid #1a1a1a;
    padding: 32px 0;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text .bio {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .avatar-wrapper {
        width: 280px;
        height: 280px;
    }
    .avatar {
        font-size: 5.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
        min-height: 100vh;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s ease;
        border-left: 1px solid #252525;
        padding: 40px;
    }
    .nav-links.active {
        right: 0;
    }
    .hamburger {
        display: block;
    }
    .hero-text h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .about-details {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    .timeline {
        padding-right: 20px;
    }
    .timeline-item {
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .avatar-wrapper {
        width: 200px;
        height: 200px;
    }
    .avatar {
        font-size: 4rem;
    }
}

.skill-card.learning i {
    color: #666 !important;
    opacity: 0.7;
}
.skill-card.learning span {
    color: #999;
}
.skill-card.learning:hover i {
    color: #fff !important;
    opacity: 1;
}
.skill-card.learning:hover span {
    color: #fff;
}
body.no-scroll {
    overflow: hidden;
}
