@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0px);
    }

    70% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

/*navbar stick part */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: #fff;
}

.dev-link {
    position: relative;
    color: #2b2b2b;
    text-decoration: none;
    padding: 2px 6px;
    z-index: 1;
    transition: color 0.25s ease;
    overflow: hidden;
}

/* Parallelogram background */
.dev-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0%;
    width: 0;
    height: 100%;
    background-color: #ff6b6b; /* sky red */
    transform: skewX(-20deg);
    transform-origin: left;
    transition: width 0.3s ease;
    z-index: -1;
}

.dev-link:hover {
    color: #fff; /* readable on red */
}

.dev-link:hover::after {
    width: 100%;
}

.header-link {
    position: relative;
    color: #fff;
    text-decoration: none;
    padding: 1px 1px;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
}

/* Parallelogram background */
.header-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: -20%;
    width: 0;
    height: 100%;
    background-color: #ff6b6b;
    transform: skewX(-20deg);
    transition: width 0.35s ease;
    z-index: -1;
}

/* Hover effect */
.header-link:hover::after {
    width: 140%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #ff6b6b; /* Bootstrap danger */
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Modal background */
.image-modal {
    display: none; /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* semi-transparent black */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal content box (like a form) */
.image-modal .modal-box {
    position: relative;
    background-color: #fff;
    padding: 20px;
    max-width: 950px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Modal image inside box */
.image-modal .modal-box img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 6px;
}

/* Close button in corner */
.image-modal .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: 0.2s;
}

.image-modal .close-btn:hover {
    background-color: #ff6b6b;
    color: #fff;
}

.back-to-top:hover {
    background-color: #b02a37;
    transform: translateY(-4px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
