/* Slideshow Effects - تأثيرات جهنمية للشرائح */
.slide-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* إضافة تأثيرات إضافية للشرائح */
.slide-effects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(255, 215, 0, 0.05) 70%);
    pointer-events: none;
    animation: ambientGlow 8s ease-in-out infinite;
}

@keyframes ambientGlow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Particle Effects */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    border-radius: 50%;
    animation: particleFloat 6s infinite linear;
    box-shadow: 0 0 15px #FFD700;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 7s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 1;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) translateX(-15px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-90px) translateX(25px) scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-120px) translateX(0px) scale(0.5);
        opacity: 0;
    }
}

/* Sparkle Effects */
.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(45deg, #FFD700, #FFFFFF, #FFD700);
    border-radius: 50%;
    animation: sparkleTwinkle 2.5s infinite ease-in-out;
    box-shadow: 0 0 20px #FFD700;
}

.sparkle:nth-child(1) {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: 70%;
    left: 70%;
    animation-delay: 1s;
}

.sparkle:nth-child(3) {
    top: 50%;
    left: 40%;
    animation-delay: 2s;
}

@keyframes sparkleTwinkle {
    0%, 100% {
        transform: scale(0.5) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

/* Glow Effects */
.glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.4), transparent);
    border-radius: 50%;
    animation: glowPulse 3s infinite ease-in-out;
    filter: blur(25px);
}

.glow:nth-child(1) {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.glow:nth-child(2) {
    top: 60%;
    left: 60%;
    animation-delay: 1.5s;
}

.glow:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Energy Effects */
.energy {
    position: absolute;
    width: 3px;
    height: 50px;
    background: linear-gradient(to bottom, #00FFFF, #0080FF, transparent);
    animation: energyFlow 1.8s infinite linear;
    box-shadow: 0 0 25px #00FFFF;
}

.energy:nth-child(1) {
    top: 10%;
    left: 25%;
    animation-delay: 0s;
    animation-duration: 1.5s;
}

.energy:nth-child(2) {
    top: 40%;
    left: 75%;
    animation-delay: 0.5s;
    animation-duration: 2s;
}

.energy:nth-child(3) {
    top: 70%;
    left: 50%;
    animation-delay: 1s;
    animation-duration: 1.8s;
}

@keyframes energyFlow {
    0% {
        transform: translateY(-50px) scaleY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
    100% {
        transform: translateY(50px) scaleY(0);
        opacity: 0;
    }
}

/* Magic Effects */
.magic {
    position: absolute;
    width: 10px;
    height: 10px;
    background: conic-gradient(from 0deg, #FFD700, #FF6B6B, #4ECDC4, #45B7D1, #FFD700);
    border-radius: 50%;
    animation: magicSpin 4s infinite linear;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.9);
}

.magic:nth-child(1) {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.magic:nth-child(2) {
    top: 65%;
    left: 85%;
    animation-delay: 1.5s;
}

.magic:nth-child(3) {
    top: 45%;
    left: 55%;
    animation-delay: 3s;
}

@keyframes magicSpin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(90deg) scale(1.3);
        opacity: 0.8;
    }
    50% {
        transform: rotate(180deg) scale(0.7);
        opacity: 0.6;
    }
    75% {
        transform: rotate(270deg) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

/* Slide Buttons Enhancement */
.slide-buttons {
    margin-top: 1.5rem;
    animation: slideTextIn 0.8s ease-out 0.7s both;
}

.slide-buttons .btn {
    background: linear-gradient(135deg, #6B46C1, #8B5CF6, #A855F7);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(15px);
    box-shadow: 0 12px 40px rgba(107, 70, 193, 0.4);
    font-size: 1rem;
}

.slide-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

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

.slide-buttons .btn:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 20px 50px rgba(107, 70, 193, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #8B5CF6, #A855F7, #C084FC);
}

.slide-buttons .btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Enhanced Slide Content */
.slide-content h3 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #FFF, #FCD34D, #FFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideTextIn 0.8s ease-out 0.2s both;
    position: relative;
}

.slide-content h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #FFD700, #FFA500, #FFD700);
    border-radius: 3px;
    animation: slideTextIn 0.8s ease-out 0.4s both;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.slide-content h3::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent);
    border-radius: 50%;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.2);
    }
}

.slide-content p {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    line-height: 1.7;
    animation: slideTextIn 0.8s ease-out 0.6s both;
    margin-bottom: 0;
    font-weight: 500;
}

/* Mouse Trail Effects */
.mouse-trail {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #FFD700, #FFA500, transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999;
    animation: trailFade 1.2s ease-out forwards;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Random Sparkle Effects */
.random-sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: conic-gradient(from 0deg, #FFD700, #FF6B6B, #4ECDC4, #45B7D1, #FFD700);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: randomSparkleAnimation 3.5s ease-out forwards;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
}

@keyframes randomSparkleAnimation {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    20% {
        opacity: 1;
        transform: scale(1.5) rotate(72deg);
    }
    80% {
        opacity: 1;
        transform: scale(1) rotate(288deg);
    }
    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .slide-content h3 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .slide-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Reduce effects intensity on mobile */
    .particle, .sparkle, .magic {
        width: 5px;
        height: 5px;
    }
    
    .glow {
        width: 80px;
        height: 80px;
    }
    
    .energy {
        width: 2px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .slide-content h3 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .slide-content p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .slide-buttons .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
    }
    
    /* Further reduce effects on small mobile */
    .particle, .sparkle, .magic {
        width: 4px;
        height: 4px;
    }
    
    .glow {
        width: 60px;
        height: 60px;
    }
    
    .energy {
        width: 2px;
        height: 25px;
    }
}
