/* Vars */

:root {
  --primary-color: #393E46;
  --secondary-color: #222831;
  --font-heading: 'Kanit';
  --font-body: 'Poiret One';
}

/* General */

* {
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

nav {
    width: 100%;
    height: 10vh;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    font-family: var(--font-body);
    font-weight: bold;
    letter-spacing: 5px;
    z-index: 1;
    transition: all 1s;
    position: absolute;
    bottom: 0vh;
    overflow: hidden;
}

.fixed-nav {
    position: fixed;
    top: 0;
    border-radius: 0 0 15px 15px;
}

/* Nav */

.nav-item>a, .nav-item>a>img {
    background-color: transparent;
}

li.nav-item {
    background-color: transparent;
    color: black;
    list-style: none;
    padding: 0.5rem;
    transition: all 0.5s;
    cursor: pointer;
}

li.nav-item:hover {
    transform: translateY(-0.15rem);
    letter-spacing: 7px;
}

/* Landing */

#landing {
    background-color: var(--secondary-color);
    height: 90vh;
}

#landing h1 {
    font-family: var(--font-body);
    color: white;
    letter-spacing: 4px;
    height: 2rem;
    transition: all 1.5s;
}

#title {
    margin-top: 2rem;
    transform: translateX(-100px);
    opacity: 0;
    overflow: visible;
}

#title:hover {
    letter-spacing: 8px;
}

.fa-brands, .fa-solid {
    color: white;
    padding: 1rem;
    transition: all 0.5s;
}

.fa-brands:hover, .fa-solid:hover {
    font-size: 3em;
}

.logoContainer {
    text-align: center;
    margin: 2rem;
    transform: translateY(-50px);
    opacity: 0;
    transition: all 2s;
}

.logoContainer svg {
    width: 15vw;
    stroke: white;
    fill: white;
    transition: filter 1s, transform 0.5s;
}

.logoContainer:hover svg {
    filter: drop-shadow(0 0 1.5px rgb(255, 230, 0));
    transform: rotate3d(1, -1, 0, -25deg);
}

.nav-item>a>img {
    width: 50px;
}

.socialMediaIcons>a {
    margin: 1.5rem;
    transition: all 2s;
    overflow: visible;
}

.socialMediaIcons {
    width: 80%;
    height: 15%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    transform: translateY(30px);
    opacity: 0;
    transition: all 2s;
    overflow: hidden;
}

.socialMediaIcons img {
    width: 2em;
    padding: 1rem;
    transition: all 0.5s;
}

.socialMediaIcons img:hover {
    width: 3em;
}

/* About Me Section */

#aboutme {
    background-color: var(--primary-color);
    height: 100vh;
    z-index: 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.aboutMeImage {
    width: 35vw;
    background-color: #464f5e;
    height: 100vh;
    transition: all 1s;
    -webkit-mask-image: linear-gradient(to right, white 0%, transparent);
    mask-image: linear-gradient(to left, white 0%, transparent);
    overflow: hidden;
}

.aboutMeImage img {
    width: 100vh;
    height: 100vh;
    object-fit: cover;
    object-position: -27rem;
}

.aboutMeText {
    width: 50vw;
    margin-left: 2rem;
    transition: all 1s;
    margin-top: 3.5rem;
}

.aboutMeText h1 {
    font-family: var(--font-heading);
    color: white;
    letter-spacing: 4px;
    text-align: center;
    font-size: 2.5vw;
    font-weight: 500;
    text-transform: uppercase;
}

.aboutMeText h3 {
    font-family: var(--font-body);
    color: white;
    letter-spacing: 3px;
    margin-top: 2rem;
    font-size: 1.5vw;
    text-align: center;
}

.aboutMeSkills {
    margin-top: 2rem;
    text-align: center;
}

.aboutMeSkills .skills-row {
    margin-top: 1rem;
}

.aboutMeSkills .skills-row img {
    scale: 0.8
}

.aboutMeSkills p {
    margin-bottom: 1rem;
    font-family: var(--font-body);
    color: white;
}

/* Project Section: */

#projects {
    background-color: var(--secondary-color);
    color: white;
}

.projects-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    grid-template-rows: 1fr 1fr 1fr; 
    gap: 1em 1em; 
    grid-template-areas: 
      ". ."
      ". ."
      ". ."; 
    width: 80%; 
    height: 80%;
    margin-top: 3rem;
}

.project-card {
    background: var(--primary-color);
    padding: 10px;
    display: flex;
    border: 1px solid white;
    align-items: center;
    justify-content: center;
    transition: all 2s;
}

.project-card:nth-child(2n) {
    border-radius: 0 10px 0 10px;
    opacity: 0;
    transform: translateX(500px);
}

.project-card:nth-child(2n + 1) {
    border-radius: 10px 0 10px 0;
    opacity: 0;
    transform: translateX(-500px);
}

.project-info {
    margin-left: 2rem;
    width: 60%;
}

.project-image {
    width: 128px;
    height: 128px;
}

.project-image-box {
    
}

.project-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

.project-description {
    font-family: var(--font-body);
    font-weight: 600;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.project-info>hr {
    color: white;
    width: 85%;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
    -webkit-mask-image: linear-gradient(to right, white 30%, transparent);
    mask-image: linear-gradient(to right, white 30%, transparent);
}

.project-link {
    text-decoration: underline;
    font-family: var(--font-body);
    font-weight: 600;
}

/* Animations */

.animate-on-scroll {
    opacity: 0;
    transition: all 1s;
}

.animate-on-scroll[data-animation="left"] {
    transform: translateX(-100px);
}

.animate-on-scroll[data-animation="right"] {
    transform: translateX(100px);
}

.visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* For mobile phones: */

@media only screen and (max-width: 768px) {
    nav {
        letter-spacing: 2px;
        bottom: 10vh;
    }    
    li.nav-item:hover {
        letter-spacing: 4px;
    }
    #landing {
        height: 80vh;
    }
    .socialMediaIcons>a {
        margin: 0.5rem;
    }
}