html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background-color: #0b0b0d;
    color: #f8fafc;
    scroll-behavior: smooth;
}

.hamb-line {
    width: 24px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 5px;
}

#navToggle.active .hamb-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#navToggle.active .hamb-line:nth-child(2) {
    opacity: 0;
}

#navToggle.active .hamb-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* بخش‌ها */
section {
    padding: 5rem 0;
}

/* ناوبری */
nav {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 50;
}

.section-fade {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

nav .nav-container {
    display: flex;
    flex-direction: row-reverse;
    /* تب‌ها سمت راست */
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

nav h1 {
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(to right, #06b6d4, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* تب‌ها */
nav ul {
    display: flex;
    flex-direction: row-reverse;
    gap: 1.5rem;
}

nav li a {
    color: #e5e7eb;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

nav li a:hover {
    color: #06b6d4;
}

/* خط زیر تب */
nav li a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0%;
    height: 2px;
    background-color: #06b6d4;
    transition: width 0.3s ease;
}

nav li a:hover::after {
    width: 100%;
}


.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 8rem;
    min-height: 80vh;
}

.hero img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 3px solid #f8fafc;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.hero p {
    color: #cbd5e1;
    max-width: 650px;
    margin: 1rem auto;
    line-height: 1.75;
}

.hero a {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid #f8fafc;
    color: #f8fafc;
    font-weight: 600;
    transition: all 0.3s;
}

.hero a:hover {
    background-color: #06b6d4;
    color: #000;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
}

/* کارت‌ها */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: #f8fafc;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    transform: translateY(-4px);
}

/* عنوان سکشن */
section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 2.5rem;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

/* بخش تماس */
.contact a {
    color: #06b6d4;
    font-weight: 500;
    transition: 0.3s;
}

.contact a:hover {
    color: #9ca3af;
    text-decoration: underline;
}

/* فوتر */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: #9ca3af;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

footer span {
    color: #06b6d4;
}

/* افکت Glow عمومی */
.glow:hover {
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-3px);
}

.education-section .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.education-section .card:hover {
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
    transform: translateY(-4px);
}

.education-section h3 {
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.4);
}

.skill {
    margin-bottom: 1.2rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: #f8fafc;
}

.skill-bar {
    position: relative;
    overflow: hidden;
    background: #111;
    border-radius: 50px;
    height: 10px;
    direction: ltr;
}

.skill-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 50px;
    transition: width 1.6s ease-out;
}

.neon-cyan {
    background: linear-gradient(90deg, #00f5ff, #0099ff);
    box-shadow: 0 0 10px #00f5ff;
}

.neon-green {
    background: linear-gradient(90deg, #00ff80, #00cc66);
    box-shadow: 0 0 10px #00ff80;
}

.neon-blue {
    background: linear-gradient(90deg, #7a00ff, #0084ff);
    box-shadow: 0 0 12px #0084ff;
}

.neon-pink {
    background: linear-gradient(90deg, #ff00c8, #8400ff);
    box-shadow: 0 0 12px #ff00c8;
}

.glow {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.job-card {
    text-align: right;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

.job-card ul li::marker {
    color: #00f5ff;
}

.nav-container {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    color: #00ffff;
    padding: 10px 20px;
    border-bottom: 1px solid #8b5cf6;
    padding-bottom: 30px;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00ffff;
    text-shadow: 0 0 6px #8b5cf6;
}

.nav-toggle {
    display: none;
}

/* 🎯 حالت موبایل */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    .nav-container {
        background: rgba(10, 10, 15, 0.9);
        backdrop-filter: blur(12px);
        color: #00ffff;
        padding: 10px 20px;
        border-bottom: 1px solid #8b5cf6;
        padding-bottom: 10px;
    }

    .nav-links.active {
        display: flex;
        margin-top: 10px;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.6rem;
        color: #00ffff;
        cursor: pointer;
    }

    .navbar a,
    .dropbtn {
        float: left;
        font-size: 16px;
        color: white;
        text-align: center;
        padding: 14px 16px;
        text-decoration: none;
    }

    .navbar a:hover,
    .dropdown:hover .dropbtn {
        background-color: red;
    }

    /* Dropdown desktop */
    .dropdown {
        position: relative;
        display: inline-block;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #1a1a1d;
        min-width: 140px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 6px;
        padding: 8px 0;
        z-index: 1000;
    }

    .dropdown-content a {
        color: white;
        padding: 8px 15px;
        display: block;
        font-size: 14px;
    }

    .dropdown-content a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    /* Hover opens dropdown on desktop */
    .dropdown:hover .dropdown-content {
        display: block;
    }

    /* Mobile dropdown */
    .mobile-dropdown {
        display: none;
        padding-right: 10px;
    }

    .mobile-dropdown a {
        display: block;
        padding: 6px 0;
    }

}