/* ================================================================
   FONT
   ================================================================ */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/font-face.css');

/* ================================================================
   RESET & BASE (Neumorphism Bright Theme)
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif;
    direction: rtl;
    background: #F4F7FB; /* رنگ پایه نئومورفیسم روشن */
    color: #4A5568;
    line-height: 1.7;
    font-size: 15px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* ================================================================
   BUTTONS (Neumorphic Style)
   ================================================================ */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* دکمه‌های کپسولی */
    font-weight: 700;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: #F4F7FB;
}

.btn-primary {
    color: #3182CE;
    box-shadow: 6px 6px 14px #d1d9e6, -6px -6px 14px #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 18px #d1d9e6, -8px -8px 18px #ffffff;
}

.btn-primary:active {
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    transform: translateY(0);
}

.btn-secondary, .btn-outline {
    color: #4A5568;
    box-shadow: 4px 4px 10px #d1d9e6, -4px -4px 10px #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover, .btn-outline:hover {
    color: #2D3748;
    transform: translateY(-2px);
}

.btn-secondary:active, .btn-outline:active {
    box-shadow: inset 3px 3px 6px #d1d9e6, inset -3px -3px 6px #ffffff;
}

/* ================================================================
   HEADER & NAVIGATION
   ================================================================ */
.header {
    background: #F4F7FB;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(209, 217, 230, 0.5); /* سایه نرم زیر هدر */
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(209, 217, 230, 0.8));
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #2D3748;
    letter-spacing: 0.5px;
}

/* منوی دسکتاپ */
.nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav a {
    color: #4A5568;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.nav a:hover {
    color: #3182CE;
    background: #F4F7FB;
    box-shadow: inset 3px 3px 6px #d1d9e6, inset -3px -3px 6px #ffffff; /* افکت فشرده شدن هنگام هاور */
}

/* منوی بازشو (Dropdown) */
.nav-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #F4F7FB;
    min-width: 200px;
    border-radius: 16px;
    box-shadow: 6px 6px 14px #d1d9e6, -6px -6px 14px #ffffff;
    padding: 10px 0;
    z-index: 10;
    margin-top: 10px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    border-radius: 0;
    box-shadow: none;
}

.dropdown-content a:hover {
    box-shadow: inset 2px 2px 5px #d1d9e6, inset -2px -2px 5px #ffffff;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.header-actions .btn-primary, .header-actions .btn-outline {
    padding: 8px 20px;
    font-size: 13px;
}

/* دکمه همبرگری موبایل */
.menu-toggle {
    display: none;
    background: #F4F7FB;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #2D3748;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff;
    align-items: center;
    justify-content: center;
}
.menu-toggle:active {
    box-shadow: inset 2px 2px 5px #d1d9e6, inset -2px -2px 5px #ffffff;
}

/* ================================================================
   ABOUT & GENERAL PAGES SECTION STYLES
   ================================================================ */
.page-hero, .about-hero {
    padding: 40px 0 30px;
    background: #F4F7FB;
    text-align: center;
}

.page-hero-title, .about-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #2D3748;
    margin-bottom: 10px;
}

.page-hero-sub, .about-hero-sub {
    font-size: 15px;
    color: #718096;
}

/* کارت‌های فرم تماس و درباره من */
.about-grid, .contact-form-wrapper {
    padding: 40px 0;
}

.about-profile-img {
    width: 100%;
    max-width: 300px;
    border-radius: 30px;
    box-shadow: 10px 10px 20px #d1d9e6, -10px -10px 20px #ffffff;
    border: 4px solid #F4F7FB;
}

.contact-form-card, .skill-card, .contact-info-card, .stat-card {
    background: #F4F7FB;
    border-radius: 25px;
    box-shadow: 8px 8px 16px #d1d9e6, -8px -8px 16px #ffffff;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4);
}

.contact-form-card {
    max-width: 700px;
    width: 100%;
}

.form-group label {
    font-size: 13px;
    color: #4A5568;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

/* فرم‌های ورودی (Inputs) */
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 15px;
    background: #F4F7FB;
    box-shadow: inset 4px 4px 8px #d1d9e6, inset -4px -4px 8px #ffffff;
    font-family: 'Vazir', sans-serif;
    font-size: 14px;
    color: #2D3748;
    outline: none;
    transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    box-shadow: inset 6px 6px 12px #d1d9e6, inset -6px -6px 12px #ffffff;
}

/* ================================================================
   RESPONSIVE (موبایل و تبلت)
   ================================================================ */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .about-profile-img {
        margin: 0 auto;
    }
    .about-info-grid {
        text-align: right;
    }
}

@media (max-width: 768px) {
    /* هدر در موبایل */
    .header .container {
        position: relative;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none; /* پنهان در حالت عادی */
        flex-direction: column;
        width: 100%;
        background: #F4F7FB;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 20px rgba(209, 217, 230, 0.7);
        z-index: 99;
    }
    
    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;
        text-align: center;
        padding: 12px 0;
        box-shadow: 3px 3px 6px #d1d9e6, -3px -3px 6px #ffffff;
    }
    
    .header-actions {
        display: none; /* مخفی کردن دکمه‌های ورود/ثبت‌نام در منوی اصلی و انتقال به منوی بازشو اگر نیاز باشد */
    }

    /* فرم تماس و بقیه */
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .page-hero-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%; /* دکمه‌های تمام عرض در موبایل کوچک */
        margin-bottom: 10px;
    }
    .logo img {
        height: 35px;
    }
}