/* High-Tech Taxi Design - Additional Styles */

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

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #00BFFF, #6c63ff);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #0099CC, #5a52d5);
}

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

::-moz-selection {
    background: rgba(0, 191, 255, 0.3);
    color: #FFD700;
}

/* Loading spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    border: 3px solid rgba(0, 191, 255, 0.2);
    border-top: 3px solid #00BFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

/* Holographic text effect */
.holographic-text {
    background: linear-gradient(45deg, #00BFFF, #FFD700, #00FF7F, #6c63ff, #FF8C00);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographic 3s ease-in-out infinite;
}

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

/* Glitch effect */
.glitch {
    position: relative;
    display: inline-block;
}

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

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #00BFFF;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #FFD700;
    z-index: -1;
}

@keyframes glitch-1 {
    0%, 14%, 15%, 49%, 50%, 99%, 100% { transform: translate(0px, 0px); }
    1%, 13% { transform: translate(-2px, -1px); }
    16%, 48% { transform: translate(2px, 1px); }
}

@keyframes glitch-2 {
    0%, 20%, 21%, 62%, 63%, 99%, 100% { transform: translate(0px, 0px); }
    2%, 19% { transform: translate(1px, -2px); }
    22%, 61% { transform: translate(-1px, 2px); }
}

/* Neon glow buttons */
.neon-button {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00BFFF;
    color: #00BFFF;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.4), transparent);
    transition: all 0.5s;
}

.neon-button:hover::before {
    left: 100%;
}

.neon-button:hover {
    color: #ffffff;
    background: rgba(0, 191, 255, 0.1);
    box-shadow: 
        0 0 10px #00BFFF,
        0 0 20px #00BFFF,
        0 0 40px #00BFFF,
        inset 0 0 10px rgba(0, 191, 255, 0.1);
}

/* Circuit board pattern */
.circuit-bg {
    position: relative;
    overflow: hidden;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(0, 191, 255, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(0, 191, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuit-move 20s linear infinite;
    opacity: 0.3;
}

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

/* Data stream effect */
.data-stream {
    position: relative;
    overflow: hidden;
}

.data-stream::after {
    content: '01010101010101010101010101010101';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: rgba(0, 191, 255, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 20px;
    animation: data-flow 10s linear infinite;
    pointer-events: none;
    word-wrap: break-word;
    white-space: pre-wrap;
}

@keyframes data-flow {
    0% { transform: translateY(100%); }
    100% { transform: translateY(-100%); }
}

/* Hexagonal elements */
.hexagon {
    width: 60px;
    height: 34.64px;
    background: linear-gradient(135deg, #00BFFF, #6c63ff);
    margin: 17.32px 0;
    position: relative;
}

.hexagon::before,
.hexagon::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hexagon::before {
    bottom: 100%;
    border-bottom: 17.32px solid;
    border-bottom-color: inherit;
}

.hexagon::after {
    top: 100%;
    border-top: 17.32px solid;
    border-top-color: inherit;
}

/* Particle animation */
@keyframes particle-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
    33% { transform: translateY(-30px) rotate(120deg); opacity: 0.7; }
    66% { transform: translateY(30px) rotate(240deg); opacity: 0.4; }
}

@keyframes particle-fall {
    0% { transform: translateY(-10px); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #00BFFF, transparent);
    border-radius: 50%;
    animation: particle-float 6s ease-in-out infinite;
}

.particle:nth-child(2) { animation-delay: -1s; }
.particle:nth-child(3) { animation-delay: -2s; }
.particle:nth-child(4) { animation-delay: -3s; }
.particle:nth-child(5) { animation-delay: -4s; }

/* Scanline effect */
@keyframes scanline {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(500vh); opacity: 0; }
}

.scanlines::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00BFFF, transparent);
    animation: scanline 3s ease-out infinite;
    z-index: 1000;
    pointer-events: none;
}

/* Terminal cursor */
@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-cursor::after {
    content: '_';
    color: #00FF7F;
    animation: cursor-blink 1s infinite;
}

/* Energy field */
.energy-field {
    position: relative;
    background: radial-gradient(ellipse at center, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
}

.energy-field::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0, 191, 255, 0.3), transparent);
    animation: energy-rotate 4s linear infinite;
    border-radius: 50%;
}

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

/* Matrix rain effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.matrix-rain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 127, 0.03) 2px,
        rgba(0, 255, 127, 0.03) 4px
    );
    animation: matrix-scroll 8s linear infinite;
}

@keyframes matrix-scroll {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

.matrix-column {
    position: absolute;
    top: -100px;
    color: #00FF7F;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: matrix-fall linear infinite;
}

@keyframes matrix-fall {
    0% { transform: translateY(-100px); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Holographic grid */
.holographic-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-shift 15s ease-in-out infinite;
}

@keyframes grid-shift {
    0%, 100% { background-position: 0 0; }
    50% { background-position: 30px 30px; }
}

/* 3D Animation Effects */
@keyframes float-3d {
    0%, 100% {
        transform: translateY(0px) rotateX(0deg) rotateY(0deg);
        box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    }
    25% {
        transform: translateY(-20px) rotateX(5deg) rotateY(5deg);
        box-shadow: 0 20px 40px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: translateY(-10px) rotateX(0deg) rotateY(10deg);
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4);
    }
    75% {
        transform: translateY(-25px) rotateX(-5deg) rotateY(5deg);
        box-shadow: 0 25px 45px rgba(255, 215, 0, 0.6);
    }
}

.animate-float-3d {
    animation: float-3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes pulse-3d {
    0%, 100% {
        transform: scale(1) rotateX(0deg);
        box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
    }
    50% {
        transform: scale(1.1) rotateX(10deg);
        box-shadow: 0 0 40px rgba(0, 191, 255, 0.6);
    }
}

.animate-pulse-3d {
    animation: pulse-3d 4s ease-in-out infinite;
}

@keyframes bounce-3d {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
        box-shadow: 0 10px 20px rgba(0, 255, 127, 0.3);
    }
    50% {
        transform: translateY(-30px) rotateZ(180deg);
        box-shadow: 0 30px 60px rgba(0, 255, 127, 0.6);
    }
}

.animate-bounce-3d {
    animation: bounce-3d 5s ease-in-out infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
}

/* Triangle shape */
.triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid currentColor;
    background: none;
}

/* Particle system */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle-system {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.8), transparent);
    border-radius: 50%;
    animation: particle-orbit 10s linear infinite;
}

@keyframes particle-orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(360deg); }
}

/* Enhanced card effects */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.card-3d:hover {
    transform: rotateY(15deg) rotateX(10deg) translateZ(50px);
}

.card-glow {
    position: relative;
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00BFFF, #FFD700, #00FF7F, #6c63ff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-glow:hover::before {
    opacity: 1;
}

/* Accordion styles */
.accordion-item {
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(22, 19, 62, 0.8));
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(108, 99, 255, 0.1));
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(26, 26, 46, 0.5);
}

.accordion-content.open {
    max-height: 500px;
}

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

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

/* Modal enhancements */
.modal-overlay {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    transform: scale(0.7) rotateX(90deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.modal-content.open {
    transform: scale(1) rotateX(0deg);
    opacity: 1;
}

/* Fade-in animation */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
    opacity: 0;
}

/* Slide-in animation */
@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-left {
    animation: slide-in-left 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slide-in-right {
    animation: slide-in-right 0.6s ease-out forwards;
    opacity: 0;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .matrix-rain::before {
        background-size: 30px 30px;
    }

    .holographic-grid {
        background-size: 30px 30px;
    }

    .animate-float-3d,
    .animate-pulse-3d,
    .animate-bounce-3d {
        animation-duration: 4s;
    }

    .card-3d:hover {
        transform: none;
    }

    .accordion-header {
        padding: 12px 16px;
        font-size: 14px;
    }

    .animate-fade-in {
        animation-duration: 0.5s;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .holographic-text {
        background-size: 200% 200%;
    }
    
    .neon-button {
        padding: 12px 24px;
        font-size: 14px;
        letter-spacing: 1px;
    }
    
    .hexagon {
        width: 40px;
        height: 23.09px;
        margin: 11.55px 0;
    }
    
    .hexagon::before,
    .hexagon::after {
        border-left-width: 20px;
        border-right-width: 20px;
    }
    
    .hexagon::before {
        border-bottom-width: 11.55px;
    }
    
    .hexagon::after {
        border-top-width: 11.55px;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .neon-button {
        border-width: 3px;
    }
    
    .holographic-text {
        -webkit-text-fill-color: #00BFFF;
        background: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scanlines::before,
    .energy-field::before,
    .matrix-column {
        animation: none;
    }
}

/* Print styles */
@media print {
    .neon-button,
    .holographic-text,
    .glitch,
    .energy-field::before,
    .scanlines::before {
        background: none !important;
        color: #000000 !important;
        text-shadow: none !important;
        box-shadow: none !important;
        animation: none !important;
    }
}