/* ========================================
   CREDENFY - STYLES.CSS
   Theme: Dark/Light Cyberpunk
   ======================================== */

/* Dark Theme Background */
body.dark {
    background: linear-gradient(180deg, #050812 0%, #0a0e27 100%);
}

/* Light Theme Background */
body.light {
    background: linear-gradient(180deg, #F8FAFC 0%, #E0E7FF 100%);
}

/* ========================================
   CYBER GRID BACKGROUND
   ======================================== */

/* Dark Mode Grid */
.dark .cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 255, 245, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 245, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

/* Light Mode Grid */
.light .cyber-grid {
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

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

/* Dark Theme Glow */
.dark .glow-cyan {
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.4),
                0 0 40px rgba(0, 255, 245, 0.2),
                inset 0 0 20px rgba(0, 255, 245, 0.1);
}

.dark .glow-text-cyan {
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.8),
                 0 0 20px rgba(0, 255, 245, 0.5),
                 0 0 30px rgba(0, 255, 245, 0.3);
}

/* Light Theme Glow */
.light .glow-cyan {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3),
                0 0 40px rgba(99, 102, 241, 0.1);
}

.light .glow-text-cyan {
    color: #6366F1 !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

/* ========================================
   NEON BORDERS
   ======================================== */

/* Dark Theme Borders */
.dark .neon-border {
    border: 2px solid #00FFF5;
    box-shadow: 0 0 10px #00FFF5,
                inset 0 0 10px rgba(0, 255, 245, 0.2);
}

.dark .neon-border-pink {
    border: 2px solid #FF00FF;
    box-shadow: 0 0 10px #FF00FF,
                inset 0 0 10px rgba(255, 0, 255, 0.2);
}

/* Light Theme Borders */
.light .neon-border {
    border: 2px solid #6366F1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3),
                inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.light .neon-border-pink {
    border: 2px solid #EC4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.3),
                inset 0 0 10px rgba(236, 72, 153, 0.1);
}

/* ========================================
   GLASS MORPHISM
   ======================================== */

/* Dark Theme Glass */
.dark .glass-tech {
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 245, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
                inset 0 0 20px rgba(0, 255, 245, 0.05);
}

/* Light Theme Glass */
.light .glass-tech {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

/* ========================================
   SCANLINES (Dark Only)
   ======================================== */

.dark .scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 245, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    animation: scan 8s linear infinite;
}

.light .scanlines {
    /*display: none;*/
}

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

/* ========================================
   PARTICLES
   ======================================== */

.dark .particle {
    position: absolute;
    background: #00FFF5;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.light .particle {
    position: absolute;
    background: #6366F1;
    border-radius: 50%;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
    50% { transform: translateY(-30px) translateX(10px); opacity: 0.3; }
}

/* ========================================
   DATA STREAMS (Dark Only)
   ======================================== */

.dark .data-stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, #00FFF5, transparent);
    animation: dataStream 3s linear infinite;
}

.light .data-stream {
    /*display: none;*/
}

@keyframes dataStream {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ========================================
   CIRCUIT LINES (Dark Only)
   ======================================== */

.dark .circuit-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00FFF5, transparent);
    animation: circuit 3s linear infinite;
}

.light .circuit-line {
    /*display: none;*/
}

@keyframes circuit {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

/* ========================================
   HEXAGON SHAPE
   ======================================== */

.hexagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 50%, 70% 100%, 30% 100%, 0% 50%);
}

/* ========================================
   HOLOGRAM EFFECT (Dark Only)
   ======================================== */

.dark .hologram {
    position: relative;
    animation: hologramFlicker 0.2s infinite alternate;
}

.light .hologram {
    animation: none;
}

@keyframes hologramFlicker {
    0% { opacity: 0.95; }
    100% { opacity: 1; }
}

/* ========================================
   CYBER BUTTONS
   ======================================== */

/* Dark Theme Button */
.dark .cyber-btn {
    position: relative;
    background: transparent;
    border: 2px solid #00FFF5;
    color: #00FFF5;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

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

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

.dark .cyber-btn:hover {
    background: rgba(0, 255, 245, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 245, 0.5);
    transform: translateY(-2px);
}

/* Light Theme Button */
.light .cyber-btn {
    position: relative;
    background: transparent;
    border: 2px solid #6366F1;
    color: #6366F1;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.light .cyber-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    transition: left 0.5s;
}

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

.light .cyber-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* ========================================
   THEME SWITCH
   ======================================== */

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.dark .theme-switch {
    background: rgba(0, 255, 245, 0.2);
}

.light .theme-switch {
    background: rgba(99, 102, 241, 0.2);
}

.theme-switch-toggle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.light .theme-switch-toggle {
    transform: translateX(30px);
    background: #6366F1;
}

.dark .theme-switch-toggle {
    background: #00FFF5;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.hover-lift {
    transition: all 0.3s ease;
}

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

.dark .hover-lift:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 245, 0.3);
}

.light .hover-lift:hover {
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

/* ========================================
   PARALLAX
   ======================================== */

.parallax-wrapper {
    perspective: 1000px;
    perspective-origin: center;
}

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.depth-1 { z-index: 1; }
.depth-2 { z-index: 2; }
.depth-3 { z-index: 3; }
.depth-4 { z-index: 4; }

/* ========================================
   TEXT COLORS
   ======================================== */

/* Dark Theme Text Colors */
.dark .text-cyber-cyan {
    color: #00FFF5;
}

/* Light Theme Text Colors */
.light .text-cyber-cyan {
    color: #6366F1 !important;
}

.light .text-white{
    color: #333;
}