/* ریست استایل‌ها و فونت‌ها */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Yekan', Tahoma, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #212529;
    line-height: 1.8;
    overflow-x: hidden;
    font-weight: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* هدر و نوار ناوبری */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    color: white;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    right: auto;
    left: 0;
}

/* محتوای اصلی */
main {
    margin-top: 80px;
    padding: 4rem 0;
    min-height: calc(100vh - 160px);
}

.hero {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.text-content {
    flex: 1;
    min-width: 300px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-content {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    position: relative;
    overflow: hidden;
}

.image-content::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(76, 161, 175, 0.1);
    top: -50px;
    right: -50px;
}

.image-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(44, 62, 80, 0.1);
    bottom: -50px;
    left: -50px;
}

.profile-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.profile-frame:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

h1 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

h1::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    right: 0;
    background: linear-gradient(90deg, #4ca1af 0%, #2c3e50 100%);
    border-radius: 2px;
}

.title {
    color: #4ca1af;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
    color: #495057;
}

.highlight {
    color: #2c3e50;
    font-weight: 600;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    color: white;
    border-radius: 50%;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

/* فوتر */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        flex-direction: column-reverse;
    }
    
    .text-content, .image-content {
        padding: 2rem;
    }
    
    .profile-frame {
        width: 250px;
        height: 250px;
    }
    
    h1 {
        font-size: 2rem;
    }
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-content {
    animation: fadeIn 0.8s ease forwards;
}

.image-content {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
}

/* افکت‌های تعاملی */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
    background: linear-gradient(135deg, #4ca1af 0%, #2c3e50 100%);
}

/* اسکرول نرم */
html {
    scroll-behavior: smooth;
}

.teacher-btn {
    display: inline-block;
    background-color: #FF6B35;
    color: white !important;
    padding: 0.1rem 0.5rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    margin: 0 0.2rem;
    border: 2px solid #FF6B35;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.teacher-btn:hover {
    background-color: #E55625;
    border-color: #E55625;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* استایل فرم تماس */
.contact-form-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

.close-btn:hover {
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.submit-btn {
    background-color: #FF6B35;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #E55625;
}