:root{
    --blue: #3AD8FF;
    --pink: #B026FF;
    --pinkhsl: 278.2 100% 57.5%;
    --teal: #00709F;
    --purple: #4B006E;
    --orange: #FF8C00;

    --white: #fff;
    --darkblue: #061F36;
    --darkblue2: #111E33;

    /* --background: 240 13.73% 10%; */
    --foreground: 229.76 31.78% 74.71%;
    --muted: 232.5 15.44% 18.32%;
    --muted-foreground: 233.79 11.37% 50%;
    --popover: 234.55 17.46% 12.35%;
    --popover-foreground: 234 12.4% 52.55%;
    --card: 234.55 17.46% 12.35%;
    --card-foreground: 229.76 31.78% 74.71%;
    --border: 232.5 15.38% 30.59%;
    --input: 232 20% 14.71%;
    --primary: 207.43 68.63% 90%;
    --primary-foreground: 0 0% 20%;
    --secondary: 225.45 71.22% 72.75%;
    --secondary-foreground: 234.55 17.46% 12.35%;
    --tertiary: 0 0% 96.1%;
    --tertiary-foreground: 0 0% 9%;
    --accent: 234.55 17.83% 9.47%;
    --accent-foreground: 0 0% 82.75%;
    --destructive: 1.58 47.5% 52.94%;
    --destructive-foreground: 210 40% 98.04%;
    --ring: 225.45 71.22% 72.75%;
    --radius:0.5rem;

/* custom colors */
    --bg-dark: hsl(230 10% 5%);
    --bg: hsl(240 15% 10%);
    --bg-light: hsl(230 17.5% 12.5%);
    --text: hsl(207.5 70% 90%);
    --text-muted: hsl(230 30% 75%);
    --border: hsl(230 15% 30%);

/* custom sizes */
    --num-cards-vertical: 2;
    --card-size: 450px;
    --single-card-size-max: 764px;

/* custom font size */
    --text-xs: clamp(0.75rem, 0.8vw + 0.5rem, 0.85rem);
    --text-sm: clamp(0.875rem, 1vw + 0.5rem, 1rem);
    --text-md: clamp(1rem, 1.2vw + 0.6rem, 1.25rem);
    --text-lg: clamp(1.25rem, 2vw + 0.5rem, 2rem);
    --text-xl: clamp(2rem, 5vw + 0.5rem, 4rem);
    --text-xxl: clamp(2.5rem, 6vw + 0.5rem, 6rem);
}

/* *{
    border: 1px solid rgba(127, 0, 127, 0.5)
} */

html, body{
    scroll-behavior: smooth;
    scroll-padding-top: calc(50px + 2.5rem);
    overflow-x: hidden;
    box-sizing: border-box;
    background-attachment: fixed;
}
body{
    width: 100%;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 Arial, Helvetica, sans-serif;
    font: 16px/1.5 'IBM Plex Sans', sans-serif;
    margin: 0;
    padding: 0;
    /* padding-top: calc(50px + 2.5rem); */
}
a{
    color: var(--text);
    text-decoration: none;
}

/* #region Navigation */
nav{
    background-color: transparent;
    backdrop-filter: blur(32px);
    border: 1px solid var(--border);
    border-radius: 8px;
    isolation: isolate;
    position: fixed;
    width: calc(100% - 2px);
    z-index: 10;
    
    max-width: calc(var(--card-size) * 3 + 3rem + 80px - 2px);
    left: max(calc((100% - (var(--card-size) * 3 + 3rem + 80px - 2px)) / 2 - 1px), 0px);

    height: 50px;
    top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
nav ul{
    top: 0;
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
nav li{
    display: flex;
}
nav a{
    display: flex;
    padding: 13px 1rem;
}
nav a:hover{
    background-color: rgba(255, 255, 255, 0.1);
}
#overlay{
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    inset: 0;
    z-index: 9;
    display: none;
}

/* #region hamburger menu */
#menu{
    height:60px;
    width:30px;
    float:right;
    transform:translateX(-30px);
    z-index: 12;
    position: fixed;
    top:13px;
    right:0;
    cursor: pointer;

    display: none;
}
#menu span{
    position:absolute;
    background:var(--text);
    display:block;
    top:27px;
    height:3px;
    width:30px;
    transition:0.5s;
}
#menu span:nth-child(1){
    transform:translateY(-9px);
}
#menu span:nth-child(3){
    transform:translateY(9px);
}
nav.show ~ #menu span:nth-child(1){
    transform:rotate(45deg);
}
nav.show ~ #menu span:nth-child(3){
    transform:rotate(-45deg);
}
nav.show ~ #menu span:nth-child(2){
    background:rgba(0,0,0,0);
}
/* #endregion */

/* #endregion */

/* #region sections */
section{
    max-width: calc(var(--card-size) * 3 + 3rem);
    margin: 0 auto;
}
.heading{
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding: 0rem 1rem;
    font-size: var(--text-lg);
    width: 100%;
    text-align: center;
}
.mono{
    font-family: 'JetBrains Mono', monospace;
}
#launchpad-projects{
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    justify-content: flex-start;
}
/* #region hero */
#hero{
    position: relative;
    padding-top: calc(2rem + 52px);
}
#hero .card-container{
    width: 100%;
    overflow: auto hidden;
    scroll-snap-type: x mandatory;
    display: inline-flex;
    padding: 1rem 0;
    scroll-padding: 0 20%;
    overscroll-behavior-x: contain;

    position: absolute;
    bottom: 8rem;
}
#hero .card{
    scroll-snap-align: center;
    width: 80vw;
    height: 80vw;
    max-width: min(80vh, calc(2* --card-size));
    max-height: min(80vh, calc(2* --card-size));
    flex: 0 0 auto;
    margin: 0 2.5%;
    box-sizing: border-box;

    padding: 0;
    overflow: hidden;
}
#hero .card img{
    filter: blur(4px);
    z-index: 0;
}
#hero .card a, #hero .card span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: var(--text-lg);
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}
#hero .card-container::before, #hero .card-container::after{
    content: '';
    flex: 0 0 10%;
    min-width: 10%;
}

#hero .card-container::-webkit-scrollbar{
    display: none;
}
#hero > div{
    margin: auto;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}
#hero .heading{
    font-size: var(--text-xxl);
    margin-bottom: 0;
}
#hero p{
    text-align: center;
}
/* #endregion */
/* #endregion */

/* #region cards */
.card{
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    transition: .2s ease;
    flex: 1 1 var(--card-size);
    max-width: var(--card-size);
    max-height: var(--card-size);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
}
.card:hover{
    background: hsl(230 17.5% 15%);
    box-shadow: 0 0px 12px rgba(0, 0, 0, 0.5);
}
.card-title{
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.card-title::after{
    content: "";
    flex: 1 0 20px;
    height: 1px;
    margin-top: 12px;
    background: linear-gradient(
        90deg, 
        transparent 0%,
        var(--border) max(5%, 10px),
        var(--border) calc(100% - max(5%, 10px)),
        transparent 100%
    );
}
.title-right{
    flex-shrink: 0;
    white-space: nowrap;
    order: 2;
}
.card-body{
    display: flex;
    color: var(--text-muted);
    font-size: var(--text-xs);
    flex-grow: 1;
}
.card-body div p{
    margin: 0;
}
.card-body > * > *:first-child{
    margin-top: 0.5rem;
}
.card-body-right{
    margin-left: auto;
    min-height: 100%;
    display: flex;
}
/* #endregion */

/* #region buttons */
.button {
    background-color: transparent;
    color: var(--text);
    font-size: var(--text-xs);
    border: 1px solid;
    border-radius: var(--radius);
    padding: 8px 32px;
    transition: color .3s ease-out;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.download{
    align-self: flex-end;
    margin-right: -8px;
    margin-bottom: -8px;
    margin-top: 0.5rem;
    z-index: 1;
}
.download:hover {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.download::before{
    content: '';
    position: absolute;
    left: 0;
    background: var(--darkblue);
    z-index: -1;
    width: 300px;
    height: 100px;
    transform: translate(-100%, -50%);
    transition: transform 0.3s ease-out;
    clip-path: polygon(
        0% 0%,
        100% 0%,
        100% 0px,
        200px 100%,
        0% 100%
    );
}
.download:hover::before{
    transform: translate(-20%, -50%);
}

.contact-buttons{
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: var(--single-card-size-max);
}
.contact-buttons > .button{
    border-radius: 100px;
}
.contact{
    padding-left: 2rem;
    position: relative;
}
/* #endregion */

/* Footer */
footer{
    text-align: center;
    align-self: center;
    width: 100%;
}

/* #region Media Queries */
/* 2 cards per row */
@media (max-width: calc(450px * 3 + 6rem - 1px)){
    section{
        max-width: calc(450px * 2 + 1.5rem + 0px)
    }
}
/* 1 card per row */
@media (max-width: calc(450px * 2 + 4.5rem - 1px)){
    section{
        max-width: calc(100% - 3rem)
    }
    #launchpad-projects{
        justify-content: center;
    }
    #launchpad-projects .card, #launchpad-projects .year-header{
        max-width: var(--single-card-size-max);
    }
    /* small navbar */
    #menu{
        display: block;
    }
    nav.show{
        backdrop-filter: none;
        border: none;
    }
    nav ul{
        flex-direction: column;
        position: fixed;
        left: auto;
        width: clamp(50%, 100%, 85%);
        right: -100%;
        height: 100vh;
        z-index: 15;
        border-left: 1px solid var(--border);
        transition: right 0.3s ease-out;
    }
    nav.show ul{
        right: 0;
        backdrop-filter: blur(32px);
    }
    nav.show ~ #overlay{
        display: block;
    }
    nav ul li{
        display: block;
        transform: translateY(60px);
        width: 100%;
    }
}
/* #endregion */