.navbar a,
.navbar ul li,.navbar img {
    opacity: 0;
    animation: slideRight 1.5s ease-in-out forwards;
    animation-delay: calc(0.2s * var(--i));
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-150px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-animation {
    opacity: 0;
    animation: zommBounce 2s ease-in-out forwards;
    animation-delay: 1s;
}

@keyframes zommBounce {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-40deg);
    }

    50% {
        transform: scale(1.1) rotate(0);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.hero-content-animation>* {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
    animation-delay: calc(0.5s * var(--i));
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
/* .hidden {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
} */



/* image section */


.skills figure {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.skills figure.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills figure:nth-child(1) {
    animation-delay: 0.2s;
}

.skills figure:nth-child(2) {
    animation-delay: 0.4s;
}

.skills figure:nth-child(3) {
    animation-delay: 0.6s;
}

.skills figure:nth-child(4) {
    animation-delay: 0.8s;
}

.skills figure:nth-child(5) {
    animation-delay: 1s;
}

.skills figure:nth-child(6) {
    animation-delay: 1.2s;
}

.skills figure:nth-child(7) {
    animation-delay: 1.4s;
}


/* Education Section animation */

/* .img_container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.img_container img:first-child {
  display: block;
} */

.img_container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.img_container img {
    flex: 0 0 100%;
    width: 100%;
    height: 200px;
    object-fit: cover;
    scroll-snap-align: start;
    user-select: none;
    pointer-events: none;
    /* only scroll, no dragging */
}

/* Hide scrollbar */
.img_container::-webkit-scrollbar {
    display: none;
}

/* Project section */

.project div {
  opacity: 0;
  transform: translateY(200px);
  transition: all 0.6s ease-out;
}

.project div.show {
  opacity: 1;
  transform: translateY(0);
}

