:root {
    --page: #061110;
    --panel: rgba(10, 27, 25, 0.94);
    --panel-soft: rgba(14, 39, 36, 0.78);
    --ink: #effffc;
    --muted: #91aaa5;
    --turquoise: #18e0c4;
    --turquoise-dark: #078f80;
    --line: rgba(24, 224, 196, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    background: #061110;
}

body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: "Space Mono", monospace !important;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.app-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 100%;
    min-height: calc(100 * min(var(--vh, 1vh), 1vh));
    place-items: center;
    overflow: hidden;
    padding: clamp(1rem, 4vw, 3.5rem);
}

.app-shell::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    content: "";
    background-image:
        linear-gradient(rgba(24, 224, 196, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(24, 224, 196, 0.055) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black 10%, transparent 92%);
}

.app-shell::after {
    position: absolute;
    z-index: -4;
    inset: 0;
    content: "";
    background: radial-gradient(circle at 72% 5%, rgba(24, 224, 196, 0.15), transparent 35%);
    pointer-events: none;
}

.glow {
    position: absolute;
    z-index: -2;
    width: 31rem;
    height: 31rem;
    border-radius: 999px;
    background: #00bfa9;
    filter: blur(110px);
    opacity: 0.11;
    pointer-events: none;
}

.glow-one {
    top: -18rem;
    right: -8rem;
}

.glow-two {
    bottom: -21rem;
    left: -10rem;
}

.code-fragment {
    position: absolute;
    z-index: -1;
    color: rgba(24, 224, 196, 0.23);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    user-select: none;
    animation: drift 8s ease-in-out infinite;
}

.fragment-one {
    top: 11%;
    left: 4%;
}

.fragment-two {
    right: 4%;
    bottom: 11%;
    animation-delay: -3s;
}

.profile-card {
    width: min(100%, 940px);
    overflow: hidden;
    border: 1px solid rgba(24, 224, 196, 0.24);
    border-radius: 1.5rem;
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    animation: card-in 700ms cubic-bezier(.2, .8, .2, 1) both;
}

.terminal-bar {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--line);
}

.window-dots {
    display: flex;
    gap: 0.45rem;
    margin-right: 0.9rem;
}

.window-dot {
    width: 0.62rem;
    height: 0.62rem;
    border-radius: 999px;
}

.terminal-path {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal-clock {
    margin-left: auto;
    padding-left: 1rem;
    color: var(--turquoise);
    font-size: 0.68rem;
    white-space: nowrap;
}

.card-body {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.identity-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.2rem, 3vw, 2.1rem);
    align-items: center;
}

.avatar-frame {
    position: relative;
    width: clamp(6.8rem, 15vw, 9.25rem);
    aspect-ratio: 1;
    border-radius: 1.2rem;
    padding: 0.28rem;
    background: linear-gradient(135deg, var(--turquoise), transparent 55%, #087a70);
    box-shadow: 0 0 38px rgba(24, 224, 196, 0.18);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    border-radius: 0.98rem;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.05);
}

.status-dot {
    position: absolute;
    right: -0.12rem;
    bottom: -0.12rem;
    width: 1.45rem;
    height: 1.45rem;
    border: 0.28rem solid #0a1b19;
    border-radius: 999px;
    background: var(--turquoise);
    box-shadow: 0 0 18px rgba(24, 224, 196, 0.78);
    animation: pulse 2.2s ease-in-out infinite;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin: 0 0 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-name {
    margin: 0;
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.profile-role {
    margin: 0.65rem 0 0;
}

.profile-bio {
    max-width: 40rem;
    margin: 0.85rem 0 0;
    line-height: 1.7;
}

.tab-list {
    display: flex;
    gap: 0.45rem;
    margin-top: 2rem;
    padding: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
}

.tab-button {
    flex: 1;
    min-height: 2.75rem;
    border: 1px solid transparent;
    border-radius: 0.62rem;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.tab-button:hover {
    transform: translateY(-1px);
    border-color: rgba(24, 224, 196, 0.42);
}

.tab-button[aria-selected="true"] {
    border-color: rgba(24, 224, 196, 0.62);
    box-shadow: inset 0 0 24px rgba(24, 224, 196, 0.1);
}

.tab-panel {
    padding-top: 1.55rem;
    animation: panel-in 300ms ease both;
}

.tab-panel[hidden] {
    display: none;
}

.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.section-heading {
    margin: 0;
}

.section-kicker {
    margin: 0;
    white-space: nowrap;
}

.timeline {
    position: relative;
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.timeline::before {
    position: absolute;
    top: 1.1rem;
    bottom: 1.1rem;
    left: 0.46rem;
    width: 1px;
    content: "";
    background: linear-gradient(var(--turquoise), rgba(24, 224, 196, 0.08));
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 1rem minmax(0, 1fr);
    gap: 0.85rem;
}

.timeline-marker {
    z-index: 1;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: 1.3rem;
    border: 3px solid #0a1b19;
    border-radius: 999px;
    background: var(--turquoise);
    box-shadow: 0 0 15px rgba(24, 224, 196, 0.48);
}

.timeline-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(24, 224, 196, 0.16);
    border-radius: 0.85rem;
    transition: border-color 180ms ease, transform 180ms ease;
}

.timeline-card:hover {
    transform: translateX(3px);
    border-color: rgba(24, 224, 196, 0.4);
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.timeline-period,
.timeline-type {
    display: inline-flex;
    margin: 0;
}

.timeline-title {
    margin: 0.45rem 0 0.25rem;
}

.timeline-place,
.timeline-description {
    margin: 0;
}

.timeline-description {
    margin-top: 0.45rem;
    line-height: 1.58;
}

.skills-block {
    margin-top: 1.45rem;
}

.skills-heading {
    margin: 0 0 0.8rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(24, 224, 196, 0.2);
    border-radius: 0.45rem;
    box-shadow: inset 0 0 16px rgba(24, 224, 196, 0.055);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.project-card {
    position: relative;
    min-height: 10.5rem;
    overflow: hidden;
    padding: 1.15rem;
    border: 1px solid rgba(24, 224, 196, 0.16);
    border-radius: 0.9rem;
    transition: transform 200ms ease, border-color 200ms ease;
}

.project-card::after {
    position: absolute;
    right: -2rem;
    bottom: -3rem;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: var(--turquoise);
    content: "";
    filter: blur(45px);
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(24, 224, 196, 0.42);
}

.project-number {
    color: var(--turquoise);
    font-size: 0.68rem;
}

.project-title {
    margin: 0.72rem 0 0.5rem;
}

.project-description {
    margin: 0;
    line-height: 1.55;
}

.contact-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.7rem;
    padding-top: 1.3rem;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.action-button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: 0.52rem;
    border: 1px solid rgba(24, 224, 196, 0.28);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    color: rgb(125, 243, 226);
    background: rgba(24, 224, 196, 0.08);
}

.action-button:hover {
    transform: translateY(-2px);
    border-color: rgba(24, 224, 196, 0.68);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.action-button svg {
    width: 1rem;
    height: 1rem;
    flex: none;
}

.xing-mark {
    overflow: visible;
    fill: currentColor;
    stroke: none;
}

:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 3px;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    50% {
        transform: scale(0.82);
        opacity: 0.72;
    }
}

@keyframes drift {
    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 680px) {
    .app-shell {
        place-items: start center;
        padding: 0.75rem;
    }

    .identity-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .avatar-frame {
        width: 6.9rem;
    }

    .terminal-clock {
        display: none;
    }

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

    .contact-row {
        flex-direction: column;
    }

    .section-intro {
        align-items: start;
        flex-direction: column;
    }

    .section-kicker {
        white-space: normal;
    }

    .timeline-meta {
        align-items: start;
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
