:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --accent-purple: #7e5bef;
    /* --accent-purple: #9b59b6;  tried this, too washed out ,retry with new changes in future*/
    --accent-blue: #0ea5e9;
    --glow-purple: rgba(126, 91, 239, 0.15);
    --glow-blue: rgba(14, 165, 233, 0.1);
    --ff-sans: 'Space Grotesk', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* firefox */
    -ms-overflow-style: none;
    /* old edge */
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--ff-sans);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all .3s ease;
}

ul {
    list-style: none;
}


/* ---- scroll reveal stuff ---- */

.hide-me {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s cubic-bezier(.16, 1, .3, 1);
}

.show-me {
    opacity: 1;
    transform: translateY(0);
}


/* ---- dot grid bg ---- */
/* stole this pattern from linear.app lol */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

/* subtle purple glow at top center */
body::after {
    content: "";
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 60vh;
    background: radial-gradient(ellipse, rgba(126, 91, 239, .12) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}


/* ---- navbar ---- */

.top-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 100;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: 1px;
    /* background: rgba(5,5,5,.6); */
    /* ^ looked weird with the blur, removed for now */
}

.nav-links-wrap {
    display: flex;
    gap: 3rem;
}

.nav-links-wrap a:hover {
    color: var(--accent-purple);
}


/* ---- left sidebar social icons ---- */

.left-socials {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 100;
    opacity: .7;
}

.left-socials a svg {
    width: 20px;
    height: 20px;
    transition: transform .3s cubic-bezier(.16, 1, .3, 1), fill .3s;
}

.left-socials a:hover {
    opacity: 1;
    color: var(--accent-purple);
}

.left-socials a:hover svg {
    transform: scale(1.25);
}


/* ---- main content wrapper ---- */

.page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 100px;
}

.big-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
}


/* ---- hero ---- */

.hero-part {
    position: relative;
    padding-top: 15vh;
    min-height: 100vh;
}

.hero-box {
    margin-bottom: 5rem;
}

.hi-text,
.lil-an {
    color: var(--accent-purple);
    font-family: var(--ff-mono);
    font-size: 1.2rem;
}

.hi-text {
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.lil-an {
    margin-bottom: .5rem;
}

.huge-name {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-right-text {
    align-self: flex-end;
    text-align: right;
    margin-top: -10vh;
}

.sub-huge-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: rgba(255, 255, 255, .9);
}


/* ---- two-column layout for sections ---- */

.half-n-half {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
}

.lefty-title {
    flex: 0 0 auto;
    width: 250px;
    position: sticky;
    top: 30vh;
}

.side-text-huge {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: lowercase;
    letter-spacing: -1px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* lil purple bar above section titles */
.side-text-huge::before {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--glow-purple);
}

.righty-stuff {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2rem;
}


/* ---- glassmorphism cards ---- */

.box-with-brackets {
    position: relative;
    background: rgba(255, 255, 255, .02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border: 1px dashed rgba(255, 255, 255, .1);
    transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .3s;
}

.box-with-brackets:hover {
    background: rgba(255, 255, 255, .05);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, .2);
}

.box-with-brackets h3 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: .5rem;
}

.box-sub {
    color: var(--text-muted);
    font-size: .95rem;
    margin-bottom: 1.5rem;
}

.box-p {
    color: #ccc;
    font-size: 1.05rem;
}


/* ---- corner bracket thingies ---- */

.lil-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .5);
    transition: border-color .3s, filter .3s;
}

/* positioning */
.top-l {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.top-r {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.bot-l {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.bot-r {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

/* the zoom-in focus animation when card enters viewport */
@keyframes bracketFocus {
    0% {
        border-color: rgba(255, 255, 255, 0);
        filter: drop-shadow(0 0 0px transparent);
        transform: scale(3);
    }

    50% {
        border-color: var(--accent-purple);
        filter: drop-shadow(0 0 8px var(--accent-purple));
        transform: scale(1);
    }

    100% {
        border-color: var(--accent-purple);
        filter: drop-shadow(0 0 0px transparent);
        transform: scale(1);
    }
}

.box-with-brackets:hover .lil-corner {
    border-color: var(--accent-purple);
}

.show-me .lil-corner {
    animation: bracketFocus .6s ease-out forwards;
}


/* ---- experience card internals ---- */

.box-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.weird-date {
    font-family: var(--ff-mono);
    font-size: .85rem;
    color: var(--accent-purple);
}

.bullet-points {
    color: #ccc;
    padding-left: 1.2rem;
}

.bullet-points li {
    margin-bottom: .8rem;
    position: relative;
}

.bullet-points li::before {
    content: '-';
    position: absolute;
    left: -1.2rem;
    color: var(--accent-purple);
    font-weight: bold;
}

/* inline text links */
.magic-link-inline {
    color: var(--accent-purple);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.magic-link-inline:hover {
    color: #fff;
}


/* ---- project cards grid ---- */

.box-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.magic-link {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent-purple);
}

.mini-tags {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    font-family: var(--ff-mono);
    font-size: .8rem;
    color: var(--text-muted);
}


/* ---- footer ---- */

.site-footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-family: var(--ff-mono);
    font-size: .75rem;
    letter-spacing: 1px;
    opacity: .5;
}


/* ---- responsive ---- */
/* TODO: test on actual phone, might need to tweak padding more */

@media (max-width: 1024px) {
    .page-wrap {
        padding: 0 50px;
    }

    .half-n-half {
        flex-direction: column;
        gap: 2rem;
    }

    .side-text-huge {
        font-size: 3rem;
        transform: none;
    }

    .lefty-title {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-nav-bar {
        justify-content: center;
        padding: 1.5rem 2rem;
    }

    .left-socials {
        display: none;
    }

    .page-wrap {
        padding: 0 20px;
    }

    .box-grid {
        grid-template-columns: 1fr;
    }

    .hero-right-text {
        align-self: flex-start;
        text-align: left;
        margin-top: 3rem;
    }
}
