@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    direction: rtl;
    font-family: 'Vazirmatn', sans-serif;
    background: #07070A;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

:root {
    --bg: #07070A;
    --bg2: #111118;
    --card: rgba(255, 255, 255, .03);
    --glass: rgba(255, 255, 255, .05);
    --border: rgba(255, 255, 255, .08);
    --purple: #7C3AED;
    --blue: #3B82F6;
    --white: #ffffff;
    --text: #bdbdc7;
    --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    font-family: inherit;
    cursor: pointer;
}

ul {
    list-style: none;
}

section {
    width: 100%;
    padding: 140px 0;
    position: relative;
}

.container {
    width: min(1450px, 92%);
    margin: auto;
    position: relative;
    z-index: 5;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(124, 58, 237, .15), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, .12), transparent 28%),
        radial-gradient(circle at 50% 80%, rgba(124, 58, 237, .1), transparent 35%);
    z-index: -5;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), rgba(0, 0, 0, .2));
    z-index: -4;
}

.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: .4;
    z-index: -3;
    animation: floatGlow 12s ease-in-out infinite;
}

.bg-blur.one {
    width: 450px;
    height: 450px;
    background: #7C3AED;
    top: -100px;
    right: -100px;
}

.bg-blur.two {
    width: 550px;
    height: 550px;
    background: #3B82F6;
    bottom: -150px;
    left: -150px;
    animation-delay: 4s;
}

.bg-grid {
    position: fixed;
    inset: 0;
    opacity: 0.05; 
    z-index: -6;
}

@keyframes floatGlow {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(40px) translateX(25px); }
    100% { transform: translateY(0) translateX(0); }
}

.navbar {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 20px;
    padding: 0 35px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: .35s;
}

.logo:hover .logo-img {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text h2 {
    font-size: 22px;
    font-weight: 800;
}

.logo-text span {
    color: var(--text);
    font-size: 13px;
}

.menu {
    display: flex;
    gap: 40px;
}

.menu a {
    color: #d6d6de;
    font-size: 16px;
    position: relative;
    transition: .35s;
}

.menu a:hover, .menu a.active {
    color: #fff;
}

.menu a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: .35s;
}

.menu a:hover::after, .menu a.active::after {
    width: 100%;
}
.menu-toggle {
    display: none; 
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.menu-toggle span {
    width: 30px;
    height: 2px;
    background: #fff;
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }

    .hero-right {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    .hero-left .main-avatar {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    
    h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .primary-btn, .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   HERO SECTION (منطبق بر HTML شما)
========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0 60px;
}

.hero-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* بخش راست: متن‌ها */
.hero-right {
    display: flex;
    flex-direction: column;
}

.hero-tag {
    width: max-content;
    padding: 10px 22px;
    border-radius: 50px;
    background: var(--card);
    border: 1px solid var(--border);
    color: #d8d8e0;
    margin-bottom: 30px;
    backdrop-filter: blur(12px);
    font-size: 14px;
}

.hero-right h1 {
    font-size: 70px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-right p {
    font-size: 18px;
    line-height: 2.2;
    color: var(--text);
    max-width: 600px;
    margin-bottom: 45px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 700;
    transition: .35s;
}

.primary-btn {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(124, 58, 237, .35);
}

.secondary-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: #fff;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: var(--glass);
    border-color: var(--purple);
    transform: translateY(-5px);
}

/* بخش چپ: عکس و آیکون‌ها */
.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glowing-ring {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 3px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3), inset 0 0 30px rgba(124, 58, 237, 0.2);
    animation: ringPulse 4s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes ringPulse {
    0% { transform: scale(0.98); box-shadow: 0 0 40px rgba(59, 130, 246, 0.2), inset 0 0 20px rgba(124, 58, 237, 0.2); }
    100% { transform: scale(1.02); box-shadow: 0 0 70px rgba(59, 130, 246, 0.6), inset 0 0 40px rgba(124, 58, 237, 0.4); }
}

.main-avatar {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    position: relative;
    border: 4px solid #07070A;
}

.floating-badge {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 85px;
    height: 85px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    animation: floatingBadge 4s ease-in-out infinite;
}

.floating-badge img { width: 35px; height: 35px; object-fit: contain; }
.floating-badge span { font-size: 11px; font-weight: bold; color: #fff; }

.badge-html { top: 5%; right: 10px; animation-delay: 0s; }
.badge-css { bottom: 10%; right: 40px; animation-delay: 1.5s; }
.badge-js { bottom: 20%; left: 0px; animation-delay: 2.2s; }

@keyframes floatingBadge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: .3s;
}

.scroll-indicator:hover { opacity: 1; }

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text);
    border-radius: 15px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

.scroll-indicator span {
    font-size: 12px;
    color: var(--text);
    letter-spacing: 1px;
}

/* =========================================
   STATS BANNER (منطبق بر HTML شما)
========================================= */
.stats-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 30px 0 80px;
    position: relative;
    z-index: 10;
}

.stats-container {
    width: 900px;
    max-width: 95%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    padding: 35px 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
    position: relative;
    text-align: center;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.stat-info h2 {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info span {
    color: var(--text);
    font-size: 14px;
    margin-top: 5px;
}

/* =========================================
   ABOUT SECTION (منطبق بر HTML شما)
========================================= */
.about {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-tag {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--purple);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 14px;
}

.section-header h2 {
    font-size: 45px;
    margin-bottom: 20px;
}

.section-header p {
    width: 650px;
    max-width: 100%;
    margin: auto;
    line-height: 2;
    color: var(--text);
    font-size: 16px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 70px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image-box {
    width: 400px;
    height: 500px;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    transition: .45s;
}

.about-image-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(124, 58, 237, .2);
}

.about-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h3 {
    font-size: 35px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.about-content p {
    font-size: 17px;
    line-height: 2;
    color: var(--text);
    margin-bottom: 20px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-card {
    padding: 22px;
    border-radius: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: .35s;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.05);
}

.card-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.about-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #fff;
}

.about-card span {
    color: var(--text);
    font-size: 13px;
}

/* بخش مهارت‌ها و استوری‌ها */
.skills {
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px 15px;
    border-radius: 20px;
    text-align: center;
}

.skill-icon-wrapper {
    position: relative;
    width: 75px;
    height: 75px;
    margin: 0 auto 15px auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(135deg, #7c3aed, #3b82f6) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: rotateRing 8s linear infinite;
}

@keyframes rotateRing {
    to { transform: rotate(360deg); }
}

.avatar-in-ring {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: contain;
    background: rgba(255,255,255,0.05);
    padding: 8px;
}

.skill-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

/* تنظیم ریسپانسیو برای موبایل و تبلت */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    transition: .45s;
    overflow: hidden;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple);
}

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .6s;
}
.project-card:hover img {
    transform: scale(1.1);
}

.project-content {
    padding: 30px;
}
.project-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.15);
    color: #b794f4;
    font-size: 13px;
    margin-bottom: 15px;
}
.project-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}
.project-content p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 15px;
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.project-tech span {
    padding: 8px 16px;
    border-radius: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 13px;
}
.project-links a {
    display: block;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: .35s;
    font-size: 14px;
    font-weight: 600;
}
.project-links a:hover {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-color: transparent;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    transition: .45s;
}
.contact-card:hover {
    transform: translateX(-10px);
}
.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(124, 58, 237, 0.1);
    font-size: 26px;
    color: var(--purple);
}
.contact-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}
.contact-card span {
    color: var(--text);
    font-size: 14px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.social-links a {
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: .3s;
    font-size: 14px;
}
.social-links a:hover {
    background: var(--purple);
    border-color: var(--purple);
}

.contact-form {
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: 25px;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 15px;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: .3s;
    font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.05);
}
.contact-form button {
    height: 55px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    transition: .3s;
    border: none;
    cursor: pointer;
}
.contact-form button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, .3);
}

.footer {
    margin-top: 100px;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}
.footer-top {
    text-align: center;
}
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-logo img {
    width: 200px;
    height: 150px;
}
.footer-logo h2 {
    font-size: 28px;
}
.footer-top p {
    color: var(--text);
    font-size: 15px;
}
.footer-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 35px 0;
}
.footer-menu a {
    color: var(--text);
    transition: .3s;
}
.footer-menu a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 35px; 
    margin-top: 50px;
}
.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px; 
    height: 90px; 
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    font-size: 18px;
    color: var(--text);
    transition: .35s ease-in-out;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-color: transparent;
    transform: translateY(-8px);
    color: #fff;
    box-shadow: 0 15px 40px rgba(124,58,237,.5);
}
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

@media(max-width:1100px){
    .hero-content, .about-wrapper, .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-left { order: -1; } 
    .hero-right { align-items: center; }
    .hero-right p { text-align: center; }

    .stats-container { flex-wrap: wrap; gap: 20px; }
    .stat-item { flex: 1 1 40%; }
    .stat-item:not(:last-child)::after { display: none; } 

    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: 1fr; }
    .menu { display: none; }
    .menu-toggle { display: flex; } 
}

@media(max-width:768px){
    .hero-right h1 { font-size: 42px; }
    .section-header h2 { font-size: 32px; }
    .hero-image-wrapper { width: 320px; height: 320px; }
    .glowing-ring { width: 280px; height: 280px; }
    .main-avatar { width: 250px; height: 250px; }

    .floating-badge { width: 70px; height: 70px; }
    .floating-badge img { width: 28px; height: 28px; }

    .hero-buttons { flex-direction: column; width: 100%; }
    .primary-btn, .secondary-btn { width: 100%; }

    .stat-item { flex: 1 1 100%; }
    .skills-grid { grid-template-columns: 1fr; }
    .about-cards { grid-template-columns: 1fr; }
    .footer-menu { flex-wrap: wrap; }
}

.overview {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(17, 17, 34, 0.65);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 24px;
    padding: 2.5rem;
    gap: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.overview-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-title {
    color: #a78bfa;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.card-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.overview-link {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.overview-link:hover {
    color: #c4b5fd;
    transform: translateX(-5px);
}

.stats-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
    align-content: center;
}

.border-x-desktop {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 1.5rem;
}

.stat-mini-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-mini-card h4 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0.5rem 0 0.2rem;
    font-family: monospace, sans-serif;
}

.stat-mini-card span {
    color: #64748b;
    font-size: 0.8rem;
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.3rem;
}

.skill-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-badge {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    
}

.skill-badge:hover {
    border-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.2);
}

.cta-section {
    padding: 3rem 1.5rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.cta-container {
    background: linear-gradient(135deg, #111122 0%, #1a103c 50%, #111122 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 28px;
    padding: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(124, 58, 237, 0.25);
}

.cta-text-wrapper {
    max-width: 600px;
    z-index: 2;
}

.cta-subtitle {
    color: #a78bfa;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.7rem;
}

.cta-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-description {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

.cta-action {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 2;
}

.cta-button {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2.2rem;
    border-radius: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6);
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-arrow {
    transform: translateX(-5px);
}

.cta-floating-icon {
    width: 64px;
    height: 64px;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transform: rotate(-12deg);
    box-shadow: inset 0 0 15px rgba(124, 58, 237, 0.2);
}

.cta-glow-effect {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(0,0,0,0) 70%);
    bottom: -150px;
    left: -50px;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 992px) {
    .overview-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2.5rem;
    }
    
    .border-x-desktop {
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 2rem 0;
    }

    .cta-container {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        gap: 2.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-action {
        flex-direction: column-reverse;
        width: 100%;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .cta-floating-icon {
        display: none;
    }
}
/* ================= VISITOR COUNTER STYLES (CENTERED) ================= */
.visitor-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(17, 17, 34, 0.7);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 250px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.visitor-icon {
    font-size: 1.1rem;
}

.visitor-text {
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.visitor-number {
    color: #a78bfa;
    font-size: 1rem;
    font-weight: 800;
    font-family: monospace, sans-serif;
}

/* ================= استایل‌های جدید برای حلقه استوری و دکمه تعاملی ================= */
.skill-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.story-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    animation: rotateRing 6s linear infinite;
    mask-image: radial-gradient(circle, transparent 60%, black 65%);
    -webkit-mask-image: radial-gradient(circle, transparent 60%, black 65%);
    transition: all 0.3s ease;
}

/* دایره مشکی داخلی که عکس را احاطه می‌کند */
.avatar-in-ring {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

/* تنظیم اندازه و مرکزچین کردن عکس داخل دایره مشکی */
.avatar-in-ring img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

@keyframes rotateRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skill-icon-wrapper:hover {
    transform: scale(1.12);
}

.skill-icon-wrapper:hover .story-ring {
    animation-duration: 1.8s;
    filter: drop-shadow(0 0 15px rgba(230, 104, 60, 0.6));
}

.skill-icon-wrapper:hover .avatar-in-ring {
    transform: scale(0.94);
}

/* ================= استایل‌های پنجره مودال (Popup) ================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease-in-out;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(17, 17, 34, 0.95);
    border: 1px solid var(--border);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: 0.4s ease-in-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--text);
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: var(--white);
}

/* غیرفعال کردن افکت‌های هاور استوری داخل پنجره مودال */
.modal-avatar {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.modal-avatar:hover {
    transform: none;
    cursor: default;
}

.modal-avatar:hover .story-ring {
    animation-duration: 6s;
    filter: none;
}

.modal-avatar:hover .avatar-in-ring {
    transform: none;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.modal-description {
    color: var(--text);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 30px;
}

.modal-close-btn {
    width: 100%;
}
