.background { 
    margin: 0;
    padding-top: 4rem;
    background-color: rgb(5, 5, 5);
    user-select: none;
    -webkit-user-select: none;
}

.header { 
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    min-height: 4rem;
    background-color: rgba(29, 29, 29, 0.5);

    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    overflow-x: auto;
    -webkit-user-select: none;
}
.brand { 
    margin: 0;
    padding-left: 25px;
    color: white;
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 35px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 180ms ease;
    text-shadow:
        0 0 5px rgb(255 255 255 / 45%),
        0 0 14px rgb(255 255 255 / 20%);
}

.brand:hover,
.brand:focus-visible {
    opacity: 0.75;
}

.brand:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.page-buttons { 
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-right: 2rem;
}

.header-button {
    position: relative;
    padding: 1.35rem 0 1.15rem;
    border: 0;
    background: transparent;
    color: white;
    font-family: "Lexend", sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-shadow:
        0 0 5px rgb(255 255 255 / 45%),
        0 0 14px rgb(255 255 255 / 20%);
}

.header-button::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0.75rem;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background-color: white;
    transform: scaleX(0) translateY(6px);
    transform-origin: left;
    transition: transform 180ms ease-out;
}

.header-button:hover::after,
.header-button:focus-visible::after {
    transform: scaleX(1) translateY(0);
}

.header-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100vw;
    min-height: calc(100vh - 4rem);
    padding-top: clamp(4rem, 12vh, 8rem);
    box-sizing: border-box;
}

.hero-title {
    position: relative;
    top: -0.5rem;
    margin: 0;
    color: #dda33a;
    font-family: "Great Vibes", cursive;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    text-shadow:
        0 0 4px rgb(255 210 112 / 62%),
        0 0 14px rgb(221 163 58 / 55%),
        0 0 32px rgb(200 146 46 / 34%),
        0 0 58px rgb(200 146 46 / 18%);
}

.hero-roles {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0.5rem 1rem 0;
    color: rgb(255 255 255 / 88%);
    font-family: "Geist", sans-serif;
    font-size: clamp(0.72rem, 1.2vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgb(255 255 255 / 30%);
    user-select: none;
    -webkit-user-select: none;
}

.role-divider {
    color: #dda33a;
    font-size: 0.75em;
    text-shadow: 0 0 7px rgb(221 163 58 / 65%);
}

.panel-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    width: 100%;
    min-height: 28rem;
    margin-top: 4rem;
    padding: 0 2rem 2rem;
    box-sizing: border-box;
}

.content-panel {
    min-width: 0;
    padding: 2rem;
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 1.25rem;
    background: rgb(210 210 210 / 8%);
    box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: white;
    font-family: "Geist", sans-serif;
    text-shadow: 0 0 8px rgb(255 255 255 / 14%);
}

.panel-heading {
    margin: 0;
    color: white;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 0 7px rgb(255 255 255 / 28%), 0 0 18px rgb(255 255 255 / 10%);
}

.about-panel .panel-heading {
    min-height: 1em;
    text-align: left;
}

.about-copy {
    max-width: 50rem;
    margin: 2rem 0 0;
    font-size: clamp(1.05rem, 1.45vw, 1.3rem);
    font-weight: 500;
    line-height: 1.65;
}

.skills-panel .panel-heading {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.skill-list {
    display: grid;
    gap: 1.35rem;
    margin-top: 2rem;
}

.skill {
    --skill-color: white;
}

.skill--luau { --skill-color: #ff3f4f; }
.skill--js { --skill-color: #3b9dff; }
.skill--cpp { --skill-color: #a855f7; }
.skill--python { --skill-color: #35d07f; }
.skill--sql { --skill-color: #ffd447; }

.skill-label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.45rem;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 0 0 7px rgb(255 255 255 / 22%);
}

.skill-label span:last-child {
    text-align: right;
}

.skill-track {
    height: 0.7rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 24%);
    border-radius: 999px;
    background: rgb(255 255 255 / 9%);
    box-shadow: inset 0 0 8px rgb(0 0 0 / 45%), 0 0 6px rgb(255 255 255 / 8%);
}

.skill-fill {
    width: var(--skill-level);
    height: 100%;
    border-radius: inherit;
    background: var(--skill-color);
    box-shadow: 0 0 6px var(--skill-color), 0 0 12px color-mix(in srgb, var(--skill-color) 55%, transparent);
    transition: width 80ms linear;
}

.reveal-item {
    opacity: 0;
    transform: translateY(2.5rem);
    transition:
        opacity 600ms ease var(--reveal-delay, 0ms),
        transform 600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-copy.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 0.18em;
    vertical-align: -0.1em;
    background: white;
    box-shadow: 0 0 7px rgb(255 255 255 / 40%);
    animation: typing-cursor 650ms steps(1) infinite;
}

@keyframes typing-cursor {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .skill-fill {
        transition: none;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    padding: 0 2rem 4rem;
    box-sizing: border-box;
}

.stat-card {
    display: flex;
    flex-direction: column;
    min-height: 14rem;
    padding: 1.5rem;
    box-sizing: border-box;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 1.25rem;
    background: rgb(210 210 210 / 8%);
    box-shadow: 0 12px 40px rgb(0 0 0 / 25%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: "Geist", sans-serif;
}

.stat-label {
    margin: 0;
    color: white;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    text-shadow: 0 0 8px rgb(255 255 255 / 20%);
}

.stat-value {
    display: grid;
    flex: 1;
    place-items: center;
    margin: 0;
    color: #dda33a;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    text-shadow:
        0 0 5px rgb(255 210 112 / 62%),
        0 0 16px rgb(221 163 58 / 48%),
        0 0 32px rgb(200 146 46 / 24%);
}

@media (max-width: 700px) {
    .panel-layout {
        grid-template-columns: 1fr;
    }

    .content-panel {
        min-height: 20rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 701px) and (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    min-height: 6rem;
    padding: 1rem 2rem;
    box-sizing: border-box;
    font-family: "Geist", sans-serif;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 14%);
    border-radius: 50%;
    background: rgb(255 255 255 / 6%);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.social-link img {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgb(255 255 255 / 25%));
}

.social-link:hover,
.social-link:focus-visible {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.22);
    transform: translateY(-3px);
}

.social-link:focus-visible {
    outline: 2px solid #dda33a;
    outline-offset: 3px;
}

.footer-copyright {
    justify-self: end;
    margin: 0;
    color: rgb(255 255 255 / 70%);
    font-size: 0.9rem;
    text-shadow: 0 0 7px rgb(255 255 255 / 14%);
}

@media (max-width: 600px) {
    .site-footer {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-block: 1.5rem;
    }

    .footer-spacer {
        display: none;
    }

    .footer-copyright {
        justify-self: center;
    }
}
