/**
 * Kaleido Works - Innovation Visual System
 * Modern Tech-Forward Design System
 * Version: 3.0
 * Last Updated: 2026-02-27
 */

/* ============================================
   COLOR SYSTEM - Modern Tech Palette
   ============================================ */

:root {
    /* Primary Colors - Vibrant Orange */
    --primary-bright: #FF5722;
    --primary-light: #FF9800;
    --primary-gradient: linear-gradient(135deg, #FF5722 0%, #FF9800 100%);
    
    /* Tech Accent Colors */
    --neon-blue: #00E5FF;
    --neon-purple: #9C27B0;
    --tech-cyan: #00BCD4;
    --tech-gradient: linear-gradient(135deg, #00E5FF 0%, #9C27B0 100%);
    --orange-blue-gradient: linear-gradient(135deg, #FF5722 0%, #00E5FF 100%);
    --orange-purple-gradient: linear-gradient(135deg, #FF9800 0%, #9C27B0 100%);
    
    /* Background Colors */
    --bg-dark: #0A0E27;
    --bg-dark-secondary: #151932;
    --bg-dark-card: #1a1f3a;
    --bg-light: #FFFFFF;
    --bg-light-secondary: #F5F7FA;
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 20px;
    
    /* Shadows */
    --shadow-neon-orange: 0 0 20px rgba(255, 87, 34, 0.6), 0 0 40px rgba(255, 87, 34, 0.3);
    --shadow-neon-blue: 0 0 20px rgba(0, 229, 255, 0.6), 0 0 40px rgba(0, 229, 255, 0.3);
    --shadow-neon-purple: 0 0 20px rgba(156, 39, 176, 0.6), 0 0 40px rgba(156, 39, 176, 0.3);
    --shadow-glow-soft: 0 8px 32px rgba(255, 87, 34, 0.15);
    --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   GLASSMORPHISM STYLES
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-bright);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-8px);
}

.glass-dark {
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   NEON GLOW EFFECTS
   ============================================ */

.neon-text {
    color: var(--primary-bright);
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.8),
                 0 0 20px rgba(255, 87, 34, 0.6),
                 0 0 30px rgba(255, 87, 34, 0.4);
}

.neon-text-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8),
                 0 0 20px rgba(0, 229, 255, 0.6),
                 0 0 30px rgba(0, 229, 255, 0.4);
}

.neon-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-dark-card), var(--bg-dark-card)) padding-box,
                var(--primary-gradient) border-box;
    border-radius: 16px;
}

.neon-border-animated {
    position: relative;
    overflow: hidden;
}

.neon-border-animated::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--orange-blue-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.neon-border-animated:hover::before {
    opacity: 1;
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 0.6;
        filter: blur(8px);
    }
    50% {
        opacity: 1;
        filter: blur(12px);
    }
}

/* ============================================
   3D CARD EFFECTS
   ============================================ */

.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(8deg) rotateX(-8deg);
}

.card-3d-tilt {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg);
    transition: var(--transition-smooth);
}

.card-3d-tilt:hover {
    transform: perspective(1000px) rotateX(-2deg) rotateY(2deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.3);
}

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */

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

.bg-gradient-tech {
    background: var(--tech-gradient);
}

.bg-gradient-orange-blue {
    background: var(--orange-blue-gradient);
}

.bg-gradient-animated {
    background: linear-gradient(270deg, #FF5722, #FF9800, #00E5FF, #9C27B0);
    background-size: 800% 800%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   PARTICLE BACKGROUND
   ============================================ */

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* ============================================
   FLOATING ANIMATION
   ============================================ */

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

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

.float-animation-delayed {
    animation: float 6s ease-in-out infinite;
    animation-delay: 2s;
}

/* ============================================
   GLOW PULSE ANIMATION
   ============================================ */

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 87, 34, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 87, 34, 0.8), 
                    0 0 60px rgba(255, 87, 34, 0.4);
    }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

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

.overflow-visible {
    overflow: visible !important;
}

.z-top {
    z-index: 10;
    position: relative;
}

/* Dark background sections */
.section-dark {
    background-color: var(--bg-dark);
    color: white;
    position: relative;
}

.section-dark-secondary {
    background-color: var(--bg-dark-secondary);
    color: white;
    position: relative;
}

/* Light background sections */
.section-light {
    background-color: var(--bg-light);
    color: var(--bg-dark);
}

/* ============================================
   BUTTON STYLES - Modern Tech
   ============================================ */

.btn-modern {
    position: relative;
    padding: 16px 40px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.btn-modern-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-glow-soft);
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 87, 34, 0.4);
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

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

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--primary-bright);
    color: var(--primary-bright);
}

.btn-modern-outline:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-soft);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    :root {
        --glass-blur: 10px;
    }
    
    .card-3d:hover .card-3d-inner {
        transform: none;
    }
    
    .card-3d-tilt:hover {
        transform: translateY(-5px);
    }
}
