/* Futuristic Dark Theme */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: #fafafa;
    color: #212529;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(254, 174, 44, 0.1), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(254, 174, 44, 0.05), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(254, 174, 44, 0.08), transparent 50%);
    z-index: -2;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Cyber Grid Background */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(254, 174, 44, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(254, 174, 44, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: grid 20s linear infinite;
}

@keyframes grid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px 0 rgba(99, 102, 241, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px 0 rgba(99, 102, 241, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Neon Buttons */
.btn-neon {
    position: relative;
    padding: 12px 30px;
    border: none;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-neon:hover::before {
    left: 100%;
}

.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.3);
}

/* Holographic Effect */
.holographic {
    position: relative;
    background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
    background-size: 400% 400%;
    animation: holographic 10s ease infinite;
}

@keyframes holographic {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Neon Text */
.neon-text {
    text-shadow: 
        0 0 10px rgba(99, 102, 241, 0.8),
        0 0 20px rgba(99, 102, 241, 0.6),
        0 0 30px rgba(99, 102, 241, 0.4),
        0 0 40px rgba(99, 102, 241, 0.2);
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Futuristic Navbar */
.navbar-futuristic {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-futuristic.scrolled {
    padding: 0.5rem 0;
    background: rgba(5, 5, 16, 0.98) !important;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Cyber Cards */
.cyber-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-image: linear-gradient(45deg, #667eea, #764ba2) 1;
    border-radius: 15px;
    padding: 2rem;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #667eea);
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cyber-card:hover::before {
    opacity: 1;
}

/* Floating Elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: white;
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 
        0.05em 0 0 rgba(255, 0, 0, 0.75),
        -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
        0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 1s linear infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
            0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    95% {
        text-shadow: 
            0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            0.05em 0.025em 0 rgba(0, 0, 255, 0.75);
    }
}

/* Particle Effects */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(254, 174, 44, 0.6);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
    box-shadow: 0 0 4px rgba(254, 174, 44, 0.4);
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050510;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 100px;
    height: 100px;
    position: relative;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #764ba2;
    animation-duration: 0.8s;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #f093fb;
    animation-duration: 0.6s;
}

/* Premium Brand Elements */
.luxury-gradient {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    background-size: 200% 200%;
    animation: luxuryShine 3s ease infinite;
}

@keyframes luxuryShine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.premium-badge {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    clip-path: polygon(0 0, 100% 0, 95% 50%, 100% 100%, 0 100%, 5% 50%);
}

/* Interactive Elements */
.interactive-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.interactive-card:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Data Visualization */
.data-point {
    position: relative;
    display: inline-block;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: dataPulse 2s ease infinite;
}

@keyframes dataPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Premium Loading States */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: skeleton 1.5s ease infinite;
}

@keyframes skeleton {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Advanced Tooltips */
.tooltip-custom {
    position: relative;
    cursor: help;
}

.tooltip-custom::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tooltip-custom:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Morphing Shapes */
.morph {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
    }
    
    .cyber-card {
        padding: 1.5rem;
    }
    
    body::after {
        background-size: 30px 30px;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Language Selector */
.flag-icon {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    object-fit: cover;
    transition: transform 0.2s ease;
}

.flag-icon:hover {
    transform: scale(1.1);
}

.dropdown-item .flag-icon {
    width: 20px;
    height: 14px;
}

.navbar .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(254, 174, 44, 0.2);
    box-shadow: 0 4px 20px rgba(254, 174, 44, 0.1);
}

.navbar .dropdown-item {
    color: var(--client-dark-gray);
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(254, 174, 44, 0.1);
    color: var(--client-primary);
}

.navbar .dropdown-item.active {
    background: rgba(254, 174, 44, 0.15);
    color: var(--client-primary);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-card {
        background: white;
        border: 1px solid #ddd;
    }
    
    .btn, .navbar, .particles, .loading-screen {
        display: none !important;
    }
}