/* ===================================
    VOLT - Custom Styles with WOW Effects
====================================== */

/* Import Google Fonts + Animations */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css');

/* VOLT Color Variables */
:root {
    /* VOLT Brand Colors */
    --volt-primary: #A26FFD;        /* Violet principal */
    --volt-secondary: #FE7762;      /* Orange énergique */
    --volt-dark: #000000;           /* Noir secondaire */
    --volt-dark-alt: #1a1a1a;      /* Noir alternatif */
    --volt-light: #ffffff;          /* Blanc */
    --volt-gray-light: #f8f9fa;     /* Gris clair */
    --volt-gray: #6c757d;           /* Gris moyen */
    --volt-gray-dark: #343a40;      /* Gris foncé */

    /* Gradient Colors */
    --volt-gradient-primary: linear-gradient(135deg, #A26FFD 0%, #FE7762 100%);
    --volt-gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);

    /* Typography */
    --volt-font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --volt-font-weight-light: 300;
    --volt-font-weight-regular: 400;
    --volt-font-weight-medium: 500;
    --volt-font-weight-semibold: 600;
    --volt-font-weight-bold: 700;
    --volt-font-weight-extrabold: 800;

    /* Spacing */
    --volt-spacing-xs: 0.5rem;
    --volt-spacing-sm: 1rem;
    --volt-spacing-md: 2rem;
    --volt-spacing-lg: 3rem;
    --volt-spacing-xl: 4rem;
    --volt-spacing-xxl: 6rem;

    /* Border Radius */
    --volt-radius-sm: 8px;
    --volt-radius-md: 12px;
    --volt-radius-lg: 20px;
    --volt-radius-pill: 50px;

    /* Shadows */
    --volt-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --volt-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --volt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --volt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Global Styles */
body {
    font-family: var(--volt-font-primary);
    background-color: var(--volt-dark);
    color: var(--volt-light);
    line-height: 1.6;
}

/* VOLT Brand Elements */
.volt-primary {
    color: var(--volt-primary) !important;
}

.volt-secondary {
    color: var(--volt-secondary) !important;
}

.bg-volt-primary {
    background-color: var(--volt-primary) !important;
}

.bg-volt-secondary {
    background-color: var(--volt-secondary) !important;
}

.bg-volt-dark {
    background-color: var(--volt-dark) !important;
}

.bg-volt-gradient {
    background: var(--volt-gradient-primary) !important;
}

.bg-volt-gradient-dark {
    background: var(--volt-gradient-dark) !important;
}

/* VOLT Buttons */
.btn-volt-primary {
    background: var(--volt-gradient-primary);
    border: none;
    color: white;
    font-weight: var(--volt-font-weight-semibold);
    border-radius: var(--volt-radius-pill);
    padding: 12px 32px;
    transition: all 0.3s ease;
    text-transform: none;
}

.btn-volt-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--volt-shadow-lg);
    color: white;
}

.btn-volt-secondary {
    background-color: transparent;
    border: 2px solid var(--volt-primary);
    color: var(--volt-primary);
    font-weight: var(--volt-font-weight-semibold);
    border-radius: var(--volt-radius-pill);
    padding: 10px 32px;
    transition: all 0.3s ease;
}

.btn-volt-secondary:hover {
    background-color: var(--volt-primary);
    color: white;
    transform: translateY(-2px);
}

/* VOLT Typography */
.volt-title {
    font-weight: var(--volt-font-weight-bold);
    color: var(--volt-light);
}

.volt-subtitle {
    font-weight: var(--volt-font-weight-medium);
    color: var(--volt-gray);
}

.volt-text-gradient {
    background: var(--volt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* VOLT Cards */
.volt-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(162, 111, 253, 0.2);
    border-radius: var(--volt-radius-lg);
    padding: var(--volt-spacing-md);
    transition: all 0.3s ease;
}

.volt-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--volt-shadow-xl);
    border-color: var(--volt-primary);
}

/* VOLT Feature Box */
.volt-feature-box {
    text-align: center;
    padding: var(--volt-spacing-lg);
}

.volt-feature-icon {
    width: 80px;
    height: 80px;
    background: var(--volt-gradient-primary);
    border-radius: var(--volt-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--volt-spacing-md);
    font-size: 2rem;
    color: white;
}

/* VOLT Header */
.volt-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(162, 111, 253, 0.1);
}

.volt-nav-link {
    color: var(--volt-light);
    font-weight: var(--volt-font-weight-medium);
    padding: 10px 20px;
    border-radius: var(--volt-radius-sm);
    transition: all 0.3s ease;
}

.volt-nav-link:hover,
.volt-nav-link.active {
    color: var(--volt-primary);
    background-color: rgba(162, 111, 253, 0.1);
}

/* VOLT Hero Section with WOW Effects */
.volt-hero {
    background: var(--volt-gradient-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;

    /* Animated gradient background */
    background: linear-gradient(-45deg, #000000, #1a1a1a, #2d1b69, #A26FFD);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.volt-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("logo/logo-f_xtg6f.png") center/cover;
    opacity: 0.1;
    z-index: 0;
}

.volt-hero-content {
    position: relative;
    z-index: 1;
}

/* VOLT Animations */
@keyframes volt-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.volt-fade-in-up {
    animation: volt-fadeInUp 0.8s ease-out;
}

/* VOLT Footer */
.volt-footer {
    background-color: var(--volt-dark-alt);
    border-top: 1px solid rgba(162, 111, 253, 0.1);
}

/* VOLT Responsive */
@media (max-width: 768px) {
    .volt-hero {
        min-height: 70vh;
    }

    .volt-feature-box {
        padding: var(--volt-spacing-md);
    }

    .btn-volt-primary,
    .btn-volt-secondary {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* VOLT Dark Theme Overrides */
.bg-white {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--volt-light);
}

.text-dark-gray {
    color: var(--volt-light) !important;
}

.text-medium-gray {
    color: var(--volt-gray) !important;
}

/* VOLT Custom Cursor (Dark Theme) */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor .circle-cursor-outer {
        border: 1px solid var(--volt-primary);
    }
    .custom-cursor .circle-cursor-inner {
        background: var(--volt-primary);
    }
}

/* VOLT App Store Badge */
.volt-app-store-badge {
    display: inline-block;
    margin: 10px;
    transition: transform 0.3s ease;
}

.volt-app-store-badge:hover {
    transform: scale(1.05);
}

/* VOLT Section Spacing */
.volt-section {
    padding: var(--volt-spacing-xxl) 0;
}

.volt-section-sm {
    padding: var(--volt-spacing-xl) 0;
}

/* ===================================
    WOW EFFECTS & ANIMATIONS
====================================== */

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

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

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

/* Glow Animation */
@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(162, 111, 253, 0.3); }
    50% { box-shadow: 0 0 40px rgba(162, 111, 253, 0.7), 0 0 60px rgba(162, 111, 253, 0.4); }
}

/* Particle Effects */
.volt-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.volt-particles::before,
.volt-particles::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--volt-primary);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
    opacity: 0.6;
}

.volt-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.volt-particles::after {
    top: 60%;
    right: 30%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-100px) scale(1.2);
        opacity: 1;
    }
}

/* Morphing Shapes */
.volt-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(162, 111, 253, 0.1), rgba(254, 119, 98, 0.1));
    animation: morphing 20s ease-in-out infinite;
}

.volt-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    right: -150px;
    animation-delay: 0s;
}

.volt-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: -100px;
    animation-delay: 10s;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 40% 60% 30% 70%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 60% 40% 70% 30%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 30% 70% 40% 60%;
        transform: rotate(270deg) scale(1.05);
    }
}

/* Text Animations */
.volt-text-reveal {
    background: var(--volt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textReveal 2s ease-out forwards;
    opacity: 0;
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button Hover Effects */
.volt-btn-glow {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.volt-btn-glow::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;
    z-index: -1;
}

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

/* Card Hover Effects */
.volt-card-3d {
    transform-style: preserve-3d;
    transition: all 0.5s ease;
}

.volt-card-3d:hover {
    transform: rotateY(10deg) rotateX(10deg) translateZ(20px);
    box-shadow:
        20px 20px 60px rgba(162, 111, 253, 0.2),
        -10px -10px 30px rgba(0, 0, 0, 0.1);
}

/* Magnetic Effect */
.volt-magnetic {
    transition: transform 0.2s ease-out;
    cursor: pointer;
}

/* Loading Animations */
.volt-loading {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(162, 111, 253, 0.3);
    border-top: 3px solid var(--volt-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scroll Trigger Animations */
.volt-scroll-reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.8s ease-out;
}

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

.volt-scroll-reveal.from-left {
    transform: translateX(-100px);
}

.volt-scroll-reveal.from-right {
    transform: translateX(100px);
}

.volt-scroll-reveal.from-left.revealed,
.volt-scroll-reveal.from-right.revealed {
    transform: translateX(0);
}

/* Stats Counter Animation */
.volt-counter {
    font-weight: 800;
    background: var(--volt-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typewriter Effect */
.volt-typewriter {
    display: inline-block;
    border-right: 3px solid var(--volt-primary);
    animation: typing 4s steps(40) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
}

@keyframes typing {
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Interactive Elements */
.volt-interactive:hover {
    animation: pulse 1s ease-in-out;
}

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

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

/* Dropdown customization */
.dropdown-toggle::after {
    display: none !important;
}

.nav-item.dropdown .dropdown-toggle::after {
    display: none !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    background: var(--volt-dark-secondary) !important;
    border: 1px solid var(--volt-primary) !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(162, 111, 253, 0.3);
    min-width: 250px;
    z-index: 9999 !important;
}

.dropdown-item {
    color: #ffffff !important;
    padding: 12px 20px;
    transition: all 0.3s ease;
    background: transparent !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
    background: var(--volt-primary) !important;
    color: #ffffff !important;
}

.dropdown-item i {
    color: var(--volt-primary) !important;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: #ffffff !important;
}

.dropdown-divider {
    border-top: 1px solid var(--volt-primary) !important;
    opacity: 0.5;
}

/* Header z-index fix */
.volt-header {
    position: relative;
    z-index: 10000;
}

.navbar {
    z-index: 10000 !important;
}

.navbar .dropdown {
    z-index: 10001 !important;
}

.volt-hero {
    z-index: 1 !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .volt-shape {
        display: none; /* Hide complex animations on mobile for performance */
    }

    .volt-hero {
        animation: none; /* Disable heavy animations on mobile */
        background: var(--volt-gradient-dark);
    }

    .volt-particles {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .volt-text-gradient {
        -webkit-text-fill-color: var(--volt-primary);
        background: none;
    }
}

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

/* ===================================
    ADDITIONAL UI COMPONENTS
====================================== */

/* Avatar Stack */
.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--volt-dark);
    margin-left: -10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.8;
}

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.opacity-75 {
    opacity: 0.75;
}

/* Badge Animations */
.badge {
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
    opacity: 0;
}

.badge:hover::before {
    animation: shimmer 0.8s ease-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Enhanced Feature Cards */
.volt-card {
    position: relative;
    overflow: hidden;
}

.volt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(162, 111, 253, 0.1), transparent);
    transition: left 0.5s ease;
}

.volt-card:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Loading States */
.volt-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Dark theme skeleton */
.bg-volt-dark .volt-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
}

/* Enhanced buttons */
.btn {
    position: relative;
    z-index: 1;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* Glassmorphism effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Text effects */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px currentColor;
}
