/* Lightning Logistics VTC - Custom Styles with Enhanced Color-Matched Glows */

/* Custom animations */
@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.6), 0 0 40px rgba(6, 182, 212, 0.4);
    }
}

@keyframes glow-electric {
    0% {
        box-shadow: 0 0 20px rgba(52, 152, 207, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(52, 152, 207, 0.6), 0 0 40px rgba(52, 152, 207, 0.4);
    }
}

@keyframes glow-lightning {
    0% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.4);
    }
}

@keyframes glow-green {
    0% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.4);
    }
}

@keyframes glow-red {
    0% {
        box-shadow: 0 0 20px rgba(227, 66, 52, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(227, 66, 52, 0.6), 0 0 40px rgba(227, 66, 52, 0.4);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3498cf, #F59E0B);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3498cf, #D97706);
}

/* Navigation styles */
.nav-link {
    position: relative;
    color: #D1D5DB;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #06B6D4;
}

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

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

/* Gradient text effects */
.gradient-text {
    background: linear-gradient(135deg, #3498cf, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Card hover effects with color-matched glows */
.feature-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Features Section - Color-matched glow effects based on border colors */
#features .group.border-electric\/20:hover {
    animation: glow-electric 2s ease-in-out infinite alternate;
    border-color: rgba(52, 152, 207, 0.6) !important;
}

#features .group.border-lightning\/20:hover {
    animation: glow-lightning 2s ease-in-out infinite alternate;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

#features .group.border-accent\/20:hover {
    animation: glow-green 2s ease-in-out infinite alternate;
    border-color: rgba(16, 185, 129, 0.6) !important;
}

#features .group.border-secondary\/20:hover {
    animation: glow-electric 2s ease-in-out infinite alternate;
    border-color: rgba(59, 130, 246, 0.6) !important;
}

/* Leadership Team - Color-matched glows based on role colors */
#team .border-electric\/20:hover {
    animation: glow-electric 2s ease-in-out infinite alternate;
    border-color: rgba(52, 152, 207, 0.6) !important;
}

#team .border-lightning\/20:hover {
    animation: glow-lightning 2s ease-in-out infinite alternate;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

/* Special glow for RevolutionUK (red color) */
#team .group:has(.text-rev):hover {
    animation: glow-red 2s ease-in-out infinite alternate;
    border-color: rgba(227, 66, 52, 0.6) !important;
}

/* Testimonials Section - Color-matched glows */
#testimonials .border-electric\/20:hover {
    animation: glow-electric 2s ease-in-out infinite alternate;
    border-color: rgba(52, 152, 207, 0.6) !important;
}

#testimonials .border-lightning\/20:hover {
    animation: glow-lightning 2s ease-in-out infinite alternate;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

#testimonials .border-accent\/20:hover {
    animation: glow-green 2s ease-in-out infinite alternate;
    border-color: rgba(16, 185, 129, 0.6) !important;
}

/* Specific testimonial card glows based on role colors */
#testimonials .bg-dark-light:has(.text-electric):hover {
    animation: glow-electric 2s ease-in-out infinite alternate;
    border-color: rgba(52, 152, 207, 0.6) !important;
}

#testimonials .bg-dark-light:has(.text-accent):hover {
    animation: glow-green 2s ease-in-out infinite alternate;
    border-color: rgba(16, 185, 129, 0.6) !important;
}

#testimonials .bg-dark-light:has(.text-lightning):hover {
    animation: glow-lightning 2s ease-in-out infinite alternate;
    border-color: rgba(245, 158, 11, 0.6) !important;
}

/* Button effects */
.btn-primary {
    background: linear-gradient(135deg, #3498cf, #06B6D4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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.5s;
}

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

/* Testimonial cards */
.testimonial-card {
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498cf, #10B981, #F59E0B);
    border-radius: 8px 8px 0 0;
}

/* Team member cards */
.team-card {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

/* Enhanced glow for hero section icons and elements */
.animate-glow {
    animation: glow-electric 2s ease-in-out infinite alternate;
}

/* Stats section - color-matched glows */
.text-electric:parent:hover {
    animation: glow-electric 2s ease-in-out infinite alternate;
}

.text-lightning:parent:hover {
    animation: glow-lightning 2s ease-in-out infinite alternate;
}

.text-accent:parent:hover {
    animation: glow-green 2s ease-in-out infinite alternate;
}

/* Loading animation for images */
.image-placeholder {
    background: linear-gradient(45deg, #1E293B, #334155);
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive video container */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats counter animation */
.stat-counter {
    display: inline-block;
    font-weight: 900;
    font-family: 'Orbitron', monospace;
}

/* Custom focus styles */
*:focus {
    outline: 2px solid #06B6D4;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero section enhancements */
.hero-bg {
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #1E3A8A 0%, #0F172A 50%, #1E293B 100%);
}

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

.particle {
    position: absolute;
    background: #06B6D4;
    border-radius: 50%;
    animation: float 6s infinite linear;
    opacity: 0.7;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .feature-grid {
        grid-template-columns: 1fr !important;
    }
    
    .team-grid {
        grid-template-columns: 1fr !important;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0F172A;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-link:hover {
        color: #FFFFFF;
    }
    
    .gradient-text {
        color: #06B6D4;
    }
}

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

/* Print styles */
@media print {
    .fixed, nav, footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Custom utility classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.border-gradient {
    border: 1px solid;
    border-image: linear-gradient(135deg, #06B6D4, #F59E0B) 1;
}

/* Loading states */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success states */
.success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Error states */
.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Additional color-specific glow utilities */
.glow-electric {
    animation: glow-electric 2s ease-in-out infinite alternate;
}

.glow-lightning {
    animation: glow-lightning 2s ease-in-out infinite alternate;
}

.glow-green {
    animation: glow-green 2s ease-in-out infinite alternate;
}

.glow-red {
    animation: glow-red 2s ease-in-out infinite alternate;
}

/* Hover state improvements */
.group:hover .glow-electric {
    animation: glow-electric 2s ease-in-out infinite alternate;
}

.group:hover .glow-lightning {
    animation: glow-lightning 2s ease-in-out infinite alternate;
}

.group:hover .glow-green {
    animation: glow-green 2s ease-in-out infinite alternate;
}

.group:hover .glow-red {
    animation: glow-red 2s ease-in-out infinite alternate;
}