/* ═══════════════════════════════════════════════════════════
   BKAAI - FUTURISTIC 2040 UI STYLES
   Holographic Effects • Sci-Fi Elements • Advanced Transitions
   ═══════════════════════════════════════════════════════════ */

/* ===============================================
   Holographic Card Effects
   =============================================== */
.card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(0, 242, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
    animation: holographicScan 2s linear infinite;
}

@keyframes holographicScan {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* ===============================================
   Glitch Text Effect on Hover
   =============================================== */
.section-title {
    position: relative;
    transition: all 0.3s ease;
}

.section-title:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

/* ===============================================
   Futuristic Button Hover Effects
   =============================================== */
.cta-button,
.nav-item {
    position: relative;
    overflow: hidden;
}

.cta-button::after,
.nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 242, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.cta-button:hover::after,
.nav-item:hover::after {
    width: 300px;
    height: 300px;
}

/* ===============================================
   Scanline Effect
   =============================================== */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg,
            rgba(0, 242, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 242, 255, 0.03) 3px);
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(10px);
    }
}

/* ===============================================
   Data Stream Effect in Cards
   =============================================== */
.card {
    overflow: visible !important;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 242, 255, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.card:hover::after {
    left: 100%;
}

/* ===============================================
   Project Tags Glow Animation
   =============================================== */
.project-tag {
    position: relative;
    background: rgba(0, 242, 255, 0.1) !important;
    border: 1px solid rgba(0, 242, 255, 0.3) !important;
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.project-tag:hover {
    background: rgba(0, 242, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

/* ===============================================
   Skill Bar Futuristic Animation
   =============================================== */
.skill-bar {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.1) !important;
}

.skill-progress {
    background: linear-gradient(90deg,
            #00f2ff,
            #00d4e0,
            #00f2ff) !important;
    background-size: 200% 100% !important;
    animation: skillBarFlow 2s linear infinite !important;
    box-shadow:
        0 0 10px rgba(0, 242, 255, 0.5),
        inset 0 0 10px rgba(255, 255, 255, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.5),
            transparent);
    animation: skillBarScan 1.5s ease-in-out infinite;
}

@keyframes skillBarFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

@keyframes skillBarScan {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ===============================================
   Hexagon Grid Background Overlay
   =============================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg width='50' height='43.4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 0l12.5 7.2v14.5L25 28.9 12.5 21.7V7.2z' fill='none' stroke='%2300f2ff' stroke-opacity='0.05' stroke-width='0.5'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* ===============================================
   Floating Particles on Scroll
   =============================================== */
@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.6;
    }
}

.section::before {
    content: '◆';
    position: absolute;
    color: rgba(0, 242, 255, 0.2);
    font-size: 12px;
    animation: floatParticle 4s ease-in-out infinite;
}

/* ===============================================
   Logo Futuristic Enhancements
   =============================================== */
.hero-logo {
    position: relative;
    text-shadow:
        0 0 40px rgba(0, 242, 255, 0.4),
        0 0 80px rgba(0, 242, 255, 0.2),
        0 0 120px rgba(0, 242, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.hero-logo::after {
    content: 'BKAAI';
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background: linear-gradient(90deg,
            transparent,
            rgba(0, 242, 255, 0.5),
            transparent);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: logoScan 3s linear infinite;
    letter-spacing: 20px;
}

@keyframes logoScan {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===============================================
   Navigation Futuristic Style
   =============================================== */
nav {
    backdrop-filter: blur(20px) !important;
    background: rgba(10, 10, 15, 0.8) !important;
    border: 1px solid rgba(0, 242, 255, 0.1) !important;
    border-radius: 4px !important;
    padding: 10px !important;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1) !important;
}

.nav-item {
    background: transparent !important;
    border: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

.nav-item:hover {
    background: rgba(0, 242, 255, 0.1) !important;
    border: 1px solid rgba(0, 242, 255, 0.3) !important;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3) !important;
}

/* ===============================================
   Footer Futuristic Enhancement
   =============================================== */
footer {
    background: rgba(10, 10, 15, 0.9) !important;
    border-top: 1px solid rgba(0, 242, 255, 0.2) !important;
    box-shadow: 0 -10px 30px rgba(0, 242, 255, 0.1) !important;
}

.social-icon {
    transition: all 0.3s ease !important;
}

.social-icon:hover {
    color: #00f2ff !important;
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.8)) !important;
    transform: translateY(-5px) rotate(360deg) !important;
}

/* ===============================================
   Mobile Optimizations
   =============================================== */
@media (max-width: 768px) {

    body::after,
    body::before {
        opacity: 0.1 !important;
    }

    .card::before,
    .section::before {
        display: none !important;
    }

    .hero-logo::after {
        display: none !important;
    }
}

/* ===============================================
   Smooth Page Transitions
   =============================================== */
* {
    scroll-behavior: smooth !important;
}

section,
.section {
    will-change: opacity, transform;
}