/*
 * WEBRION Technologies - Advanced Animation Stylesheet
 * Custom scroll reveals, keyframes, neon glowing trails and tech floats
 */

/* --- Dynamic Moving Gradient Mesh Background --- */
.animated-mesh-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.4;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: screen;
    animation: orbMovement 25s infinite alternate ease-in-out;
}

.mesh-orb-1 {
    top: -10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}

.mesh-orb-2 {
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -5s;
    animation-duration: 30s;
}

.mesh-orb-3 {
    top: 40%;
    left: 50%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes orbMovement {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(80px, 50px) scale(1.2);
    }
    100% {
        transform: translate(-40px, -80px) scale(0.9);
    }
}

/* --- Floating Tech Icons Animation --- */
.floating-tech-icon {
    position: absolute;
    animation: floatIcon 6s infinite ease-in-out;
    opacity: 0.15;
    z-index: 1;
    pointer-events: none;
}

.floating-icon-1 { top: 20%; left: 12%; animation-delay: 0s; }
.floating-icon-2 { top: 15%; right: 15%; animation-delay: 1.5s; }
.floating-icon-3 { bottom: 25%; left: 18%; animation-delay: 3s; }
.floating-icon-4 { bottom: 20%; right: 12%; animation-delay: 4.5s; }

@keyframes floatIcon {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* --- Text Typing blinking cursor effect --- */
.typing-text::after {
    content: '|';
    animation: blinkCursor 0.8s infinite;
    color: var(--accent-cyan);
    margin-left: 4px;
    font-weight: 500;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* --- Glow Hover effect for glassmorphic cards --- */
.hover-glow-card {
    position: relative;
    overflow: hidden;
}

.hover-glow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(6, 182, 212, 0.08) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.hover-glow-card:hover::before {
    left: 150%;
}

/* --- CSS Reveal On Scroll Framework --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-hidden.reveal-left {
    transform: translateX(-50px);
}

.reveal-hidden.reveal-right {
    transform: translateX(50px);
}

.reveal-visible {
    opacity: 1;
    transform: translate(0) !important;
}

/* Delay Utilites */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* --- Floating Glassmorphic Technology Cards --- */
.floating-tech-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--glass-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    pointer-events: auto; /* Allow hovering */
}

.floating-tech-card:hover {
    transform: scale(1.1) !important;
    background: var(--bg-navy-hover);
    z-index: 15;
}

/* React Card Specifics */
.float-card-react {
    top: 10%;
    left: -5%;
    border: 1px solid rgba(0, 216, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 216, 255, 0.15);
    animation: floatBadgeReact 6s infinite ease-in-out;
}
.float-card-react:hover {
    box-shadow: 0 0 30px rgba(0, 216, 255, 0.4);
}

/* JavaScript Card Specifics */
.float-card-js {
    top: 42%;
    left: -10%;
    border: 1px solid rgba(247, 223, 30, 0.3);
    box-shadow: 0 0 20px rgba(247, 223, 30, 0.1);
    animation: floatBadgeJS 6s infinite ease-in-out;
    animation-delay: 1.5s;
}
.float-card-js:hover {
    box-shadow: 0 0 30px rgba(247, 223, 30, 0.35);
}

/* PHP Card Specifics */
.float-card-php {
    bottom: 12%;
    left: 2%;
    border: 1px solid rgba(119, 123, 180, 0.3);
    box-shadow: 0 0 20px rgba(119, 123, 180, 0.1);
    animation: floatBadgePHP 6s infinite ease-in-out;
    animation-delay: 3s;
}
.float-card-php:hover {
    box-shadow: 0 0 30px rgba(119, 123, 180, 0.35);
}

/* Node.js Card Specifics */
.float-card-node {
    bottom: 22%;
    right: -5%;
    border: 1px solid rgba(51, 153, 51, 0.3);
    box-shadow: 0 0 20px rgba(51, 153, 51, 0.1);
    animation: floatBadgeNode 6s infinite ease-in-out;
    animation-delay: 4.5s;
}
.float-card-node:hover {
    box-shadow: 0 0 30px rgba(51, 153, 51, 0.35);
}

/* Keyframe Core Vectors */
@keyframes floatBadgeReact {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes floatBadgeJS {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(-4deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes floatBadgePHP {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
@keyframes floatBadgeNode {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(-3deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* --- Web Developer Editor & SEO Simulator Animations --- */
@keyframes floatIDE {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

@keyframes floatSEO {
    0% { transform: translateY(0); }
    50% { transform: translateY(10px); }
    100% { transform: translateY(0); }
}

@keyframes spinRadar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes terminalCursor {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
