/* animation styles */

body {
    /* loading icon to be added here */
    font-family: inherit;
    animation: fadeIn 2s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

header,
article {
    animation: slideIn 1s ease-out, fadeIn 1s ease-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: slideIn, fadeIn;
    animation-play-state: running;
    animation-timing-function: ease-out;
}

nav {
    animation: slideIn 1s ease-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: slideIn;
    animation-play-state: running;
    animation-timing-function: ease-out;
}

li:hover {
    animation: fadeIn 1.5s ease-in, bounceIn 2s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1.5s, 2s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn, bounceIn;
    animation-play-state: running;
    animation-timing-function: ease-in, ease-in-out;
}

ul {
    animation: fadeIn 1s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

li {
    animation: bounceIn 1s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: bounceIn;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

a {
    transition: color 0.3s, transform 0.3s;
}

a:hover {
    animation: pulse 0.5s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: pulse;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
    transform: scale(1.1);
}

.toggle-button {
    animation: fadeIn 1s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

.toggle-button .bar {
    transition: background-color 0.3s;
}

/* BREADCRUMB animation STYLES */
.breadcrumb {
    animation: fadeInUp 2s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 2s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeInUp;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

.breadcrumb-item {
    animation: fadeIn 1s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

a.breadcrumb-item {
    transition: color 0.3s, transform 0.3s;
}

.breadcrumb-item a:hover, nav li:hover a {
    color: var(--accent-color);
    transform: scale(1.1);
}
nav li:hover a {
    color: var(--background-color);
    transform: scale(1.1);
}
nav img.logo:hover{
    transform: scale(1.1);
}
.breadcrumb-item.active {
    animation: pulse 1s ease-in-out infinite;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-name: pulse;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

main {
    animation: fadeIn 1s ease-in, slideUp 1s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn, slideUp;
    animation-play-state: running;
    animation-timing-function: ease-in, ease-in-out;
}

.profile {
    animation: fadeIn 1s ease-in-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: fadeIn;
    animation-play-state: running;
    animation-timing-function: ease-in-out;
}

.profile-pic {
    transition: transform 0.3s;
    animation: zoomIn 1s ease-out;
    animation-delay: 0s;
    animation-direction: normal;
    animation-duration: 1s;
    animation-fill-mode: both;
    animation-iteration-count: 1;
    animation-name: zoomIn;
    animation-play-state: running;
    animation-timing-function: ease-out;
}

.profile-pic:hover {
    transform: scale(1.1);
}

article.articles *{
    opacity: 0.92 ;
}

article:hover *{
    opacity: 1;
}


/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes smoke {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}



/*other
.profile-pic {
    position: relative;
    width: 200px;
    height: 200px;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.light-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.5), rgba(255,255,255,0) 70%);
    animation: rotate 5s linear infinite, smoke 2s ease-in-out infinite;
    z-index: 0;
}
*/