/* RidePanel Custom Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0f;
    color: #ffffff;
    overflow-x: hidden;
}

/* Custom Selection */
::selection {
    background: rgba(255, 0, 255, 0.3);
    color: #fff;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff00ff, #00ffff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ffff, #ff00ff);
}

/* Navigation */
.nav-scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(31, 31, 46, 0.5);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 15s infinite;
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
}

/* Neon Text Effects */
.neon-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
}

/* Glow Effects */
.glow-pink {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 40px rgba(255, 0, 255, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
}

.glow-yellow {
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5), 0 0 40px rgba(255, 255, 0, 0.3);
}

/* Product Cards Hover Effect */
.product-card {
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover {
    transform: translateY(-10px);
}

/* 3D Tilt Effect */
[data-tilt] {
    transform-style: preserve-3d;
}

/* Reveal Animation */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Countdown Timer */
.countdown-item {
    text-align: center;
}

/* Form Styles */
input[type="email"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.2);
}

/* Button Hover States */
button, a {
    transition: all 0.3s ease;
}

/* Gradient Border Animation */
@keyframes gradient-border {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-border {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 300% 300%;
    animation: gradient-border 3s ease infinite;
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    100% {
        left: 100%;
    }
}

/* Mobile Menu Animation */
#mobile-menu.active {
    display: block;
    animation: slide-down 0.3s ease;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Animation */
#mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 768px) {
    .font-display {
        letter-spacing: 0.05em;
    }
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Grid Pattern Background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(255, 0, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Text Gradient Animation */
.animated-gradient-text {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ffff00, #ff00ff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s linear infinite;
}

@keyframes gradient-shift {
    to {
        background-position: 200% center;
    }
}

/* Floating Animation Variants */
.float-slow {
    animation: float 8s ease-in-out infinite;
}

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

.float-fast {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite linear alternate-reverse;
    color: #ff00ff;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-2px, -2px);
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    color: #00ffff;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(-2px, -2px); }
    20% { transform: translate(2px, 2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, -2px); }
    80% { transform: translate(-2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(2px, 2px); }
    20% { transform: translate(-2px, -2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, 2px); }
}

/* FAQ Accordion */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 255, 255, 0.3);
}

.faq-trigger {
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Confetti Animation */
@keyframes confetti-fall {
    0% {
        top: -20px;
        opacity: 1;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(20px);
    }
    50% {
        transform: rotate(180deg) translateX(-20px);
    }
    75% {
        transform: rotate(270deg) translateX(20px);
    }
    100% {
        top: 100vh;
        opacity: 0;
        transform: rotate(360deg) translateX(0);
    }
}

.confetti-piece {
    border-radius: 2px;
}

/* Modal Styles */
#product-modal .modal-content {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cookie Banner Popup */
#cookie-banner {
    transition: opacity 0.3s ease;
}

#cookie-popup {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Cookie Toggle Switch */
.cookie-toggle .toggle-track {
    transition: background-color 0.3s ease;
}

.cookie-toggle .toggle-thumb {
    transition: all 0.3s ease;
}

.cookie-toggle input:checked + .toggle-track {
    background-color: rgba(0, 255, 255, 0.3);
}

.cookie-toggle input:checked + .toggle-track .toggle-thumb {
    margin-left: auto;
    background-color: #00ffff;
}

/* Cookie Settings Button */
#cookie-settings-btn {
    animation: cookie-pulse 3s ease-in-out infinite;
}

@keyframes cookie-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 255, 255, 0);
    }
}

/* Simulator Cards */
.simulator-card {
    transition: all 0.3s ease;
}

.simulator-card:hover {
    transform: translateY(-5px);
}

/* Panel 3D Effect */
.panel-3d {
    transition: transform 0.5s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(255, 0, 255, 0.1);
}

.product-card:hover .panel-3d {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(255, 0, 255, 0.2);
}

/* Language Toggle */
.lang-btn.active,
.lang-btn-mobile.active {
    background: rgba(0, 255, 255, 0.2);
    color: #00ffff;
}

/* Custom Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #00ffff;
    outline-offset: 2px;
}
