@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300;400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
  }

  :root {
    --background-color: #1c1c22;
    --light-background-color: #2a2a30;
    --background-highlight-color: #48484d;
    --text-color: #ffffff;
    --sub-text-color: #aeb1bb;
    --gray-text-color: #6b6b6b;
    --light-pink: #ff92bd;
    --highlight-color: #ffbc6f;
  }

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: var(--text-color);
    background-color: var(--background-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.spacer {
    aspect-ratio: 960/150;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.curve-bg {
    background-image: url(assets/layered-waves-haikei.svg);
}

footer {
    margin-bottom: 10px;
    margin-top: auto;
    font-size: 10px;
    color: var(--gray-text-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5% 0px 5%;
    background-color: var(--light-pink);
    width: 100vw;
}

.logo {
    font-weight: 700;
    font-size: 24px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    display: inline-block;
    padding: 0px 20px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
}

.body-text {
    width: max(600px, 40%);
    height: max(200px, 40%);
    margin: auto;
    margin-top: 1.5vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.card-visual {
    padding: 2%;
    margin: 10px;
    background-color: var(--light-background-color);
    outline: 2px solid var(--background-highlight-color);
    border-radius: 10px;
    display: grid;
    position: relative;
}

.about-me-text {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 70%;
}

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --transparent-amount {
    syntax: "<percentage>";
    initial-value: 50%;
    inherits: false;
}

.card-visual::after , .card-visual::before {
    content: '';
    position: absolute;
    height: 105%;
    width: 102%;
    background-image: conic-gradient(from var(--angle), transparent var(--transparent-amount), var(--light-pink));
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: -1;
    opacity: 0.5;
    border-radius: 15px;
    animation: 5s spin linear 1 forwards;
}

.card-visual::before {
    filter: blur(0.5rem);
    background-color: var(--background-highlight-color);
    opacity: 0.3;
}

@keyframes spin{
    from {
        --angle: 0deg;
        --transparent-amount: 100%;
    }
    25% {
        --transparent-amount: 50%;
    }
    to {
        --angle: 360deg;
        --transparent-amount: 100%;
    }
}

.about-me-text-title {
    grid-area: 1 / 1 / 2 / 2;
}

.about-me-text-paragraph {
    grid-area: 2 / 1 / 3 / 3;
    font-size: 20px;
    color: var(--sub-text-color);
}

.body-text .contact-links {
    padding: 0px;
    grid-area: 1 / 2 / 2 / 3;
}

.contact-links-list {
    margin: 0px;
    padding: 0px;
    height: 100%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.contact-links-list li {
    display: inline-block;
    padding: 0px 5px;
}

.contact-links-list li i {
    font-size: 50px;
    cursor: pointer;
    color: var(--text-color);
}

@media (height <= 460px) {
    footer {
        visibility: hidden;
    }
}

.contact-links-list li a i {
    transition: all 0.3s ease 0s;
}

.contact-links-list li a i:hover {
    color: #ff92bd;
    transform: translateY(-10px);
}

.nav-links li a {
    position: relative;
    padding: 0 5px;
}

.nav-links li a:after {
    content: '';
    position: absolute;
    background-color: var(--text-color);
    height: 2px;
    width: 100%;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
    transform: scaleX(0);
}

.nav-links li a:hover:after {
    transform: scaleX(1);
}

.nav-links li a.nav-selected:after {
    transform: scaleX(1);
    height: 3px;
}

.game-popout {
    position: absolute;
    bottom: 0;
    right: -210px;
    cursor: pointer;
    padding-left: 40px;
    user-select: none;
}

#game-score-text {
    text-align: center;
    margin-bottom: 10px;
}

#game-background {
    position: absolute;
    bottom: 0;
    right: -205px;
}

.project-card-container {
    grid-template-columns: 50% 50%;
    grid-template-rows: 50% 50%;
    text-align: center;
}

.project-card {
    display: flex;
    align-items: center;
    justify-content: center;
}