/* ==========================================
   KIBEY INNOVATIONS - CUTTING EDGE DESIGN
   Next-Gen UI/UX - 2025 Edition
   ========================================== */

/* ==========================================
   1. ADVANCED GLASSMORPHISM
   ========================================== */

.glass-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        0 0 80px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-4px) scale(1.01);
}

/* ==========================================
   2. NEON GLOW EFFECTS
   ========================================== */

.neon-text {
    color: #10b981;
    text-shadow:
        0 0 10px rgba(16, 185, 129, 0.5),
        0 0 20px rgba(16, 185, 129, 0.3);
    animation: neon-flicker 6s ease-in-out infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(16, 185, 129, 0.6),
            0 0 20px rgba(16, 185, 129, 0.4);
    }
    50% {
        text-shadow:
            0 0 10px rgba(16, 185, 129, 0.4),
            0 0 20px rgba(16, 185, 129, 0.2);
    }
}

.neon-box {
    position: relative;
    border: 2px solid #10b981;
    border-radius: 16px;
    box-shadow:
        0 0 20px rgba(16, 185, 129, 0.4),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        box-shadow:
            0 0 15px rgba(16, 185, 129, 0.4),
            0 0 30px rgba(16, 185, 129, 0.2),
            inset 0 0 15px rgba(16, 185, 129, 0.1);
    }
    50% {
        box-shadow:
            0 0 20px rgba(16, 185, 129, 0.5),
            0 0 40px rgba(16, 185, 129, 0.3),
            inset 0 0 20px rgba(16, 185, 129, 0.15);
    }
}

/* ==========================================
   3. HOLOGRAPHIC GRADIENTS
   ========================================== */

.holographic {
    background: linear-gradient(
        135deg,
        #10b981 0%,
        #06b6d4 50%,
        #10b981 100%
    );
    background-size: 200% 200%;
    animation: holographic-shift 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes holographic-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.holographic-border {
    position: relative;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(
        45deg,
        #10b981, #06b6d4, #10b981
    );
    background-size: 200% 200%;
    animation: holographic-border-rotate 6s linear infinite;
}

@keyframes holographic-border-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.holographic-border-inner {
    background: #0a0a0a;
    border-radius: 18px;
    padding: 2rem;
}

/* ==========================================
   4. 3D TRANSFORM EFFECTS
   ========================================== */

.card-3d {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg) scale(1.02);
}

.card-3d-tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.card-3d-tilt:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) scale(1.05);
}

/* ==========================================
   5. PARTICLE BACKGROUND OVERLAY
   ========================================== */

.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(16, 185, 129, 0.05) 0%,
        transparent 70%
    );
}

.particles-bg::before,
.particles-bg::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: particle-float 20s ease-in-out infinite;
}

.particles-bg::before {
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    animation-delay: 0s;
}

.particles-bg::after {
    bottom: 10%;
    right: 10%;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    animation-delay: 10s;
}

@keyframes particle-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ==========================================
   6. ADVANCED BUTTON STYLES
   ========================================== */

.btn-cyber {
    position: relative;
    padding: 16px 40px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #10b981;
    background: transparent;
    border: 2px solid #10b981;
    clip-path: polygon(
        0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)
    );
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    transition: left 0.5s ease;
}

.btn-cyber:hover::before {
    left: 100%;
}

.btn-cyber:hover {
    background: rgba(16, 185, 129, 0.1);
    box-shadow:
        0 0 30px rgba(16, 185, 129, 0.5),
        inset 0 0 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    padding: 16px 40px;
    font-weight: 600;
    color: #000;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 30px rgba(16, 185, 129, 0.6),
        0 0 60px rgba(16, 185, 129, 0.3);
}

/* ==========================================
   7. NEUMORPHISM (Soft UI)
   ========================================== */

.neuro-card {
    background: #1a1a1a;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow:
        12px 12px 24px rgba(0, 0, 0, 0.4),
        -12px -12px 24px rgba(40, 40, 40, 0.4);
    transition: all 0.3s ease;
}

.neuro-card:hover {
    box-shadow:
        16px 16px 32px rgba(0, 0, 0, 0.5),
        -16px -16px 32px rgba(40, 40, 40, 0.5),
        inset 2px 2px 8px rgba(0, 0, 0, 0.2),
        inset -2px -2px 8px rgba(40, 40, 40, 0.2);
}

.neuro-button {
    background: #1a1a1a;
    border: none;
    border-radius: 16px;
    padding: 14px 32px;
    color: #10b981;
    font-weight: 600;
    box-shadow:
        8px 8px 16px rgba(0, 0, 0, 0.4),
        -8px -8px 16px rgba(40, 40, 40, 0.4);
    transition: all 0.2s ease;
}

.neuro-button:active {
    box-shadow:
        inset 4px 4px 8px rgba(0, 0, 0, 0.4),
        inset -4px -4px 8px rgba(40, 40, 40, 0.4);
}

/* ==========================================
   8. LIQUID ANIMATIONS
   ========================================== */

.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    mix-blend-mode: screen;
    animation: blob-morph 20s ease-in-out infinite;
}

.liquid-blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.liquid-blob-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: 20%;
    right: 15%;
    animation-delay: 7s;
}

.liquid-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes blob-morph {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    33% {
        transform: translate(100px, -50px) scale(1.2);
        opacity: 0.5;
    }
    66% {
        transform: translate(-50px, 100px) scale(0.8);
        opacity: 0.4;
    }
}

/* ==========================================
   9. SCAN LINE EFFECT (Cyberpunk)
   ========================================== */

.scanlines {
    position: relative;
    overflow: hidden;
}

.scanlines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    opacity: 0.5;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* ==========================================
   10. PARALLAX LAYERS
   ========================================== */

.parallax-layer {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.parallax-layer-1 { transform: translateZ(-100px) scale(1.1); }
.parallax-layer-2 { transform: translateZ(-50px) scale(1.05); }
.parallax-layer-3 { transform: translateZ(0); }

/* ==========================================
   11. TYPING ANIMATION
   ========================================== */

.typing-text {
    overflow: hidden;
    border-right: 3px solid #10b981;
    white-space: nowrap;
    animation:
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #10b981; }
}

/* ==========================================
   12. MATRIX RAIN EFFECT
   ========================================== */

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 19px,
            rgba(16, 185, 129, 0.03) 19px,
            rgba(16, 185, 129, 0.03) 20px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 19px,
            rgba(16, 185, 129, 0.03) 19px,
            rgba(16, 185, 129, 0.03) 20px
        );
    opacity: 0.3;
}

/* ==========================================
   13. AURORA GRADIENT ANIMATION
   ========================================== */

.aurora-bg {
    background: linear-gradient(
        120deg,
        #1a1a1a 0%,
        rgba(16, 185, 129, 0.1) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(139, 92, 246, 0.1) 75%,
        #1a1a1a 100%
    );
    background-size: 200% 200%;
    animation: aurora-flow 15s ease infinite;
}

@keyframes aurora-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================
   14. GLITCH EFFECT
   ========================================== */

.glitch {
    position: relative;
    animation: glitch-anim 5s infinite;
}

@keyframes glitch-anim {
    0%, 90%, 100% {
        transform: translate(0);
    }
    91% {
        transform: translate(-2px, 2px);
    }
    92% {
        transform: translate(2px, -2px);
    }
    93% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-anim 2s infinite;
    color: #06b6d4;
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim 3s infinite reverse;
    color: #10b981;
    z-index: -2;
}

/* ==========================================
   15. RESPONSIVE & PERFORMANCE
   ========================================== */

@media (max-width: 768px) {
    .glass-card, .neuro-card {
        padding: 1.5rem;
    }

    .btn-cyber, .btn-glow, .neuro-button {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .liquid-blob {
        width: 200px !important;
        height: 200px !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Performance optimization */
.glass-card, .card-3d, .neuro-card {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ==========================================
   16. PROFESSIONAL ICON SYSTEM
   ========================================== */

.icon-pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 24px;
    font-weight: 600;
    color: #10b981;
    transition: all 0.3s ease;
}

.icon-pro:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
    border-color: rgba(16, 185, 129, 0.5);
    transform: scale(1.1) rotate(5deg);
}

/* Specific professional icon types */
.icon-pro-ai::before { content: '◆'; }
.icon-pro-search::before { content: '⌕'; }
.icon-pro-docs::before { content: '▤'; }
.icon-pro-chart::before { content: '◫'; }
.icon-pro-money::before { content: '$'; }
.icon-pro-user::before { content: '◉'; }
.icon-pro-settings::before { content: '⚙'; }
.icon-pro-cloud::before { content: '☁'; }
.icon-pro-shield::before { content: '⬟'; }
.icon-pro-code::before { content: '</>'; font-size: 18px; }
.icon-pro-lightbulb::before { content: '◈'; }
.icon-pro-target::before { content: '⊚'; }
.icon-pro-rocket::before { content: '▲'; }
.icon-pro-check::before { content: '✓'; }

/* Hover scale effects */
.hover-scale {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ==========================================
   17. SCROLL REVEAL ANIMATIONS
   ========================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================
   18. PROFESSIONAL SPACING & PACING
   ========================================== */

/* Add generous breathing room between major sections */
.section-spacer {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .section-spacer {
        margin-top: 8rem;
        margin-bottom: 8rem;
    }
}

/* Subtle section dividers */
.section-divider-pro {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(16, 185, 129, 0.3) 50%,
        transparent 100%
    );
    margin: 4rem 0;
}

/* Card grid spacing */
.card-grid-pro {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
    .card-grid-pro {
        gap: 3rem;
    }
}

/* ==========================================
   MOBILE TABLE SCROLLING
   ========================================== */

/* Enable smooth horizontal scrolling on mobile for all tables and content */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(16, 185, 129, 0.5) transparent;
}

/* Custom scrollbar styling for webkit browsers */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.5);
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(16, 185, 129, 0.7);
}
