#footer {
    width: 100%;
    min-height: 100vh;
    padding: 5% 5% 0%;
    /* background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); */
    /* background-image: linear-gradient(135deg, #ede3d5 0%, #fdfcfb 100%); */
    /* background: linear-gradient(to bottom, #ede3d5 0%, #fdfcfb 100%); */
    background: var(--secondary-bg);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
    /* To sit above other sections gracefully if needed */
}

#footer::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 41px;
    background-color: var(--secondary-bg);
    z-index: 10;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 L20,40 L40,25 L60,35 L80,20 L100,45 L120,25 L140,35 L160,15 L180,40 L200,20 L220,35 L240,10 L260,30 L280,15 L300,40 L320,20 L340,35 L360,15 L380,45 L400,25 L420,35 L440,15 L460,40 L480,20 L500,35 L520,10 L540,30 L560,15 L580,40 L600,20 L620,35 L640,15 L660,45 L680,25 L700,35 L720,15 L740,40 L760,20 L780,35 L800,10 L820,30 L840,15 L860,40 L880,20 L900,35 L920,15 L940,45 L960,25 L980,35 L1000,15 L1020,40 L1040,20 L1060,35 L1080,10 L1100,30 L1120,15 L1140,40 L1160,20 L1180,35 L1200,30 V60 H0 Z' fill='black'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0,30 L20,40 L40,25 L60,35 L80,20 L100,45 L120,25 L140,35 L160,15 L180,40 L200,20 L220,35 L240,10 L260,30 L280,15 L300,40 L320,20 L340,35 L360,15 L380,45 L400,25 L420,35 L440,15 L460,40 L480,20 L500,35 L520,10 L540,30 L560,15 L580,40 L600,20 L620,35 L640,15 L660,45 L680,25 L700,35 L720,15 L740,40 L760,20 L780,35 L800,10 L820,30 L840,15 L860,40 L880,20 L900,35 L920,15 L940,45 L960,25 L980,35 L1000,15 L1020,40 L1040,20 L1060,35 L1080,10 L1100,30 L1120,15 L1140,40 L1160,20 L1180,35 L1200,30 V60 H0 Z' fill='black'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    filter: drop-shadow(0 -10px 10px var(--rgba-black-10));
}

.footer-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    flex-grow: 1;
    justify-content: space-between;
}

.footer-message {
    font-family: var(--font-display);
    font-size: clamp(16px, 3vw, 24px);
    line-height: 1.5;
    font-weight: 500;
    margin-top: 5rem;
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-dark);
    text-decoration: none;
    font-family: var(--font-display, monospace);
    font-size: clamp(14px, 2vw, 18px);
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-link:hover {
    transform: translateY(-2px);
    color: var(--color-black);
    font-weight: 600;
}

.footer-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.footer-bottom-section {
    width: calc(100% + 10%); /* Account for parent 5% padding on both sides */
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: auto;
    margin-left: -5%;
    margin-right: -5%;
}

.skills-line-container {
    position: relative;
    width: 100%;
    height: 100px;
    /* Space above line for skills to fall into */
    display: block;
}

/* .skills-line-container .skill-bubble {
    border: none !important;
    background: transparent !important;
    color: var(--) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default;
    z-index: 1;
    font-weight: 600;
    font-size: clamp(14px, 1.5vw, 18px);
    text-shadow: none !important;
    transform: none !important;
}

.skills-line-container .skill-bubble:hover {
    filter: none;
    z-index: 2;
    transform: scale(1.1) translateY(-2px) !important;
    color: #000 !important;
} */

.skills-line-container .skill-bubble::after,
.skills-line-container .skill-bubble::before {
    display: none;
}

.popped-skills-indicator {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--color-gray-dark);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin-bottom: 20px;
}

.popped-skills-indicator.active {
    display: flex;
    opacity: 1;
    min-width: 500px;
}

.popped-skills-indicator svg {
    width: 32px;
    height: 32px;
    animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

.footer-line {
    width: 100%;
    height: 1px;
    background: var(--text-muted);
    opacity: 0.3;
    margin-left: 15px;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.footer-signoff {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    /* margin-bottom: 2rem; */
    margin-top: 1rem;
}

.signoff-text {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--text-muted);
}

.signoff-name {
    font-family: var(--font-signoff);
    font-size: 64px;
    color: var(--text-muted);
    line-height: 1;
}

.back-to-top-btn {
    margin-bottom: 2rem;
}

.back-to-top-btn:hover .back-arrow {
    transform: rotate(0deg) translateY(-3px);
}

/* DARK MODE OVERRIDES */
body.dark-knight-mode .footer-signoff img {
    filter: invert(1);
}
