/*
Theme Name: AMGworld Dark Portfolio
Theme URI: https://amgworld.com
Author: Matin Ghorbani
Description: قالب داینامیک تیره با افکت‌های نئون و طراحی مدرن
Version: 3.0
*/

/* ===== ریست و فونت ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', 'Vazir', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    direction: rtl;
    background: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.7;
    overflow-x: hidden;
}


/* ===== تنظیمات رندر فارسی ===== */
body, p, h1, h2, h3, h4, h5, h6, span, div, a, li, button {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, sans-serif !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
    font-feature-settings: "ss02" on, "ss03" on, "ss04" on;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* رفع مشکل فاصله در متن‌های فارسی */
* {
    letter-spacing: normal !important;
}

/* اسکرول بار مدرن تیره */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
}

/* ===== تایپوگرافی با افکت نئون ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 50%, #6b8cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: inline-block;
    letter-spacing: 0;
}

h1 { font-size: 3.8rem; }
h2 { font-size: 2.5rem; position: relative; display: inline-block; }
h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    border-radius: 3px;
    box-shadow: 0 0 10px #00d2ff;
}
h3 { font-size: 1.6rem; }

/* ===== دکمه‌های نئونی ===== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,210,255,0.3);
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0,210,255,0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid #00d2ff;
    color: #00d2ff;
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    border-color: transparent;
    box-shadow: 0 0 25px rgba(0,210,255,0.4);
}

/* ===== هدر شیشه‌ای تیره ===== */
.site-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,210,255,0.2);
}

.site-header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: rgba(0,210,255,0.4);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
}

.logo p {
    font-size: 0.8rem;
    color: #00d2ff;
    letter-spacing: 1px;
}

/* منوی اصلی */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
}

.main-nav ul li a {
    color: #e0e0e0;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px #00d2ff;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
    color: #00d2ff;
}

.main-nav ul li a:hover::after,
.main-nav ul li.current-menu-item a::after {
    width: 100%;
}

/* ===== بخش هیرو با افکت ذرات ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 30% 50%, rgba(0,210,255,0.05) 0%, #0a0a0a 70%);
    overflow: hidden;
}

/* افکت گرید سه بعدی */
.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0,210,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,210,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(0,210,255,0.3); }
    50% { text-shadow: 0 0 40px rgba(0,210,255,0.6); }
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    color: #ccc;
}

.typewriter {
    border-left: 3px solid #00d2ff;
    padding-right: 10px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: #00d2ff; }
    50% { border-color: transparent; }
}

/* ===== کارت خدمات ===== */
.services-section {
    padding: 100px 0;
    background: #0d0d0d;
    position: relative;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: rgba(20, 20, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 40px 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,210,255,0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0,210,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0,210,255,0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,210,255,0.1);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0,210,255,0.5));
}

/* ===== پروژه‌ها ===== */
.projects-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(25, 25, 35, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,210,255,0.1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,210,255,0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(0,210,255,0.1);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.85);
}

.project-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.project-info {
    padding: 25px;
}

.project-cat {
    display: inline-block;
    background: linear-gradient(135deg, #00d2ff20, #3a7bd520);
    color: #00d2ff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    border: 1px solid rgba(0,210,255,0.3);
}

.project-card h3 a {
    color: #e0e0e0;
    transition: color 0.3s;
}

.project-card h3 a:hover {
    color: #00d2ff;
}

/* ===== فوتر تیره ===== */
.site-footer {
    background: #050505;
    padding: 60px 0 25px;
    border-top: 1px solid rgba(0,210,255,0.2);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h4 {
    color: #00d2ff;
    margin-bottom: 20px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    padding: 10px 0;
}

.contact-info a {
    color: #bbb;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #00d2ff;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
    justify-content: center;
    text-align: center;
}
.social-link {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0,210,255,0.1);
    border-radius: 40px;
    color: #00d2ff;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0,210,255,0.2);
    font-size: 0.95rem;
    font-weight: 500;
}
.social-link:hover {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    transform: translateY(-3px);
}

.social-link:hover {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,210,255,0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .header-inner { flex-direction: column; gap: 15px; }
    .main-nav ul { flex-direction: column; gap: 12px; text-align: center; }
    .service-grid, .projects-grid { grid-template-columns: 1fr; }
    .container { padding: 0 20px; }
}
/* ===== دکمه منو همبرگری ===== */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #00d2ff;
    margin: 7px auto;
    transition: all 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0,210,255,0.5);
}

.mobile-menu-toggle:hover span {
    background: #fff;
    box-shadow: 0 0 8px rgba(0,210,255,0.8);
}

/* انیمیشن باز شدن منو */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ===== بخش CTA (تماس با ما) ===== */
.contact-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 0;
}

.contact-cta h2 {
    color: white;
    margin-bottom: 25px;
    display: block;
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.contact-cta p {
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #ccc;
}

.contact-cta .btn-large {
    display: inline-block;
    padding: 16px 45px;
    font-size: 1.1rem;
}


/* ===== بخش درباره من حرفه‌ای ===== */
.about-summary {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d0d0d 100%);
    position: relative;
    overflow: hidden;
}

/* افکت نورانی پشت زمینه */
.about-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,210,255,0.05) 0%, transparent 70%);
    animation: rotateLight 25s linear infinite;
    pointer-events: none;
}

@keyframes rotateLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* خط نئونی بالایی */
.about-summary .section-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d2ff, #3a7bd5, #00d2ff, transparent);
}

.about-box {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 55px 45px;
}

.about-box h2 {
    font-size: 2.3rem;
    margin-bottom: 25px;
    display: inline-block;
}

.about-box h2::after {
    width: 80%;
    right: 10%;
    bottom: -15px;
}

.about-box p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #ccc;
    margin-bottom: 20px;
}

.about-box .btn-outline {
    margin-top: 20px;
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    border-width: 2px;
    transition: all 0.3s ease;
}

.about-box .btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,210,255,0.2);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
}
/* ===== رفع چسبیدگی متن فارسی ===== */
h1, h2, h3, h4, h5, h6, p, span, div, a, li {
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

.hero h1, .hero p, .hero .greeting {
    letter-spacing: 0 !important;
}

.about-box h2, .about-box p {
    letter-spacing: 0 !important;
}

.section-header h2 {
    letter-spacing: 0 !important;
}

.contact-cta h2, .contact-cta p {
    letter-spacing: 0 !important;
}

.service-card h3, .service-card p {
    letter-spacing: 0 !important;
}

/* ===== بخش معرفی در هیرو ===== */
.hero-greeting {
    font-size: 1.5rem;
    color: #00d2ff;
    margin-bottom: 10px;
    letter-spacing: 0 !important;
    font-weight: 500;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: glowPulse 2s ease-in-out infinite;
    display: block;
    width: 100%;
}

.hero .highlight {
    background: linear-gradient(135deg, #6b8cff, #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
/* ===== نیروی قوی برای پس‌زمینه درباره من ===== */
section.about-summary,
.about-summary {
    background: #0a0a0a !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #0d1117 50%, #0a0a0a 100%) !important;
}

.about-summary .about-box {
    background: rgba(10, 15, 25, 0.85) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(0, 210, 255, 0.25) !important;
}
/* ===== افکت‌های اضافی برای بخش درباره من ===== */


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== حذف/کوچک کردن خط نئونی برای بخش CTA ===== */
.contact-cta h2::after {
    width: 70px !important;
    right: 50% !important;
    transform: translateX(50%) !important;
}
/* ===== استایل‌های قوی برای صفحه درباره من ===== */
.amg-intro-text h2,
.amg-intro-text h2 span,
.amg-intro-text .amg-title,
.amg-intro-text p,
.amg-intro-text strong,
.amg-intro-info div,
.amg-intro-info div i,
.amg-intro-text .btn {
    font-family: 'Vazirmatn', 'Vazir', 'IRANSans', Tahoma, sans-serif !important;
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

.amg-intro-text h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    color: #e0e0e0 !important;
}

.amg-intro-text h2 span {
    color: #00d2ff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
}

.amg-intro-text .amg-title {
    color: #00d2ff !important;
    background: none !important;
}

.amg-intro-text p {
    color: #ccc !important;
    line-height: 1.9 !important;
}

.amg-intro-text strong {
    color: #00d2ff !important;
}

.amg-intro-info div {
    color: #aaa !important;
}

.amg-intro-info div i {
    color: #00d2ff !important;
}

/* ===== استایل قوی برای محتوا (override کامل) ===== */

/* پس‌زمینه اصلی صفحه محتوا */
body.single, 
body.single-project,
body.single-post,
body.page,
body.archive,
body.search {
    background: #0a0a0a !important;
}

/* کانتینر اصلی محتوا */
.single .container,
.single-project .container,
.single-post .container,
.page .container,
.archive .container {
    background: transparent !important;
}

/* محتوای اصلی - پس‌زمینه تیره شیشه‌ای */
.entry-content,
.post-content,
.page-content,
.single .post,
.single-project .post,
.single-post .post {
    background: rgba(15, 20, 30, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    padding: 40px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 210, 255, 0.2) !important;
    margin: 30px 0 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* تمام متن‌ها */
.entry-content p,
.post-content p,
.page-content p,
.entry-content li,
.post-content li {
    color: #d0d0d0 !important;
    font-size: 1rem !important;
    line-height: 1.9 !important;
}

/* تیترها */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    color: #00d2ff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    margin: 30px 0 15px 0 !important;
}

.entry-content h2,
.post-content h2 {
    border-right: 4px solid #00d2ff !important;
    padding-right: 15px !important;
}

/* لینک‌ها */
.entry-content a,
.post-content a {
    color: #00d2ff !important;
    text-decoration: none !important;
    border-bottom: 1px dotted rgba(0,210,255,0.5) !important;
}

.entry-content a:hover,
.post-content a:hover {
    color: #6b8cff !important;
}

/* لیست‌ها */
.entry-content ul,
.entry-content ol,
.post-content ul,
.post-content ol {
    padding-right: 25px !important;
    margin: 20px 0 !important;
}
.entry-content li,
.post-content li {
    margin-bottom: 8px !important;
}

/* نقل قول */
.entry-content blockquote,
.post-content blockquote {
    background: rgba(0,210,255,0.08) !important;
    border-right: 4px solid #00d2ff !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    border-radius: 10px !important;
    color: #ccc !important;
}

/* تصاویر */
.entry-content img,
.post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 15px !important;
    margin: 20px 0 !important;
    border: 1px solid rgba(0,210,255,0.2) !important;
}

/* جداول */
.entry-content table,
.post-content table {
    width: 100% !important;
    background: rgba(10,15,25,0.8) !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
}
.entry-content th,
.entry-content td,
.post-content th,
.post-content td {
    padding: 12px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    text-align: right !important;
    color: #ccc !important;
}
.entry-content th,
.post-content th {
    background: rgba(0,210,255,0.15) !important;
    color: #00d2ff !important;
}