/* About Page Mode Toggle */

.about-toggle-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 1.25rem 0 0.5rem;
    position: sticky;
    top: 1rem;
    z-index: 10;
    pointer-events: none; /* let clicks fall through to underlying content */
}

.about-toggle-widget {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
/*    background: color-mix(in srgb, var(--background) 75%, transparent);*/
/*    backdrop-filter: blur(12px);*/
    pointer-events: all;
    user-select: none;
}

/* Label text area  */

.about-toggle-label {
    position: relative;
    height: 2.25rem;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.about-toggle-label-item {
    position: absolute;
    right: 0;
    text-align: right;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.about-toggle-label-name {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.about-toggle-label-sub {
    display: block;
    font-size: 0.6875rem;
    opacity: 0.45;
    line-height: 1.3;
}

/* Professional visible by default */
.about-toggle-label-professional {
    opacity: 1;
    transform: translateY(0);
}

.about-toggle-label-personal {
    opacity: 0;
    transform: translateY(5px);
}

/* Flip when personal mode is active */
.about-mode--personal .about-toggle-label-professional {
    opacity: 0;
    transform: translateY(-5px);
}

.about-mode--personal .about-toggle-label-personal {
    opacity: 1;
    transform: translateY(0);
}

/* Switch track & thumb */

.about-toggle-switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}

.about-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 18%, transparent);
    transition: background 0.35s ease;
    pointer-events: none;
}

.about-mode--personal .about-toggle-track {
    background: var(--primary);
}

.about-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--text);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.about-mode--personal .about-toggle-thumb {
    transform: translateX(18px);
}

/* Page content fade */

.about-page-content {
    width: 100%;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.about-page-content--hidden {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

/* Fancy O Header Movement */
.about-hero {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 5rem 0px;
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
    gap: 1rem;
}

.about-hero-image {
    height: 350px;
    width: 40%;
    border-radius: 10%;
    object-fit: contain;
    overflow: hidden;
    margin: 0;
    flex-shrink: 0;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    width: 60%;
    justify-content: center;
}

.about-hero-content h1 {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2.5px;
    margin-bottom: 16px;
}

.about-hero-content h1 span {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2.5px;
}

.about-hero-content p {
    color: silver;
    font-size: 1rem;
}

/* Hero heading letter/text transitions */

.switcher-header {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1;
    margin-bottom: 1rem;
    white-space: nowrap;
}

/* O and P — always visible, color fades between modes */
.about-hero-letter {
    display: inline;
    transition: color 0.5s ease;
}

.switcher-header--professional .about-hero-letter {
    color: var(--secondary);
}

.switcher-header--personal .about-hero-letter {
    color: var(--primary);
}

/* Variable text parts inside the hero H1 — inline-block required for transforms */
.about-hero-text {
    display: inline-block;
    white-space: nowrap;
}

/* Subtitle below hero heading */
.about-hero-subtitle {
    font-size: 1rem;
    color: silver;
    margin-bottom: 1.5rem;
}

/* Section fade in/out on view switch */

@keyframes u-fade-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes u-fade-exit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(16px);
    }
}

.u-fade {
    animation: u-fade-enter 0.55s ease forwards;
}

.u-fade--hidden {
    animation: u-fade-exit 0.4s ease forwards;
    pointer-events: none;
}

/*
    ========================================================
                    END OF FANCY HEADER STUFF
                    - More General Page styles here
    ========================================================
*/

.about-title {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -2.5px;
}

.about-subtitle {
    color: silver;
    font-size: 1.5rem;
    margin: 0px;
}

.about-paragraph {
    font-size: 1rem;
    margin: 8px 0px;
}

/*
    ========================================================
                    ABOUT LOCATION SECTION
    ========================================================
*/

.about-intro-paragraph {
    color: silver;
    font-size: 1rem;
}

.about-location-section {

}

.about-location-header {
    position: relative;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.about-location-header .about-title {
    margin-bottom: 16px;
}

.about-location-header .about-paragraph {
    font-size: 1.15rem;
    margin: 16px 0px;
    width: min(100%, 500px);
    text-align: justify;
}

.about-ascii-art {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.about-subtitle,
.about-title {
    position: relative;
    z-index: 1;
}

.bridge-ascii-art {
    font-family: "Courier New", Courier, monospace;
    white-space: pre;
    line-height: 1.2;
    font-size: 18px;
    opacity: 75%;
    color: dimgrey;
    padding: 20px 10px;
}

/*
    ========================================================
                    EXPERIENCES SECTION
    ========================================================
*/

.about-events-section {

}

.about-key-list {
    list-style: none;
    padding-left: 0;
    position: relative;
}

/* vertical line */
.about-key-list::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: dimgrey;
}

/* each item */
.about-key-list li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 24px;
}

.about-key-list::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(192,192,192,1) 0%,
        rgba(192,192,192,0.6) 90%,
        rgba(192,192,192,0) 100%
    );
}

/* custom circle */
.about-key-list li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: silver;
}

.about-key-item span {
    opacity: 75%;
    font-size: 0.75rem;
    margin-bottom: 8px;
    display: inline-block;
}

.about-key-item h3 {
    font-size: 1.25rem;
}

.about-key-item p {
    font-size: 0.875rem;
}

/*
    ========================================================
                    TECHNICAL SKILLS SECTION
    ========================================================
*/

.skill-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.75rem;
}

.skill-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem 0.3rem 0.55rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
    background: var(--background-hover);
    white-space: nowrap;
    transition: border-color 0.18s ease, background 0.18s ease;
    cursor: default;
}

.skill-chip:hover {
    border-color: var(--secondary);
}

.skill-chip:hover .skill-chip-name {
    color: var(--secondary);
}

.skill-chip-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 2px;
}

.skill-chip-name {
    font-size: 0.8rem;
    color: var(--text);
    transition: color 0.18s ease;
}

/*
    ========================================================
                    HOBBY CARDS SECTION
    ========================================================
*/

.hobby-cards-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 1.5rem;
}

.hobby-card {
    flex: 1 1 0;
    min-width: 0;
    height: 240px;
    position: relative;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    background: var(--background-hover);
    overflow: hidden;
    cursor: pointer;
}

/* Gradient overlay — fades in on hover */
.hobby-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--primary) 55%, transparent),
        color-mix(in srgb, var(--secondary) 35%, var(--background))
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.hobby-card:hover::before {
    opacity: 1;
}

/* Icon — centered by default, moves to top on hover */
.hobby-card-icon-wrap {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    font-size: 2.25rem;
    color: color-mix(in srgb, var(--text) 28%, transparent);
    z-index: 1;
    line-height: 1;
    transition:
        top 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        font-size 0.4s ease,
        color 0.4s ease;
}

.hobby-card:hover .hobby-card-icon-wrap {
    top: 1.5rem;
    transform: translate(-50%, 0);
    font-size: 1.5rem;
    color: var(--text);
}

/* Title — below icon near bottom, disappears on hover */
.hobby-card-title {
    position: absolute;
    bottom: 3.25rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    padding: 0 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hobby-card:hover .hobby-card-title {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

/* Description preview — small slice at bottom, fades out on hover */
.hobby-card-desc-preview {
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 1.25rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: color-mix(in srgb, var(--text) 50%, transparent);
    max-height: 2.5rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hobby-card:hover .hobby-card-desc-preview {
    opacity: 0;
    pointer-events: none;
}

/* Description full — centered, hidden default, reveals on hover */
.hobby-card-desc-full {
    position: absolute;
    top: 4rem;
    bottom: 2.75rem;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 1.25rem;
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
    color: color-mix(in srgb, var(--text) 90%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: scroll;
    opacity: 0;
    transform: translateY(10px);
    z-index: 1;
    transition: opacity 0.4s ease 0.06s, transform 0.4s ease 0.06s;
}

.hobby-card:hover .hobby-card-desc-full {
    opacity: 1;
    transform: translateY(0);
}

/* Link — bottom center, hidden default, reveals on hover */
.hobby-card-link {
    position: absolute;
    bottom: 0.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--secondary);
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease 0.15s;
}

.hobby-card:hover .hobby-card-link {
    opacity: 1;
}

.hobby-card-link:hover {
    text-decoration: underline;
}

/* Mobile: horizontal scroll with right-edge fade hint */
@media (max-width: 720px) {
    .hobby-cards-row {
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
        padding-right: 3rem;
        -webkit-mask-image: linear-gradient(to right, black 78%, transparent 100%);
        mask-image: linear-gradient(to right, black 78%, transparent 100%);
    }

    .hobby-cards-row::-webkit-scrollbar {
        display: none;
    }

    .hobby-card {
        flex: none;
        width: 72vw;
        max-width: 260px;
    }
}

/*
    ========================================================
                    SPORTS TEAMS SECTION
    ========================================================
*/

.team-cards-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
/*    height: 240px;*/
    align-items: flex-end;
    padding-bottom: 0.75rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    padding: 1rem 3rem 1rem .5rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 88%, transparent 100%);
}

.team-cards-row::-webkit-scrollbar {
    display: none;
}

.team-card {
    flex: none;
    width: 170px;
    height: 140px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform 0.250s ease;
}

.team-card:hover {
    transform: scale(1.04);
}

/* Dark gradient overlay for text readability */
.team-card::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    /* TODO: see if need to keep — transition: height 0.4s ease; */
}

/* TODO: see if need to keep — .team-card:hover::after { height: 80%; } */

/* Secondary (personal) image */
.team-card-secondary-img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 0;
    /* TODO: see if need to keep — transition: opacity 0.5s ease 0.1s; fade in on hover */
}

/* TODO: see if need to keep — .team-card:hover .team-card-secondary-img { opacity: 0.5; } */

/* Logo — centered */
.team-card-logo {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 56px; height: 56px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    /* TODO: see if need to keep — transition for top/width/height/transform (logo slide to top on hover) */
}

/* TODO: see if need to keep — .team-card:hover .team-card-logo { top: 1.5rem; width: 38px; height: 38px; transform: translate(-50%, 0); } */

/* Name + sport */
.team-card-meta {
    position: absolute;
    bottom: 0.6rem;
    left: 0; right: 0;
    text-align: center;
    z-index: 2;
    padding: 0 0.5rem;
    /* TODO: see if need to keep — transition: opacity 0.25s ease, transform 0.3s ease; (for fade-out on hover) */
}

/* TODO: see if need to keep — .team-card:hover .team-card-meta { opacity: 0; transform: translateY(6px); pointer-events: none; } */

.team-card-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.team-card-sport {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Description — hidden; reveal logic removed from hover */
.team-card-description {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 1.75rem 0.875rem 0.875rem;
    z-index: 2;
    opacity: 0;
    /* TODO: see if need to keep — transform: translateY(10px); transition for fade-in on hover */
}

/* TODO: see if need to keep — .team-card:hover .team-card-description { opacity: 1; transform: translateY(0); } */

.team-card-description-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}

.team-card-description p {
    font-size: 0.72rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.85);
    margin: 0;
}

@media (max-width: 720px) {
    .team-card {
        width: min(72vw, 200px);
    }
}

/*
    ========================================================
                    MUSIC SECTION
    ========================================================
*/

.music-embeds-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.music-embed-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.music-embed-label {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0 0.25rem;
}

.music-embed-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.music-embed-artist {
    font-size: 0.78rem;
    color: var(--accent);
}

.music-embed-frame {
    border-radius: 12px;
    width: 100%;
    border: none;
    display: block;
}

.music-embed-wrapper {
    width: 100%;
    line-height: 0; /* collapse whitespace around the injected iframe */
}