@import url('link href="https://fonts.googleapis.com/css2?family=Jolly+Lodger&family=Poppins:wght@100;300;400;500;600;700;800;900&display=swap" rel="stylesheet');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    font-family: "Merienda", cursive;
}

:root {
    --nav-bg-color: rgba(255, 255, 255, .1);
    --bg-color: linear-gradient(120deg, #220a00,#200b04, #070301);
    --second-bg-color: linear-gradient(90deg, #102330,#022b21, #010430);
    --third-bg-color: linear-gradient(125deg, #675a6e, #584c3e);
    --main-color: #33f0b1;
    --white-color: #fff;
    --tab-list-color: #bfe8eb;
}

audio {
  display: none;
}

.resume-box.clicked .resume-item {
  animation: spinOnce 0.8s forwards;
}

@keyframes spinOnce {
  0%   { transform: rotateY(0); }
  100% { transform: rotateY(360deg); }
}




::selection {
    background: var(--main-color);
    color: var(--bg-color);
}

::-webkit-scrollbar {
    width: .7rem;
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 1rem;
}

::placeholder {
    color: var(--white-color);
}

html {
    font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--white-color);
}

/* Background Video Styling */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover; /* ensures full coverage */
  z-index: -1; /* send video behind content */
}



p {
    font-size: 1.4rem;
}

ul {
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
}

.nav {
    position: fixed;
    bottom: 2rem;
    left:50%;
    transform: translateX(-50%);
    width: 40rem;
    padding: 1.3rem 0;
    background: var(--nav-bg-color);
    border-radius: 5rem;
    z-index: 100;
    animation: animate-nav 1s ease-in-out backwards;
    animation-delay: 5s;
}

@keyframes animate-nav {
    0% {
        visibility: hidden;
        opacity: 0;
    }

    100% {
        visibility: visible;
        opacity: 1;
    }
}

.nav .nav-list {
    display: flex;
    justify-content: space-evenly;
}

.nav-list li {
    position: relative;
    display: flex;
    font-size: 3rem;
    cursor: pointer;
    transition: .4s;
}

.nav-list li:hover,
.nav-list li.active {
    color: var(--main-color);
}

.tooltip {
    position:absolute;
    top:-4rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .3rem 1rem;
    background: var(--main-color);
    border-radius: .4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.nav-list li:hover .tooltip,
a:hover .tooltip,
.portfolio-item:hover .work-info {
    visibility: visible;
    opacity: 1;
    transition: 1.8s;
}

.container {
    width: 100vw;
    height: 100vh;
    perspective: 1500px;
    perspective-origin: 50%;
}

.box {
    position :relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: 50% 50% -50vw;
    transform: rotateY(0deg);
    transition: 2s;
    animation: animate-cube 4s ease-in-out backwards;
}

@keyframes animate-cube {
    0% {
        transform: scale(0) rotateY(-360deg);
    }

    100% {
        transform: scale(1) rotateY(0deg);
    }
}

.section {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    padding: 0 10%;
    backface-visibility: hidden;
}

.section:nth-child(even){
    background: var(--second-bg-color);
}

.section.about {
    transform: translateX(50vw) translateZ(-50vw) rotateY(90deg);
}


.section.resume {
    transform: translateZ(-100vw) rotateY(-180deg);
    transform-origin: 50%;
}

.section.portfolio {
    transform: translateX(-50vw) translateZ(-50vw) rotateY(-90deg);
}

.section.contact {
    visibility: hidden;
    transition-delay: .5s;
}

.section.contact.active {
    visibility: visible;
}

.section.contact.action-contact {
    transition-delay: 1.5s;
}

.section.contact.action-contact.active {
    transition-delay: 0s;
}

.home,
.about {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.home-info h1 {
    font-size: 4.6rem;
    color: var(--main-color);
    line-height: 1;
}

.home-info h3 {
    font-size: 3rem;
}

.desc {
    margin: 1rem 0 2rem;
}

.home-info .btn-sci {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    padding: 1.2rem 3rem;
    background: var(--main-color);
    border-radius: 5rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 600;
    transition: .3s;
}

.btn:hover {
    box-shadow: none;
}

.home-info .btn-sci .sci {
    margin-left: 2rem;
}

.home-info .btn-sci .sci a {
    position: relative;
    display: inline-flex;
    padding: .8rem;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 .8rem;
    transition: .3s;
}

.home-info .btn-sci .sci a:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

.img-box {
    position: relative;
    width:32vw;
    height: 32vw;
    background: linear-gradient(var(--bg-color),var(--main-color));
    border-radius: 50%;
    border: .5rem solid var(--main-color);
    box-shadow: 0 0 2rem var(--main-color);
    display: flex;
    justify-content: center;
    overflow: hidden;
    transition: 1s;
    animation: glow 3s ease-in-out 2s infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 2rem var(--main-color);
    }
    50% {
        box-shadow: 0 0 4rem var(--main-color), 0 0 6rem var(--main-color);
    }
}

.img-box.home-img:hover {
    box-shadow: 0 0 8rem var(--main-color);
}

.img-box img {
    position: absolute;
    top: .01rem;
    display: block;
    width:100%;
    object-fit: cover;
}

.img-box.about-img {
    background: transparent;
    box-shadow: 0 0 2rem var(--main-color), inset 0 0 var(--main-color);
}

.img-box.about-img:hover {
    box-shadow: 0 0 10rem rgb(82, 250, 155);
}

.img-box.about-img video {
    width: 35vw;
    height: 70vh;
    object-fit: cover;
    z-index: -1;
}

.img-box.about-img img {
    z-index: -1;
}


/* For tablets and medium-sized screens */
@media (max-width: 1199px) and (min-width: 768px) {
    .img-box.about-img video {
        width: 40vw;
        object-fit: cover;
        height: 60vh;
    }
}

/* For small screens (landscape phones and smaller tablets) */
@media (max-width: 767px) {
    .img-box.about-img video {
        width: 60vw;
        height: 40vh;
    }
}

/* For very small screens (portrait phones) */
@media (max-width: 480px) {
    .img-box.about-img video {
        width: 70vw;
        height: 40vh;
    }
}


.title {
    font-size: 4rem;
    text-align: center;
}

.about-info .title {
    text-align: left;
}

.about-info h3 {
    font-size: 2.5rem;
    color: var(--main-color);
}

.about-info .btn {
    padding-top: 1.2rem;
    padding: 1.2rem 2rem;
    margin-right: .8rem;
}


.resume,
.portfolio {
    padding-top: 2rem;
    padding-bottom: 28rem;
}

.tab-box {
    display: flex;
    width: 100%;
    height: 5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.tab-list {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
    border-bottom: .3rem solid var(--tab-list-color);
    color: var(--tab-list-color);
    transition: .5s;
}

.tab-list.resume-list.active,
.tab-list.portfolio-list.active {
    border-color: var(--main-color);
    color: var(--main-color);
}

.resume-list:nth-child(2) {
    justify-content: center;
}

.resume-list:nth-child(3) {
    justify-content: flex-end;
}

.tab-list h3 {
    font-size: 2.5rem;
}

.tab-wrapper {
    position: relative;
    width: 100%;
    height: 100%;    
}

.tab-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(30rem,1fr));
    gap: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    visibility: hidden;
    opacity: 0;
    transform: scale(.8);
}

.tab-grid.resume-box.active,
.tab-grid.portfolio-box.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
    transition: .5s;
}

.tab-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--third-bg-color);
    border-radius: .8rem;
    padding: 2rem;
}

.tab-item h4 {
    font-size: 2.3rem;
}

.resume-item h4:nth-child(1),
.resume-item h4:nth-child(3) {
    font-size: 1.7rem;
    color: var(--main-color);
    font-weight: 400;
    padding-top: 0;
    margin-top: 0;
}

.resume-item h4:nth-child(3) {
    position: relative;
    color: var(--white-color);
    margin-left: 2rem;
}

.resume-item h4:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: var(--main-color);
    border-radius: 50%;
}

.tab-item p {
    margin-top: 1.2rem;
}

.resume-box.skills {
    grid-template-columns: repeat(auto-fit,minmax(22rem,1fr));
    cursor: pointer;
}

.resume-box.skills .resume-item {
    align-items: center;
}

.resume-box.skills .resume-item i {
    font-size: 8rem;
    transition: .3s;
    color: var(--main-color);
}

.resume-box.skills .resume-item:hover i {
    color: var(--white-color);
} 

.resume-box.skills .resume-item p {
    margin-top: 0;
}

.portfolio-list:nth-child(2) {
    justify-content: flex-end;
}

.portfolio-box.work .portfolio-item {
    position: relative;
}

.portfolio-box.work .portfolio-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--third-bg-color);
    border-radius: .8rem;
    z-index: 1;
    opacity: 0;
    transition: .3s;
}

.portfolio-box.work .portfolio-item:hover::before {
    opacity: .9;
}

.portfolio-item .work-img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: .8rem;
    overflow: hidden;
}

.portfolio-item .work-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .3s;
}

.portfolio-item:hover .work-img img {
    transform: scale(1.2);
}

.portfolio-item .work-info {
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transition: .3s;
}

.portfolio-item .work-info h4 {
    line-height: 1;
}

.portfolio-item .work-info .tech-used {
    color: var(--main-color);
    border-bottom: .1rem solid var(--white-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.portfolio-item .portfolio-icon a {
    position: relative;
    display: inline-flex;
    padding: .5rem;
    background:purple;
    border-radius: 50%;
    font-size: 2.5rem;
    color: var(--bg-color);
    transition: .3s;
}

.portfolio-item .work-icon a:hover {
    background: var(--main-color);
}

.portfolio-item .work-icon a:nth-child(1) {
    margin-right: 1rem;
}

.portfolio-item .work-icon a:nth-child(1) i {
    transform: rotate(135deg);
}

.portfolio-item .service-icon {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.portfolio-item .service-icon .icon {
    font-size: 2.5rem;
    margin-left: -.3rem;
    color: #d094f8;
}

.portfolio-item:hover .service-icon .icon {
    color: purple;
    cursor: pointer;
}

.portfolio-item:hover .service-icon a {
    background: rgba(243, 28, 243, 0.295);
}

.portfolio-item .service-icon a {
    background: rgb(21, 236, 236);
    color: #fff;
}

.portfolio-item .service-icon a i {
    transform: rotate(-135deg);
    transition: .3s;
}

.portfolio-item .service-icon a:hover i {
    transform: rotate(-180deg);
    cursor: pointer;
}

.portfolio-box.service .portfolio-item h4 {
    transition: .3s;
}

.portfolio-box.service .portfolio-item:hover h4 {
    color: purple;
}

.contact {
    padding-top: 2rem;
    padding-bottom: 14rem;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    height: 100%;
}

.contact-form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 70rem;
}

.contact-form h3 {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: .5rem;
}

.contact-form .field-box {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-form .field-box input,
.contact-form .field-box textarea {
    flex: 1 1 30rem;
    padding: 2rem;
    background: var(--third-bg-color);
    border-radius: .6rem;
    font-size: 1.6rem;
    color: var(--white-color);
}

.contact-form .field-box textarea {
    height: 20rem;
    resize: none;
}

.contact-form .contact-btn {
    margin-top: 2rem;
}

.contact-form .contact-btn .btn {
    cursor: pointer;
}

/*BREAKPOINTS*/
@media screen and (max-width:1200px) {
    html {
        font-size: 55%;
    }
}

@media screen and (max-width:992px){
    .section {
        padding: 0 4%;
    }

    .resume,
    .portfolio {
        padding-top: 1.5rem;
        padding-bottom: 27rem;
    }

    .contact {
        padding-top: 1.5rem;
        padding-bottom: 18rem;
    }
}

@media screen and (max-width:738px) {
    html {
        font-size: 44%;
    }

    .nav {
        bottom: 0;
    }

    .home,
    .about {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 0.1rem;
        padding-bottom: 8rem;
        padding-top: 4rem;


    }

    .about {
        flex-direction: column;
    }

    .img-box {
        width: 35rem;
        height: 35rem;
    }

    .resume,
    .portfolio {
        padding-bottom: 25rem;
    }

    .contact {
        padding-bottom: 16rem;
    }
}

@media screen and (max-width:600px) {
    .resume,
    .portfolio {
        padding-top: 1rem;
        padding-bottom: 22rem;
    }

    .tab-box {
        margin-top: 0;
    }

    .contact {
        padding-top: 1rem;
    }
}

@media screen and (max-width:400px) {
    .nav {
        width: 100%;
        border-radius: 0;
    }

    .home-info,
    .about-info {
        text-align: center;
    }

    .home-info h1 {
        font-size: 5rem;
    }

    .home-info .btn-sci {
        flex-direction: column-reverse;
    }

    .home-info .btn-sci .sci {
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .img-box {
        width: 30rem;
        height: 30rem;
    }

    .about-info .title {
        text-align: center;
    }
}

@media screen and (max-width:350px) {
    .img-box {
        width: 25rem;
        height: 25rem;
    }

    .tab-list h3 {
        font-size: 2.3rem;
    }
}

/* resume flip */

/* Enhanced flip animation for skill items */
.resume-box.skills .resume-item {
    position: relative;
    padding: 10px 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.6s ease;
    transform-style: preserve-3d;
    perspective: 100px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    overflow: hidden;

}

.resume-box.skills .resume-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Front and back face setup */
.resume-box.skills .resume-item .skill-face {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    transition: transform 0.6s;
    padding: 20px;
}

.resume-box.skills .resume-item .skill-front {
    transform: rotateY(0deg);
}

.resume-box.skills .resume-item .skill-back {
    transform: rotateY(-180deg);
    background: linear-gradient(135deg, #08b3a4, #1bf789);
}

.resume-box.skills .resume-item.flipped .skill-front {
    transform: rotateY(180deg);
}

.resume-box.skills .resume-item.flipped .skill-back {
    transform: rotateY(0deg);
}

.resume-box.skills .resume-item i {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.resume-box.skills .resume-item p {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE DESIGN FOR ALL DEVICES ===== */

/* Ultra Wide Desktop (1600px and above) */
@media (min-width: 1600px) {
    .resume-box {
        grid-template-columns: repeat(5, 1fr);
        gap: 30px;
        max-width: 1400px;
    }
    
    .resume-box.skills .resume-item {
        padding: 40px 30px;
        min-height: 180px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 1.3rem;
        line-height: 1.4;
    }
}

/* Large Desktop (1200px to 1599px) */
@media (min-width: 1200px) and (max-width: 1599px) {
    
    
    .resume-box.skills .resume-item {
        padding: 35px 25px;
        min-height: 160px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 3.5rem;
        margin-bottom: 18px;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 1.2rem;
        line-height: 1.3;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    
    
    .resume-box.skills .resume-item {
        padding: 30px 20px;
        min-height: 140px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 1.1rem;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    
    
    .resume-box.skills .resume-item {
        padding: 25px 15px;
        min-height: 120px;
        border-radius: 12px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 0.95rem;
        line-height: 1.2;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    
    
    .resume-box.skills .resume-item {
        padding: 22px 15px;
        min-height: 110px;
        border-radius: 12px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 2.3rem;
        margin-bottom: 10px;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
}

/* Mobile Large (480px to 575px) */
@media (min-width: 480px) and (max-width: 575px) {
    
    
    .resume-box.skills .resume-item {
        padding: 20px 12px;
        min-height: 100px;
        border-radius: 10px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 2.1rem;
        margin-bottom: 8px;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
        line-height: 1.1;
    }
}

/* Mobile Medium (414px to 479px) - iPhone 6 Plus, Galaxy Note */
@media (min-width: 210px) and (max-width: 479px) {
    
    /* .resume-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    } */


    .resume-box.skills .resume-item {
        padding: 8px 3px;
        min-height: 95px;
        border-radius: 10px;
    }
    
    .resume-box.skills .resume-item i {
        font-size: 12rem;
        margin-bottom: 7px;
        text-align: center;
    }
    
    .resume-box.skills .resume-item p {
        font-size: 1rem;
        letter-spacing: 0.2px;
        line-height: 1.1;
    }
}

.resume-box.skills .resume-item {
    align-items: center;
}

.resume-box.skills .resume-item i {
    font-size: 8rem;
    transition: .3s;
    color: var(--main-color);
}

.resume-box.skills .resume-item:hover i {
    color: var(--white-color);
} 

.resume-box.skills .resume-item p {
    margin-top: 0;
}

/* Fullscreen loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d1117; /* dark background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* Cube container */
.cube {
  position: relative;
  width: 80px;
  height: 80px;
  transform-style: preserve-3d;
  animation: spinCube 2.5s infinite linear;
}

/* Cube faces */
.face {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(19, 245, 188, 0.8);
  border: 2px solid #00d9ff;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

/* Position each face in 3D */
.front  { transform: rotateY(0deg) translateZ(40px); }
.back   { transform: rotateY(180deg) translateZ(40px); }
.left   { transform: rotateY(-90deg) translateZ(40px); }
.right  { transform: rotateY(90deg) translateZ(40px); }
.top    { transform: rotateX(90deg) translateZ(40px); }
.bottom { transform: rotateX(-90deg) translateZ(40px); }

/* Spin animation */
@keyframes spinCube {
  0%   { transform: rotateX(0) rotateY(0); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Hide loader after page loads */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Stylish text loader */
.loading-text {
  display: flex;
  gap: 6px;
  height: 20px;
}

.loading-text span {
  font-size: 2.5rem;
  font-weight: bold;
  color: rgb(8, 240, 170);
  opacity: 0;
  animation: fadeInOut 1.5s infinite;
}

/* Animate letters one by one */
.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.2s; }
.loading-text span:nth-child(3) { animation-delay: 0.4s; }
.loading-text span:nth-child(4) { animation-delay: 0.6s; }
.loading-text span:nth-child(5) { animation-delay: 0.8s; }
.loading-text span:nth-child(6) { animation-delay: 1s; }
.loading-text span:nth-child(7) { animation-delay: 1.2s; }

@keyframes fadeInOut {
  0%, 100% { opacity: 0; transform: translateY(10px); }
  50% { opacity: 1; transform: translateY(0); }
}

/* Hide after page loads */
#loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Tooltip default state */
.tooltip {
    position: absolute;
    top: -4rem;
    left: 50%;
    transform: translateX(-50%);
    padding: .3rem 1rem;
    background: var(--main-color);
    border-radius: .4rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none; /* prevent blocking clicks */
}

/* Show tooltip on click/hover */
.nav-list li:active .tooltip,
.nav-list li:hover .tooltip,
a:active .tooltip {
    visibility: visible;
    opacity: 1;
    animation: fadeOutTooltip 1.8s ease forwards; /* tooltip fades after 2.5s */
}

/* Keyframes to auto-hide tooltip */
@keyframes fadeOutTooltip {
    0% {
        opacity: 1;
        visibility: visible;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}
