/* RESUME CARD */
.resume {
    padding: 100px 6vw;
    max-width: 1300px;
    margin: 0 auto;
}

.resume-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.resume-title {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 7rem);
    line-height: 0.95;
}

.resume-title span {
    color: var(--accent);
}

.resume-sub {
    margin-top: 22px;
    max-width: 420px;
    color: var(--muted);
    line-height: 1.6;
}

/* card colours: change these three to restyle the metal.
   Gold version:  --metal-dark: #1c1608;  --metal-mid: #6e5720;  --metal-light: #d9b45a;  */
.id-card {
    --metal-dark: #1a0b05;
    --metal-mid: #7a3412;
    --metal-light: #ff9a5c;

    --rx: 0deg;
    --ry: 0deg;
    --px: 0.5;
    --py: 0.5;

    position: relative;
    width: min(320px, 78vw);
    aspect-ratio: 5 / 8;
    margin: 0 auto;
    padding: 20px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(115deg,
            var(--metal-dark) 0%,
            var(--metal-mid) 22%,
            var(--metal-light) 38%,
            var(--metal-mid) 52%,
            var(--metal-dark) 68%,
            var(--metal-mid) 82%,
            var(--metal-dark) 100%);
    background-size: 260% 260%;
    background-position: calc(var(--px) * 100%) calc(var(--py) * 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 90, 31, 0.18);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

.id-card.is-tilting {
    transition: transform 0.08s linear;
}

/* moving light that follows the cursor */
.id-sheen {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at calc(var(--px) * 100%) calc(var(--py) * 100%), rgba(255, 255, 255, 0.28), transparent 45%);
    mix-blend-mode: soft-light;
}

.id-top,
.id-bottom {
    position: relative;
    z-index: 1;
}

.id-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.id-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0.9;
}

.id-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.id-sub {
    margin-top: 4px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

.id-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 26px;
}

.id-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.id-value {
    margin-top: 2px;
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* download button (sits where the fingerprint is in the reference) */
.id-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(20, 20, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    backdrop-filter: blur(6px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.id-btn:hover,
.id-btn:focus-visible {
    background: var(--accent);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(255, 90, 31, 0.7);
    outline: none;
}

.id-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.id-btn svg {
    grid-area: 1 / 1;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.id-btn:hover .icon-dl {
    transform: translateY(2px);
}

.id-btn .icon-ok {
    opacity: 0;
    transform: scale(0.6);
}

.id-btn.done .icon-dl {
    opacity: 0;
    transform: scale(0.6);
}

.id-btn.done .icon-ok {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 800px) {
    .resume-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .id-card,
    .id-card.is-tilting {
        transition: none;
    }
}
