:root {
    --bg: #060816;
    --bg-alt: #0d1427;
    --surface: #121a2f;
    --surface-2: #18243c;
    --border: #27324f;
    --text: #f5f7ff;
    --muted: #9da8c8;
    --accent: #7c5cff;
    --accent-2: #3ddcff;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

span,
p,
h1,
h2,
h3,
h4,
h5,
h6 { cursor: default; }

a h2 { cursor: pointer; }

body {
    background:
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.22), transparent 28%),
        linear-gradient(135deg, var(--bg), var(--bg-alt));
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    min-height: 100vh;
    padding-top: 2rem;
    overflow-x: hidden;
}

nav {
    color: var(--text);
    background: linear-gradient(135deg, rgba(10, 14, 28, 0.72), rgba(18, 26, 47, 0.62));
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    width: fit-content;
    height: 4rem;
    display: flex;
    gap: 6rem;
    border-radius: 100rem;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(124, 92, 255, 0.28);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    z-index: 10;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 1.25rem;
}

nav p {
    margin: 0;
    margin-left: 1rem;
    line-height: 4rem;
    font-size: 2rem;
    font-weight: bold;
}

#nav-buttons {
    display: flex;
    gap: 0.8rem;
    margin-right: 1rem;
}

#nav-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease;
}

#nav-buttons a:hover {
    transform: translateY(-2px);
    background: rgba(124, 92, 255, 0.25);
}

#nav-buttons img {
    width: 1.25rem;
    cursor: pointer;
    filter: brightness(0) invert(1);
}

main {
    padding: 3rem 4rem;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

a {
    color: var(--accent-2);
    text-decoration: none;
}

section {
    margin-bottom: 6rem;
}

#intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

#intro > img {
    width: 12rem;
    border-radius: 1.25rem;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.intro-copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 40rem;
}

.intro-copy p {
    margin: 0;
}

#alumni {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.6;
}

.intro-copy > a {
    margin: 0;
}

#lumi-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 4rem;
    aspect-ratio: 1;
    padding: 0.25rem;
    background-color: white;
    border-radius: 1.25rem;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

#lumi {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotateZ(25deg);
}

section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 3rem;
}

#about {
    text-align: center;
}

#about p {
    max-width: 48rem;
    margin: 0 auto 1rem;
}

#projects {
    margin-bottom: 0;
}

#cards {
    min-height: 20rem;
    padding: 2rem 4rem 8rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    height: fit-content;
    overflow: visible;
    position: relative;
}

.card {
    /* position: sticky; */
    top: 8rem;
    display: flex;
    flex-direction: column;
    width: min(100%, 32rem);
    margin: 0 auto;
    min-height: 5rem;
    overflow: hidden;
    text-align: center;
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1rem;
    padding-top: 1.25rem;
    background: linear-gradient(180deg, rgba(18, 26, 47, 0.98), rgba(10, 14, 28, 0.96));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card > a {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.card h2 {
    color: var(--text);
    margin: 0 0 0.25rem;
}

.card h3 {
    margin: 0.25rem 0 0.75rem;
    line-height: 1.4;
}

.card p {
    margin: 0;
}

.card img {
    margin: auto;
    width: 80%;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

#resume {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-style: none;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 1.2rem;
    color: white;
    width: fit-content;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 25px rgba(61, 220, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(61, 220, 255, 0.3);
}

@media (max-width: 768px) {
    body {
        padding-top: 6rem;
    }

    nav {
        width: calc(100% - 2rem);
        max-width: 30rem;
        gap: 1rem;
        padding: 0 1rem;
    }

    nav p {
        margin-left: 0;
        font-size: 1.5rem;
    }

    #nav-buttons {
        margin-right: 0;
    }

    main {
        padding: 2rem 1.5rem 4rem;
    }

    #intro {
        display: grid;
        grid-template-columns: min(7rem, 28vw) minmax(0, 1fr);
        align-items: center;
        column-gap: 1rem;
        row-gap: 1rem;
    }

    .intro-copy {
        display: contents;
    }

    #intro > img {
        grid-column: 1;
        grid-row: 1;
        width: min(7rem, 28vw);
    }

    .intro-copy h1 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        font-size: 3rem;
    }

    .intro-copy > p:first-of-type,
    #alumni,
    .intro-copy > a {
        grid-column: 1 / -1;
    }

    h1 {
        font-size: 3rem;
    }

    #cards {
        padding: 2rem 0 4rem;
    }
}