/* Progress Container */
nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nav-pill {
    width: 160px;
    height: 56px;
    background-color: var(--md-sys-color-surface-container-highest);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    z-index: 1000;
    color: var(--md-sys-color-on-surface-container);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s ease, height 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.nav-pill.expanded {
    width: 300px;
    height: 160px;
    transform: translateY(-50px);
    transform-origin: bottom center;
}

/* Circular Progress */
svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.nav-pill.expanded svg {
    width: 80px;
    height: 80px;
}

circle {
    fill: none;
    stroke-width: 8;
}

.bg-circle {
    stroke: var(--md-sys-color-outline-variant);
}

.progress-circle {
    stroke: var(--md-sys-color-primary);
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 251.2;
    transition: stroke-dashoffset 0.1s linear, stroke 0.1s linear;
}

/* Section Names */
.section-list {
    display: flex;
    flex-direction: column;
    transform: translateY(var(--section-about));
    transition: transform 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
    list-style-type: none;
    margin: 0;
}

.section-item {
    font-size: 12px;
    line-height: 49px;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    color: var(--md-sys-color-on-surface-container);
    -webkit-user-select: none;
    user-select: none;
}

.section-item.active {
    font-weight: bold !important;
    color: var(--md-sys-color-primary);
}

/* Expanded State Adjustments */
.nav-pill.expanded .section-list {
    transform: translateY(0) !important;
}

.nav-pill.expanded .section-item {
    line-height: 40px;
    font-size: 14px;
    color: var(--md-sys-color-on-surface-container);
}

.nav-pill.expanded .section-item.active {
    color: var(--md-sys-color-primary);
}

/* Disable clicks on section items when not expanded */
.nav-pill:not(.expanded) .section-item {
    pointer-events: none;
}

/* Percentage */
.percentage {
    font-size: 14px !important;
    font-weight: bold;
    color: var(--md-sys-color-primary);
    transition: color 0.1s linear;
}

/* Toggle Button Styles */
.toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--md-sys-color-surface-container-highest);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.toggle:hover {
    background-color: var(--md-sys-color-primary-container);
}

.theme-icon {
    font-size: 25px;
    transition: transform 0.6s cubic-bezier(0.25, 1.5, 0.5, 1);
    will-change: transform;
}

.toggle:hover .theme-icon {
    transform: rotate(360deg) scale(1.2);
}

.accent-theme {
    position: relative;
    cursor: pointer;
}

.accent-options {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0) scale(0.8);
    transform-origin: bottom center;
    background-color: var(--md-sys-color-surface-container-highest);
    border-radius: 32px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.accent-theme.open .accent-options {
    opacity: 1;
    transform: translate(-50%, -110%) scale(1);
    pointer-events: auto;
}

.accent-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--md-sys-color-outline-variant);
    transition: transform 0.2s ease;
}

.accent-swatch:hover {
    transform: scale(1.15);
}

.accent-swatch.active {
    outline: 3px solid var(--md-sys-color-primary);
    outline-offset: 2px;
}

@keyframes pop-up {
    0% {
        transform: translate(-50%, -20%) scale(0.8);
        opacity: 0;
    }

    80% {
        transform: translate(-50%, -110%) scale(1.05);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -110%) scale(1);
    }
}

.gradient-blur {
    position: fixed;
    z-index: 5;
    inset: auto 0 0 0;
    height: 140px;
    pointer-events: none;
}

.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after {
    position: absolute;
    inset: 0;
}

.gradient-blur::before {
    content: "";
    z-index: 1;
    -webkit-backdrop-filter: blur(0.5px);
    backdrop-filter: blur(0.5px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 12.5%,
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 0) 37.5%);
}

.gradient-blur>div:nth-of-type(1) {
    z-index: 2;
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 12.5%,
            rgba(0, 0, 0, 1) 25%,
            rgba(0, 0, 0, 1) 37.5%,
            rgba(0, 0, 0, 0) 50%);
}

.gradient-blur>div:nth-of-type(2) {
    z-index: 3;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 25%,
            rgba(0, 0, 0, 1) 37.5%,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 0) 62.5%);
}

.gradient-blur>div:nth-of-type(3) {
    z-index: 4;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 37.5%,
            rgba(0, 0, 0, 1) 50%,
            rgba(0, 0, 0, 1) 62.5%,
            rgba(0, 0, 0, 0) 75%);
}

.gradient-blur>div:nth-of-type(4) {
    z-index: 5;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 1) 62.5%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 0) 87.5%);
}

.gradient-blur>div:nth-of-type(5) {
    z-index: 6;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 62.5%,
            rgba(0, 0, 0, 1) 75%,
            rgba(0, 0, 0, 1) 87.5%,
            rgba(0, 0, 0, 0) 100%);
}

.gradient-blur>div:nth-of-type(6) {
    z-index: 7;
    -webkit-backdrop-filter: blur(32px);
    backdrop-filter: blur(32px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 75%,
            rgba(0, 0, 0, 1) 87.5%,
            rgba(0, 0, 0, 1) 100%);
}

.gradient-blur::after {
    content: "";
    z-index: 8;
    -webkit-backdrop-filter: blur(64px);
    backdrop-filter: blur(64px);
    mask: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 87.5%,
            rgba(0, 0, 0, 1) 100%);
}