/* BEAMING & GLOWING EFFECTS */

/* Comet Lines - Diagonal beams across screen */
@keyframes comet-beam {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(200vw) translateY(200vh) rotate(-45deg);
        opacity: 0;
    }
}

.comet-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.comet-beam {
    position: absolute;
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 85, 247, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8),
                0 0 40px rgba(168, 85, 247, 0.4);
    animation: comet-beam 8s linear infinite;
}

.comet-beam:nth-child(1) { animation-delay: 0s; top: 10%; }
.comet-beam:nth-child(2) { animation-delay: 2s; top: 30%; }
.comet-beam:nth-child(3) { animation-delay: 4s; top: 50%; }
.comet-beam:nth-child(4) { animation-delay: 6s; top: 70%; }

[data-theme="dark"] .comet-beam {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(200, 200, 200, 0.8) 50%, 
        transparent 100%);
    box-shadow: 0 0 30px rgba(180, 180, 180, 0.6),
                0 0 60px rgba(160, 160, 160, 0.3);
}

/* Glowing Pulse Animation */
@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(168, 85, 247, 0.8),
                    0 0 60px rgba(168, 85, 247, 0.4);
    }
}

.glow-pulse {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Floating Screenshots - Random Bumper Car Paths */
@keyframes float-screenshot-1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    15% { transform: translate(40px, -30px) rotate(3deg); }
    30% { transform: translate(-20px, -50px) rotate(-2deg); }
    45% { transform: translate(60px, -20px) rotate(4deg); }
    60% { transform: translate(-30px, -60px) rotate(-3deg); }
    75% { transform: translate(50px, -40px) rotate(2deg); }
    90% { transform: translate(-10px, -30px) rotate(-1deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-screenshot-2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-50px, 40px) rotate(-4deg); }
    40% { transform: translate(30px, 60px) rotate(3deg); }
    55% { transform: translate(-40px, 20px) rotate(-2deg); }
    70% { transform: translate(60px, 50px) rotate(4deg); }
    85% { transform: translate(-20px, 40px) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-screenshot-3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    18% { transform: translate(45px, 35px) rotate(2deg); }
    36% { transform: translate(-35px, 55px) rotate(-3deg); }
    54% { transform: translate(55px, 25px) rotate(4deg); }
    72% { transform: translate(-25px, 65px) rotate(-2deg); }
    90% { transform: translate(35px, 45px) rotate(3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-screenshot-4 {
    0% { transform: translate(0, 0) rotate(0deg); }
    22% { transform: translate(-60px, -35px) rotate(-3deg); }
    44% { transform: translate(40px, -55px) rotate(4deg); }
    66% { transform: translate(-50px, -25px) rotate(-4deg); }
    88% { transform: translate(30px, -45px) rotate(2deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.floating-screenshot {
    position: absolute;
    opacity: 0.2;
    filter: blur(0px);
    pointer-events: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: opacity 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid rgba(168, 85, 247, 0.2);
}

.floating-screenshot:hover {
    opacity: 0.7;
    transform: scale(1.08);
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.3);
    border-color: rgba(168, 85, 247, 0.5);
    z-index: 100;
}

.floating-screenshot:nth-child(1) { 
    top: 8%; 
    left: 3%; 
    width: 280px;
    animation: float-screenshot-1 25s ease-in-out infinite;
}

.floating-screenshot:nth-child(2) { 
    top: 55%; 
    right: 5%; 
    width: 320px;
    animation: float-screenshot-2 30s ease-in-out infinite;
}

.floating-screenshot:nth-child(3) { 
    bottom: 10%; 
    left: 8%; 
    width: 250px;
    animation: float-screenshot-3 28s ease-in-out infinite;
}

.floating-screenshot:nth-child(4) { 
    top: 30%; 
    right: 12%; 
    width: 290px;
    animation: float-screenshot-4 27s ease-in-out infinite;
}

[data-theme="dark"] .floating-screenshot {
    opacity: 0.12;
    box-shadow: 0 10px 40px rgba(100, 100, 100, 0.3);
    border-color: rgba(150, 150, 150, 0.2);
}

[data-theme="dark"] .floating-screenshot:hover {
    opacity: 0.4;
    box-shadow: 0 20px 60px rgba(150, 150, 150, 0.5);
    border-color: rgba(180, 180, 180, 0.5);
}

/* Beam Lines on Hover */
.beam-on-hover {
    position: relative;
    overflow: hidden;
}

.beam-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(168, 85, 247, 0.3) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.beam-on-hover:hover::before {
    left: 100%;
}

/* Glowing Border Animation */
@keyframes border-glow {
    0%, 100% {
        border-color: rgba(168, 85, 247, 0.3);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    }
    50% {
        border-color: rgba(168, 85, 247, 0.8);
        box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    }
}

.glowing-border {
    border: 2px solid rgba(168, 85, 247, 0.3);
    animation: border-glow 3s ease-in-out infinite;
}

/* Particle Effect */
@keyframes particle-float {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.5);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(168, 85, 247, 1), transparent);
    border-radius: 50%;
    animation: particle-float 10s linear infinite;
    pointer-events: none;
}

.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Shine Effect on Cards */
@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 3s ease-in-out infinite;
}

[data-theme="dark"] .shine-effect::after {
    background: linear-gradient(90deg, 
        transparent, 
        rgba(200, 200, 200, 0.15), 
        transparent);
}

/* Subtle Neon Glow Text - Clear and Discreet */
.neon-text {
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.3),
                 0 0 10px rgba(168, 85, 247, 0.2);
}

[data-theme="dark"] .neon-text {
    text-shadow: 0 0 8px rgba(200, 200, 200, 0.4),
                 0 0 15px rgba(180, 180, 180, 0.2);
}

/* Ripple Effect on Click */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple-effect:active::before {
    width: 300px;
    height: 300px;
    opacity: 0;
    transition: width 0s, height 0s, opacity 0.6s;
}

/* Enhanced Interactive Effects */
.interactive-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.interactive-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(168, 85, 247, 0.3);
}

[data-theme="dark"] .interactive-card:hover {
    box-shadow: 0 30px 60px rgba(150, 150, 150, 0.4);
}

/* Floating Animation for Elements */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float-gentle {
    animation: float-gentle 6s ease-in-out infinite;
}

/* Dark Theme - Override All Purple Effects with Gray */
[data-theme="dark"] .glow-pulse {
    animation: glow-pulse-dark 3s ease-in-out infinite;
}

@keyframes glow-pulse-dark {
    0%, 100% {
        box-shadow: 0 0 20px rgba(148, 163, 184, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(148, 163, 184, 0.8),
                    0 0 60px rgba(148, 163, 184, 0.4);
    }
}

[data-theme="dark"] .beam-on-hover::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(148, 163, 184, 0.3) 50%, 
        transparent 100%);
}

[data-theme="dark"] .glowing-border {
    border: 2px solid rgba(148, 163, 184, 0.3);
    animation: border-glow-dark 3s ease-in-out infinite;
}

@keyframes border-glow-dark {
    0%, 100% {
        border-color: rgba(148, 163, 184, 0.3);
        box-shadow: 0 0 10px rgba(148, 163, 184, 0.2);
    }
    50% {
        border-color: rgba(148, 163, 184, 0.8);
        box-shadow: 0 0 30px rgba(148, 163, 184, 0.6);
    }
}

[data-theme="dark"] .particle {
    background: radial-gradient(circle, rgba(148, 163, 184, 1), transparent);
}

[data-theme="dark"] .ripple-effect:active::before {
    background: rgba(148, 163, 184, 0.5);
}
