/* تعریف فونت‌های لوکال */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* استایل‌های اصلی */
* {
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: #f8f9fa;
    direction: rtl;
}

/* نوار بالایی */
.top-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.contact-link, .social-link {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: opacity 0.3s;
}

.contact-link:hover, .social-link:hover {
    opacity: 0.8;
    color: white;
}

/* برند */
.brand-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.brand-text h5 {
    color: #2c3e50;
    font-weight: 700;
}

.brand-text small {
    color: #7f8c8d;
}

/* دکمه نوبت */
.btn-appointment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn-appointment:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* هیرو */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    color: #2c3e50;
    font-weight: 900;
}

.hero-content .lead {
    color: #555;
    line-height: 2;
}

.hero-buttons .btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
}

/* قاب دایره‌ای بنفش */
.hero-image .image-placeholder {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    padding: 6px; /* فضای بین دایره بنفش و خط بنفش */
    box-sizing: border-box;
}

/* عکس دکتر با خط بنفش دور آن */
.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #764ba2; /* خط بنفش واضح دور عکس */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s ease;
}

/* افکت هاور */
.hero-image .image-placeholder:hover .doctor-img {
    transform: scale(1.03);
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .hero-image .image-placeholder {
        width: 260px;
        height: 260px;
        margin-top: 25px;
    }
}
}

/* کارت ویژگی */
.feature-card {
    background: white;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 35px;
}

/* تب‌ها */
.nav-pills .nav-link {
    color: #2c3e50;
    border-radius: 30px;
    padding: 12px 25px;
    margin: 0 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.nav-pills .nav-link i {
    margin-left: 8px;
}

/* کارت مقاله */
.article-card {
    transition: transform 0.3s;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

/* هدر صفحات */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

/* کارت تماس */
.contact-info-card {
    transition: transform 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-number {
    color: #2c3e50;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: block;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .hero-image .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 80px;
    }
    
    .nav-pills .nav-link {
        margin: 5px 0;
        width: 100%;
    }
}

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

.feature-card, .article-card {
    animation: fadeInUp 0.6s ease-out;
}