/* Global Styles */
:root {
    --primary-color: #4a37b3;
    --secondary-color: #7b68ee;
    --accent-color: #ff6b81;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333333;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #e84393 100%);
    --ai-gradient: linear-gradient(135deg, #4a37b3 0%, #00bcd4 100%);
    --ml-gradient: linear-gradient(135deg, #6a3093 0%, #a044ff 100%);
    --data-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

* {
    margin: 10;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    direction: rtl;
}

body {
    font-family: 'Vazirmatn', 'Poppins', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(108, 92, 231, 0.03) 0%, transparent 400px),
        radial-gradient(circle at 80% 80%, rgba(253, 121, 168, 0.03) 0%, transparent 400px);
}

a {
    text-decoration: none;
    color: inherit;
}

button, 
input[type="button"], 
input[type="submit"],

ul {
    list-style: none;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

.primary-btn:hover {
    background-color: #5649c0;
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-header h2::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    top: -10px;
    right: -15px;
    z-index: -1;
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    margin-top: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.underline {
    height: 4px;
    width: 80px;
    background-image: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    bottom: 5px;
    right: -12px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
    background: 
        radial-gradient(circle at 10% 90%, rgba(74, 55, 179, 0.1) 0%, transparent 300px),
        radial-gradient(circle at 90% 10%, rgba(0, 188, 212, 0.08) 0%, transparent 300px);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%234a37b3' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2V6h4V4H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    z-index: -1;
}

.hero-content {
    flex: 1;
    padding: 0 20px;
    max-width: 600px;
    animation: fadeInRight 1s ease forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 70px;
    height: 3px;
    background-image: var(--gradient-primary);
    border-radius: 2px;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: 5px;
    right: 0;
    background-color: rgba(162, 155, 254, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.primary-btn {
    background-image: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.primary-btn:hover {
    background-image: linear-gradient(135deg, #5b4cdf 0%, #9389fb 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.5);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.secondary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background-image: var(--gradient-primary);
    z-index: -1;
    opacity: 0.2;
    transition: var(--transition);
}

.secondary-btn:hover {
    color: white;
    transform: translateY(-3px);
}

.secondary-btn:hover::before {
    opacity: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInLeft 1s ease forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.image-container {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-image: var(--ai-gradient);
    box-shadow: 
        0 10px 30px rgba(108, 92, 231, 0.4),
        0 0 0 15px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    top: -50%;
    left: -50%;
    transform: rotate(35deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: rotate(35deg) translateX(-50%);
    }
    100% {
        transform: rotate(35deg) translateX(100%);
    }
}

/* About Section */
.about {
    background-color: white;
    position: relative;
    overflow: hidden;
}

.about::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: var(--ai-gradient);
    border-radius: 50%;
    opacity: 0.05;
    top: -100px;
    left: -100px;
    z-index: 0;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    min-width: 120px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    bottom: 0;
    left: 0;
    background-image: var(--gradient-primary);
    z-index: -1;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 0.9rem;
    color: #666;
}

/* Skills Section */
.skills {
    background-color: #f8f9fa;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skill-category {
    margin-bottom: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* نمایش 3 ستون با عرض مساوی */
    gap: 20px; /* فاصله بین آیتم‌ها */
    margin-bottom: 20px;
}

/* تنظیمات واکنش‌گرا برای دستگاه‌های کوچک */
@media screen and (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr; /* در موبایل هر مهارت در یک ردیف */
    }
}

.skill-item {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.skill-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 5px;
    background-image: var(--gradient-primary);
    border-radius: 0 0 0 5px;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.skill-item i {
    font-size: 2.5rem;
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
}

.skill-item span {
    display: block;
    font-size: 1rem;
    color: black;
    line-height: 1.8;
}

.skill-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-level {
    height: 100%;
    background-image: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.skill-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    60%, 100% {
        transform: translateX(100%);
    }
}

/* Projects Section */
.projects {
    background-color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-img {
    height: 200px;
    background-image: 
        linear-gradient(45deg, rgba(74, 55, 179, 0.8) 0%, rgba(123, 104, 238, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M50 30a20 20 0 1 1-40 0 20 20 0 0 1 40 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: cover, 20px 20px;
    position: relative;
    overflow: hidden;
}

.project-img::after {
    content: 'مشاهده جزئیات';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(108, 92, 231, 0.9);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-img::after {
    opacity: 1;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-content p {
    margin-bottom: 15px;
    color: #666;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tech span {
    background-image: var(--ai-gradient);
    background-size: 200% 100%;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(108, 92, 231, 0.2);
    transition: var(--transition);
}

.project-tech span:hover {
    background-position: 100% 0;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 20px;
    transition: var(--transition);
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.contact-item {
    background-color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.03),
        0 1px 3px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.04);
}

.contact-item i {
    font-size: 1.3rem;
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-left: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background-image: var(--gradient-primary);
    background-size: 200% 100%;
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.social-links a:hover {
    background-position: 100% 0;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.4);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f9f9f9;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.1);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-image: var(--gradient-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.submit-btn:hover {
    background-image: linear-gradient(135deg, #5b4cdf 0%, #9389fb 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 5px;
    top: 0;
    left: 0;
    background-image: var(--ai-gradient);
}

footer::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-image: var(--gradient-primary);
    opacity: 0.05;
    bottom: -150px;
    right: -150px;
    z-index: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.footer-links a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 80px;
        background-color: white;
        height: calc(100vh - 80px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 50px 0;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 999;
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-active {
        transform: translateX(0);
    }
    
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skill-category h3, .contact-info h3, .contact-form h3 {
        font-size: 1.3rem;
    }
}

/* Animation for fade in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease forwards;
}

/* Adding more animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.image-container {
    animation: float 6s ease-in-out infinite;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-image: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    transform: scale(0.9);
    border: 2px solid transparent;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    animation: pulse 2s infinite;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.scroll-top.clicked {
    transform: scale(0.8);
    box-shadow: 0 0 0 15px rgba(108, 92, 231, 0);
    background-image: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: all 0.15s ease;
}

.scroll-top i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.scroll-top:hover i {
    transform: translateY(-3px);
}

.scroll-top.clicked i {
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .scroll-top {
        width: 60px;
        height: 60px;
        bottom: 40px;
        right: 40px;
    }
    
    .scroll-top i {
        font-size: 1.8rem;
    }
}

/* Enhanced Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding-top: 80px;
    background: 
        radial-gradient(circle at 10% 90%, rgba(74, 55, 179, 0.1) 0%, transparent 300px),
        radial-gradient(circle at 90% 10%, rgba(0, 188, 212, 0.08) 0%, transparent 300px);
    overflow: hidden;
    position: relative;
}

/* Badge in hero section */
.badge {
    display: inline-block;
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.badge::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: var(--gradient-primary);
    top: 0;
    left: 0;
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
}

.badge:hover {
    color: white;
}

.badge:hover::before {
    opacity: 1;
    transform: scale(1);
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.hero-stat {
    position: relative;
}

.hero-stat::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    left: -20px;
    top: 0;
}

.hero-stat:first-child::after {
    display: none;
}

.hero-stat .number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.hero-stat .text {
    color: #666;
    font-size: 0.9rem;
}

/* Tech stack badges */
.tech-stack {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    gap: 15px;
}

.tech-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    position: relative;
    animation: techFloat 4s ease-in-out infinite;
}

.tech-badge.html {
    color: #E44D26;
    animation-delay: 0s;
}

.tech-badge.bpmn {
    color: #E44D26;
    animation-delay: 0s;
}

.tech-badge.css {
    color: #264DE4;
    animation-delay: 0.5s;
}
.tech-badge.crm {
    color: #264DE4;
    animation-delay: 0.5s;
}

.tech-badge.js {
    color: #F7DF1E;
    background-color: #333;
    animation-delay: 1s;
}


.tech-badge.react {
    color: #61DAFB;
    animation-delay: 1.5s;
}

.tech-badge.python {
    color: #3776AB;
    background-color: #fff;
    animation-delay: 0s;
}

.tech-badge.tf {
    color: #FF6F00;
    background-color: #fff;
    animation-delay: 0.5s;
}

.tech-badge.BI {
    color: #FF6F00;
    background-color: #fff;
    animation-delay: 0.5s;
}

.tech-badge.pytorch {
    color: #EE4C2C;
    background-color: #fff;
    animation-delay: 1s;
}

.tech-badge.ai {
    color: #00C9FF;
    background-color: #333;
    animation-delay: 1.5s;
}

@keyframes techFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #666;
    animation: fadeInUp 1s ease forwards 1s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid #666;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Decorative shapes in profile placeholder */
.shape {
    position: absolute;
    border-radius: 50%;
    background-image: var(--gradient-accent);
    animation: shapeFloat 6s ease-in-out infinite;
}

.shape-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    right: 30px;
    animation-delay: 0s;
}

.shape-2 {
    width: 40px;
    height: 40px;
    bottom: 20px;
    right: -20px;
    animation-delay: 1s;
}

.shape-3 {
    width: 30px;
    height: 30px;
    bottom: -15px;
    left: 50px;
    animation-delay: 2s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Section tags */
.section-tag {
    display: inline-block;
    background-color: rgba(74, 55, 179, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* About section enhancements */
.about-greeting {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.about-greeting .emoji {
    font-size: 2.5rem;
}

.about-greeting h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: rgba(108, 92, 231, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

.feature:hover {
    background-color: rgba(108, 92, 231, 0.1);
    transform: translateY(-3px);
}

.feature i {
    color: var(--primary-color);
}

.about-btn {
    margin-top: 20px;
}

/* Project filters */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    color: var(--dark-color);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    z-index: -1;
    background-color: rgba(108, 92, 231, 0.1);
    transform: scale(0);
    transition: var(--transition);
}

.filter-btn:hover::before, .filter-btn.active::before {
    transform: scale(1);
}

.filter-btn.active {
    color: var(--primary-color);
    font-weight: 500;
}

/* Project category label */
.project-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

/* More projects button */
.more-projects {
    text-align: center;
    margin-top: 50px;
}

/* Testimonials section */
.testimonials {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.05;
    bottom: -150px;
    right: -150px;
    z-index: 0;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.03);
    margin-bottom: 30px;
    position: relative;
    display: none;
}

.testimonial:first-child {
    display: block;
}

.testimonial::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: rgba(108, 92, 231, 0.1);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: var(--gradient-primary);
}

.author-info h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.prev-btn, .next-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: var(--transition);
    color: var(--dark-color);
}

.prev-btn:hover, .next-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Enhanced contact form */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.contact-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 3px;
}

.contact-value {
    font-weight: 500;
    color: var(--dark-color);
}

/* Enhanced footer */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: right;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    background-image: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.footer-logo p {
    color: #ddd;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links-column h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.footer-links-column a {
    color: #ddd;
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: white;
    transform: translateX(-5px);
}

.footer-social {
    margin-top: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
}

/* Responsive enhancements */
@media screen and (max-width: 768px) {
    .hero-stats {
        justify-content: center;
    }
    
    .tech-stack {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo p {
        max-width: 100%;
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-around;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Neural network pattern background for background */
@keyframes neuralPulse {
    0% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.2;
        transform: scale(1);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%234a37b3' fill-opacity='0.03'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    animation: neuralPulse 8s ease-in-out infinite;
}

/* AI Project tech tag colors */
.project-tech span {
    background-image: var(--ai-gradient);
}

/* AI-themed notification */
.notification.info {
    border-right: 4px solid var(--primary-color);
}

.notification.info i {
    color: var(--primary-color);
}

/* AI-themed feature icons */
.feature i {
    background-image: var(--ai-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* AI-themed project images */
.project-card[data-category="nlp"] .project-img {
    background-image: 
        linear-gradient(45deg, rgba(106, 48, 147, 0.8) 0%, rgba(160, 68, 255, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M10 10h10v10H10zM30 10h10v10H30zM10 30h10v10H10zM30 30h10v10H30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.project-card[data-category="vision"] .project-img {
    background-image: 
        linear-gradient(45deg, rgba(0, 188, 212, 0.8) 0%, rgba(0, 144, 231, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M30 5h30v30H30zM0 35h30v30H0z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.project-card[data-category="ml"] .project-img {
    background-image: 
        linear-gradient(45deg, rgba(74, 55, 179, 0.8) 0%, rgba(123, 104, 238, 0.8) 100%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M50 30a20 20 0 1 1-40 0 20 20 0 0 1 40 0'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* AI-themed skill items */
.skill-item .fas.fa-brain,
.skill-item .fas.fa-language,
.skill-item .fas.fa-fire,
.skill-item .fas.fa-fire,
.skill-item .fab.fa-python {
    background-image: var(--ai-gradient);
}

.skill-item .fas.fa-database,
.skill-item .fas.fa-cloud,
.skill-item .fab.fa-docker,
.skill-item .fas.fa-code-branch {
    background-image: var(--ml-gradient);
}

/* AI Project category labels */
.project-card[data-category="nlp"] .project-category {
    background-color: rgba(106, 48, 147, 0.1);
    color: #6a3093;
}

.project-card[data-category="vision"] .project-category {
    background-color: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
}

.project-card[data-category="ml"] .project-category {
    background-color: rgba(74, 55, 179, 0.1);
    color: #4a37b3;
}

/* Responsive enhancement for AI theme */
@media screen and (max-width: 768px) {
    .tech-badge {
        width: 50px;
        height: 50px;
        font-size: 0.9rem;
    }
}

/* استایل برای تصویر پروفایل */
.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 
        0 10px 30px rgba(108, 92, 231, 0.4),
        0 0 0 15px rgba(255, 255, 255, 0.5);
}

/* استایل برای تصاویر پروژه‌ها */
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-img {
    position: relative;
    overflow: hidden;
}

/* استایل برای تصاویر توصیه‌ها */
.testimonial-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

/* استایل برای آیکون پروژه‌ها */
.project-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-icon i {
    font-size: 4rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.project-card[data-category="nlp"] .project-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.project-card[data-category="vision"] .project-icon i {
    color: rgba(255, 255, 255, 0.9);
}

.project-card[data-category="ml"] .project-icon i {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.project-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
    border-right: 3px solid rgba(108, 92, 231, 0.3);
    padding-right: 10px;
    background-color: rgba(108, 92, 231, 0.05);
    padding: 10px;
    border-radius: 0 5px 5px 0;
}


.mouse-cursor.hover {
    width: 25px;
    height: 25px;
    background-color: rgba(108, 92, 231, 0.8);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
    animation: none;
}

.mouse-cursor-follower.hover {
    width: 45px;
    height: 45px;
    border-color: rgba(108, 92, 231, 0.4);
    opacity: 0.9;
    animation: none;
}

/* مخفی کردن نشانگر موس در دستگاه‌های لمسی */
@media (pointer: coarse) {
    .mouse-cursor, .mouse-cursor-follower {
        display: none;
    }
}

/* استایل ذرات متحرک */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: particleFloat infinite linear;
}

.particle.square {
    border-radius: 2px;
    background-color: rgba(108, 92, 231, 0.1);
}

.particle.circle {
    border-radius: 50%;
    background-color: rgba(0, 188, 212, 0.1);
}

.particle.triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid rgba(255, 107, 129, 0.1);
    background-color: transparent;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}

/* استایل‌های انیمیشن ظاهر شدن با اسکرول */
.hidden-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* استایل برای تغییر رنگ منو هنگام اسکرول */
header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* انیمیشن منوی موبایل */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* انیمیشن آب برای المان‌های خاص */
.water-animation {
    position: relative;
    overflow: hidden;
}

.water-animation::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: rotate 7s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* استایل‌های هاور پیشرفته */
.btn.primary-btn {
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.btn.primary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn.primary-btn:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

/* افکت براق برای کارت‌ها */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.5s;
    z-index: 1;
}

.project-card:hover::before {
    top: 100%;
    left: 100%;
}

/* افکت پیش‌زمینه برای بخش‌ها */
.hero, .about, .skills, .projects, .contact {
    position: relative;
    overflow: hidden;
}

.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    z-index: -1;
}

.hero .section-background {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%236c5ce7' stroke-width='1' %3E%3Cpath d='M0 0 L80 80 M80 0 L0 80 M30 0 L80 50 M0 30 L50 80 M0 50 L30 80 M50 0 L80 30'/%3E%3C/g%3E%3C/svg%3E");
}

.about .section-background {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill='%236c5ce7' fill-opacity='0.05'%3E%3Cpath d='M10 0 L22 0 L22 10 L10 24 L0 24 L0 14 Z M64 0 L76 0 L76 10 L64 24 L54 24 L54 14 Z'/%3E%3C/g%3E%3C/svg%3E");
}

.skills .section-background {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236c5ce7' fill-opacity='0.05'/%3E%3C/svg%3E");
}

/* افکت تغییر رنگ گرادیانت */
.gradient-animation {
    background-size: 200% 200%;
    animation: gradientPosition 5s ease infinite;
}

@keyframes gradientPosition {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* افکت نور خورشیدی */
.sunlight-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%),
        rgba(108, 92, 231, 0.1) 0%,
        rgba(108, 92, 231, 0) 50%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* افکت مرز RGB متحرک */
.rgb-border-animation {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2px;
    background-color: white;
    border-radius: var(--border-radius);
}

.rgb-border-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        #ff0000 0%,
        #ff7f00 12.5%,
        #ffff00 25%,
        #00ff00 37.5%,
        #0000ff 50%,
        #4b0082 62.5%,
        #9400d3 75%,
        #ff0000 87.5%,
        #ff0000 100%
    );
    z-index: -2;
    animation: rotate 3s linear infinite;
}

.rgb-border-animation::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: calc(var(--border-radius) - 2px);
    z-index: -1;
}

.primary-btn.rgb-animation {
    margin: 0;
    position: relative;
    z-index: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.primary-btn.rgb-animation::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        #ff0000,
        #ff7f00,
        #ffff00,
        #00ff00,
        #0000ff,
        #4b0082,
        #9400d3,
        #ff0000
    );
    background-size: 400%;
    z-index: -1;
    animation: rgbBorder 20s linear infinite;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s;
}

.primary-btn.rgb-animation:hover::before {
    opacity: 1;
}

@keyframes rgbBorder {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 300% 0%;
    }
    100% {
        background-position: 0% 0%;
    }
} 

/* Improved Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Header & Navigation */
    header {
        padding: 15px 5%;
    }
    
    .burger {
        display: block;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 0.7s ease-out;
        pointer-events: none;
        z-index: 1000;
    }
    
    .nav-links.nav-active {
        clip-path: circle(1000px at 90% -10%);
        -webkit-clip-path: circle(1000px at 90% -10%);
        pointer-events: all;
    }
    
    .nav-links li {
        opacity: 0;
        margin: 15px 0;
    }
    
    /* Hero Section */
    .hero {
        flex-direction: column;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        animation: fadeIn 1s ease forwards;
        padding: 0 20px;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .tech-stack {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .about-features {
        flex-wrap: wrap;
    }
    
    /* Skills Section */
    .skills-grid {
        display: flex;
        flex-direction: column;
        gap: 1.2rem; /* فاصله بین آیتم‌ها بیشتر بشه */
      }
      
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .projects-filter {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    /* Contact Section */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .footer-social {
        width: 100%;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links-column {
        width: 100%;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* General Section Styles */
    section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-description {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .image-container {
        width: 180px;
        height: 180px;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
    }
    
    .about-greeting h3 {
        font-size: 1.4rem;
    }
    
    .feature {
        width: 100%;
    }
    
    .testimonial {
        padding: 20px;
    }
    
    .testimonial-content p {
        font-size: 0.9rem;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .footer-logo h3 {
        font-size: 1.5rem;
    }
}

/* Fix cursor on touch devices */
@media (pointer: coarse) {
    * {
        cursor: auto !important;
    }
    
    a, button, .btn, input[type="submit"], .filter-btn {
        cursor: pointer !important;
    }
    
    .mouse-cursor, .mouse-cursor-follower {
        display: none !important;
    }
}

/* استایل‌های جدید برای بخش تماس */
.contact-platforms {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.platform-link {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.platform-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-image: var(--gradient-primary);
    transition: var(--transition);
}

.platform-link:hover::before {
    width: 10px;
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.platform-icon i {
    font-size: 1.5rem;
    color: white;
}

.platform-info {
    flex-grow: 1;
}

.platform-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.platform-info p {
    color: #666;
    font-size: 0.9rem;
}

.platform-arrow {
    margin-right: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.platform-link:hover .platform-arrow {
    transform: translateX(-5px);
}

/* تغییر استایل social-links برای تطابق بهتر */
.social-links {
    margin-top: 30px;
    justify-content: center;
}

/* تنظیمات واکنش‌گرا برای بخش تماس */
@media screen and (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .platform-link {
        padding: 15px;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
        margin-left: 15px;
    }
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 8px;
    bottom: 5px;
    right: 0;
    background-color: rgba(108, 92, 231, 0.2);
    z-index: -1;
    border-radius: 5px;
}


/* ریسپانسیو بهتر برای موبایل */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}










/* استایل‌های اسلایدر مشتریان */
.clients-slider {
    background: #fff;
    padding: 40px 0 20px 0;
    text-align: center;
    margin-top: 40px;
    overflow: hidden;
}

.clients-slider h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    overflow: hidden;
    width: 100%;
    direction: ltr;
}

.slider-track {
    display: flex;
    will-change: transform;
    animation: scroll 20s linear infinite;
}

.slider-track img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 20px;
    transition: transform 0.3s;
    filter: grayscale(0.2);
    flex-shrink: 0;
}

.slider-track img:hover {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* خودکار چرخش */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* تنظیمات موبایل */
@media (max-width: 768px) {
    .slider-track {
        animation: scrollMobile 20s linear infinite;
    }
    
    .slider-track img {
        width: 120px;
        height: 120px;
        margin: 0 15px;
    }
    
    @keyframes scrollMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

@media (max-width: 500px) {
    .slider-track img {
        width: 100px;
        height: 100px;
        margin: 0 px;
    }
}



/* استایل‌های بهینه‌شده برای اسلایدر */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    animation: scroll 50s linear infinite;
    will-change: transform;
}

.slider-track:hover {
    animation-play-state: paused;
}

.slider-track img {
    width: 160px; /* قبلا 120px بود */
    height: 160px; /* قبلا 80px بود */
    object-fit: contain;
    margin: 0 25px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: grayscale(0.3);
    opacity: 0.99; /* کمی شفاف‌تر (قبلا 0.8 بود) */
}

.slider-track img:hover {
    transform: scale(1.15);
    filter: grayscale(0);
    opacity: 1;
}

/* انیمیشن سریع‌تر و روان‌تر */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-120px * 16 - 25px * 16)); /* محاسبه دقیق بر اساس تعداد لوگوها */
    }
}

/* تنظیمات برای دستگاه‌های مختلف */
@media (max-width: 1200px) {
    .slider-track img {
        width: 120px;
        height: 90px;
        margin: 0 20px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-100px * 16 - 20px * 16));
        }
    }
}

@media (max-width: 768px) {
    .slider-track {
        animation-duration: 60s; /* سریع‌تر در موبایل */
    }
    
    .slider-track img {
        width: 130px;
        height: 110px;
        margin: 0 15px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-80px * 8 - 15px * 8));
        }
    }
}

@media (max-width: 480px) {
    .slider-track {
        animation-duration: 25s; /* حتی سریع‌تر در موبایل‌های کوچک */
    }
    
    .slider-track img {
        width: 90px;
        height: 75px;
        margin: 0 12px;
    }
    
    @keyframes scroll {
        100% {
            transform: translateX(calc(-60px * 8 - 12px * 8));
        }
    }
}

/* بهبود عملکرد با ویژگی‌های جدید CSS */
.slider-track {
    backface-visibility: hidden;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* جلوگیری از flickering در برخی مرورگرها */
.slider-container {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}