 :root {
    --primary: #d4f400; /* رنگ نئونی اصلی */
    --primary-dark: #aacc00;
    --primary-glow: rgba(212, 244, 0, 0.5);
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --border-radius: 16px;
    --font-main: 'Vazirmatn', sans-serif;
    --safe-area-bottom: env(safe-area-inset-bottom);
}

/* ریست کردن کامل */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 0;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- حل مشکل اسکرول (زیر هدر رفتن) --- */
/* هر سکشن که آیدی دارد، فضای خالی از بالا می‌گیرد */
section[id] {
    scroll-margin-top: 90px;
}

/* --- لودینگ (Loader) --- */
#loader-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}

.logo-text { font-size: 2rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 20px; }
.accent { color: var(--primary); }

.loading-bar-bg {
    width: 200px; height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-bar-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    animation: fillBar 1.5s ease-in-out forwards;
}

.loading-status { font-size: 0.8rem; color: #666; }

@keyframes fillBar { to { width: 100%; } }

/* --- هدر و منو --- */
.mobile-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
    transition: background 0.3s;
}

.mobile-header.scrolled {
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

.logo { font-size: 1.2rem; font-weight: 800; }

.menu-toggle {
    width: 40px; height: 40px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: flex-end;
    gap: 6px;
    cursor: pointer;
}

.bar { width: 30px; height: 3px; background: #fff; border-radius: 2px; transition: 0.3s; }
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active .bar:nth-child(2) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- اصلاح منوی بازشو (رفع لکه سفید) --- */
.nav-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    /* رنگ مشکی کامل و مات به جای شفافیت زیاد */
    background: #050505; 
    z-index: 90;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; visibility: hidden;
    transition: 0.4s;
    /* حذف بلور اگر باعث خرابی می‌شود، چون رنگ سالید است */
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-links { display: flex; flex-direction: column; text-align: center; gap: 30px; }
.nav-item { font-size: 1.5rem; font-weight: bold; color: #fff; }
.nav-item.highlight { color: var(--primary); }

/* --- بخش Hero (خانه) --- */
.hero-mobile {
    position: relative;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 120px;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top; 
}

.gradient-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 10%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    padding: 0 25px;
    width: 100%;
    z-index: 2;
}

.status-badge {
    background: rgba(212, 244, 0, 0.2);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
    border: 1px solid rgba(212, 244, 0, 0.3);
    box-shadow: 0 0 10px rgba(212,244,0,0.2);
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 15px;
    font-weight: 900;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    max-width: 90%;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.cta-group { display: flex; gap: 15px; }

.btn {
    flex: 1;
    padding: 14px 10px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn i { font-size: 1.1rem; }

.btn-hero-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 244, 0, 0.4);
    border: 1px solid var(--primary);
}

.btn-hero-primary:active { transform: scale(0.95); }

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:active { background: rgba(255,255,255,0.2); }

/* --- آمار --- */
.stats-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #151515;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-bottom: 1px solid #222;
}

.stat-box { text-align: center; }
.stat-box h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 2px; }
.stat-box small { color: #888; font-size: 0.7rem; }
.stat-separator { width: 1px; height: 30px; background: #333; }

/* --- عمومی بخش‌ها --- */
.container { padding: 0 20px; }
.section-mobile { padding: 50px 0; }
.bg-darker { background: #131313; }
.pb-extra { padding-bottom: 50px; }

.section-title { margin-bottom: 30px; }
.section-title h2 { font-size: 1.6rem; margin-bottom: 10px; font-weight: 800; }
.line { width: 50px; height: 4px; background: var(--primary); border-radius: 2px; box-shadow: 0 0 10px var(--primary-glow); }

.card-interaction {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card-interaction:active, .card-interaction:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: rgba(212, 244, 0, 0.4);
}

/* --- درباره مربی --- */
.about-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid #2a2a2a;
}
.about-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.avatar { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); box-shadow: 0 0 15px var(--primary-glow); }
.about-header h4 { font-size: 1.2rem; margin-bottom: 5px; }
.job-title { color: var(--primary); font-size: 0.85rem; }
.about-desc { font-size: 0.95rem; color: #ccc; margin-bottom: 20px; text-align: justify; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags span { background: #252525; color: #999; padding: 6px 12px; border-radius: 8px; font-size: 0.8rem; border: 1px solid #333; }

/* --- خدمات --- */
.service-card-mobile {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    border: 1px solid #2a2a2a;
    position: relative;
    overflow: hidden;
}
.active-card { border: 1px solid var(--primary); background: rgba(212, 244, 0, 0.03); }
.icon-holder { 
    font-size: 1.8rem; color: var(--primary); min-width: 50px; 
    display: flex; justify-content: center; align-items: center;
    background: rgba(212,244,0,0.1); width: 50px; height: 50px; border-radius: 50%;
}
.text-holder h3 { font-size: 1.1rem; margin-bottom: 5px; }
.text-holder p { font-size: 0.85rem; color: #888; }
.popular-tag {
    position: absolute; top: 0; left: 0;
    background: var(--primary); color: #000;
    font-size: 0.7rem; font-weight: bold;
    padding: 4px 12px; border-bottom-right-radius: 12px;
}

/* --- گالری --- */
.gallery-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.gallery-grid-mobile img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #333;
}

/* --- آدرس و تماس (مدرن شده) --- */
.location-card {
    text-align: center;
    background: linear-gradient(145deg, #1f1f1f, #151515);
    padding: 35px 20px;
    border-radius: 24px;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}
.location-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--primary);
}
.loc-icon-wrapper {
    width: 60px; height: 60px; background: rgba(212,244,0,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: var(--primary); font-size: 1.8rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.3); border: 1px solid rgba(212,244,0,0.2);
}
.location-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.address-text { color: #ccc; font-size: 1rem; margin-bottom: 25px; line-height: 1.6; }

/* دکمه‌های تماس داخلی */
.internal-contact-row {
    display: flex; gap: 10px; justify-content: center; margin-bottom: 25px;
}
.mini-contact-btn {
    flex: 1; padding: 10px 5px; border-radius: 10px; background: #333; color: #fff;
    font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 5px;
    border: 1px solid #444; transition: 0.2s;
    white-space: nowrap;
}
.mini-contact-btn:active { background: var(--primary); color: #000; }
.mini-contact-btn.insta:active { background: #d6249f; color: #fff; }
.mini-contact-btn.whatsapp:active { background: #25D366; color: #fff; }

.map-separator { height: 1px; background: #333; margin: 0 20px 25px; }

.map-buttons-mobile { display: flex; flex-direction: column; gap: 12px; }
.map-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-radius: 14px;
    background: #2a2a2a; color: #fff; font-weight: bold; font-size: 0.95rem;
    border: 1px solid #3a3a3a; transition: 0.2s;
}
.btn-content { display: flex; align-items: center; gap: 12px; }

/* آیکون‌های جدید نقشه */
.map-icon { font-size: 1.4rem; color: #aaa; width: 28px; text-align: center; }

.map-btn:active { transform: scale(0.98); background: #333; }
.map-btn.neshan { border-right: 4px solid #0050cc; }
.map-btn.neshan .map-icon { color: #0050cc; }
.map-btn.balad { border-right: 4px solid #fff; }
.map-btn.balad .map-icon { color: #fff; }

/* --- فوتر حرفه‌ای --- */
.main-footer {
    background-color: #050505;
    padding-top: 60px;
    border-top: 2px solid #222;
    margin-top: 40px;
    padding-bottom: 100px;
}
.footer-top { padding-bottom: 30px; border-bottom: 1px solid #1a1a1a; margin-bottom: 30px; }
.footer-brand { margin-bottom: 30px; }
.footer-logo { font-size: 1.8rem; margin-bottom: 15px; color: #fff; }
.footer-brand p { color: #777; font-size: 0.9rem; line-height: 1.7; max-width: 90%; }

.footer-links-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.footer-col h4 { color: #fff; margin-bottom: 20px; font-size: 1.1rem; position: relative; display: inline-block; }
.footer-col h4::after { content: ''; position: absolute; bottom: -8px; right: 0; width: 30px; height: 2px; background: var(--primary); }
.footer-col ul li { margin-bottom: 15px; list-style: none; }
.footer-col ul li a, .footer-col ul li { color: #888; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.footer-col ul li i { color: var(--primary); font-size: 1rem; }

.footer-bottom { text-align: center; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-socials a {
    width: 45px; height: 45px; background: #1a1a1a; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem; border: 1px solid #333;
}
.footer-socials a:active { background: var(--primary); color: #000; border-color: var(--primary); }
.copyright { color: #555; font-size: 0.75rem; }

/* --- دکمه‌های شناور (FAB) --- */
.fab-container {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column-reverse; /* ستونی معکوس: آخرین المنت HTML پایین است */
    gap: 15px;
    z-index: 1000;
    align-items: center;
    /* مخفی بودن اولیه */
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.5s;
}

.fab-container.show {
    opacity: 1;
    visibility: visible;
}

.fab-btn {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s, opacity 0.5s, transform 0.5s;
    /* استایل اولیه برای انیمیشن */
    opacity: 0;
    transform: translateY(20px);
}

/* کلاس انیمیشن که با جاوااسکریپت اضافه میشه */
.slide-in-bottom {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.fab-btn:active { transform: scale(0.95); }

.fab-btn.call {
    width: 65px; height: 65px;
    background: var(--primary);
    color: #000;
    position: relative;
    font-size: 1.6rem;
    box-shadow: 0 0 20px rgba(212, 244, 0, 0.4);
}

.pulse-ring {
    position: absolute; width: 100%; height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    animation: pulse 2s infinite;
}

.fab-btn.whatsapp { background: #25D366; }
.fab-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (min-width: 768px) {
    .container { max-width: 700px; margin: 0 auto; }
    .hero-mobile { align-items: center; justify-content: center; text-align: center; }
    .hero-bg img { object-position: center 20%; }
    .hero-content h1 { font-size: 4rem; }
    .cta-group { justify-content: center; width: 60%; margin: 0 auto; }
    .fab-container { left: 50px; bottom: 50px; }
    .footer-links-grid { grid-template-columns: 1fr 1fr; }
}
