/* ============================================
   فایل استایل اصلی - تم وکالتی آبی و طلایی
   نسخه کامل و بهینه
   ============================================ */

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

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    min-height: 100vh;
    direction: rtl;
    overflow-x: hidden;
}

.container-fluid {
    padding: 0;
}

/* ============================================
   سایدبار (سمت راست)
   ============================================ */
.sidebar {
    background: linear-gradient(180deg, #0a0a2a 0%, #0a0a0a 100%);
    min-height: 100vh;
    padding: 3rem 2rem;
    position: relative;
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(201, 160, 61, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 51, 204, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* بخش پروفایل */
.profile-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 160, 61, 0.3);
    position: relative;
}

.profile-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #C9A03D, #D4AF37, #C9A03D);
    border-radius: 3px;
}

/* عکس پروفایل */
.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #1a2a5e, #C9A03D, #1a2a5e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #ffffff;
    box-shadow: 0 0 40px rgba(201, 160, 61, 0.3);
    border: 3px solid rgba(201, 160, 61, 0.4);
    position: relative;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-image i {
    position: relative;
    z-index: 1;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(201, 160, 61, 0.2), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* اسم و عنوان */
.name {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-align: center;
}

.title {
    color: #D4AF37;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-align: center;
}

.subtitle-text {
    color: #7a8cbf;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* لینک‌های اجتماعی */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1a2a5e, #0d1a3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 160, 61, 0.3);
}

.social-link:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #C9A03D, #D4AF37);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(201, 160, 61, 0.4);
}

/* اطلاعات تماس */
.contact-info, .skills-section, .languages {
    margin-bottom: 2.5rem;
}

.contact-info h2, .skills-section h2, .languages h2 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-info h2::after, .skills-section h2::after, .languages h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45px;
    height: 2px;
    background: linear-gradient(90deg, #C9A03D, transparent);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(201, 160, 61, 0.15);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(201, 160, 61, 0.08);
    border-color: rgba(201, 160, 61, 0.4);
    transform: translateX(-5px);
}

.contact-item i {
    color: #D4AF37;
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

/* مهارت‌ها */
.skill-item {
    margin-bottom: 1.2rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
    font-size: 0.9rem;
}

.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    border: none;
}

.progress-bar {
    background: linear-gradient(90deg, #C9A03D, #D4AF37, #C9A03D);
    border-radius: 3px;
    position: relative;
    box-shadow: 0 0 8px rgba(201, 160, 61, 0.4);
}

/* زبان‌ها */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(201, 160, 61, 0.15);
    transition: all 0.3s ease;
}

.language-item:hover {
    background: rgba(201, 160, 61, 0.08);
    border-color: rgba(201, 160, 61, 0.3);
}

.level {
    color: #D4AF37;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(201, 160, 61, 0.15);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid rgba(201, 160, 61, 0.3);
}

/* ============================================
   محتوای اصلی
   ============================================ */
.main-content {
    padding: 3rem 3rem;
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(201, 160, 61, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 51, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* هدر اصلی */
.header-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.08), rgba(26, 42, 94, 0.4));
    border-radius: 20px;
    border: 1px solid rgba(201, 160, 61, 0.25);
    position: relative;
    overflow: hidden;
}

.header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(201, 160, 61, 0.08) 50%, transparent 70%);
    animation: headerGlow 5s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.main-title {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.1rem;
    color: #D4AF37;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.accept-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #7a8cbf;
    position: relative;
    z-index: 1;
}

.accept-text i {
    color: #C9A03D;
    margin-left: 0.4rem;
}

/* بخش‌ها */
.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(201, 160, 61, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #1a2a5e, #C9A03D, #1a2a5e);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.section:hover::before {
    transform: scaleX(1);
}

.section:hover {
    background: rgba(201, 160, 61, 0.03);
    border-color: rgba(201, 160, 61, 0.25);
    transform: translateY(-3px);
}

.section h2 {
    color: #D4AF37;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 2px solid rgba(201, 160, 61, 0.2);
    padding-bottom: 0.8rem;
    font-weight: 700;
}

.section h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.section p {
    line-height: 1.8;
    color: #d0d0d0;
    font-size: 1rem;
}

/* آیتم‌های تجربه */
.experience-item {
    margin-bottom: 1.8rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.05), rgba(26, 42, 94, 0.03));
    border-radius: 14px;
    border-right: 3px solid #C9A03D;
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-right-color: #D4AF37;
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.08), rgba(26, 42, 94, 0.05));
}

.experience-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.company {
    color: #D4AF37;
    font-weight: 500;
    font-size: 0.9rem;
}

.period {
    color: #7a8cbf;
    font-size: 0.8rem;
    background: rgba(201, 160, 61, 0.1);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.3rem;
}

.experience-item ul {
    list-style: none;
    padding-right: 0;
    margin-top: 1rem;
}

.experience-item li {
    margin-bottom: 0.6rem;
    padding-right: 1.3rem;
    position: relative;
    color: #c0c0c0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.experience-item li::before {
    content: '▸';
    color: #C9A03D;
    position: absolute;
    right: 0;
    font-weight: bold;
}

/* گرید پروژه‌ها / تخصص‌ها */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.05), rgba(26, 42, 94, 0.03));
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(201, 160, 61, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(201, 160, 61, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: linear-gradient(135deg, #1a2a5e, #0d1a3a);
    color: #D4AF37;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(201, 160, 61, 0.3);
    transition: all 0.2s ease;
}

.project-tech span:hover {
    background: linear-gradient(135deg, #C9A03D, #D4AF37);
    color: #ffffff;
}

/* گواهینامه‌ها */
.certificates {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.certificate-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.08), rgba(26, 42, 94, 0.04));
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 160, 61, 0.2);
    transition: all 0.3s ease;
}

.certificate-item:hover {
    background: rgba(201, 160, 61, 0.12);
    transform: translateY(-3px);
    border-color: #C9A03D;
}

.certificate-item i {
    font-size: 1.3rem;
    color: #C9A03D;
}

.certificate-item span {
    font-size: 0.85rem;
}

/* بخش نظرات */
.comments-section {
    background: linear-gradient(135deg, rgba(201, 160, 61, 0.04), rgba(0, 0, 0, 0.2));
}

.comments-list {
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    border-right: 3px solid #C9A03D;
    transition: all 0.2s ease;
}

.comment-item:hover {
    background: rgba(201, 160, 61, 0.06);
    transform: translateX(3px);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comment-header strong {
    color: #D4AF37;
    font-size: 0.9rem;
}

.comment-date {
    color: #6a6a6a;
    font-size: 0.7rem;
}

.comment-text {
    color: #d0d0d0;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* فرم نظرات */
.comment-form {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(201, 160, 61, 0.15);
}

.comment-form h3 {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.form-control {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(201, 160, 61, 0.2);
    color: #ffffff;
    font-family: 'Vazirmatn', sans-serif;
    border-radius: 8px;
    padding: 0.6rem 1rem;
}

.form-control:focus {
    background: rgba(0, 0, 0, 0.6);
    border-color: #C9A03D;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(201, 160, 61, 0.2);
    outline: none;
}

.form-control::placeholder {
    color: #6a6a6a;
}

.btn-gold {
    background: linear-gradient(135deg, #C9A03D, #a07830);
    color: #ffffff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: linear-gradient(135deg, #D4AF37, #b08828);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 160, 61, 0.3);
}

/* ============================================
   ریسپانسیو
   ============================================ */

/* تبلت و زیر */
@media (max-width: 991px) {
    .sidebar {
        min-height: auto;
        padding: 2rem;
    }
    
    .main-content {
        padding: 2rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .sidebar {
        padding: 1.5rem;
    }
    
    .main-content {
        padding: 1.5rem;
    }
    
    .section {
        padding: 1.2rem;
        margin-bottom: 2rem;
    }
    
    .header-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .title {
        font-size: 0.9rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .section h2 {
        font-size: 1.3rem;
    }
    
    .experience-item {
        padding: 1rem;
    }
    
    .certificate-item {
        padding: 0.6rem 1rem;
    }
    
    .certificate-item i {
        font-size: 1rem;
    }
    
    .certificate-item span {
        font-size: 0.75rem;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .sidebar, .main-content {
        padding: 1rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 0.6rem 0.8rem;
    }
    
    .contact-item span {
        font-size: 0.85rem;
    }
    
    .skill-item span {
        font-size: 0.85rem;
    }
    
    .language-item {
        padding: 0.6rem 0.8rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .certificates {
        gap: 0.7rem;
    }
    
    .certificate-item {
        padding: 0.5rem 0.8rem;
    }
}

/* ============================================
   اسکرولبار
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #C9A03D, #D4AF37);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4AF37;
}

/* ============================================
   انیمیشن‌ها
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }
.section:nth-child(6) { animation-delay: 0.3s; }
.section:nth-child(7) { animation-delay: 0.35s; }
.section:nth-child(8) { animation-delay: 0.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.profile-image {
    animation: float 5s ease-in-out infinite;
}

/* ============================================
   پرینت
   ============================================ */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .sidebar {
        background: white;
        border: 1px solid #ccc;
    }
    
    .main-content {
        background: white;
    }
    
    .profile-image {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-gold, .comment-form, .social-links {
        display: none;
    }
    
    .section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .progress-bar {
        background: #999;
    }
    
    .name, .main-title {
        -webkit-text-fill-color: #333;
        background: none;
        color: #333;
    }
}