/* Tech-themed additional styles */

/* Neon glow effects */
.draw-card::after,
.leader-card::after,
.testimonial::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.draw-card:hover::after,
.leader-card:hover::after,
.testimonial:hover::after {
    opacity: 1;
    animation: neonPulse 1.5s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Holographic text effect */
.hero h1 {
    position: relative;
}

.hero h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: hologram 3s ease-in-out infinite;
    transform: translateZ(5px);
}

@keyframes hologram {
    0%, 100% { opacity: 0; transform: translateZ(0); }
    50% { opacity: 0.3; transform: translateZ(10px); }
}

/* Matrix rain effect for sections */
.section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 212, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 3px
        );
    pointer-events: none;
    animation: matrixRain 20s linear infinite;
}

@keyframes matrixRain {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Cyber grid overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glowing buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.btn:hover::before {
    opacity: 0.7;
}

/* Tech card effects */
.draw-card,
.leader-card,
.testimonial {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.draw-card::before,
.leader-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-blue));
    background-size: 400% 400%;
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.draw-card:hover::before,
.leader-card:hover::before {
    opacity: 1;
}

/* Animated background particles */
@keyframes float-up {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(1);
        opacity: 0;
    }
}

.particle {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float-up 10s linear infinite;
    box-shadow: 0 0 10px var(--neon-blue);
    pointer-events: none;
    z-index: 0;
}

/* Form inputs tech style */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--neon-blue);
    box-shadow:
        0 0 0 3px rgba(0, 212, 255, 0.1),
        0 0 20px rgba(0, 212, 255, 0.3),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

/* Loading animation */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple), var(--neon-pink));
    transform: scaleX(0);
    transform-origin: left;
    animation: loading 2s ease-out;
    z-index: 9999;
}

@keyframes loading {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.5); }
    100% { transform: scaleX(1); opacity: 0; }
}

/* FAQ tech style */
.faq-item {
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.faq-item:hover::before {
    left: 100%;
}

/* Testimonial hologram effect */
.testimonial {
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg at 50% 50%,
        transparent,
        rgba(182, 0, 255, 0.1),
        transparent
    );
    animation: rotate 10s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.testimonial:hover::before {
    opacity: 1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* Mobile menu cyber style */
.mobile-menu {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.98), rgba(26, 26, 46, 0.98));
    backdrop-filter: blur(20px) saturate(180%);
}

.mobile-menu a {
    position: relative;
    overflow: hidden;
}

.mobile-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.3s;
}

.mobile-menu a:hover::before {
    left: 100%;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .hero h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .draw-card,
    .testimonial,
    .leader-card {
        max-width: 100%;
    }

    .support-logos {
        gap: 1rem;
    }

    .support-logos img {
        height: 40px;
    }

    body::after {
        background-size: 30px 30px;
    }
}

/* Print styles */
@media print {
    * {
        animation: none !important;
        transition: none !important;
    }

    body::before,
    body::after,
    .section::after {
        display: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 3px solid currentColor;
    }

    .draw-card,
    .testimonial,
    .leader-card {
        border: 2px solid currentColor;
    }

    .neon-text {
        text-shadow: none;
        text-decoration: underline;
    }
}

/* Dark mode adjustments */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #1A1A2E;
        --darker-bg: #16213E;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
    background: var(--darker-bg);
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
    border-left: 1px solid rgba(0, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
    border-radius: 0;
    box-shadow: inset 0 0 6px rgba(0, 212, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--neon-purple), var(--neon-pink));
}

/* Selection color */
::selection {
    background: var(--neon-purple);
    color: white;
    text-shadow: 0 0 5px currentColor;
}

::-moz-selection {
    background: var(--neon-purple);
    color: white;
    text-shadow: 0 0 5px currentColor;
}
