/* ==========================================================================
   Theme Name: pixi Studio
   Author: Alireza Moghimian
   Description: Dark developer-focused WordPress theme with product showcase, team slider, blog and contact form.
   Version: 2.4.0
   ========================================================================== */

body {
    background-color: #010101;
    color: #f3f4f6;
    overflow-x: hidden;
}

/* Hide default cursor on desktop for custom cursor */
@media (min-width: 1024px) {
    body, a, button, input, select, textarea {
        cursor: none !important;
    }
}

/* ==================== ULTRA-SLOW DOWN/UP SCROLL REVEAL ==================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 48px, 0) scale(0.985);
    filter: blur(6px);
    transition: opacity 1.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.45s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

/* وضعیت خروج به سمت بالا وقتی سکشن را به سمت پایین رد می‌کنیم */
.reveal-on-scroll.passed-up {
    opacity: 0;
    transform: translate3d(0, -36px, 0) scale(0.985);
    filter: blur(4px);
}

/* وضعیت فعال و داخل دید */
.reveal-on-scroll.is-inview {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
    filter: blur(0px) !important;
}

/* تاخیرهای پله‌ای (Stagger Delays) برای آیتم‌های داخل هر سکشن */
.delay-100 { transition-delay: 120ms; }
.delay-200 { transition-delay: 240ms; }
.delay-300 { transition-delay: 360ms; }
.delay-400 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ==================== CUSTOM INTERACTIVE CURSOR ==================== */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: #37c6f2;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 12px #37c6f2;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(115, 78, 254, 0.65);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease,
                background-color 0.25s ease;
}

.cursor-hover-active.custom-cursor-dot {
    width: 0px;
    height: 0px;
}

.cursor-hover-active.custom-cursor-ring {
    width: 56px;
    height: 56px;
    border-color: #37c6f2;
    background-color: rgba(115, 78, 254, 0.15);
    box-shadow: 0 0 25px rgba(55, 198, 242, 0.3);
}

.cursor-hover-active .cursor-code-symbol {
    opacity: 1 !important;
}

/* ==================== GLOBAL CODING AMBIENT BACKGROUND ==================== */
.bg-global-code-grid {
    background-size: 48px 48px;
    background-image: 
        linear-gradient(to right, rgba(115, 78, 254, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(55, 198, 242, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 24px 24px, rgba(55, 198, 242, 0.12) 1px, transparent 1px);
}

#mouse-spotlight {
    background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(115, 78, 254, 0.11), rgba(55, 198, 242, 0.05) 40%, transparent 80%);
}

/* ==================== LIVE IDE CODE CARET ==================== */
.ide-caret {
    display: inline-block;
    width: 7px;
    height: 15px;
    background-color: #37c6f2;
    vertical-align: middle;
    margin-left: 2px;
    box-shadow: 0 0 8px #37c6f2;
    animation: caretBlink 0.9s infinite;
}

@keyframes caretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==================== MOBILE DRAWER & HAMBURGER ANIMATION ==================== */
#mobile-menu-drawer {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-drawer.is-open {
    transform: translateX(0) !important;
}

#mobile-menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#mobile-menu-overlay.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#mobile-menu-btn.is-active .line-1 {
    transform: translateY(8px) rotate(45deg);
}
#mobile-menu-btn.is-active .line-2 {
    opacity: 0;
}
#mobile-menu-btn.is-active .line-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================== GLASSMORPHISM & EQUAL HEIGHT CARDS ==================== */
.glass-card {
    background: rgba(13, 13, 20, 0.68);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    border-color: rgba(55, 198, 242, 0.45);
    box-shadow: 0 14px 35px -10px rgba(115, 78, 254, 0.28), 0 0 20px -5px rgba(55, 198, 242, 0.22);
    transform: translateY(-6px);
}

/* Force Equal Height on Swiper Cards */
.teamSwiper .swiper-slide,
.blogSwiper .swiper-slide {
    height: auto !important;
    display: flex !important;
}

/* ==================== FORM INPUTS CYBER FOCUS EFFECTS ==================== */
.cyber-input {
    background: rgba(8, 8, 12, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-input:hover {
    border-color: rgba(115, 78, 254, 0.4);
}

.cyber-input:focus {
    outline: none;
    background: rgba(14, 14, 24, 0.95);
    border-color: #37c6f2;
    box-shadow: 0 0 0 4px rgba(55, 198, 242, 0.12), 0 0 25px -4px rgba(115, 78, 254, 0.45);
    transform: translateY(-1px);
}

.form-group:focus-within label {
    color: #37c6f2;
    transform: translateX(4px);
}

.form-group label {
    transition: all 0.25s ease;
}

/* ==================== ADVANCED BUTTON HOVER EFFECTS ==================== */
.btn-cyber {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #734efe 0%, #37c6f2 100%);
    background-size: 200% 200%;
    box-shadow: 0 8px 25px -6px rgba(115, 78, 254, 0.5);
    transition: all 0.35s ease;
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.55s ease;
    z-index: -1;
}

.btn-cyber:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px -4px rgba(55, 198, 242, 0.55), 0 0 15px rgba(115, 78, 254, 0.4);
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber:hover .btn-icon-slide {
    transform: translateX(5px);
}

.btn-icon-slide {
    transition: transform 0.3s ease;
}

/* Secondary Glass Neon Button */
.btn-glass-neon {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    transition: all 0.35s ease;
}

.btn-glass-neon:hover {
    background: rgba(115, 78, 254, 0.12);
    border-color: #37c6f2;
    box-shadow: inset 0 0 15px rgba(55, 198, 242, 0.2), 0 8px 20px -6px rgba(115, 78, 254, 0.35);
    transform: translateY(-3px);
}

/* Slider Navigation Buttons */
.btn-slider-nav {
    transition: all 0.3s ease;
}
.btn-slider-nav:hover {
    background: linear-gradient(135deg, #734efe, #37c6f2);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(55, 198, 242, 0.4);
    transform: scale(1.08);
}

/* ==================== BACK TO TOP PROGRESS BUTTON ==================== */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 0 25px rgba(55, 198, 242, 0.35);
}

/* ==================== INFINITE MARQUEE PAUSE ON HOVER ==================== */
.marquee-container:hover .animate-marquee {
    animation-play-state: paused;
}

/* ==================== SWIPER PAGINATION BULLETS ==================== */
.swiper-pagination-bullet {
    background: #ffffff40 !important;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}
.swiper-pagination-bullet-active {
    background: linear-gradient(90deg, #734efe, #37c6f2) !important;
    width: 28px !important;
    border-radius: 6px !important;
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #010101;
}
::-webkit-scrollbar-thumb {
    background: #734efe;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #37c6f2;
}

/* ==================== SINGLE POST TABLE OF CONTENTS ACTIVE STATE ==================== */
.toc-link.active-toc {
    background: rgba(115, 78, 254, 0.16);
    border-left: 2px solid #37c6f2;
    color: #ffffff;
    font-weight: 600;
}

/* pixi Theme Settings + fixed header hardening */
:root { --pixi-bg:#010101; --pixi-surface:#0b0b0f; --pixi-primary:#734efe; --pixi-accent:#37c6f2; --pixi-text:#f3f4f6; --pixi-header-height:80px; }
body { background-color:var(--pixi-bg); color:var(--pixi-text); }
#pixi-site-header.pixi-site-header { position:fixed !important; inset:0 0 auto 0 !important; width:100%; z-index:1000 !important; min-height:var(--pixi-header-height); transform:none !important; }
html { scroll-padding-top:calc(var(--pixi-header-height) + 16px); }
#hero, #products, #about-team, #team-members, #blog, #contact { scroll-margin-top:calc(var(--pixi-header-height) + 16px); }
.bg-brandDark { background-color:var(--pixi-bg) !important; }
.text-brandCyan { color:var(--pixi-accent) !important; }
.text-brandPurple { color:var(--pixi-primary) !important; }
.border-brandPurple\/30 { border-color:color-mix(in srgb,var(--pixi-primary) 30%,transparent) !important; }
.btn-cyber { --tw-gradient-from:var(--pixi-primary); --tw-gradient-to:var(--pixi-accent); }
#pixi-site-header a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:2px solid var(--pixi-accent); outline-offset:3px; }
@media (max-width:767px) { :root { --pixi-header-height:72px; } #pixi-site-header .max-w-7xl { height:72px !important; } }
