
:root{
    --ff-primary: 'Source Sans Pro', sans-serif;
    --ff-secondary: 'Source Code Pro', monospace;
    
    --fw-reg: 300;
    --fw-bold: 900;
    
    --clr-light: #fff;
    --clr-dark: #303030;
    --clr-light-unchanged: #fff;
    --clr-dark-unchanged: #303030;
    --clr-accent: #16e0bd;
    
    --fs-h1: 3rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.25rem;
    --fs-body: 1rem;

    --bs:0.25em 0.25em 0.75em rgba(0,0,0,.25),0.125em 0.125em 0.25em rgba(0,0,0,.15);
}

/* .about-me-pic{
  margin-top: 2em;
}

.vid{
  width: 100%;
  height: auto;
} */

@media (min-width: 800px){
    :root {
      --fs-h1: 4.5rem;
      --fs-h2: 3.75rem;
      --fs-h3: 1.5rem;
      --fs-body: 1.125rem;
    }
}



/* general style */
html{
  scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

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

body{
  background: var(--clr-light);
  color: var(--clr-dark);
  font-family: var(--ff-primary);
  font-size: var(--fs-body);
  line-height: 1.6;
}

img{
  image-rendering: -moz-crisp-edges; /* Firefox */
  image-rendering: -o-crisp-edges; /* Opera */
  image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
    display: block;
    max-width: 100%;
}

.img-profile{
  width: 100%;
  box-shadow: var(--bs);
}

section{
  padding: 5em 2em;
}

/* typography */

.name{
  align-self: center;
  padding-left: .5em;
}

.clr-white{
  color: #fff;
  margin-bottom: .5em;
}

.strong {
 font-weight: var(--fw-bold); 
 display: block; 
}

h2,
h3{
  line-height: 1;
  margin:0;
}

.section__title--intro {
  font-size: var(--fs-h1);
  margin:0;
  font-weight: var(--fw-reg);
  line-height: 1;

}
h2 { font-size: var(--fs-h2) }
h3 { font-size: var(--fs-h3) }


.section__title{
  margin-bottom: 0.25em;
}

.section__subtitle{
  margin: 0;
  font-size: var(--fs-h3);
}


.section__subtitle--about,
.section__subtitle--intro{
  background: var(--clr-accent);
  font-family: var(--ff-secondary);
  margin-bottom: 1em;
  padding: .25em 1em;
  color: #303030;
}

/* btn */
.utility-bar{
  width: 100%;
  height: 3rem;
  padding: 0;
  margin: 0;
  position: fixed;
  z-index: 1000;
  background: var(--clr-light);
  display: flex;
  justify-content: space-between;
}

#dark-mode,
#light-mode{
  font-size: 1.5rem;
  cursor: pointer;
  
}

.dark{
  position: fixed;
  z-index: 1000;
  top: .5em;
  right: 3em;
  padding: 0;
}

#toggle-nav{
 font-size: 1.5rem;
}

.nav-toggle{
  border: none;
  background: inherit;
  cursor: pointer;
  position: fixed;
  z-index: 1000;
  top: .5em;
  right: .5em;
}

.btn{
  display: inline-block;
  padding: .5em 2.5em;
  background: var(--clr-accent);
  color: var(--clr-dark);
  text-decoration: none;
  cursor: pointer;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: var(--fw-bold);
  transition: transform 200ms ease-in-out;
}

.btn:hover{
  transform: scale(1.1);
}

:focus {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}


.btn-work{
  color: #303030;
}
/* header */
.header {

  display: flex;
  justify-content: space-between;
}

.logo {
    max-width: 100px;
}

.nav{
  position: fixed;
  background: var(--clr-dark-unchanged);
  color: var(--clr-light-unchanged);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  transform: translateX(100%);
  transition:  transform 250ms ease-in-out;
}

.nav__list{
  list-style: none;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav__link{
  color: inherit;
  font-weight: var(--fw-bold);
  font-size: var(--fs-h2);
  text-decoration: none;
}

.nav__link:hover{
  color: var(--clr-accent);
}

.nav-open .nav{
  transform: translateX(0);
}


/* intro section */

.intro{
  position: relative;
}

@media(min-width: 600px){
  .intro{
    display: grid;
    width: min-content;
    grid-column-gap: 1em;
    margin: 0 auto;
    grid-template-areas: 
    "img title"
    "img subitle";
    grid-template-columns: min-content max-content;
  }

  .img-profile{
    grid-area: img;
    min-width: 250px;
    position: relative;
  }

  .margin-extend{
    right: 1em;
  }
  .section__subtitle--intro{
    align-self: start;
    grid-column: -1/1;
    grid-row: 2;
    text-align: right;
    padding-right: 1em;
    position: relative;
    left: -1.5em;
    width: calc(100% + 1.5em);
  }
}

/* my-sercives section */
.my-sercives{
  background: var(--clr-accent);
  color: #fff;
  background-image: url(img/services-bg.jpg);
  background-size: cover;
  background-blend-mode: multiply;
  text-align: center;
}

.section__title--services{
  color: var(--clr-accent);
  position: relative;
}

.section__title--services::after{
  content: '';
  display: block;
  width: 2em;
  height: 1px;
  margin: .5em auto 1em;
  background: #fff;;
  opacity: .45;
}

.service{
  max-width: 500px;
  margin: 0 auto;
}

.services{
  margin-bottom: 2em;
}

@media (min-width: 800px){
  .services{
    display: flex;
    max-width: 1000px;
    margin: 0 auto 2em;
  }

  .service{
    display: inline-block;
    width: calc(100% / 3);
  }

  .service + .service{
    margin-left: 2em;
  }
}

/* about me */
.about-me{
  max-width: 1000px;
  margin: 0 auto;
}

.maya{
  max-width: 600px;
  width: 100%;
  
  box-shadow: var(--bs);
}

@media(min-width: 600px){
  .about-me{
    display: grid;
    grid-template-areas: 
    "title img"
    "subtitle img"
    "para img";
    grid-template-columns: 1fr 200px;  
    grid-column-gap: 2em;
  }

  .maya{
    grid-area: img; 
    position: relative;
  }

  .about-me__body{
    grid-area: para;
  }
  
  .section__title--about{
    grid-area: title
  }
  
  .section__subtitle--about{
    grid-area: subtitle;
    grid-column: -1/1;
    grid-row: 2;
    position: relative;
    left: -1em;
    width: calc(100% + 2em);
    padding-left: 1em;
    padding-right: calc(200px + 2em);
  }
}

/* my work */
.my-work {
    background-color: #303030;
    color: var(--clr-light);
    text-align: center;    
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.portfolio__item{
  overflow: hidden;
  aspect-ratio: 2/0.9;
  position: relative;
}

.portfolio__img{
  transition: transform 750ms cubic-bezier(.5,0,.5,1),
  opacity 250ms linear;
  width: 100%;
}

.card-body{
  width: 100%;
  height: 100%;
  top: 0;
  right: -100%;
  /* transition: transform 750ms cubic-bezier(.5,0,.5,1),
  opacity 250ms linear; */
  transition: 2s;
  color: var(--clr-light);
  backdrop-filter: blur(5px);
  background-color: #1f3d4738;
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
  text-align: left;
}

.dark-text{
  color: var(--clr-dark);
}

.card-btn{
  background-color: var(--clr-accent);
  color: var(--clr-dark-unchanged);
  padding: .5em 1em;
  border-radius: 5px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: small;
  width: 30%;

}

.portfolio__item:hover .card-body,
.portfolio__item:focus .portfolio__img{
  /* transform: scale(1.2);
  opacity: .75; */
  right: 0;
}

.portfolio__item:focus {
    position: relative;
    z-index: 2;
}

/* footer */
footer{
  background: #0B1416;
  color: var(--clr-accent);
  text-align: center;
  padding: 2.5em 0;
}

footer a{
  color: inherit;
  text-decoration: none;
  font-size: var(--fs-h3);
}

.footer__link:hover,
.social-list__link:hover{
  opacity: .7;
}

.footer__link{
  padding: .5em;
  font-weight: var(--fw-bold);
}

.social-list{
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin-top: 1.5em;
}


.social-list__item{
  margin: 0 .5em;

}

.social-list__link{
  padding: .5em;
}

/* projects */
.portflio-item-individual{
  color: #fff;
  padding: 1em 2em 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.portflio-item-individual{
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.full-size-width{
  background: var(--clr-dark-unchanged);
  width: 100%;
}

.project-intro{
  margin-bottom: 1em;
  padding-bottom: 0;
}


/* patching */
.github-link{
  color: cyan;
}

.calculator-img{
  position: relative;
  top: 1em;
}

.vhdl{
  margin-top: 1em;
}

.big{
  height: 200%;
}

.pdf{
  max-width: 80%;
  margin: 1em auto;
}