* {
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    background-color: rgb(2,9,31);
    background: radial-gradient(ellipse farthest-side at bottom, rgba(19,14,97,1) 0%, rgba(2,9,31,1) 100%);
    background-attachment: fixed;
    padding: 0px;
    color: #ddd;
    font-family: 'Inconsolata';
    padding-bottom: 50px;
    padding: 5px;
}

body {
    position: relative;
    z-index: 1;
}

#main {
    max-width: 800px;
    margin: auto;
    background-color: transparent;
}

h1 {
    font-size: 72px;
    background: -webkit-linear-gradient(#eee 30%, transparent 120%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    margin-bottom: 20px;
}

.section {
    margin-top: 40px;
}

.section > h2 {
    font-size: 36px;
    border-bottom: #ccc7 1px solid;
}

.experiences {
    position: relative;
    padding: 0px;
}

.experiences::before {
    content: ' ';
    position: absolute;
    left: 0px;
    top: -20px;
    height: calc(100% + 20px);
    width: 1px;
    background-color: #ccc7;
}

.experiences > li {
    list-style: none;
    margin-left: 40px;
    margin-bottom: 20px;
    position: relative;
}

.experiences .card::before {
    content: ' ';
    position: absolute;
    width: 40px;
    height: 1px;
    top: 31.5px;
    left: -40px;
    background-color: #ccc7;
}

.experiences .card::after {
    content: ' ';
    position: absolute;
    left: -48px;
    top: 24px;
    width: 16px;
    height: 16px;
    background-color: #ccc;
    border-radius: 8px;
}

.card {
    /* backdrop-filter: saturate(180%) blur(10px); */
    background-color: #1e1f2977;
    padding: 20px;
    border-radius: 10px;
    transition: scale 0.25s, translate 0.25s, background-color 0.25s;
}

.card > img {
    width: calc(100% + 40px);
    margin: -20px;
    margin-bottom: 10px;
    border-radius: 10px 10px 0px 0px;
}

.title {
    margin: 0px;
}

.subtitle {
    display: flex;
    justify-content: space-between;
    color: #bbb;
}

.subtitle > * {
    margin: 5px 0px;
}

.grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(360px, auto));
}

a {
    color: dodgerblue;
}

a.external::after {
    content: url('assets/open_in_new.svg');
    position: relative;
    left: 5px;
    top: 2px;
}

#stars-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0px;
    left: 0px;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #fff;
    box-shadow: 0px 0px 10px 2px #ddd;
    border-radius: 50%;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s;
}

.fade-in.in-view {
    opacity: 1;
    transform: translateY(0px);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none;
    }
}