/* ===========================
   MODERN CHROMA GREEN THEME
   Ultra-Modern, Glossy, Tech-Forward
   =========================== */

/* Glass Morphism Effects */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(0, 255, 136, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

/* Glossy Chroma Green Elements */
.chroma-glossy {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    position: relative;
    overflow: hidden;
}

.chroma-glossy::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.5s;
}

.chroma-glossy:hover::before {
    left: 100%;
}

.chroma-glossy::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: inherit;
}

/* Neon Glow Effects */
.neon-glow {
    text-shadow: 
        0 0 10px rgba(0, 255, 136, 0.8),
        0 0 20px rgba(0, 255, 136, 0.6),
        0 0 30px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2);
}

.neon-border {
    border: 2px solid var(--chroma-green);
    box-shadow: 
        0 0 10px rgba(0, 255, 136, 0.5),
        inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.neon-box {
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2),
        0 0 60px rgba(0, 255, 136, 0.1);
}

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

.animated-gradient {
    background: linear-gradient(
        -45deg,
        #0a0e1a,
        #111827,
        #1f2937,
        #0a0e1a
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

/* Particle Effect Background */
.particle-bg {
    position: relative;
    overflow: hidden;
}

.particle-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle, rgba(0, 255, 136, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    animation: particleFloat 20s linear infinite;
}

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

/* Modern Card Styles */
.modern-card {
    background: var(--dark-surface);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--dark-border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-chroma);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover::before {
    transform: scaleX(1);
}

.modern-card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 136, 0.1);
    transform: translateY(-8px);
}

/* Glossy Buttons */
.btn-chroma {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    color: var(--dark-bg);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    cursor: pointer;
}

.btn-chroma::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;
}

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

.btn-chroma:hover {
    box-shadow: 
        0 15px 40px rgba(0, 255, 136, 0.5),
        0 0 60px rgba(0, 255, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-chroma:active {
    transform: translateY(-1px);
    box-shadow: 
        0 5px 20px rgba(0, 255, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Outline Button */
.btn-outline-chroma {
    background: transparent;
    color: var(--chroma-green);
    border: 2px solid var(--chroma-green);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline-chroma::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--chroma-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.btn-outline-chroma:hover::before {
    width: 300%;
    height: 300%;
}

.btn-outline-chroma:hover {
    color: var(--dark-bg);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

/* Icon with Glow */
.icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    box-shadow: 
        0 10px 30px rgba(0, 255, 136, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    transition: var(--transition);
}

.icon-glow::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-chroma);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: var(--transition);
}

.icon-glow:hover::before {
    opacity: 0.8;
}

.icon-glow:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(0, 255, 136, 0.6),
        0 0 60px rgba(0, 255, 136, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

/* Holographic Effect */
.holographic {
    position: relative;
    background: linear-gradient(
        135deg,
        #00ff88 0%,
        #00f5ff 25%,
        #8b5cf6 50%,
        #00f5ff 75%,
        #00ff88 100%
    );
    background-size: 200% 200%;
    animation: holographicShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Scan Line Effect */
@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100vh);
    }
}

.scanline-effect {
    position: relative;
}

.scanline-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 255, 136, 0.5),
        transparent
    );
    animation: scanline 4s linear infinite;
    pointer-events: none;
}

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

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

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

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

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Grid Pattern Overlay */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hexagon Pattern */
.hex-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l20 11.547v16.906L20 40 0 28.453V11.547z' fill='none' stroke='rgba(0,255,136,0.1)' stroke-width='1'/%3E%3C/svg%3E");
}

/* Spotlight Effect */
.spotlight {
    position: relative;
    overflow: hidden;
}

.spotlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(0, 255, 136, 0.1) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.spotlight:hover::before {
    opacity: 1;
}

/* Text Gradient */
.text-gradient-chroma {
    background: var(--gradient-chroma);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Cyber Border */
.cyber-border {
    position: relative;
    padding: 2px;
    background: var(--gradient-chroma);
    border-radius: 16px;
}

.cyber-border-content {
    background: var(--dark-surface);
    border-radius: 14px;
    padding: 2rem;
}

/* Loading Bar */
.loading-bar {
    height: 3px;
    background: var(--dark-elevated);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-chroma);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Responsive Glow */
@media (hover: hover) {
    .hover-glow:hover {
        box-shadow: 
            0 0 20px rgba(0, 255, 136, 0.4),
            0 0 40px rgba(0, 255, 136, 0.2);
    }
}

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