/* ==========================================================
   ANIMATIONS
   ========================================================== */

/* ---------- Fade In ---------- */

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

/* ---------- Slide Up ---------- */

@keyframes slideUp {

    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ---------- Slide Left ---------- */

@keyframes slideLeft {

    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

/* ---------- Slide Right ---------- */

@keyframes slideRight {

    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}

/* ---------- Pulse ---------- */

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }

}

/* ---------- Glow ---------- */

@keyframes glow {

    0% {
        box-shadow: 0 0 8px rgba(0,245,255,.15);
    }

    50% {
        box-shadow:
            0 0 20px rgba(0,245,255,.35),
            0 0 35px rgba(0,245,255,.18);
    }

    100% {
        box-shadow: 0 0 8px rgba(0,245,255,.15);
    }

}

/* ---------- Floating ---------- */

@keyframes floating {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }

}

/* ---------- Rotating Border ---------- */


/* ---------- Scanner ---------- */

@keyframes scannerMove {

    0% {
        top: 0;
    }

    50% {
        top: calc(100% - 4px);
    }

    100% {
        top: 0;
    }

}

/* ==========================================================
   APPLY ANIMATIONS
   ========================================================== */


@keyframes rotateRing {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}

@keyframes verifiedPulse {

    0%,
    100% {

        opacity: 1;

    }

    50% {

        opacity: .45;

    }

}

@keyframes scannerBreath {

    0%,
    100% {

        transform: scale(1);

    }

    50% {

        transform: scale(1.025);

    }

}

/* ---------- Timeline Pulse ---------- */

@keyframes timelinePulse{

    0%,100%{

        box-shadow:
            0 0 18px rgba(0,245,255,.20),
            inset 0 0 18px rgba(0,245,255,.08);

    }

    50%{

        box-shadow:
            0 0 30px rgba(0,245,255,.45),
            0 0 60px rgba(0,245,255,.18),
            inset 0 0 25px rgba(0,245,255,.15);

    }

}

/* ---------- Timeline Flow ---------- */

@keyframes timelineFlow{

    0%{

        opacity:.35;

    }

    50%{

        opacity:1;

    }

    100%{

        opacity:.35;

    }

}

/* ---------- Boot Progress ---------- */

@keyframes bootProgress{

    from{

        width:0;

    }

    to{

        width:100%;

    }

}

/* ---------- Ambient Glow ---------- */

@keyframes ambientGlow{

    0%,
    100%{

        transform:translate(0,0) scale(1);

        opacity:.7;

    }

    50%{

        transform:translate(-80px,60px) scale(1.12);

        opacity:1;

    }

}


/* ==========================================================
   APPLY ANIMATIONS
   ========================================================== */

body {

    animation: fadeIn .8s ease;

}

#navbar {

    animation: slideUp .8s ease;

}

.scanner-card {

    animation: slideLeft .8s ease;

}

.intro-card {

    animation: slideUp .9s ease;

}

.status-card {

    animation: slideRight .8s ease;

}

.stat-card {

    animation: slideUp .9s ease;

}

.skills-card,
.timeline-card,
.projects-card {

    animation: slideUp 1s ease;

}

/* ==========================================================
   SCANNER
   ========================================================== */

.scanner-placeholder {

    position: relative;

    width: 100%;

    height: 420px;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

}

.scanner-photo{

    animation:floating 5s ease-in-out infinite;

}

.scanner-line {

    position: absolute;

    left: 50%;

    transform: translateX(-50%);

    width: 240px;

    height: 5px;

    background: linear-gradient(
        90deg,
        transparent,
        #00F5FF,
        transparent
    );

    box-shadow:
        0 0 12px rgba(0,245,255,.95),
        0 0 24px rgba(0,245,255,.75),
        0 0 45px rgba(0,245,255,.30);

    z-index: 2;

    pointer-events: none;

    animation: scannerMove 6s ease-in-out infinite;

}


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

.badge {

    transition:
        transform .3s,
        box-shadow .3s;

}

.badge:hover {

    transform: translateY(-3px);

    box-shadow: 0 0 15px rgba(0,245,255,.25);

}

.btn-primary {

    animation: glow 3s infinite;

}

.card {

    transition:
        transform .3s,
        box-shadow .3s,
        border-color .3s;

}