/**
 * OX CHART - تأثيرات متقدمة وعصرية
 * تأثيرات Glassmorphism ونيون وتأثيرات حديثة
 */

/* تأثيرات الزجاج (Glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* تأثيرات النيون */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(59, 130, 246, 0.8),
        0 0 10px rgba(59, 130, 246, 0.6),
        0 0 15px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.2);
}

.neon-text-primary {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(2, 132, 199, 0.8),
        0 0 10px rgba(2, 132, 199, 0.6),
        0 0 15px rgba(2, 132, 199, 0.4),
        0 0 20px rgba(2, 132, 199, 0.2);
}

.neon-text-accent {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(124, 58, 237, 0.8),
        0 0 10px rgba(124, 58, 237, 0.6),
        0 0 15px rgba(124, 58, 237, 0.4),
        0 0 20px rgba(124, 58, 237, 0.2);
}

.neon-text-success {
    color: #fff;
    text-shadow: 
        0 0 5px rgba(16, 185, 129, 0.8),
        0 0 10px rgba(16, 185, 129, 0.6),
        0 0 15px rgba(16, 185, 129, 0.4),
        0 0 20px rgba(16, 185, 129, 0.2);
}

.neon-border {
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow: 
        0 0 5px rgba(59, 130, 246, 0.5),
        0 0 10px rgba(59, 130, 246, 0.3),
        inset 0 0 5px rgba(59, 130, 246, 0.2);
}

/* تأثيرات 3D */
.float-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.float-3d:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
}

/* تأثيرات الدائرة المضيئة للعد التنازلي */
.countdown-circle {
    position: relative;
    width: 100px;
    height: 100px;
}

.countdown-circle .background {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
}

.countdown-circle .circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        rgba(59, 130, 246, 0.8) var(--progress),
        transparent var(--progress)
    );
    mask: radial-gradient(transparent 60%, black 65%);
    -webkit-mask: radial-gradient(transparent 60%, black 65%);
}

.countdown-circle .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* تأثيرات الجزيئات */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* تأثيرات تحريك النص */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateInUpLeft {
    from {
        transform-origin: left bottom;
        transform: rotate3d(0, 0, 1, 45deg);
        opacity: 0;
    }
    to {
        transform-origin: left bottom;
        transform: none;
        opacity: 1;
    }
}

@keyframes glowing {
    0% {
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.8),
                     0 0 10px rgba(59, 130, 246, 0.6);
    }
    50% {
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.8),
                     0 0 20px rgba(59, 130, 246, 0.6),
                     0 0 30px rgba(59, 130, 246, 0.4);
    }
    100% {
        text-shadow: 0 0 5px rgba(59, 130, 246, 0.8),
                     0 0 10px rgba(59, 130, 246, 0.6);
    }
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* تطبيق تأثيرات التحريك */
.animate-fadeInUp {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-scaleIn {
    animation: scaleIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-rotateInUpLeft {
    animation: rotateInUpLeft 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.animate-glowing {
    animation: glowing 2s ease-in-out infinite;
}

.animate-floating {
    animation: floating 6s ease-in-out infinite;
}

/* تأخيرات التحريك */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}

/* تصميم العد التنازلي المحسن */
.enhanced-countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.countdown-item-enhanced {
    position: relative;
    width: 100px;
    height: 100px;
    perspective: 1000px;
}

.countdown-number-enhanced {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.countdown-label-enhanced {
    position: absolute;
    bottom: -25px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* تأثيرات خلفية العنوان المحسنة */
.hero-enhanced {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0c1a33, #0f2847);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-enhanced::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.5) 100%),
        radial-gradient(ellipse at top, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    z-index: 0;
}

.hero-content-enhanced {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.hero-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* تصميم اللوجو المحسن */
.logo-container-enhanced {
    position: relative;
    margin-bottom: 40px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.logo-enhanced {
    max-width: 200px;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
    animation: floating 6s ease-in-out infinite;
}

/* تصميم العنوان المحسن */
.title-enhanced {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #3B82F6, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: glowing 3s ease-in-out infinite;
}

.tagline-enhanced {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.domain-enhanced {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(59, 130, 246, 0.1);
    color: #BFDBFE;
    border-radius: 50px;
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.2),
        0 0 10px rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
