/*
==========
Fonts
==========
*/
@font-face {
  font-family: Kalameh;
  src: url(./fonts/KalamehFaNum-Regular.ttf);
}

/*
==========
Colors
==========
*/
:root {
  --black: #000;
  --grey-1: #525252;
  --grey-2: #b5b5b5;
  --white: #eee;
  --red: #9e0909;
}

/*
==========
Global
==========
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Kalameh;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

hr {
  margin: 2rem 1rem;
  color: var(--grey-1);
}

.title-1 {
  color: var(--white);
  position: relative;
}

.title-2 {
  padding-bottom: 1rem;
  color: var(--white);
  text-align: center;
}

.title-3 {
  color: var(--white);
}

/*
==========
Body
==========
*/
body {
  padding: 1rem;
  max-width: 800px;
  margin: auto;
  background: var(--black);
  position: relative;
}

/*
==========
Header
==========
*/
header {
  padding: 2rem;
  background: var(--grey-1);
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 3rem;
  border-radius: 1rem;
}

header .image-box {
  width: 150px;
  height: 150px;
  aspect-ratio: 1 / 1;
  align-self: flex-start;
}

header .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  transition: 0.2s ease;
}

header .image-box {
  position: relative;
}

header .image-box::after {
  width: 100%;
  height: 100%;
  content: '';
  position: absolute;
  top: 15px;
  left: -17px;
  border: 1px solid var(--black);
  border-radius: 1rem;
}

header .image-box:hover .img {
  transform: translate(-1rem, 1rem);
}

header .job {
  padding: 0.25rem 0.5rem;
  background: var(--white);
  color: var(--black);
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

header .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

header .text {
  /* width: 95%; */
  margin-top: 1.5rem;
  color: var(--white);
  text-align: justify;
}

@media only screen and (min-width: 600px) {
  
  header {
    flex-direction: row;
    gap: 3rem;
    padding: 2rem;
  }

  header .image-box {
    margin-bottom: 1rem;
    width: 200px;
    height: 200px;
  }

  header .text {
    width: 95%;
  }
  
}

/*
==========
Nav
==========
*/
nav {
  position: fixed;
  top: 0rem;
  left: 0rem;
  width: 100%;
  height: 6rem;
  z-index: 10;
  background: linear-gradient(black, black, black,  transparent);
  opacity: 0;
  transition: 0.3s ease;
}

nav .navbar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: calc(100% - 2rem);
  background: var(--grey-1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav .nav-img {
  width: 3rem;
  height: auto;
  border-radius: 1rem;
}

nav .name {
  color: var(--white);
}

nav .navbar .btn {
  padding: 0.5rem;
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  border-radius: 0.75rem;
  color: var(--grey-1);
  background: var(--black);
}

/*
==========
Education
==========
*/
.education {
  margin-bottom: 5rem;
}

.education .title-2 {
  margin-bottom: 2rem;
}

.education .box {
  padding: 3rem;
  position: relative;
}

.education .box:nth-child(odd) {
  margin-left: 2rem;
}

.education .box:nth-child(even)::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  border-top: 3px dashed var(--grey-1);
  border-left: 3px dashed var(--grey-1);
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

.education .box:nth-child(odd)::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  border-top: 3px dashed var(--grey-1);
  border-right: 3px dashed var(--grey-1);
  border-bottom: 3px dashed var(--grey-1);
  border-top-right-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

.education .top-date {
  padding: 0rem 1.5rem;
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  font-size: 1.5rem;
  color: var(--grey-1);
  z-index: 1;
}

.education .bottom-date {
  padding: 0rem 1.5rem;
  position: absolute;
  bottom: -1.5rem;
  right: 50%;
  transform: translateX(50%);
  background: var(--black);
  font-size: 1.5rem;
  color: var(--grey-1);
  z-index: 1;
}

.education .location {
  color: var(--white);
}

.education .state {
  padding: 0.5rem 1rem;
  position: absolute;
  top: 50%;
  left: 3rem;
  border-radius: 1rem;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
}

@media only screen and (max-width: 600px) {
  
  .education .box {
    padding: 2rem;
  }
  
}

@media only screen and (max-width: 425px) {

  .education .box {
    padding-bottom: 5rem;
  }

  .education .state {
    top: 75%;
  }
  
}

/*
==========
Skills
==========
*/
.skills .skills-resp {
  display: flex;
  flex-direction: column;
}

.skills .box {
  width: 100%;
}

.skills .title-3 {
  margin-top: 2rem;
}

.skills .items {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills .item {
  padding: 0.5rem 1rem;
  border: 1px solid var(--grey-1);
  border-radius: 1rem;
  color: var(--grey-1);
  transition: 0.3s ease;
  cursor: pointer;
}

.skills .item:hover {
  border-color: var(--white);
  color: var(--white);
}

@media only screen and (min-width: 600px) {
  
  .skills .skills-resp {
    flex-direction: row;
    flex: 50%;
    gap: 2rem;
  }

  .skills .title-3 {
    margin-top: 1rem;
  }
  
}

/*
==========
Projects
==========
*/
.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.projects .link {
  text-align: center;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--red);
  color: var(--white);
  transition: 0.3s ease;
}

.projects .link:hover {
  outline-offset: 0.25rem;
  outline: 2px solid var(--red);
}

/*
==========
Contact
==========
*/
.socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.socials .social {
  padding: 0.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--grey-1);
  border-radius: 1rem;
  background: var(--grey-1);
  color: var(--white);
  transition: 0.3s ease;
  cursor: pointer;
}

.socials .social:hover {
  text-decoration: underline;
}

.socials .social .icon {
  width: 1rem;
  height: 1rem;
  object-fit: cover;
}

@media only screen and (min-width: 600px) {
  
  .socials {
    flex-direction: row;
  }
  
}

/*
==========
Footer
==========
*/
footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--grey-1);
  font-size: 0.8rem;
}

.down-btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--white);
  color: var(--black);
  border-radius: 0.5rem;
  cursor: pointer;
}

.down-btn .img {
  width: 1rem;
  vertical-align: middle;
}

@media only screen and (min-width: 600px) {
  
  footer {
    font-size: 1rem;
  }
  
}