* {
    font-family: 'Geist', sans-serif;
}

body {
    font-weight: 200;
    background: #04040f;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-track { background: #04040f; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* Background orb blobs — neutral, no color tint */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.025);
    top: -150px;
    left: -100px;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.018);
    bottom: 10%;
    right: -80px;
}
.orb-3 {
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.015);
    top: 50%;
    left: 45%;
}

/* Ensure content sits above orbs */
section, footer, header, nav {
    position: relative;
    z-index: 1;
}

/* Glass card */
.glass {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Timeline gradient line */
.timeline-line {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15), transparent);
    width: 1px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Timeline dot pulse — neutral white */
@keyframes subtlePulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50%       { opacity: 1;   box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.2); }
}

.timeline-dot {
    animation: subtlePulse 4s ease-in-out infinite;
}

.timeline-dot:hover {
    animation: none;
    opacity: 1;
}


/* Animation delays */
.delay-200  { animation-delay: 0.2s; }
.delay-400  { animation-delay: 0.4s; }
.delay-600  { animation-delay: 0.6s; }
.delay-800  { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }

/* Slide-up animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

/* Avatar gradient ring — white/silver */
.avatar-ring {
    background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.15), rgba(255,255,255,0.5));
    padding: 2px;
    border-radius: 9999px;
}

.avatar-ring-inner {
    background: #04040f;
    border-radius: 9999px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Accent gradient text — white/silver */
.accent-gradient {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Magnifying Glass === */
#mag-lens {
    position: fixed;
    top: 0; left: 0;
    width: 72px; height: 72px;
    border-radius: 50%;
    overflow: hidden;
    pointer-events: none;
    z-index: 9999;
    border: 1.5px solid rgba(255, 255, 255, 0.26);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.22),
        0 12px 40px rgba(0, 0, 0, 0.65),
        inset 0 1px 2px rgba(255, 255, 255, 0.14);
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: transform;
}

#mag-lens.visible { opacity: 1; }

/* Glass glare overlay sits on top of the zoomed content */
#mag-lens::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at 34% 27%,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        transparent 65%
    );
    pointer-events: none;
    z-index: 10;
}

/* Handle */
#mag-handle {
    position: fixed;
    top: 0; left: 0;
    width: 3px; height: 46px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.36),
        rgba(255, 255, 255, 0.06)
    );
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: transform;
}

#mag-handle.visible { opacity: 1; }

/* Cloned page content inside the lens */
#mag-clone {
    position: absolute;
    top: 0; left: 0;
    pointer-events: none;
}

[x-cloak] { display: none !important; }

/* Vinyl record player (adapted from codepen.io/mydnyght/pen/mBJVBX) */
.vinyl-player {
    --size: 56px;
    position: relative;
    flex-shrink: 0;
    width: calc(var(--size) * 1.5);
    height: var(--size);
}

.vinyl-sleeve {
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 1;
    width: var(--size);
    overflow: hidden;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.6),
                inset 0 0 10px 5px rgba(255, 255, 255, 0.2),
                inset 0 0 4px 2px rgba(0, 0, 0, 0.2);
}
/* Soft sheen over the sleeve instead of the pen's texture images */
.vinyl-sleeve::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
    pointer-events: none;
}

.vinyl {
    position: absolute;
    top: 5%;
    left: 5%;
    width: calc(var(--size) * 0.9);
    height: calc(var(--size) * 0.9);
    /* Slides out of the sleeve once on load, like the original pen */
    animation: vinyl-out 1s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

.vinyl-disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        linear-gradient(135deg, transparent 35%, rgba(255, 255, 255, 0.12) 50%, transparent 65%),
        repeating-radial-gradient(circle, #1a1a1f 0 1px, #2c2c33 1px 2px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 12px 2px rgba(0, 0, 0, 0.6);
    animation: vinyl-spin 2s linear infinite;
}

.vinyl-label {
    position: absolute;
    top: 33%;
    left: 33%;
    width: 34%;
    height: 34%;
    border-radius: 50%;
    background: #444 center / cover;
    box-shadow: inset 0 0 0 2px rgba(150, 150, 150, 0.5);
}
/* Spindle hole */
.vinyl-label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    margin: -1.5px 0 0 -1.5px;
    border-radius: 50%;
    background: #04040f;
}

@keyframes vinyl-out {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}
@keyframes vinyl-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .vinyl { animation: none; transform: translateX(50%); }
    .vinyl-disc { animation: none; }
}

/* Personal Work project cards */
.project-card {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.8s, border-color 0.8s, box-shadow 0.8s;
}
.project-card:hover { transform: translateY(-4px); }

/* App icon on a blurred copy of itself, so square icons never get cropped */
.project-hero {
    position: relative;
    height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
/* Pre-blurred 96px image (assets/images/opt/glow) stretched to fill: no CSS filter,
   which Safari clips to a hard-edged box and which is slow on phones */
.project-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.project-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(4, 4, 15, 0.6));
}
.project-icon {
    position: relative;
    z-index: 1;
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: 22%;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-icon { transform: scale(1.06); }

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgb(156, 163, 175);
}
.project-status .dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
}

.project-tag {
    padding: 0.2rem 0.6rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.7rem;
    font-weight: 300;
    color: rgb(209, 213, 219);
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}
.store-btn svg { width: 0.9rem; height: 0.9rem; }
.store-btn:hover {
    background: #fff;
    border-color: #fff;
    color: #04040f;
}

/* Employment history cards (share .project-card / .project-tag / .store-btn) */
.company-logo {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 22%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; }

.work-shot {
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: border-color 0.5s, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-shot:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }
.work-shot img {
    width: 6rem;
    height: 4rem;
    object-fit: cover;
    object-position: top;
    opacity: 0.8;
    transition: opacity 0.6s, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.work-shot:hover img { opacity: 1; transform: scale(1.06); }
@media (min-width: 768px) {
    .work-shot img { width: 8rem; height: 5rem; }
}

/* Soft colour wash from the company logo at the top of each work card */
.work-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 9rem;
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
    mask-image: linear-gradient(to bottom, #000, transparent);
}
.work-glow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Hero */
.hero-title {
    background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.15));
    padding-bottom: 0.08em; /* keep descenders inside the clipped gradient */
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.4s ease;
}
.hero-btn svg { width: 1.05rem; height: 1.05rem; }
.hero-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}
.hero-btn-primary {
    background: #fff;
    border-color: #fff;
    color: #04040f;
    font-weight: 400;
}
.hero-btn-primary:hover {
    background: rgba(255, 255, 255, 0.85);
    color: #04040f;
    box-shadow: 0 0 32px rgba(255, 255, 255, 0.25);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    margin-left: -1rem;
    width: 2rem;
    height: 2rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.4s;
}
.scroll-hint:hover { color: rgba(255, 255, 255, 0.8); }
.scroll-hint svg { width: 100%; height: 100%; animation: scroll-bob 2.4s ease-in-out infinite; }
@keyframes scroll-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
    .scroll-hint svg { animation: none; }
}

/* Hero holds the fixed Resume button; every section gets its own z-index:1
   stacking context, so lift the hero above the ones that scroll under it */
#home { z-index: 50; }

/* Skills cards (tags reuse .project-tag) */
.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 22%;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.75);
}
.skill-icon svg { width: 1.1rem; height: 1.1rem; }
