@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
    --dark: #262322;
    --accent: #dd2d4a;
    --accent-dark: hsl(350, 72%, 32%);
    --accent-opaque: rgba(221, 45, 74, .4);
    --light: #f4f4f4;
    --medium: hsl(0, 0%, 90%);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

html {
    font-family: 'Segoe UI', Arial, Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 400;
    color: var(--dark);
    font-size: 16px;
    /* scroll-behavior: smooth; */
}

body {
    min-width: 360px;
    max-width: 100vw;
    height: 100vh;
    position: relative;
    z-index: 0;    
}

.progressBar {
    position: fixed;
    height: 8px;
    width: 0px;
    top: -8px;
    background-color: #DD2D4A;
    z-index: 10;
    transition: all ease;
}

.navbar {
    width: 100%;
    height: 56px;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10vw;
    z-index: 1;
    background-color: white;
}

ul {
    list-style: none;
}

.menu {
    font-size: .8rem;
    width: 100%;
    height: 300px;
    text-align: center;
    color: white;
    background: black;
    position: absolute;
    top: -300px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: top .2s ease;
}

.menu.open {
    top: 0;
}

.menu-item {
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(255,255,255, 0);
    cursor: pointer;
    transition: color .2s ease;
    padding: .5rem;
}

.menu.open .menu-item:hover, 
.close-btn:hover,
.menu.open .menu-item:active, 
.close-btn:active,
.project-link:hover  {
    color: var(--accent);
    transition: color linear;
}

.menu.open .menu-item {
    color: rgba(255,255,255, 100);
    transition: color .2s .1s linear;
}

.menu-item:hover{
    border-bottom: 2px solid #DD2D4A;
}

a {
    text-decoration: none;
    color: inherit;
}

a:visited {
    color: inherit;
}

.menu-btn {
    cursor: pointer;
}

.close-btn {
    cursor: pointer;
    position: absolute;
    top: 1.3rem;
    right: 1.5rem;
    color: white;
}

.home {
    color: var(--light);
    width: 100%;
    height: 100vh;
    background-image: url("/images/Me-min.jpg");
    background-color: var(--dark);
    background-position: 50% 10%;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    top: 0;
    left: 0;
    z-index: -1;
}

.black-bg {
    width: 100%;
    height: clamp(200px, 20vw, 300px);
    background-color: rgba(0,0,0,50%);
    padding: 10px;
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.black-bg::before {
    content: "Front-end Developer";
    font-weight: 200;
    color: white;
    padding-top: clamp(15rem, 25vw, 25rem);
    padding-bottom: 1rem;
    padding-right: 1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(250px, 60vw, 600px);
    text-align: right;
    background-color:  var(--accent-opaque);
    transform: translate(-40%, -30%) translateZ(-10px);
}

.name {
    font-family: 'Inter', Helvetica, Tahoma, Geneva, Verdana, sans-serif;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
    padding-top: .2rem;
    padding-left: .6rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.name::before {
    content: "";
    position: absolute;
    bottom: -8vh;
    right: -2rem;
    width: clamp(250px, 60vw, 600px);
    height: clamp(248px, 35vw, 350px);
    border: 4px solid var(--accent);
} 

h1 {
    /* line-height: 72px; */
    font-size: clamp(2.4rem, 10vw, 88px);
    font-weight: 500; 
    letter-spacing: 3px;
}

.last-name {
    font-weight: 100;
}

.btn-arrow-down {
    position: absolute;
    height: 3rem;
    width: 3rem;
    bottom: 0; 
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark);
    background-color: white;
    font-size: 1.5rem;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.btn-arrow-down:hover,
.btn-arrow-down:active {
    color: var(--accent);
}

section {
    padding: 1rem 10vw 8rem;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

h2 {
    font-size: 2.5rem;
    line-height: 3.3125rem;
}

.section-title {
    margin-top: 1.85rem;
    position: relative;
    display: inline-block;
    padding-left: 1rem;
    border-left: 5px solid var(--accent);
}

p {
    line-height: 1.6rem;    
    max-width: 40ch;
    word-break: normal;
    letter-spacing: 1px;
}

.semilight {
    font-weight: 300;
}


.center {
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}

.intro,
.philosophy {
    min-width: 100%;
    min-height: 100vh;
}

.intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}


.overview h3 {
    margin-top: 6rem;
    margin-bottom: 1rem;
}


.philosophy {
    display: flex;
    flex-direction: column;
    align-items: stretch;      
    text-align: center;
}

.philosophy > h3 {
    width: 100%;
    margin-bottom: 0;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    align-self: center;
}

h3 {
    font-size: 1.6rem;
    font-weight: 500;
}

.philosophy-highlight {    
    margin: 3rem 0;
    /* border-radius: .8rem; */
    border: 2px solid var(--medium);
    padding: 2rem 1rem;
    max-height: 28rem;
}

.semibold {
    font-weight: 600;
}

.philosophy-one-liner {
    margin-top: 2rem;
}

.philosophy-copy {
    margin-top: 1.6rem;
    max-width: 50ch;   
    margin-left: auto; 
    margin-right: auto; 
}

.skill-container {
    width: 100%;
    margin-bottom: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-container > h3 {
    margin-bottom: 1rem;
    align-self: flex-start;
}

.skill-note {
    margin-bottom: 1.2rem;
    width: 100%;
}

.aboutme-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.aboutme-content {
    margin-top: 6rem;
    width: 100%;
}

.aboutme-copy {
    margin-top: .65rem;
}

#projects {
    background-color: var(--light);
}

h4 {
    font-size: 1.2em;
    line-height: 1.2em;
}

.project-flex-container {
    margin-top: 5rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6.5rem 2rem;
}

.project-container {
    width: clamp(300px, 100%, 80rem);
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: space-evenly;
    flex-wrap: wrap;
    -moz-column-gap: 2rem;
         column-gap: 2rem;
    padding: 2rem;
  }
  
  .project-image {
    width: 40%;
    min-width: 18rem;
    height: 40%;
    overflow: hidden;
    position: relative;
    font-size: 1rem;
    padding-top: 1rem;
  }
  
  .project-image img {
    width: 100%;
  }
  
  .project-image-label {
    color: white;
    position: absolute;
    background-color: rgba(0,0,0,50%);
    top: 2rem;
    left: 1rem;
    padding: .5em 1em;
    border-radius: .2em;
    font-weight: 500;
  }

  .project-image-label.team {
    background-color: dodgerblue;
  }
  
  .project-image-label.independent {
    background-color: darkviolet;
  }
  
  .project-description {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 40%;
    min-width: 18rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .project-name {
    font-weight: 700;
    margin-bottom: .8rem;
  }

  .leading-container {
      padding-left: 1rem;
      border-left: 2px solid rgba(38, 35, 34, 35%);
  }

  .leading {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(38, 35, 34, 60%);
    letter-spacing: 1px;
  }
  
  .project-content {
    margin-top: .5rem;
    font-weight: 300;
  }
  
  .technologies-list {
    margin-top: 1em;
    font-size: .8rem;
    font-weight: 700;
    color: white;
    list-style: none;
    display: flex;
    -moz-column-gap: 1.2em;
         column-gap: 1.2em;
    row-gap: 1em;
    flex-wrap: wrap;
}

.technology {
    line-height: .6rem;
    background: var(--dark);
    padding: .8em 1.2em;
    border-radius: 1rem;
}

.project-links {
    display: flex;
    width: 100%;
    -moz-column-gap: 4rem;
         column-gap: 4rem;
    row-gap: 3rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-links a {
    font-weight: 700;
    color: white;
    background-color: var(--accent);
    margin-left: 1rem;
    padding: .5em 1em;
    border-radius: .2em;
}
.project-links a:hover,
.project-links a:active {
    background-color: var(--accent-dark);
}
  

footer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    row-gap: 3.6rem;
    background-color: var(--dark);
    color: var(--light);
    padding: 3.2rem 10vw;
    font-size: .6rem;
    font-weight: 400;
}

.branding {
    width: 100%;
}

.light {
    font-weight: 200;
}

.brand-logo {  
    position: relative; 
}


.brand-name {
    font-size: 1rem;
    line-height: 1.6rem;
    position: absolute;
    top: -.2rem;
    left: 1.8rem;
    margin-left: 16px;
    text-transform: uppercase;
}

.branding > p {
    margin-top: 1rem;
}

.small {
    font-size: .8rem;
    line-height: 1.2rem;
}

.footer-link-container {
    width: 50%;
    padding-top: .5rem;
}

h5 {
    font-size: .8rem;
    line-height: 1.2rem; 
}

.site-links {
    margin-top: .7rem;
}

.site-links > li {
    margin-bottom: .4rem;
}

.site-links i{
    margin-bottom: .4rem;
    margin-right: .8rem;
    color: var(--accent);
}

.contact-info {
    min-width: 300px;
    width: 50%;
    padding: .4rem 1rem 1rem;
    background-color: var(--accent);
}

.footer-heading {
    font-size: 1.2rem;
}

.contact-info p {
    margin-top: .7rem;
    font-weight: 600;
}

.socials {
    margin-top: 1.5rem;
    width: 100%;
    font-size: 1.4rem;
    /* color: var(--accent); */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}


/* breakpoints: 480px, 768px, 1024, 1280 */
@media only screen and (min-width: 480px) {
    html {
        font-size: 16px;
    }

    p {  
        max-width: 100%;
    }
}

@media only screen and (min-width: 768px) {

    .skill-container {
        align-items: flex-start;
    }

    .skill {
        align-self: center;
    }    
}

/* For ipad 11 pro */
@media only screen 
    and (min-device-width: 1112px) 
    and (max-device-width: 1112px) 
    and (orientation: landscape) 
    and (-webkit-min-device-pixel-ratio: 2) {

    .close-btn, .menu-btn {
        display: none !important;
    }

    .menu {
        height: 100%;
        width: 70%;
        position: relative;
        top: 0;
        flex-direction: row;
        justify-content: space-between;
        background: inherit;
        color: black;
        margin-right: inherit;
    }
    
    .menu-item {
        color: inherit;
    }
  }

@media only screen and (min-width: 1024px) {
    .navbar, section, footer {
        padding-left: 15vw;
        padding-right: 15vw;
    }

    .home {
        background-position: center 27%;
    }

    .menu {
        height: 100%;
        width: 70%;
        position: relative;
        top: 0;
        flex-direction: row;
        justify-content: space-between;
        background: inherit;
        color: black;
        margin-right: inherit;
    }
    
    .menu-item {
        color: inherit;
    }
    
    .close-btn, .menu-btn {
        display: none !important;
    }

    .philosophy {
        flex-direction: row;
        flex-wrap: wrap;
        /* align-items: stretch; */
        justify-content: space-between;
    }

    .philosophy-highlight {
        width: 20rem;
    }

    .branding {
        width: 40%;
    }

    .footer-link-container,
    .contact-info {
        width: 25%;
    }
}

@media only screen and (min-width: 1440px) {
}