/*
Theme Name: Saitima Official Theme
Theme URI: https://saitima.com
Author: Iman
Author URI: https://saitima.com
Description: قالب اختصاصی، سبک و فوق‌سریع سایتیما، طراحی شده بدون هیچ‌گونه صفحه ساز اضافی.
Version: 1.0.0
Text Domain: saitima
*/

/* =========================================
   0. Custom Fonts (Estedad-FD)
========================================= */
@font-face { font-family: 'Estedad-FD'; src: url('fonts/Estedad-Light-1.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Estedad-FD'; src: url('fonts/Estedad-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Estedad-FD'; src: url('fonts/Estedad-Medium-1.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Estedad-FD'; src: url('fonts/Estedad-SemiBold-1.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Estedad-FD'; src: url('fonts/Estedad-Bold-1.woff2') format('woff2'); font-weight: 700; font-display: swap; }

/* =========================================
   1. General Basics & Performance Hacks
========================================= */
body, html {
    /* رفع ماتی فونت‌ها در تمامی دستگاه‌ها */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    margin-top: 0 !important;
    background-color: #f4f0ff;
    color: #444;
    overflow-x: hidden;
    font-family: 'Estedad-FD', sans-serif !important;
    position: relative;
    z-index: 0;
}
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(135deg, #fffafd 0%, #f4f0ff 100%);
    z-index: -2; pointer-events: none; will-change: transform;
}

h1, h2, h3, h4, h5, h6 { color: #1a1a2e !important; }
a { text-decoration: none; }

.page-sheet {
    position: sticky; top: 0; width: 100%; height: 100vh;
    overflow-y: auto; background: transparent; z-index: 1;
}
.glass-panel {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* =========================================
   2. Mouse Aura & Floating Shapes
========================================= */
.mouse-aura {
    position: fixed; top: 0; left: 0; width: 100px; height: 100px; margin: -50px 0 0 -50px;
    background: radial-gradient(circle, rgba(255, 0, 122, 0.3) 0%, rgba(122, 0, 255, 0.15) 40%, transparent 70%);
    border-radius: 50%; pointer-events: none; z-index: 9998;
    filter: blur(30px); will-change: transform;
}
.floating-shapes-global { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; overflow: hidden; z-index: -1; pointer-events: none; }
.bg-shape-parallax { position: absolute !important; top: 0; left: 0; opacity: 0.6; will-change: transform; z-index: -1; }
.bg-shape-parallax svg { width: 100%; height: 100%; display: block; }

/* =========================================
   3. Global Header Styles (Desktop)
========================================= */
.saitima-header {
    position: fixed; top: 20px; left: 0; right: 0; margin: 0 auto;
    width: 90%; max-width: 1200px; height: 70px;
    padding: 0 30px; z-index: 9999;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-bottom: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08), inset 0 2px 5px rgba(255,255,255,0.8);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    perspective: 1000px;
}
.saitima-header:hover { box-shadow: 0 25px 45px rgba(0,0,0,0.12), inset 0 2px 5px rgba(255,255,255,0.9); transform: translateY(-2px); }

.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; position: relative; }
.header-brand { display: flex; align-items: center; z-index: 1005; flex: 0 0 auto; }
.header-brand img { height: 45px; width: auto; object-fit: contain; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: block; }
.header-brand img:hover { transform: scale(1.08) translateY(-3px); }

.header-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.saitima-main-menu { list-style: none; display: flex; gap: 25px; align-items: center; margin: 0; padding: 0; }
.saitima-main-menu li { perspective: 500px; }
.saitima-main-menu a {
    color: #1a1a2e; font-weight: 700; font-size: 1rem; padding: 8px 15px;
    display: inline-block; border-radius: 12px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* رفع ماتی فونت منو */
    backface-visibility: hidden; transform: translateZ(0); will-change: transform;
}
.saitima-main-menu a:hover { background: rgba(255, 255, 255, 0.9); color: #ff007a; transform: translateZ(30px) translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1), 0 4px 0px rgba(0,0,0,0.05); }

.header-btn { flex: 0 0 auto; }
.btn-header-3d {
    background: linear-gradient(135deg, #7a00ff, #ff007a); color: white !important;
    padding: 10px 25px; border-radius: 50px; border: none;
    font-weight: 800; font-size: 0.95rem; white-space: nowrap;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s ease;
    box-shadow: 0 6px 0 #4a0099, 0 15px 20px rgba(122,0,255,0.4), inset 0 2px 3px rgba(255,255,255,0.3);
    /* رفع ماتی دکمه ۳ بعدی */
    backface-visibility: hidden; transform: translateZ(0) translateY(-4px); will-change: transform;
}
.btn-header-3d:active { box-shadow: 0 0px 0 #4a0099, 0 5px 10px rgba(122,0,255,0.4), inset 0 2px 3px rgba(255,255,255,0.3); transform: translateY(2px); }

/* Mega Menu */
.has-mega-menu { position: relative; }
.has-mega-menu:hover .mega-menu { opacity: 1; visibility: visible; }
.mega-menu {
    position: absolute; top: 100%; right: 0; width: 600px;
    display: flex !important; flex-direction: row; flex-wrap: wrap; gap: 20px; padding: 30px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 1001;
}
.mega-menu-column { flex: 1 1 250px; display: block; }
.mega-menu-column h4 { font-size: 1.1rem; color: #ff007a; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.mega-menu-column ul { display: block !important; list-style: none; }
.mega-menu-column ul li a { color: #666; font-size: 0.95rem; transition: transform 0.3s, color 0.3s; display: block; padding: 0; border-radius: 0; transform: none; }
.mega-menu-column ul li a:hover { color: #7a00ff; transform: translateX(-5px); background: transparent; box-shadow: none; }

.mobile-menu-toggle { display: none; }

/* =========================================
   4. Global Footer & Banner
========================================= */
footer { padding: 60px 5% 20px; margin-top: 80px; position: relative; z-index: 10; content-visibility: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 15px; }

#footer { background: linear-gradient(135deg, #0b0f19 0%, #1a1a2e 100%); color: #e0e0e0; border-radius: 30px 30px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }
#footer .logo { color: #fff; }
#footer p { color: #999; }
#footer h4 { color: #ff007a; margin-bottom: 20px; }
#footer ul li a { color: #bbb; transition: 0.3s; display: inline-block; }
#footer ul li a:hover { color: #ff007a; transform: translateX(-5px); }
#footer .footer-grid { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 30px; }

/* Sticky Banner */
.consult-banner-wrapper { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 9999; width: 23%; max-width: 95%; display: none; opacity: 0; transition: opacity 0.4s ease; will-change: opacity, top; }
.consult-banner { display: flex; align-items: center; justify-content: space-between; background: #1a1a2e; border-radius: 60px; padding: 8px 13px; box-shadow: 0 20px 40px rgba(26, 26, 46, 0.15); position: relative; border: 1px solid rgba(255, 255, 255, 0.05); }
.banner-right, .banner-left { flex: 1; }
.banner-right { text-align: right; }
.banner-left { text-align: left; }
.phone-number { color: #ffffff; font-size: 15px; font-weight: 900; letter-spacing: 1px; }

.consult-banner .btn-theme { background: linear-gradient(135deg, #ff007a, #7a00ff); color: white; padding: 12px 25px; border-radius: 40px; font-weight: 800; font-size: 13px; display: inline-block; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 5px 15px rgba(255, 0, 122, 0.3); border: none; }
.consult-banner .btn-theme:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(122, 0, 255, 0.4); }

.banner-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 140px; height: 100px; display: flex; justify-content: center; align-items: center; }
.avatar-halo { position: absolute; width: 140px; height: 140px; background: rgba(122, 0, 255, 0.25); border-radius: 50%; z-index: -1; animation: halo-pulse 2.5s infinite ease-in-out; }
@keyframes halo-pulse { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }  .avatar-circle {width: 136px;height: 105px; /* background: #1a1a2e; */border-radius: 50%;overflow: visible;display: flex;justify-content: center; /* align-items: flex-end; */box-shadow: 0 10px 25px rgba(255, 0, 122, 0.3); /* border: 3px solid #ff007a; */position: relative;z-index: 2;}
.avatar-circle img {    border-radius: 80px;width: 100%;height: auto;object-fit: cover; /* این سه خط جادوی بیرون‌زدگی را انجام می‌دهند */transform-origin: bottom center; /* نقطه ثقل عکس را پایین قرار می‌دهد */transform: scale(1.35); /* عکس ۳۵ درصد بزرگتر از دایره می‌شود */position: relative;}
/* =========================================
   5. Responsive Rules (Mobile & Tablets)
========================================= */
@media (max-width: 992px) {
    /* Header Mobile Override */
    .saitima-header {
        top: 0; width: 100%; border-radius: 0; padding: 0;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        border: none;
    }
    .saitima-header:hover { transform: none; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }

    .header-container { justify-content: center; height: 70px; }

    .header-brand { z-index: 1000; }
    .header-brand img { height: 35px; max-width: 130px; }

    /* Mobile Toggle Button */
    .mobile-menu-toggle {
        display: flex; flex-direction: column; justify-content: center; gap: 5px;
        position: absolute; right: 15px; top: 50%; transform: translateY(-50%);
        width: 40px; height: 40px; background: transparent; border: none; z-index: 1001; padding: 0;
    }
    .mobile-menu-toggle span { width: 25px; height: 3px; background: #ff007a; border-radius: 3px; transition: all 0.3s ease; }
    .mobile-menu-toggle.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.is-active span:nth-child(2) { opacity: 0; transform: scale(0); }
    .mobile-menu-toggle.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobile Header Button */
    .header-btn { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); z-index: 1001; }
    .btn-header-3d { height: 38px; padding: 0 15px; font-size: 0.8rem; box-shadow: 0 5px 15px rgba(255, 0, 122, 0.2); transform: none; }
    .btn-header-3d:active { transform: none; }

    /* Mobile Dropdown Nav */
    .header-nav {
        position: absolute; top: 70px; left: 0; right: 0;
        background: #ffffff; border-top: 1px solid #eee; padding: 15px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        opacity: 0; visibility: hidden; transform: translateY(-15px); transition: all 0.3s ease; z-index: 999;
    }
    .header-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

    .saitima-main-menu { flex-direction: column; gap: 8px; }
    .saitima-main-menu li { width: 100%; perspective: none; }
    .saitima-main-menu a {
        display: block; padding: 12px 15px; background: #f9f9f9; border-radius: 10px;
        color: #1a1a2e; text-align: right; font-size: 0.95rem; transform: none;
    }
    .saitima-main-menu a:hover { transform: none; box-shadow: none; }

    /* Mobile Mega Menu */
    .mega-menu {
        position: relative; top: auto; right: auto; width: 100%; display: none !important;
        flex-direction: column; gap: 10px; padding: 15px; margin-top: 10px;
        background: rgba(0, 0, 0, 0.03); backdrop-filter: none; border-radius: 12px;
        box-shadow: inset 0 2px 10px rgba(0,0,0,0.02); opacity: 1; visibility: visible; z-index: 1;
    }
    li:hover > .mega-menu, li:active > .mega-menu, li:focus-within > .mega-menu, li.is-open > .mega-menu { display: flex !important; }
    .mega-menu li a { background: transparent; padding: 8px 15px; font-size: 0.9rem; color: #555; }

    /* Logo Slider */
    .logos-slider-container {
        height: 110px; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth;
        -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        margin-bottom: 20px; scrollbar-width: none;
    }
    .logos-slider-container::-webkit-scrollbar { display: none; }
    .logos-column { display: contents; }
    .logos-columns-wrapper { display: flex; flex-direction: row; width: max-content; gap: 15px; padding: 0 40vw; animation: none; }

    .logo-box {
        width: 80px; height: 80px; padding: 12px; flex-shrink: 0; border-radius: 15px; margin: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05); opacity: 0.5;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border 0.3s ease, opacity 0.3s ease;
    }
    .logo-box.active { transform: scale(1.15); opacity: 1; border: 2px solid #ff007a; box-shadow: 0 10px 25px rgba(255,0,122,0.2); }
}

@media (max-width: 650px) {
    .consult-banner-wrapper { width: 95%; bottom: 15px; }
    .consult-banner { padding: 10px 15px; border-radius: 40px; }
    .consult-banner .btn-theme { padding: 10px 15px; font-size: 0.9rem; }
    .phone-number { font-size: 1rem; }
    .banner-center { width: 80px; height: 80px; }
    .avatar-circle { width: 85px; height: 85px; }
    .avatar-halo { width: 110px; height: 110px; }
}

@media (max-width: 480px) {
    .banner-left { display: none; }
    .consult-banner { justify-content: flex-start; padding-right: 15px; }
    .banner-center { left: auto; right: 15px; transform: translateY(-50%); }
}