#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.loader-text {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.bouncing-ball {
    display: none;
}

body.loading {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
    overflow: hidden;
    position: relative;
}

.hero-section {
    height: 100dvh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.background-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./img/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 2;
    mask-image: radial-gradient(circle 80px at var(--mouse-x, -999px) var(--mouse-y, -999px),
            black 50%,
            transparent 100%);
    -webkit-mask-image: radial-gradient(circle 80px at var(--mouse-x, -999px) var(--mouse-y, -999px),
            black 50%,
            transparent 100%);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: mask-image, -webkit-mask-image;
}

.hero-section:hover .background-reveal {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1100px;
    height: 100%;
}

.profile-pic {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    transition: top 0.6s ease-in-out, left 0.6s ease-in-out, width 0.6s ease-in-out, height 0.6s ease-in-out, transform 0.6s ease-in-out, border-radius 0.6s ease-in-out;
    cursor: default;
}

body.scrolled-state .profile-pic {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    transform: translate(0, 0);
    z-index: 1000;
    border-radius: 50%;
    cursor: pointer;
}

.text-content {
    position: absolute;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
    text-align: left;
    z-index: 3;
    max-width: 40%;
}

.text-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.3em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    line-height: 1.2;
}

.text-content .title {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5em;
    color: #ffffff;
    line-height: 1.3;
    min-height: 1.3em;
    position: relative;
}

.cursor {
    display: inline-block;
    background-color: #ccc;
    margin-left: 0.1rem;
    width: 3px;
    animation: blink 1s infinite;
    height: 1.4rem;
    vertical-align: middle;
}

.cursor.typing {
    animation: none;
    background-color: #ccc;
}

@keyframes blink {

    0%,
    49% {
        background-color: #ccc;
    }

    50%,
    99% {
        background-color: transparent;
    }

    100% {
        background-color: #ccc;
    }
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    border-radius: 30px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

@keyframes bounceArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes bounceArrowMobile {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-6px);
    }
}

.scroll-arrow {
    position: absolute;
    bottom: 50px;
    right: 50px;
    left: auto;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.5s, visibility 0s linear 0.5s, background-color 0.3s ease, left 0.3s ease, right 0.3s ease, bottom 0.3s ease, transform 0.3s ease;
    animation: bounceArrow 1.5s ease-in-out infinite;
}

.scroll-arrow img {
    width: 22px;
    height: 22px;
    display: block;
}

.scroll-arrow:hover {
    background-color: rgb(255, 255, 255);
    animation-play-state: paused;
    transform: scale(1.05);
}

body.scrolled-state .scroll-arrow {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

@media (max-width: 768px) {
    .scroll-arrow {
        bottom: calc(80px + env(safe-area-inset-bottom));
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 40px;
        height: 40px;
        animation-name: bounceArrowMobile;
    }

    .scroll-arrow img {
        width: 18px;
        height: 18px;
    }

    .scroll-arrow:hover {
        transform: translateX(-50%) scale(1.05);
    }
}

.content-section {
    height: 100dvh;
    width: 100%;
    padding: 100px 40px 60px;
    background-color: #111;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ccc;
    border-top: 1px solid #333;
}

.content-section:nth-of-type(even) {
    background-color: #181818;
}

.content-container {
    max-width: 800px;
    width: 90%;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1em;
    color: #fff;
    font-weight: 700;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    max-width: 650px;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
}

#main-navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    opacity: 0;
    z-index: 2;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.5s ease-in-out 0.1s, transform 0.5s ease-in-out 0.1s;
}

body.scrolled-state #main-navbar {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#main-navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

#main-navbar li.nav-item {
    margin: 0 18px;
}

#main-navbar a.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    filter: blur(1.5px);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, color 0.3s ease;
}

#main-navbar li.nav-item.active a.nav-link {
    filter: blur(0);
    opacity: 1;
}

#main-navbar li.nav-item:not(.active) a.nav-link:hover {
    filter: blur(0.5px);
    opacity: 0.85;
    color: #eee;
}

#main-navbar .nav-icon {
    display: none;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

#main-navbar .nav-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    stroke: #fff;
}

#main-navbar .nav-text {
    display: inline;
}

#overview-content {
    border-top: #181818 1px solid;
    background-color: #181818;
    padding: 130px 40px 40px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    justify-content: flex-start;
    align-items: center;
}

.overview-layout {
    display: flex;
    flex-grow: 1;
    width: 100%;
    max-width: 1100px;
    align-items: flex-start;
    gap: 40px;
    flex-direction: row;
}

.overview-nav {
    width: 200px;
    flex-shrink: 0;
    position: static;
    top: 100px;
}

.overview-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-nav-item {
    filter: blur(1.5px);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.overview-nav-item.active {
    filter: blur(0);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.overview-nav-item:not(.active):hover {
    filter: blur(0.5px);
    opacity: 0.85;
    background-color: rgba(255, 255, 255, 0.08);
}

.overview-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 8px;
}

.overview-nav-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.overview-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.overview-nav-text {
    display: inline;
}

.overview-details-container {
    flex: 1;
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: 8px;
    padding: 25px 30px;
}

.overview-detail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5px 15px 5px 5px;
    color: #ccc;
    opacity: 0;
    filter: blur(8px);
    visibility: hidden;
    transition: opacity 0.4s ease-out, filter 0.4s ease-out, visibility 0s linear 0.4s, transform 0.4s ease-out;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: normal;
    overflow-wrap: break-word;
}

.overview-detail-content::-webkit-scrollbar {
    display: none;
}

.overview-detail-content.active {
    opacity: 1;
    filter: blur(0px);
    visibility: visible;
    transition: opacity 0.5s ease-in 0.2s, filter 0.5s ease-in 0.2s, visibility 0s linear 0s, transform 0.5s ease-in 0.2s;
}

.overview-detail-content h3,
.overview-detail-content h4,
.overview-detail-content p.date,
.overview-detail-content p.description {
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}

#overview-content .overview-detail-content h3 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3em;
}

#overview-content .overview-detail-content h4 {
    color: #eee;
    font-size: 1.0rem;
    font-weight: 500;
    margin-bottom: 0.5em;
}

.overview-detail-content p.date {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 1.5em;
}

#overview-content .overview-detail-content p.description {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1em;
}

.skill-categories {
    margin-top: 1.5em;
}

.skill-category {
    margin-bottom: 2em;
}

.skill-category h4 {
    font-size: 1.0rem;
    color: #ddd;
    margin-bottom: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5em;
    font-weight: 500;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 12px 18px;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.skill-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.skill-item img,
.skill-item svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.95rem;
    color: #ddd;
    display: inline;
}

#quality-content {
    background-color: #111;
    padding: 100px 40px 40px;
    border-top: #111 1px solid;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    box-sizing: border-box;
}

.quality-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1000px;
    flex-grow: 1;
    gap: 25px;
}

.quality-details-container {
    flex: 1 1 auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.quality-detail-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    color: #ccc;
    opacity: 0;
    filter: blur(5px);
    visibility: hidden;
    transform: scale(1);
    transition: opacity 0.4s ease-out, filter 0.4s ease-out, visibility 0s linear 0.4s, transform 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    overflow: hidden;
}

.quality-detail-content.active {
    opacity: 1;
    filter: blur(0px);
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.5s ease-in 0.2s, filter 0.5s ease-in 0.2s, visibility 0s linear 0s, transform 0.5s ease-in 0.2s;
    z-index: 5;
}

.quality-description {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    color: #bbb;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.quality-item-slider {
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-item {
    position: absolute;
    width: 60%;
    height: 100%;
    max-height: 300px;
    border-radius: 10px;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
        filter 0.6s ease,
        opacity 0.6s ease,
        z-index 0s linear 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
    user-select: none;
}

.quality-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    visibility: hidden;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.quality-item.current {
    transform: translateX(0) scale(1);
    filter: blur(0);
    opacity: 1;
    z-index: 10;
    cursor: pointer;
}

.quality-item.current .item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.quality-item.current:hover img {
    transform: scale(1);
}

.quality-item.prev {
    transform: translateX(-55%) scale(0.8) rotateY(10deg);
    filter: blur(3px);
    opacity: 0.5;
    z-index: 5;
    cursor: pointer;
}

.quality-item.next {
    transform: translateX(55%) scale(0.8) rotateY(-10deg);
    filter: blur(3px);
    opacity: 0.5;
    z-index: 5;
    cursor: pointer;
}

.quality-item.hide-left {
    transform: translateX(-120%) scale(0.6) rotateY(20deg);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.quality-item.hide-right {
    transform: translateX(120%) scale(0.6) rotateY(-20deg);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    border: none;
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    visibility: hidden;
    filter: blur(1px);
}

.slider-nav svg {
    width: 20px;
    height: 20px;
}

.slider-nav.prev-btn {
    left: 10px;
}

.slider-nav.next-btn {
    right: 10px;
}

.quality-nav {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.quality-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.quality-nav-item {
    filter: blur(1.5px);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
}

.quality-nav-item.active {
    filter: blur(0);
    opacity: 1;
}

.quality-nav-item:not(.active):hover {
    filter: blur(0.5px);
    opacity: 0.85;
}

.quality-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.quality-nav-item:not(.active) .quality-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.quality-nav-item.active .quality-nav-link {
    background-color: rgba(255, 255, 255, 0.15);
}

.quality-nav-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.quality-nav-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.quality-nav-text {
    display: inline;
}

#project-content {
    overflow-y: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    align-items: center;
    display: flex;
    border-top: #181818 1px solid;
    background-color: #181818;
}

.project-main-area {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.project-main-area::-webkit-scrollbar {
    display: none;
}

.project-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

.project-title-bar h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.project-title-bar span {
    font-size: 1.0rem;
    color: #aaa;
    text-align: right;
    flex-shrink: 0;
    white-space: nowrap;
}

.project-filter {
    display: flex;
    justify-content: start;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    filter: blur(1.5px);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    
    color: #fff;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
}

.filter-btn.active {
    filter: blur(0);
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn:not(.active):hover {
    filter: blur(0.5px);
    opacity: 0.85;
    background-color: rgba(255, 255, 255, 0.08);
}

.project-item.hidden {
    display: none;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.project-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    filter: blur(5px);
    transform: translateY(20px);
    transition-property: opacity, filter, transform;
    transition-duration: 0.6s;
    transition-timing-function: ease-out;
    display: flex;
    flex-direction: column;
    background-color: rgba(30, 30, 30, 0.7);
}

.project-item.is-visible {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0px);
}

.project-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.project-item-icon {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    object-fit: cover;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.project-item:hover .project-item-icon {
    transform: scale(1.1);
}

.project-item-name {
    color: #fff;
    line-height: 1.3;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.project-item-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.project-item-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.project-item-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(6px);
    transform: scale(1.1);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.project-item:hover .project-item-background img {
    filter: blur(0px);
    transform: scale(1);
}

#more-content {
    background-color: #111;
    padding-top: 120px;
    border-top: #181818 1px solid;
}

#more-content .content-container {
    max-width: 700px;
}

#more-content .content-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5em;
}

#more-content p.section-subtitle-animate {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 2.5em;
}

#more-content p {
    font-size: 0.95rem;
    color: #bbb;
    margin-bottom: 2.5em;
}

.contact-email {
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 3em;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
}

#email-address {
    color: #fff;
    font-weight: 500;
    font-size: 1.0rem;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.icon-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

.icon-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.icon-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#copy-email-button.copied {
    background-color: #4CAF50;
    color: white;
}

#copy-email-button.copied .button-text {
    display: inline;
}

#copy-email-button.copied svg {
    display: none;
}

.social-links {
    margin-top: 2.5em;
    margin-bottom: 2.5em;
    transition: margin-bottom 0.3s ease;
}

.social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.social-links a svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-4px) scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .profile-pic {
        width: 180px;
        height: 180px;
        left: 22%;
    }

    body.scrolled-state .profile-pic {
        width: 50px;
        height: 50px;
        top: 20px;
        left: 20px;
    }

    .text-content {
        left: 65%;
        max-width: 50%;
    }

    .text-content h1 {
        font-size: 2.4rem;
    }

    .text-content .title {
        font-size: 1.4rem;
        min-height: 1.3em;
    }

    .cursor {
        height: 1.2rem;
    }

    .content-section {
        padding: 90px 30px 50px;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    #overview-content .overview-detail-content h3,
    .project-title-bar h2,
    #more-content .content-container h2 {
        font-size: 1.6rem;
    }

    #overview-content .overview-detail-content h4,
    .skill-category h4,
    .project-title-bar span,
    #email-address {
        font-size: 0.95rem;
    }

    .project-title-bar span {
        font-size: 0.95rem;
    }

    #overview-content .overview-detail-content p.description,
    .skill-item span,
    .quality-description,
    #more-content p.section-subtitle-animate,
    #more-content p {
        font-size: 0.9rem;
    }

    #main-navbar {
        left: 0;
        right: 0;
        top: 18px;
    }

    #main-navbar ul {
        height: 55px;
        justify-content: center;
    }

    #main-navbar li.nav-item {
        margin: 0 15px;
    }

    #main-navbar a.nav-link {
        font-size: 0.95rem;
    }

    #overview-content {
        padding: 120px 30px 30px;
    }

    .overview-layout {
        gap: 30px;
        max-width: 95%;
    }

    .overview-nav {
        width: 180px;
        top: 90px;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .quality-layout {
        gap: 25px;
        max-height: calc(100vh - 120px);
    }

    .quality-details-container {
        min-height: 350px;
    }

    .slider-nav {
        display: flex;
        visibility: hidden;
    }

    .quality-item {
        width: 55%;
    }

    .quality-item.prev {
        transform: translateX(-50%) scale(0.75) rotateY(8deg);
    }

    .quality-item.next {
        transform: translateX(50%) scale(0.75) rotateY(-8deg);
    }

    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 20px;
        display: block;
        text-align: center;
    }

    .profile-pic {
        width: 140px;
        height: 140px;
        top: 28%;
        left: 50%;
        transform: translate(-50%, -50%);
        border-width: 2px;
    }

    body.scrolled-state .profile-pic {
        width: 40px;
        height: 40px;
        top: 20px;
        left: 20px;
        border-width: 2px;
    }

    .text-content {
        width: 90%;
        max-width: 500px;
        position: absolute;
        top: 62%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        padding: 0;
    }

    .text-content h1 {
        font-size: 2rem;
    }

    .text-content .title {
        font-size: 1.2rem;
        margin-bottom: 1.8em;
        min-height: 1.3em;
    }

    .cursor {
        height: 1.1rem;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .scroll-arrow {
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        width: 40px;
        height: 40px;
        animation: bounceArrowMobile 1.5s ease-in-out infinite;
    }

    .scroll-arrow img {
        width: 18px;
        height: 18px;
    }

    .content-section {
        padding: 80px 25px 40px;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .content-section p {
        font-size: 0.95rem;
    }

    #overview-content .overview-detail-content h3,
    .project-title-bar h2,
    #more-content .content-container h2 {
        font-size: 1.5rem;
    }

    #overview-content .overview-detail-content h3 {
        font-size: 1.5rem;
    }

    #overview-content .overview-detail-content h4,
    .skill-category h4,
    .project-title-bar span,
    #email-address {
        font-size: 0.9rem;
    }

    #overview-content .overview-detail-content h4 {
        font-size: 0.9rem;
    }

    .project-title-bar span {
        font-size: 0.9rem;
    }

    #overview-content .overview-detail-content p.description,
    .skill-item span,
    .quality-description,
    #more-content p.section-subtitle-animate,
    #more-content p {
        font-size: 0.85rem;
    }

    .quality-description {
        font-size: 0.85rem;
    }

    #main-navbar {
        top: 15px;
        left: 0;
        right: 0;
        height: auto;
        transform: translateY(-10px);
        transition: opacity 0.5s ease-in-out 0.1s, transform 0.5s ease-in-out 0.1s, top 0.6s ease-in-out, left 0.6s ease-in-out;
    }

    body.scrolled-state #main-navbar {
        transform: translateY(0);
    }

    #main-navbar ul {
        height: 50px;
        justify-content: center;
        align-items: center;
    }

    #main-navbar li.nav-item {
        margin: 0 10px;
        filter: blur(1.5px);
        opacity: 0.6;
        transition: filter 0.3s ease, opacity 0.3s ease;
    }

    #main-navbar .nav-text {
        display: none;
    }

    #main-navbar .nav-icon {
        display: inline-block;
        width: 24px;
        height: 24px;
    }

    #main-navbar .nav-icon svg {
        stroke-width: 2;
    }

    #main-navbar a.nav-link {
        filter: none;
        opacity: 1;
        transition: none;
        padding: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #main-navbar li.nav-item.active {
        filter: blur(0);
        opacity: 1;
    }

    #main-navbar li.nav-item:not(.active):hover {
        filter: blur(0.5px);
        opacity: 0.85;
    }

    #overview-content {
        padding: 20px 20px 20px;
        min-height: 100dvh;
    }

    .overview-layout {
        flex-direction: column;
        gap: 25px;
        max-width: 100%;
        height: auto;
    }

    .overview-details-container {
        order: 1;
        width: 100%;
        min-height: 250px;
        padding: 20px;
        flex: 1 1 auto;
        overflow-y: auto;
        margin-top: 75px;
        border-radius: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .overview-details-container::-webkit-scrollbar {
        display: none;
    }

    .overview-nav {
        order: 2;
        width: 100%;
        position: static;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        flex-shrink: 0;
        margin-top: 0;
        margin-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .overview-nav ul {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 5px;
        list-style: none;
        padding: 0;
        margin: 0;
        height: auto;
    }

    .overview-nav-item {
        flex: 1;
        text-align: center;
        filter: blur(1.5px);
        opacity: 0.7;
        background-color: transparent;
        margin: 0;
        transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
        border-radius: 0;
    }

    .overview-nav-item.active {
        opacity: 1;
        transform: scale(1.1);
        filter: blur(0);
        background-color: transparent;
    }

    .overview-nav-item:not(.active):hover {
        opacity: 0.9;
        transform: none;
        background-color: transparent;
    }

    .overview-nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 5px;
        gap: 0;
        color: #fff;
        text-decoration: none;
    }

    .overview-nav-text {
        display: none;
    }

    .overview-nav-icon {
        display: inline-flex;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .overview-nav-icon svg {
        width: 100%;
        height: 100%;
        stroke: currentColor;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 15px;
    }

    .skill-item {
        flex-direction: column;
        padding: 10px;
        gap: 8px;
        justify-content: center;
        align-items: center;
        min-height: 60px;
        text-align: center;
        background-color: rgba(255, 255, 255, 0.07);
        border-radius: 8px;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .skill-item:hover {
        background-color: rgba(255, 255, 255, 0.12);
    }

    .skill-item img,
    .skill-item svg {
        width: 28px;
        height: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
        object-fit: contain;
    }

    .skill-item span {
        display: none;
    }

    .overview-detail-content p.date {
        font-size: 0.9rem;
    }

    #quality-content {
        padding: 20px 20px 20px;
        min-height: 100dvh;
    }

    .quality-layout {
        gap: 20px;
        height: auto;
        max-height: none;
        flex-grow: 1;
    }

    .quality-details-container {
        order: 1;
        flex: 1 1 auto;
        min-height: 300px;
        padding: 20px;
        margin-top: 75px;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .quality-details-container::-webkit-scrollbar {
        display: none;
    }

    .quality-detail-content {
        padding: 20px 15px;
        gap: 15px;
    }

    .slider-wrapper {
        max-height: 280px;
        width: 100%;
        perspective: none;
    }

    .quality-nav {
        order: 2;
        max-width: 100%;
        width: 100%;
        position: static;
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        flex-shrink: 0;
        margin-top: 0;
        margin-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .quality-nav-item {
        flex: 1;
        text-align: center;
        transition: none;
        background-color: transparent;
        opacity: 1;
        filter: none;
    }

    .quality-nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 8px 5px;
        gap: 0;
        color: #fff;
        text-decoration: none;
        border-radius: 6px;
        filter: blur(1.5px);
        opacity: 0.7;
        transform: scale(1);
        transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
        background-color: transparent !important;
    }

    .quality-nav-item.active .quality-nav-link {
        filter: none;
        opacity: 1;
        transform: scale(1.1);
        background-color: transparent !important;
    }

    .quality-nav-item:not(.active) .quality-nav-link:hover {
        filter: blur(0.5px);
        opacity: 0.9;
        transform: none;
        background-color: transparent !important;
    }

    .quality-nav-text {
        display: none;
    }

    .quality-nav-icon {
        display: inline-flex;
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .quality-nav-icon svg {
        width: 100%;
        height: 100%;
        stroke: currentColor;
    }

    .quality-item {
        width: 85%;
        max-height: 250px;
    }

    .quality-item.prev,
    .quality-item.next {
        transform: translateX(0) scale(0.9);
        opacity: 0;
        pointer-events: none;
        z-index: 1;
        filter: blur(5px);
    }

    .quality-item.hide-left,
    .quality-item.hide-right {
        transform: translateX(0) scale(0.8);
        opacity: 0;
        pointer-events: none;
        z-index: 0;
    }

    .slider-nav {
        display: flex;
        visibility: visible;
    }

    .slider-nav.prev-btn {
        left: 5px;
    }

    .slider-nav.next-btn {
        right: 5px;
    }

    #project-content {
        padding-top: 0px;
    }

    .project-main-area {
        margin-top: 75px;
        padding: 0;
        max-width: 100%;
    }

    .project-title-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 15px;
        padding: 15px 5px;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .project-item-content {
        padding: 10px 10px;
        justify-content: flex-start;
    }

    .project-item-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .project-item-name {
        font-size: 0.85rem;
        margin-bottom: 10px;
        min-height: 2.6em;
    }

    .project-item-buttons {
        flex-direction: column;
        gap: 8px;
        flex-wrap: wrap;
    }

    .project-button {
        width: 100%;
        padding: 8px 10px;
        flex-grow: 0;
    }
}

@media (max-width: 480px) {
    .profile-pic {
        width: 120px;
        height: 120px;
        top: 25%;
    }

    body.scrolled-state .profile-pic {
        width: 35px;
        height: 35px;
        top: 20px;
        left: 20px;
    }

    .text-content {
        top: 58%;
    }

    .text-content h1 {
        font-size: 1.8rem;
    }

    .text-content .title {
        font-size: 1.1rem;
        min-height: 1.3em;
    }

    .cursor {
        height: 1rem;
    }

    .content-section {
        padding: 70px 20px 30px;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section p {
        font-size: 0.9rem;
    }

    #overview-content .overview-detail-content h3,
    .project-title-bar h2,
    #more-content .content-container h2 {
        font-size: 1.3rem;
    }

    #overview-content .overview-detail-content h3 {
        font-size: 1.3rem;
    }

    #overview-content .overview-detail-content h4,
    .skill-category h4,
    .project-title-bar span,
    #email-address {
        font-size: 0.85rem;
    }

    #overview-content .overview-detail-content h4 {
        font-size: 0.85rem;
    }

    .project-title-bar span {
        font-size: 0.85rem;
    }

    #overview-content .overview-detail-content p.description,
    .skill-item span,
    .quality-description,
    #more-content p.section-subtitle-animate,
    #more-content p {
        font-size: 0.8rem;
    }

    #overview-content .overview-detail-content p.description {
        font-size: 0.8rem;
    }

    .quality-description {
        font-size: 0.8rem;
    }

    #main-navbar {
        top: 12px;
        left: 0;
        right: 0;
        transform: translateY(-10px);
    }

    body.scrolled-state #main-navbar {
        transform: translateY(0);
    }

    #main-navbar ul {
        height: 45px;
        justify-content: center;
        align-items: center;
    }

    #main-navbar li.nav-item {
        margin: 0 8px;
    }

    #main-navbar .nav-icon {
        width: 22px;
        height: 22px;
    }

    #overview-content {
        padding: 15px 15px 15px;
        min-height: 100dvh;
    }

    .overview-details-container {
        margin-top: 65px;
        padding: 15px;
        min-height: 200px;
    }

    .overview-nav {
        margin-bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .overview-nav-icon {
        width: 22px;
        height: 22px;
    }

    .overview-detail-content p.date {
        font-size: 0.8rem;
    }

    #quality-content {
        padding: 15px 15px 15px;
        min-height: 100dvh;
    }

    .quality-layout {
        gap: 15px;
        height: auto;
        max-height: none;
        flex-grow: 1;
    }

    .quality-details-container {
        min-height: 250px;
        margin-top: 65px;
        padding: 15px;
    }

    .quality-detail-content {
        padding: 15px 10px;
    }

    .slider-wrapper {
        max-height: 220px;
    }

    .quality-item {
        width: 90%;
        max-height: 200px;
    }

    .slider-nav {
        width: 35px;
        height: 35px;
        visibility: visible;
    }

    .slider-nav svg {
        width: 18px;
        height: 18px;
    }

    .quality-nav {
        margin-bottom: calc(15px + env(safe-area-inset-bottom));
    }

    .quality-nav-icon {
        width: 20px;
        height: 20px;
    }

    .project-main-area {
        margin-top: 65px;
    }

    .project-grid {
        gap: 10px;
    }

    .project-item-content {
        padding: 12px 8px;
    }

    .project-item-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    .project-item-name {
        font-size: 0.85rem;
        margin-bottom: 10px;
        min-height: 2.6em;
    }

    .project-item-buttons {
        flex-direction: column;
        gap: 8px;
        flex-wrap: wrap;
    }

    .project-button {
        width: 100%;
        padding: 8px 10px;
        flex-grow: 0;
    }
}