﻿/* ============================================
   ⚡ آتی شاپ — NEXT-GEN CINEMATIC ANIMATIONS
   🌌 Holographic | Neon | Aurora | Quantum
   ============================================ */

/* -----------------------------------------------------------------------
   CORE KEYFRAMES
----------------------------------------------------------------------- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* -----------------------------------------------------------------------
   HOLOGRAPHIC / NEON KEYFRAMES
----------------------------------------------------------------------- */

@keyframes shimmer {
    0%   { background-position: -1000px 0; }
    100% { background-position:  1000px 0; }
}

@keyframes holoShimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 45, 120, 0.4),
            0 0 30px rgba(255, 45, 120, 0.2),
            0 0 60px rgba(189, 0, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(255, 45, 120, 0.9),
            0 0 60px rgba(255, 45, 120, 0.5),
            0 0 100px rgba(189, 0, 255, 0.3),
            0 0 150px rgba(0, 245, 255, 0.15);
    }
}

@keyframes glowText {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 45, 120, 0.5); }
    50%       { text-shadow: 0 0 30px rgba(255, 45, 120, 0.9), 0 0 60px rgba(189, 0, 255, 0.4); }
}

@keyframes cyanGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 245, 255, 0.3); }
    50%       { box-shadow: 0 0 25px rgba(0, 245, 255, 0.8), 0 0 50px rgba(0, 245, 255, 0.4); }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.6); }
    50%       { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(255, 45, 120, 0); }
}

@keyframes pulse-effect {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.5); }
    50%       { box-shadow: 0 0 0 24px rgba(255, 45, 120, 0); }
}

@keyframes aurora-shift {
    0%   { opacity: 0.7;  filter: hue-rotate(0deg)  brightness(1);    transform: scale(1); }
    50%  { opacity: 1;    filter: hue-rotate(20deg) brightness(1.12);  transform: scale(1.04); }
    100% { opacity: 0.85; filter: hue-rotate(40deg) brightness(0.95); transform: scale(1); }
}

@keyframes plasma-pulse {
    0%   { opacity: 0.6; filter: hue-rotate(0deg)  blur(0px); }
    50%  { opacity: 1;   filter: hue-rotate(25deg) blur(3px); }
    100% { opacity: 0.7; filter: hue-rotate(50deg) blur(0px); }
}

@keyframes nebula-drift {
    0%   { transform: rotate(0deg)   scale(1)    translate(0, 0); }
    33%  { transform: rotate(120deg) scale(1.08) translate(20px, -15px); }
    66%  { transform: rotate(240deg) scale(0.95) translate(-10px, 20px); }
    100% { transform: rotate(360deg) scale(1)    translate(0, 0); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes float-element {
    0%, 100% { transform: translateY(0)     rotate(0deg); }
    50%       { transform: translateY(-22px) rotate(12deg); }
}

@keyframes float-card {
    0%, 100% { transform: translateY(0)    rotate(-1deg); }
    50%       { transform: translateY(-8px) rotate(1deg); }
}

@keyframes orb-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.35; filter: blur(80px); }
    50%       { transform: scale(1.15); opacity: 0.55; filter: blur(60px); }
}

@keyframes blobMorph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: scale(1); }
    25%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: scale(1.05); }
    50%       { border-radius: 50% 60% 30% 70% / 40% 70% 60% 30%; transform: scale(0.97); }
    75%       { border-radius: 70% 30% 50% 50% / 30% 40% 70% 60%; transform: scale(1.03); }
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0)     rotate(0deg);   opacity: 0.08; }
    50%       { transform: translateY(-35px) rotate(200deg); opacity: 0.14; }
}

@keyframes starfield-drift {
    0%   { transform: translateY(0)      translateX(0); }
    100% { transform: translateY(-300px) translateX(-80px); }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1;   transform: scale(1)    rotate(0deg); }
    50%       { opacity: 0.4; transform: scale(1.25) rotate(180deg); }
}

@keyframes badge-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes zoomPop {
    0%   { transform: scale(0.8);  opacity: 0; }
    70%  { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1);    opacity: 1; }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14%       { transform: scale(1.1); }
    28%       { transform: scale(1); }
    42%       { transform: scale(1.1); }
    70%       { transform: scale(1); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slide-up-reveal {
    from { opacity: 0; transform: translateY(80px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0);     animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50%       { transform: translateY(-18px); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes shine-effect {
    0%        { left: -120%; }
    40%, 100% { left: 160%; }
}

/* -----------------------------------------------------------------------
   UTILITY ANIMATION CLASSES
----------------------------------------------------------------------- */

.fade-in-up    { animation: fadeInUp 0.7s ease-out forwards; }
.fade-in-down  { animation: fadeInDown 0.7s ease-out forwards; }
.fade-in-left  { animation: fadeInLeft 0.7s ease-out forwards; }
.fade-in-right { animation: fadeInRight 0.7s ease-out forwards; }
.slide-down    { animation: slideDown 0.4s ease-out forwards; }

/* -----------------------------------------------------------------------
   HOVER EFFECTS
----------------------------------------------------------------------- */

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 45, 120, 0.2);
    transition: all 0.3s var(--ease-smooth);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 45, 120, 0.5), 0 0 60px rgba(189, 0, 255, 0.25);
}

.hover-scale:hover { transform: scale(1.04); }

.hover-neon:hover  { animation: neonPulse 1.5s ease-in-out infinite; }

/* -----------------------------------------------------------------------
   BADGE STYLES
----------------------------------------------------------------------- */

.badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-primary {
    background: var(--gradient-glamour);
    color: white;
    box-shadow: 0 0 12px rgba(255, 45, 120, 0.4);
}

.badge-success {
    background: linear-gradient(135deg, #00f5c3, #00c896);
    color: #001a12;
    box-shadow: 0 0 12px rgba(0, 200, 150, 0.4);
}

.badge-warning {
    background: var(--gradient-gold);
    color: #1a0a00;
    box-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
}

.badge-danger {
    background: linear-gradient(135deg, #ff2d55, #ff0033);
    color: white;
    box-shadow: 0 0 12px rgba(255, 45, 85, 0.5);
}

/* badges covered above */

/* -----------------------------------------------------------------------
   SCROLL-TRIGGERED REVEAL SYSTEM
----------------------------------------------------------------------- */

.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity  0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.scroll-animate.animate-visible             { opacity: 1; transform: translateY(0); }
.scroll-animate.fade-up                     { transform: translateY(55px); }
.scroll-animate.fade-up.animate-visible     { transform: translateY(0); }
.scroll-animate.fade-down                   { transform: translateY(-35px); }
.scroll-animate.fade-down.animate-visible   { transform: translateY(0); }
.scroll-animate.fade-left                   { transform: translateX(-55px); }
.scroll-animate.fade-left.animate-visible   { transform: translateX(0); }
.scroll-animate.fade-right                  { transform: translateX(55px); }
.scroll-animate.fade-right.animate-visible  { transform: translateX(0); }
.scroll-animate.zoom-in                     { transform: scale(0.78); opacity: 0; }
.scroll-animate.zoom-in.animate-visible     { transform: scale(1); opacity: 1; }
.scroll-animate.scale-up                    { transform: scale(0.88); }
.scroll-animate.scale-up.animate-visible    { transform: scale(1); }
.scroll-animate.rotate-in                   { transform: rotate(-6deg) scale(0.88); opacity: 0; }
.scroll-animate.rotate-in.animate-visible   { transform: rotate(0deg) scale(1); opacity: 1; }
.scroll-animate.flip-up                     { transform: perspective(400px) rotateX(30deg) translateY(30px); opacity: 0; }
.scroll-animate.flip-up.animate-visible     { transform: perspective(400px) rotateX(0deg) translateY(0); opacity: 1; }

/* Stagger Delays */
.scroll-animate.delay-100 { transition-delay: 0.10s; }
.scroll-animate.delay-200 { transition-delay: 0.20s; }
.scroll-animate.delay-300 { transition-delay: 0.30s; }
.scroll-animate.delay-400 { transition-delay: 0.40s; }
.scroll-animate.delay-500 { transition-delay: 0.50s; }
.scroll-animate.delay-600 { transition-delay: 0.60s; }
.scroll-animate.delay-700 { transition-delay: 0.70s; }
.scroll-animate.delay-800 { transition-delay: 0.80s; }

/* -----------------------------------------------------------------------
   LOADING STATES
----------------------------------------------------------------------- */

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}
.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

.skeleton {
    background: linear-gradient(90deg,
        rgba(255,45,120,0.05) 0%,
        rgba(189,0,255,0.12) 50%,
        rgba(255,45,120,0.05) 100%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-md);
}

/* -----------------------------------------------------------------------
   MODAL & OVERLAY
----------------------------------------------------------------------- */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    animation: fadeInUp 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: rgba(15, 15, 46, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 45, 120, 0.25);
    border-radius: var(--radius-2xl);
    padding: var(--space-2xl);
    max-width: 520px;
    width: 90%;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.8),
        0 0 50px rgba(255, 45, 120, 0.15),
        inset 0 1px 0 rgba(255,255,255,0.08);
    animation: zoomPop 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 45, 120, 0.15);
    padding-bottom: var(--space-lg);
}

.modal-close {
    background: rgba(255, 45, 120, 0.1);
    border: 1px solid rgba(255, 45, 120, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    cursor: pointer;
    color: rgba(220, 200, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 45, 120, 0.3);
    color: white;
    box-shadow: 0 0 16px rgba(255, 45, 120, 0.5);
}

/* -----------------------------------------------------------------------
   BREADCRUMBS
----------------------------------------------------------------------- */

.breadcrumb {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    font-size: 0.875rem;
}

.breadcrumb-item { color: rgba(180, 160, 220, 0.6); }
.breadcrumb-item a { color: var(--primary-rose); }
.breadcrumb-item a:hover { color: var(--accent-cyan); }
.breadcrumb-item.active { color: rgba(220, 200, 255, 0.9); }

.breadcrumb-item::after {
    content: '/';
    margin-left: var(--space-md);
    color: rgba(255, 45, 120, 0.3);
}
.breadcrumb-item:last-child::after { content: ''; }

/* -----------------------------------------------------------------------
   PAGINATION
----------------------------------------------------------------------- */

.pagination {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    padding: var(--space-2xl) 0;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 45, 120, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.25s var(--ease-smooth);
    text-decoration: none;
    color: rgba(200, 180, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.pagination-item:hover:not(.active) {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    box-shadow: 0 0 16px rgba(255, 45, 120, 0.3);
    background: rgba(255, 45, 120, 0.06);
}

.pagination-item.active {
    background: var(--gradient-glamour);
    border-color: transparent;
    color: white;
    box-shadow: var(--shadow-pink);
}

/* -----------------------------------------------------------------------
   TABS
----------------------------------------------------------------------- */

.tabs {
    display: flex;
    gap: var(--space-lg);
    border-bottom: 1px solid rgba(255, 45, 120, 0.15);
    margin-bottom: var(--space-2xl);
}

.tab {
    padding: var(--space-md) 0;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: rgba(200, 180, 255, 0.55);
    border-bottom: 2px solid transparent;
    transition: all 0.25s;
    margin-bottom: -1px;
}

.tab:hover { color: var(--primary-rose); }
.tab.active {
    color: var(--primary-pink);
    border-bottom-color: var(--primary-pink);
    text-shadow: 0 0 12px rgba(255, 45, 120, 0.5);
}

/* -----------------------------------------------------------------------
   ALERTS
----------------------------------------------------------------------- */

.alert {
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    backdrop-filter: blur(12px);
}

.alert-success {
    background: rgba(0, 200, 150, 0.1);
    border: 1px solid rgba(0, 200, 150, 0.3);
    color: #00f5c3;
}

.alert-error {
    background: rgba(255, 45, 85, 0.1);
    border: 1px solid rgba(255, 45, 85, 0.3);
    color: #ff7096;
}

.alert-warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: #ffcc44;
}

.alert-info {
    background: rgba(0, 245, 255, 0.08);
    border: 1px solid rgba(0, 245, 255, 0.25);
    color: #00f5ff;
}

/* -----------------------------------------------------------------------
   ACCESSIBILITY
----------------------------------------------------------------------- */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-pink);
    outline-offset: 3px;
    box-shadow: 0 0 12px rgba(255, 45, 120, 0.5);
}

/* -----------------------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------------------- */

@media (max-width: 768px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .features     { grid-template-columns: 1fr; }
    .navbar-menu  { display: none; }
}

@media (max-width: 480px) {
    .btn       { width: 100%; justify-content: center; }
    .container { padding: 0 var(--space-md); }
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
}

/* -----------------------------------------------------------------------
   PRINT
----------------------------------------------------------------------- */

@media print {
    .navbar, footer, .btn, .icon-button { display: none; }
    body { background: white; color: #111; }
}
