@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }
body { 
    font-family: 'Vazirmatn', sans-serif; 
    background:#0f0f1a; 
    color:#e0e0ff; 
    overflow-x:hidden;
    line-height:1.7;
}

/* اسکرول بار خفن */
::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background:#1a1a2e; }
::-webkit-scrollbar-thumb { background:#ff6b6b; border-radius:10px; }
::-webkit-scrollbar-thumb:hover { background:#ff5252; }

/* ناوبری شیشه‌ای */
.navbar {
    position:fixed; top:0; left:0; right:0; background:rgba(15,15,26,0.8); backdrop-filter:blur(20px);
    border-bottom:1px solid rgba(255,107,107,0.2); padding:20px 50px; display:flex; justify-content:space-between;
    align-items:center; z-index:9999; transition:0.4s;
}
.navbar.scrolled { background:rgba(15,15,26,0.95); padding:15px 50px; }
.logo { font-size:28px; font-weight:700; background:linear-gradient(45deg,#ff6b6b,#764ba2); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.nav-links a { color:#e0e0ff; margin:0 25px; font-weight:500; position:relative; }
.nav-links a::after { content:''; position:absolute; bottom:-8px; left:0; width:0; height:3px; background:#ff6b6b; transition:0.4s; border-radius:3px; }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.hamburger { display:none; font-size:30px; cursor:pointer; color:#ff6b6b; }

/* هیرو فوق مدرن */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
}
/* درست کردن مشکل عکس زیر پس‌زمینه */
.hero-fixed {
    position: relative;
    background: transparent !important;   /* مهم: پس‌زمینه رو حذف می‌کنیم */
    z-index: 1;
}

/* پس‌زمینه گرادیانت رو به بدنه hero-container می‌ذاریم */
.hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 40px 100px;
    gap: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    margin-top: 80px;
    box-shadow: 0 30px 100px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* مطمئن بشیم عکس بالای پس‌زمینه است */
.hero-image-left,
.profile-wrapper,
.profile-pic-small {
    position: relative;
    z-index: 10;
}

/* یه افکت خفن‌تر برای کانتینر */
.hero-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255,107,107,0.25), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* عکس سمت چپ + کوچیک‌تر */
.hero-image-left {
    flex: 0 0 320px;
    text-align: center;
}
.profile-pic-small {
    width: 300px !important;
    height: 300px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    transition: 0.5s;
}
.profile-pic-small:hover {
    transform: scale(1.08);
    border-color: rgba(255,107,107,0.6);
}

/* نوشته سمت راست */
.hero-text-right {
    flex: 1;
    color: white;
    max-width: 700px;
}
.hero-text-right h1 {
    font-size: 56px;
    margin-bottom: 15px;
    line-height: 1.2;
}
.subtitle {
    font-size: 28px;
    opacity: 0.95;
    margin-bottom: 20px;
}
.description {
    font-size: 21px;
    line-height: 1.8;
    margin: 30px 0;
}
.btn-primary {
    background: #ff6b6b;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 22px;
    box-shadow: 0 15px 40px rgba(255,107,107,0.4);
}

/* موبایل: عکس بالا، نوشته زیرش */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 140px 20px 80px;
    }
    .hero-image-left {
        order: 1;
        flex: none;
    }
    .hero-text-right {
        order: 2;
    }
    .profile-pic-small {
        width: 260px !important;
        height: 260px !important;
    }
    .hero-text-right h1 { font-size: 42px; }
    .subtitle { font-size: 24px; }
    .description { font-size: 19px; }
    .social-links-desktop { display: none; }
    .social-links-mobile { 
        display: flex !important; 
        justify-content: center; 
        gap: 30px; 
        margin-top: 40px; 
        font-size: 32px;
    }
}

/* واتساپ شناور با پالس */
.whatsapp-float {
    position:fixed; bottom:30px; left:30px; width:70px; height:70px; background:#25d366;
    color:white; border-radius:50%; font-size:40px; display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 30px rgba(37,211,102,0.5); z-index:999; animation:pulse 2s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(37,211,102,0.7)} 70%{box-shadow:0 0 0 20px rgba(37,211,102,0)} 100%{box-shadow:0 0 0 0 rgba(37,211,102,0)} }

/* فوتر مدرن */
.footer {
    background:#0a0a14; padding:80px 20px; text-align:center; border-top:1px solid rgba(255,107,107,0.2);
}
.social-links { gap:30px; margin:40px 0; }
.social-icon {
    width:70px; height:70px; font-size:32px; box-shadow:0 15px 40px rgba(0,0,0,0.4);
    transition:all 0.5s; position:relative; overflow:hidden;
}
.social-icon::before {
    content:''; position:absolute; top:0; left:0; width:100%; height:100%;
    background:linear-gradient(45deg,transparent 30%,rgba(255,255,255,0.2),transparent 70%);
    transform:translateX(-100%); transition:0.6s;
}
.social-icon:hover::before { transform:translateX(100%); }
.social-icon:hover { transform:translateY(-15px) rotate(10deg); }

/* موبایل */
@media (max-width:992px) {
    .hamburger { display:block; }
    .nav-links { position:fixed; top:0; right:-100%; width:100%; height:100vh; background:#0f0f1a;
        flex-direction:column; justify-content:center; align-items:center; transition:0.5s; }
    .nav-links.active { right:0; }
    .hero-container { flex-direction:column; text-align:center; padding:140px 20px 80px; }
    .hero-text h1 { font-size:48px; }
    .profile-pic { width:320px; height:320px; }
    .social-links-desktop { display:none; }
    .social-links-mobile { display:flex !important; gap:30px; margin-top:50px; }
}.contact-modern {
    padding:140px 20px;
    background:linear-gradient(135deg,#0f0f1a 0%,#1a1a2e 50%,#16213e 100%);
    position:relative;
    overflow:hidden;
}
.contact-modern::before {
    content:''; position:absolute; top:0; left:0; right:0; bottom:0;
    background:radial-gradient(circle at 50% 30%,rgba(255,107,107,0.15),transparent 60%);
    pointer-events:none;
}
.contact-wrapper {
    max-width:900px; margin:0 auto; text-align:center;
}
.contact-content {
    background:rgba(255,255,255,0.07);
    padding:70px 60px;
    border-radius:40px;
    backdrop-filter:blur(20px);
    border:1px solid rgba(255,107,107,0.2);
    box-shadow:0 30px 100px rgba(0,0,0,0.4);
}
.contact-modern h2 {
    font-size:62px;
    font-weight:700;
    margin-bottom:20px;
    background:linear-gradient(45deg,#ff6b6b,#764ba2);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}
.contact-subtitle {
    font-size:26px;
    margin-bottom:60px;
    opacity:0.9;
    max-width:700px;
    margin-left:auto;
    margin-right:auto;
}

/* فرم شیشه‌ای */
#contact-form {
    display:flex;
    flex-direction:column;
    gap:25px;
}
.input-group {
    position:relative;
}
.input-group input,
.input-group textarea {
    width:100%;
    padding:22px 60px 22px 20px;
    background:rgba(255,255,255,0.08);
    border:2px solid rgba(255,107,107,0.3);
    border-radius:20px;
    color:white;
    font-size:20px;
    font-family:'Vazirmatn',sans-serif;
    transition:all 0.4s;
}
.input-group input:focus,
.input-group textarea:focus {
    outline:none;
    border-color:#ff6b6b;
    background:rgba(255,107,107,0.1);
    box-shadow:0 0 30px rgba(255,107,107,0.3);
}
.input-group i {
    position:absolute;
    left:20px;
    top:50%;
    transform:translateY(-50%);
    font-size:24px;
    color:#ff6b6b;
    opacity:0.7;
}
.input-group textarea { resize:none; }

/* دکمه ارسال */
.submit-btn {
    background:linear-gradient(45deg,#ff6b6b,#ff5252);
    color:white;
    padding:22px;
    border:none;
    border-radius:50px;
    font-size:24px;
    font-weight:600;
    cursor:pointer;
    margin-top:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    transition:all 0.5s;
    box-shadow:0 15px 40px rgba(255,107,107,0.4);
}
.submit-btn:hover {
    transform:translateY(-10px);
    box-shadow:0 25px 60px rgba(255,107,107,0.6);
}
.submit-btn:active { transform:translateY(-5px); }

/* لینک‌های مستقیم */
.contact-direct {
    margin-top:50px;
    padding-top:40px;
    border-top:1px dashed rgba(255,107,107,0.3);
}
.contact-direct p { font-size:22px; margin-bottom:25px; opacity:0.9; }
.direct-links {
    display:flex;
    flex-direction:column;
    gap:20px;
    align-items:center;
}
.direct-links a {
    color:#e0e0ff;
    font-size:24px;
    text-decoration:none;
    padding:18px 40px;
    border-radius:50px;
    background:rgba(255,255,255,0.08);
    width:380px;
    transition:0.4s;
}
.direct-links a:hover {
    background:#ff6b6b;
    transform:scale(1.05);
}

/* موبایل */
@media (max-width:768px) {
    .contact-modern h2 { font-size:44px; }
    .contact-subtitle { font-size:20px; }
    .contact-content { padding:50px 30px; }
    .input-group input,
    .input-group textarea { font-size:18px; padding:18px 55px 18px 15px; }
    .direct-links a { width:100%; font-size:20px; }
}
/* منو کشویی و متحرک */
.dropdown { position:relative; }
.dropdown-content {
    display:none; position:absolute; top:100%; right:0; background:rgba(15,15,26,0.95);
    min-width:200px; box-shadow:0 8px 16px rgba(0,0,0,0.2); border-radius:15px;
    overflow:hidden; z-index:999; animation:dropdownAnim 0.4s ease forwards;
}
.dropdown-content a {
    display:block; padding:15px 20px; color:white; text-decoration:none; transition:0.3s;
}
.dropdown-content a:hover { background:rgba(255,107,107,0.2); }
.dropdown:hover .dropdown-content { display:block; }
@keyframes dropdownAnim { 0%{opacity:0; transform:translateY(-10px)} 100%{opacity:1; transform:translateY(0)} }

/* تجربه من */
.experience-grid {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:40px; margin-top:50px;
}
.experience-item {
    text-align:center; background:white; border-radius:20px; padding:20px; box-shadow:0 15px 40px rgba(0,0,0,0.1);
}
.experience-img { width:100%; height:250px; object-fit:cover; border-radius:15px; margin-bottom:20px; transition:0.4s; }
.experience-item:hover .experience-img { transform:scale(1.05); }

/* تخصص‌ها (دانلود PDF) */
.skills-grid {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:30px; margin-top:50px;
}
.skill-item {
    text-align:center; background:white; border-radius:20px; padding:25px; box-shadow:0 15px 40px rgba(0,0,0,0.1); transition:0.4s;
}
.skill-item:hover { transform:translateY(-15px); }
.skill-item img { width:100%; height:200px; object-fit:cover; border-radius:15px; cursor:pointer; transition:0.4s; }
.skill-item img:hover { transform:scale(1.1); }

/* پروژه‌ها (لینک روی عکس) */
.project-card img { cursor:pointer; transition:0.4s; }
.project-card img:hover { transform:scale(1.05); filter:brightness(1.1); }
.about-section {
    padding: 120px 20px;
    background: #111118;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1300px;
    margin: 0 auto;
}

/* عکس درباره من — کنترل کامل */
.about-image {
    flex: 0 0 420px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(255,107,107,0.3);
    border: 4px solid rgba(255,107,107,0.2);
}

.about-image img {
    width: 100%;
    height: 520px;           /* ارتفاع ثابت — نه بیشتر */
    object-fit: cover;       /* عکس کشیده نشه، برش بخوره */
    display: block;
    transition: 0.5s;
}

.about-image:hover img {
    transform: scale(1.08);
}

/* متن درباره من */
.about-text {
    flex: 1;
    color: #e0e0ff;
    font-size: 20px;
    line-height: 1.9;
}

/* موبایل: عکس بالا، متن زیرش */
@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        flex: none;
        width: 100%;
        max-width: 380px;
    }
    .about-image img {
        height: 420px;
    }
    .about-text {
        font-size: 18px;
    }
}.about-modern {
    padding: 160px 20px 120px;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    text-align: center;
}

.about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.about-container {
    background: rgba(255,255,255,0.05);
    padding: 80px 60px;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,107,107,0.15);
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}

.about-photo {
    margin-bottom: 60px;
}

.about-photo img {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid rgba(255,107,107,0.25);
    box-shadow: 0 30px 80px rgba(255,107,107,0.3);
    transition: 0.6s;
}

.about-photo img:hover {
    transform: scale(1.05);
    border-color: rgba(255,107,107,0.5);
}

.about-story {
    color: #e0e0ff;
}

.about-story h2 {
    font-size: 52px;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #ff6b6b, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-story p {
    font-size: 22px;
    line-height: 2;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-story strong {
    color: #ff6b6b;
    font-weight: 700;
}

.about-cta {
    margin-top: 50px;
}

.about-cta .btn-primary {
    font-size: 24px;
    padding: 22px 60px;
}

/* موبایل */
@media (max-width: 768px) {
    .about-container { padding: 60px 30px; border-radius: 35px; }
    .about-photo img { width: 300px; height: 300px; }
    .about-story h2 { font-size: 42px; }
    .about-story p { font-size: 19px; }
    .about-cta .btn-primary { padding: 18px 50px; font-size: 22px; }
}