/* ===== فونت‌های حرفه‌ای ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&family=Morabba:wght@300;400;700;900&family=Peyda:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Morabba', 'Peyda', 'Tahoma', sans-serif;
}

:root {
    --bg: #0B1020;
    --surface: #161B2E;
    --surface2: #1E2438;
    --primary: #7C3AED;
    --primary-hover: #8B5CF6;
    --secondary: #4F46E5;
    --accent: #A855F7;
    --text: #F8FAFC;
    --text2: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-btn: linear-gradient(90deg, #6D28D9, #7C3AED, #8B5CF6);
    --gradient-btn-hover: linear-gradient(90deg, #7C3AED, #8B5CF6, #A855F7);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== پس‌زمینه ترکیبی ===== */
.bg-gradient-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-blur-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: floatCircle 20s ease-in-out infinite alternate;
}
.circle-1 {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.25);
    top: -10%;
    right: -5%;
    animation-duration: 25s;
}
.circle-2 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.2);
    bottom: -5%;
    left: -5%;
    animation-duration: 20s;
    animation-delay: -5s;
}
.circle-3 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.15);
    top: 40%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: -10s;
    filter: blur(100px);
}
.circle-4 {
    width: 350px;
    height: 350px;
    background: rgba(139, 92, 246, 0.1);
    bottom: 30%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: -15s;
    filter: blur(120px);
}
@keyframes floatCircle {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
    100% { transform: translate(15px, -20px) scale(1.05); }
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.header, section, footer {
    position: relative;
    z-index: 2;
}

/* ===== هدر شیشه‌ای ===== */
.header {
    background: rgba(22, 27, 46, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}
.header.scrolled {
    background: rgba(22, 27, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-left: 30px;
}
.logo span {
    color: var(--accent);
}
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.nav-list li a {
    color: var(--text2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-list li a:hover {
    color: var(--text);
}
.admin-btn {
    background: var(--gradient-btn);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
    margin-left: 10px;
}
.admin-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05);
}
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}
.auth-buttons .btn-login {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.auth-buttons .btn-login:hover {
    background: var(--surface2);
    color: var(--text);
}
.auth-buttons .btn-logout {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.auth-buttons .btn-logout:hover {
    background: #c0392b;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== بخش‌ها ===== */
section {
    padding: 70px 0;
}
h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text);
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-btn);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===== هیرو ===== */
.hero {
    background: transparent;
    color: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.hero-text {
    flex: 1 1 50%;
}
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    min-height: 80px;
}
.hero-text h1 span {
    color: var(--accent);
}
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.8;
}
.hero-image {
    flex: 1 1 40%;
    text-align: center;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    filter: drop-shadow(0 10px 30px rgba(124, 58, 237, 0.2));
}
/* ===== دکمه‌ها ===== */
.btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.btn:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

/* ===== تایم‌لاین (درباره من) ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(50%);
    border-radius: 3px;
    opacity: 0.6;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
    flex-direction: row;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    margin: 0 30px;
    position: relative;
    z-index: 2;
}
.timeline-content {
    flex: 1;
    background: rgba(22, 27, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 20px 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}
.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
    transform: translateY(-3px);
}
.timeline-year {
    display: inline-block;
    padding: 4px 16px;
    background: var(--gradient-btn);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.timeline-content h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.timeline-content p {
    color: var(--text2);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== بخش خدمات (Swiper) ===== */
.skillsSwiper {
    padding: 20px 40px 60px;
    position: relative;
    overflow: hidden;
}
.skillsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}
.skill-card {
    background: rgba(22, 27, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-image: radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.08), transparent 60%);
}
.skillsSwiper .swiper-slide:not(.swiper-slide-active) .skill-card {
    opacity: 0.45;
    transform: scale(0.92);
    filter: blur(0.5px);
}
.skillsSwiper .swiper-slide-active .skill-card {
    transform: scale(1.12) translateY(-5px);
    opacity: 1;
    filter: blur(0);
    border-color: transparent;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.25), 0 25px 60px rgba(124, 58, 237, 0.15);
}
.skill-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.skillsSwiper .swiper-slide-active .skill-card::before {
    opacity: 1;
}
.skillsSwiper .swiper-slide-active .skill-card::after {
    content: '⭐ محبوب‌ترین';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.skill-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    transition: all 0.4s ease;
}
.skillsSwiper .swiper-slide-active .skill-card i {
    font-size: 3.6rem;
    color: var(--accent);
}
.skill-card:hover i {
    transform: rotate(8deg) scale(1.15);
}
.skill-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.22);
}
.skill-card h3 {
    margin-bottom: 10px;
    color: var(--text);
    transition: color 0.3s;
}
.skillsSwiper .swiper-slide-active .skill-card h3 {
    color: var(--accent);
}
.skill-card p {
    color: var(--text2);
}
.skillsSwiper .swiper-button-next,
.skillsSwiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.skillsSwiper .swiper-button-next:hover,
.skillsSwiper .swiper-button-prev:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    border-color: var(--primary);
}
.skillsSwiper .swiper-button-next::after,
.skillsSwiper .swiper-button-prev::after {
    font-size: 1.3rem;
    font-weight: bold;
}
.skillsSwiper .swiper-pagination {
    bottom: 0;
}
.skillsSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.skillsSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.4);
}

/* ===== نمونه کارها ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.portfolio-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}
.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}
.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.portfolio-item:hover .portfolio-image video {
    display: block;
}
.portfolio-item:hover .portfolio-image img {
    display: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 16, 32, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.portfolio-tags span {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}
.portfolio-tags span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--gradient-btn);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.portfolio-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

/* ===== تماس ===== */
.contact {
    background: rgba(22, 27, 46, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
}
.contact form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(11, 16, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text2);
}
.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}
.success {
    color: #27ae60;
}
.error {
    color: #e74c3c;
}

/* ===== فوتر خفن ===== */
footer {
    background: rgba(22, 27, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 50px 0 25px;
    margin-top: 30px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.footer-brand {
    text-align: center;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #F8FAFC;
}
.footer-logo span {
    color: var(--accent);
}
.footer-brand p {
    color: var(--text2);
    font-size: 0.95rem;
    margin-top: 5px;
}
.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    width: 100%;
}
.footer-bottom p {
    color: var(--text2);
    font-size: 0.9rem;
    margin: 5px 0;
}
.footer-bottom .heart {
    color: #FF6B6B;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== مودال ===== */
.modal-content {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.modal-content .close {
    color: var(--text2);
}
.modal-content input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}
.modal-content input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.modal-content button[type="submit"] {
    background: var(--gradient-btn);
    color: #fff;
}
.modal-content button[type="submit"]:hover {
    background: var(--gradient-btn-hover);
}
.modal-content .switch {
    color: var(--text2);
}
.modal-content .switch a {
    color: var(--accent);
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }
    .nav-list {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(22, 27, 46, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s;
        border-radius: 0 0 20px 20px;
        z-index: 999;
        border-left: 1px solid var(--border);
    }
    .nav-list.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .auth-buttons {
        margin-right: 0;
    }
    .hero-text h1 {
        font-size: 2rem;
        min-height: 60px;
    }
    .logo {
        margin-left: 0;
    }
    .skillsSwiper {
        padding: 20px 10px 60px;
    }
    .skillsSwiper .swiper-slide-active .skill-card {
        transform: scale(1.05) translateY(-5px);
    }
    .skillsSwiper .swiper-slide:not(.swiper-slide-active) .skill-card {
        transform: scale(0.9);
    }
    .skill-card {
        max-width: 260px;
    }
    .skillsSwiper .swiper-button-next,
    .skillsSwiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .skillsSwiper .swiper-button-next::after,
    .skillsSwiper .swiper-button-prev::after {
        font-size: 1rem;
    }
    .bg-blur-circle {
        filter: blur(60px);
        opacity: 0.3;
    }
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    .circle-2 {
        width: 250px;
        height: 250px;
    }
    .circle-3 {
        width: 200px;
        height: 200px;
    }
    .circle-4 {
        width: 200px;
        height: 200px;
    }

    /* تایم‌لاین در موبایل */
    .timeline::before {
        right: 20px;
        transform: none;
    }
    .timeline-item {
        flex-direction: row !important;
        padding-right: 50px;
    }
    .timeline-dot {
        margin: 0 15px 0 0;
        position: absolute;
        right: 10px;
    }
    .timeline-content {
        width: 100%;
    }

    /* نمونه کارها در موبایل */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item {
        aspect-ratio: 4/3;
    }
    
    /* فوتر */
    .footer-social {
        gap: 12px;
    }
    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .skillsSwiper .swiper-slide-active .skill-card {
        transform: scale(1.08);
    }
    .skillsSwiper .swiper-slide:not(.swiper-slide-active) .skill-card {
        transform: scale(0.9);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== بخش بات تلگرام ===== */
.telegram-section {
    padding: 60px 0;
}
.telegram-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}
.telegram-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}
.telegram-icon i {
    font-size: 4rem;
    color: #0088cc;
    margin-bottom: 15px;
}
.telegram-card h2 {
    color: #F8FAFC;
    margin-bottom: 15px;
    font-size: 2rem;
}
.telegram-card h2::after {
    display: none;
}
.telegram-card p {
    color: #94A3B8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.telegram-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.telegram-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.telegram-features .feature i {
    color: var(--primary);
    font-size: 1.1rem;
}
.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0088cc;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}
.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.4);
}
.telegram-btn i {
    font-size: 1.2rem;
}
.telegram-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}
.telegram-btn.disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.2);
}
@media (max-width: 600px) {
    .telegram-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .telegram-card {
        padding: 30px 20px;
    }
    .telegram-card h2 {
        font-size: 1.6rem;
    }
}

/* ===== بخش خدمات (دو کارت ثابت) ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card.featured {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 35px 25px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.skill-card.featured:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
}

/* ===== برچسب ===== */
.skill-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-btn);
    color: #fff;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.skill-badge.special {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ===== آیکون ===== */
.skill-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.skill-card.featured:hover .skill-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(6deg) scale(1.05);
}

.skill-card.featured h3 {
    color: #F8FAFC;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.skill-card.featured p {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ===== لیست ویژگی‌ها ===== */
.skill-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: right;
}

.skill-features li {
    color: #CBD5E1;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skill-features li:last-child {
    border-bottom: none;
}

.skill-features li i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ===== دکمه ===== */
.skill-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-btn);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

.skill-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.35);
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }
    .skill-card.featured {
        padding: 30px 20px;
    }
    .skill-badge {
        top: -10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 3px 14px;
    }
}

/* ===== فونت‌های حرفه‌ای ===== */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;700;900&family=Morabba:wght@300;400;700;900&family=Peyda:wght@300;400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Morabba', 'Peyda', 'Tahoma', sans-serif;
}

:root {
    --bg: #0B1020;
    --surface: #161B2E;
    --surface2: #1E2438;
    --primary: #7C3AED;
    --primary-hover: #8B5CF6;
    --secondary: #4F46E5;
    --accent: #A855F7;
    --text: #F8FAFC;
    --text2: #94A3B8;
    --border: rgba(255, 255, 255, 0.08);
    --gradient-btn: linear-gradient(90deg, #6D28D9, #7C3AED, #8B5CF6);
    --gradient-btn-hover: linear-gradient(90deg, #7C3AED, #8B5CF6, #A855F7);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== پس‌زمینه ترکیبی ===== */
.bg-gradient-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(79, 70, 229, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: gradientMove 12s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-blur-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    animation: floatCircle 20s ease-in-out infinite alternate;
}
.circle-1 {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, 0.25);
    top: -10%;
    right: -5%;
    animation-duration: 25s;
}
.circle-2 {
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.2);
    bottom: -5%;
    left: -5%;
    animation-duration: 20s;
    animation-delay: -5s;
}
.circle-3 {
    width: 300px;
    height: 300px;
    background: rgba(168, 85, 247, 0.15);
    top: 40%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: -10s;
    filter: blur(100px);
}
.circle-4 {
    width: 350px;
    height: 350px;
    background: rgba(139, 92, 246, 0.1);
    bottom: 30%;
    right: 20%;
    animation-duration: 22s;
    animation-delay: -15s;
    filter: blur(120px);
}
@keyframes floatCircle {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.9); }
    100% { transform: translate(15px, -20px) scale(1.05); }
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.header, section, footer {
    position: relative;
    z-index: 2;
}

/* ===== هدر شیشه‌ای ===== */
.header {
    background: rgba(22, 27, 46, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}
.header.scrolled {
    background: rgba(22, 27, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-left: 30px;
}
.logo span {
    color: var(--accent);
}
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}
.nav-list {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
}
.nav-list li a {
    color: var(--text2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}
.nav-list li a:hover {
    color: var(--text);
}
.admin-btn {
    background: var(--gradient-btn);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
    margin-left: 10px;
}
.admin-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05);
}
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
}
.auth-buttons .btn-login {
    background: transparent;
    color: var(--text2);
    border: 1px solid var(--border);
    padding: 6px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.auth-buttons .btn-login:hover {
    background: var(--surface2);
    color: var(--text);
}
.auth-buttons .btn-logout {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.auth-buttons .btn-logout:hover {
    background: #c0392b;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: 0.3s;
}

/* ===== بخش‌ها ===== */
section {
    padding: 70px 0;
}
h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: var(--text);
    position: relative;
}
h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-btn);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ===== هیرو ===== */
.hero {
    background: transparent;
    color: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.hero-text {
    flex: 1 1 50%;
}
.hero-text h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 20px;
    min-height: 80px;
}
.hero-text h1 span {
    color: var(--accent);
}
.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.8;
}
.hero-image {
    flex: 1 1 40%;
    text-align: center;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    filter: drop-shadow(0 10px 30px rgba(124, 58, 237, 0.2));
}
/* ===== دکمه‌ها ===== */
.btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.btn:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

/* ===== تایم‌لاین (درباره من) ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}
.timeline::before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(50%);
    border-radius: 3px;
    opacity: 0.6;
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 50px;
    position: relative;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item:nth-child(odd) {
    flex-direction: row;
}
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}
.timeline-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    margin: 0 30px;
    position: relative;
    z-index: 2;
}
.timeline-content {
    flex: 1;
    background: rgba(22, 27, 46, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 20px 25px;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}
.timeline-content:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
    transform: translateY(-3px);
}
.timeline-year {
    display: inline-block;
    padding: 4px 16px;
    background: var(--gradient-btn);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.timeline-content h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.2rem;
}
.timeline-content p {
    color: var(--text2);
    font-size: 0.95rem;
    margin: 0;
}

/* ===== بخش خدمات (Swiper) ===== */
.skillsSwiper {
    padding: 20px 40px 60px;
    position: relative;
    overflow: hidden;
}
.skillsSwiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}
.skill-card {
    background: rgba(22, 27, 46, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-image: radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.08), transparent 60%);
}
.skillsSwiper .swiper-slide:not(.swiper-slide-active) .skill-card {
    opacity: 0.45;
    transform: scale(0.92);
    filter: blur(0.5px);
}
.skillsSwiper .swiper-slide-active .skill-card {
    transform: scale(1.12) translateY(-5px);
    opacity: 1;
    filter: blur(0);
    border-color: transparent;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.25), 0 25px 60px rgba(124, 58, 237, 0.15);
}
.skill-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #7C3AED, #4F46E5);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.skillsSwiper .swiper-slide-active .skill-card::before {
    opacity: 1;
}
.skillsSwiper .swiper-slide-active .skill-card::after {
    content: '⭐ محبوب‌ترین';
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}
.skill-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    transition: all 0.4s ease;
}
.skillsSwiper .swiper-slide-active .skill-card i {
    font-size: 3.6rem;
    color: var(--accent);
}
.skill-card:hover i {
    transform: rotate(8deg) scale(1.15);
}
.skill-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.22);
}
.skill-card h3 {
    margin-bottom: 10px;
    color: var(--text);
    transition: color 0.3s;
}
.skillsSwiper .swiper-slide-active .skill-card h3 {
    color: var(--accent);
}
.skill-card p {
    color: var(--text2);
}
.skillsSwiper .swiper-button-next,
.skillsSwiper .swiper-button-prev {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.skillsSwiper .swiper-button-next:hover,
.skillsSwiper .swiper-button-prev:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    border-color: var(--primary);
}
.skillsSwiper .swiper-button-next::after,
.skillsSwiper .swiper-button-prev::after {
    font-size: 1.3rem;
    font-weight: bold;
}
.skillsSwiper .swiper-pagination {
    bottom: 0;
}
.skillsSwiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.skillsSwiper .swiper-pagination-bullet-active {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 16px rgba(124, 58, 237, 0.4);
}

/* ===== نمونه کارها ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
}
.portfolio-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}
.portfolio-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
}
.portfolio-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.portfolio-item:hover .portfolio-image video {
    display: block;
}
.portfolio-item:hover .portfolio-image img {
    display: none;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 16, 32, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-overlay h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}
.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.portfolio-tags span {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    transition: all 0.3s ease;
}
.portfolio-tags span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.portfolio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--gradient-btn);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.portfolio-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
}

/* ===== تماس ===== */
.contact {
    background: rgba(22, 27, 46, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
}
.contact form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(11, 16, 32, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
}
.form-group {
    margin-bottom: 20px;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: 0.3s;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text2);
}
.form-message {
    margin-top: 15px;
    text-align: center;
    font-weight: bold;
}
.success {
    color: #27ae60;
}
.error {
    color: #e74c3c;
}

/* ===== فوتر خفن ===== */
footer {
    background: rgba(22, 27, 46, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 50px 0 25px;
    margin-top: 30px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.footer-brand {
    text-align: center;
}
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    color: #F8FAFC;
}
.footer-logo span {
    color: var(--accent);
}
.footer-brand p {
    color: var(--text2);
    font-size: 0.95rem;
    margin-top: 5px;
}
.footer-social {
    display: flex;
    gap: 20px;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    color: var(--text2);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.3);
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border);
    width: 100%;
}
.footer-bottom p {
    color: var(--text2);
    font-size: 0.9rem;
    margin: 5px 0;
}
.footer-bottom .heart {
    color: #FF6B6B;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ===== مودال ===== */
.modal-content {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 20px;
}
.modal-content .close {
    color: var(--text2);
}
.modal-content input {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
}
.modal-content input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
.modal-content button[type="submit"] {
    background: var(--gradient-btn);
    color: #fff;
}
.modal-content button[type="submit"]:hover {
    background: var(--gradient-btn-hover);
}
.modal-content .switch {
    color: var(--text2);
}
.modal-content .switch a {
    color: var(--accent);
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
    }
    .nav-list {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 70px);
        background: rgba(22, 27, 46, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s;
        border-radius: 0 0 20px 20px;
        z-index: 999;
        border-left: 1px solid var(--border);
    }
    .nav-list.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .auth-buttons {
        margin-right: 0;
    }
    .hero-text h1 {
        font-size: 2rem;
        min-height: 60px;
    }
    .logo {
        margin-left: 0;
    }
    .skillsSwiper {
        padding: 20px 10px 60px;
    }
    .skillsSwiper .swiper-slide-active .skill-card {
        transform: scale(1.05) translateY(-5px);
    }
    .skillsSwiper .swiper-slide:not(.swiper-slide-active) .skill-card {
        transform: scale(0.9);
    }
    .skill-card {
        max-width: 260px;
    }
    .skillsSwiper .swiper-button-next,
    .skillsSwiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    .skillsSwiper .swiper-button-next::after,
    .skillsSwiper .swiper-button-prev::after {
        font-size: 1rem;
    }
    .bg-blur-circle {
        filter: blur(60px);
        opacity: 0.3;
    }
    .circle-1 {
        width: 300px;
        height: 300px;
    }
    .circle-2 {
        width: 250px;
        height: 250px;
    }
    .circle-3 {
        width: 200px;
        height: 200px;
    }
    .circle-4 {
        width: 200px;
        height: 200px;
    }

    /* تایم‌لاین در موبایل */
    .timeline::before {
        right: 20px;
        transform: none;
    }
    .timeline-item {
        flex-direction: row !important;
        padding-right: 50px;
    }
    .timeline-dot {
        margin: 0 15px 0 0;
        position: absolute;
        right: 10px;
    }
    .timeline-content {
        width: 100%;
    }

    /* نمونه کارها در موبایل */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-item {
        aspect-ratio: 4/3;
    }
    
    /* فوتر */
    .footer-social {
        gap: 12px;
    }
    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .skillsSwiper .swiper-slide-active .skill-card {
        transform: scale(1.08);
    }
    .skillsSwiper .swiper-slide:not(.swiper-slide-active) .skill-card {
        transform: scale(0.9);
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== بخش بات تلگرام ===== */
.telegram-section {
    padding: 60px 0;
}
.telegram-card {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}
.telegram-card:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}
.telegram-icon i {
    font-size: 4rem;
    color: #0088cc;
    margin-bottom: 15px;
}
.telegram-card h2 {
    color: #F8FAFC;
    margin-bottom: 15px;
    font-size: 2rem;
}
.telegram-card h2::after {
    display: none;
}
.telegram-card p {
    color: #94A3B8;
    margin-bottom: 25px;
    font-size: 1.1rem;
}
.telegram-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.telegram-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.telegram-features .feature i {
    color: var(--primary);
    font-size: 1.1rem;
}
.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0088cc;
    color: #fff;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.3);
}
.telegram-btn:hover {
    background: #0077b3;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.4);
}
.telegram-btn i {
    font-size: 1.2rem;
}
.telegram-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.3);
}
.telegram-btn.disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.2);
}
@media (max-width: 600px) {
    .telegram-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .telegram-card {
        padding: 30px 20px;
    }
    .telegram-card h2 {
        font-size: 1.6rem;
    }
}

/* ===== بخش خدمات (دو کارت ثابت) ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card.featured {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 35px 25px 30px;
    text-align: center;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.skill-card.featured:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.25);
}

/* ===== برچسب ===== */
.skill-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient-btn);
    color: #fff;
    padding: 4px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.skill-badge.special {
    background: linear-gradient(90deg, #F59E0B, #FBBF24);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* ===== آیکون ===== */
.skill-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.skill-card.featured:hover .skill-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(6deg) scale(1.05);
}

.skill-card.featured h3 {
    color: #F8FAFC;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.skill-card.featured p {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ===== لیست ویژگی‌ها ===== */
.skill-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: right;
}

.skill-features li {
    color: #CBD5E1;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skill-features li:last-child {
    border-bottom: none;
}

.skill-features li i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* ===== دکمه ===== */
.skill-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gradient-btn);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

.skill-btn:hover {
    background: var(--gradient-btn-hover);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.35);
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 10px;
    }
    .skill-card.featured {
        padding: 30px 20px;
    }
    .skill-badge {
        top: -10px;
        right: 10px;
        font-size: 0.7rem;
        padding: 3px 14px;
    }
}

/* ===== دکمه ارتباط با من (شیشه‌ای) ===== */
.btn-contact {
    background: transparent !important;
    color: #94A3B8 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 15px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: 0.3s !important;
    cursor: pointer !important;
    display: inline-block !important;
    font-size: 0.9rem !important;
}
.btn-contact:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #F8FAFC !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}