@import url("https://fonts.googleapis.com/css?family=Kaisei+HarunoUmi&display=swap");
@import url("https://fonts.googleapis.com/css?family=Cinzel+Decorative&display=swap");
@import url("https://fonts.googleapis.com/css?family=Inconsolata&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS VARIABLES */
:root {
  /* COLOURS */
  --bg-color: #111010;
  --white: #ffffff;
  --list-white: #a3a3a3;
  --text-white: #e5e5e5;
  --nav-grey: #4e4e4e;
  --hover-grey: #262626;
  --divider-grey: #404040;
  --button-border-grey: #262626;
  --button-hover-grey: #171717;

  /* FONTS */
  --logo: "Cinzel Decorative";
  --heading: "Kaisei HarunoUmi";
  --text: "Segoe UI Symbol";
  --tech-stack: "Inconsolata";
}

body {
  background-color: var(--bg-color);
  color: var(--white);
  font-family: var(--heading), sans-serif;
  margin: 7rem 30rem 7rem 15rem;
  display: flex;
  flex-direction: row;
  max-width: 56rem;
}

/* NAV MENU SECTION - LOGO and NAV-BAR */

.nav-menu {
  margin-top: -1rem;
  position: fixed;
}

.logo {
  font-size: 1.2rem;
  font-family: var(--logo);
  margin-bottom: 1.5rem;
}

.nav-bar ul {
  list-style: none;
  font-weight: 700;
}

.nav-bar ul li {
  margin-bottom: 0.6rem;
}

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

.nav-bar ul li a:hover {
  cursor: pointer;
  color: var(--white);
}

.nav-bar ul li.active {
  color: var(--white);
  border: 1px solid var(--hover-grey);
  border-radius: 5px;
  background-color: var(--hover-grey);
  padding: 0.2rem 1rem;
  width: max-content;
  margin-left: -1rem;
}

.nav-bar ul li.active a {
  color: var(--white);
}

/* END OF NAV MENU SECTION - LOGO and NAV-BAR */

/* MAIN SECTION - Common to all pages  */

.main {
  margin-left: 8rem;
}

.main h1 {
  font-weight: 500;
}

.main p {
  margin: 1.5rem 0rem;
  color: var(--text-white);
  font-family: var(--text);
  font-weight: 300;
  line-height: 1.5rem;
}

hr {
  border: 0.1px solid var(--divider-grey);
}

/* END OF MAIN SECTION - Common to all pages  */

/* INDEX.HTML -- HOME PAGE */

/* .home p {
  margin: 1.5rem 0rem;
  color: var(--text-white);
  font-family: var(--text);
  font-weight: 300;
  line-height: 1.5rem;
} */

.home img {
  border-radius: 50%;
  width: 6rem;
  height: 6rem;
}

.home .center-section {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.home .center-section .link-list {
  font-family: var(--text);
  margin: 1rem 0rem 1rem 3rem;
  list-style: none;
}

.home .center-section .link-list li a {
  text-decoration: none;
  color: var(--list-white);
}

.home .center-section .link-list li a :hover {
  color: var(--white);
}

.home .center-section .link-list li span {
  display: flex;
  flex-direction: row;
  margin: 0.5rem 0rem;
}

.home .center-section .link-list li a i {
  font-size: 1.2rem;
  margin-right: 1rem;
}

/* END OF INDEX.HTML -- HOME PAGE */

/* ABOUT.HTML */

.about .education {
  display: flex;
  flex-direction: row;
  margin: 1.2rem 0rem;
  justify-content: space-between;
}

.about h4 {
  margin-top: 1rem;
  font-weight: 400;
}

.about .education p {
  margin: 0rem 2rem 0rem 0rem;
}

.about .social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.about .social-buttons button {
  color: var(--white);
  background-color: transparent;
  border: 0.5px solid var(--button-border-grey);
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--text);
  font-weight: 500;
  margin-right: 0.1rem;
  padding: 1rem;
}

.about .social-buttons button:hover {
  background-color: var(--button-hover-grey);
  cursor: pointer;
}

.about .social-buttons button i.fa-brands {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* END OF ABOUT.HTML */

/* WORK.HTML  */

.work .job-header {
  margin: 1.2rem 0rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.work .job-header p {
  margin: 0rem 2rem 0rem 0rem;
}

.work .job-content {
  font-family: var(--text);
  font-weight: 300;
  line-height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--list-white);
}

.work .job-content ul li {
  margin-bottom: 0.5rem;
}

/* END OF WORK.HTML  */

/* SKILLS.HTML  */

.skills .skill-row {
  display: flex;
  flex-direction: row;
  margin: 1rem 0rem;
  justify-content: space-between;
}

.skills .skill-col {
  border: 1px solid var(--button-border-grey);
  padding: 10px;
  border-radius: 5px;
  margin-right: 1rem;
}

.skills .skill-col h3 {
  margin-bottom: 1rem;
  font-family: var(--text);
  font-weight: 300;
}

.skills .skill-bar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  font-family: var(--text);
  width: 18rem;
  margin: 0.5rem 0rem;
}

.skills .skill-bar .skill-level {
  display: flex;
  flex-direction: row;
}

.skills .dot {
  margin: 0rem 0.2rem;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--nav-grey);
}

.skills .fill {
  margin: 0rem 0.2rem;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: var(--text-white);
}

/* END OF SKILLS.HTML  */

/* PROJECTS.HTML  */

.projects {
  margin-top: 1rem;
}

.projects .project-left {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--button-border-grey);
  border-radius: 5px;
  align-items: center;
  width: 35rem;
  margin-bottom: 0.5rem;
}

.projects .project-left img {
  width: 50%;
  height: 50%;
  margin: 0rem 1rem;
  border-radius: 5px;
}

.projects .project-right {
  display: flex;
  flex-direction: row;
  border: 1px solid var(--button-border-grey);
  border-radius: 5px;
  align-items: center;
  width: 35rem;
  margin-bottom: 0.5rem;
}

.projects .project-right img {
  width: 50%;
  height: 50%;
  margin: 0rem 1rem;
  border-radius: 5px;
}

.projects .project-content {
  margin: 1rem 1rem;
}

.projects .project-content h3 {
  font-size: 1.1rem;
  font-weight: 400;
}

.projects .project-content p {
  margin: 0.5rem 0rem;
  font-size: 0.9rem;
  color: var(--list-white);
}

.projects .project-content ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  font-family: var(--tech-stack);
  font-size: 0.9rem;
  color: var(--text-white);
}

.projects .project-content ul > li {
  margin: 0rem 0.5rem 0.5rem 0rem;
}

.projects .btn-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-right: 1rem;
}

.projects .btn-group button.disabled {
  color: var(--divider-grey);
}

.projects .btn-group button.disabled:hover {
  color: var(--divider-grey);
  background-color: transparent;
  cursor: not-allowed;
}

.projects .btn-group button {
  color: var(--white);
  background-color: transparent;
  border: 0.5px solid var(--button-border-grey);
  border-radius: 5px;
  font-size: 0.9rem;
  font-family: var(--text);
  font-weight: 500;
  margin-right: 0.1rem;
  padding: 0.5rem;
}

.projects .btn-group button:hover {
  background-color: var(--button-hover-grey);
  cursor: pointer;
}

.projects .btn-group button i {
  margin-right: 0.4rem;
}

/* END OF PROJECTS.HTML  */

/* CONTACT.HTML  */

.contact {
  margin: 1.5rem 0rem;
}

.contact .contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 35rem;
}

.contact .contact-buttons button {
  color: var(--white);
  background-color: transparent;
  border: 0.5px solid var(--button-border-grey);
  border-radius: 5px;
  font-size: 1rem;
  font-family: var(--text);
  font-weight: 500;
  padding: 1rem 1rem 1rem 1.5rem;
  margin: 0rem 0.5rem 0.5rem 0rem;
  text-align: left;
}

.contact .contact-buttons button:hover {
  background-color: var(--button-hover-grey);
  cursor: pointer;
}

.contact .contact-buttons button i {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* END OF CONTACT.HTML  */

/* BREAK POINT - decrease margin at 1280px */

@media screen and (max-width: 1332px) {
  body {
    margin: 4rem 8rem;
    padding-right: 4rem;
  }

  .about .education {
    flex-direction: column;
  }

  .about .education .left {
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 825px) {
  /* about */
  .about .social-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1rem;
  }

  .work .job-header {
    flex-direction: column;
    align-items: normal;
  }

  .skills .skill-row {
    flex-direction: column;
  }

  .skills .skill-col {
    max-width: 18rem;
    margin-bottom: 1rem;
    margin-right: 0rem;
  }

  .skills .skill-bar {
    width: 16rem;
  }

  .contact .contact-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 1rem;
    min-width: 20rem;
  }

  .contact .contact-buttons button {
    padding-left: 3rem;
    text-align: left;
  }

  .projects .project-left {
    flex-direction: column;
    max-width: 20rem;
  }

  .projects .project-left img {
    margin-left: 0rem;
  }

  .projects .project-right {
    flex-direction: column-reverse;
    max-width: 20rem;
  }
}

/* BREAK POINT - change the structure for mobile devices */

@media screen and (max-width: 760px) {
  body {
    flex-direction: column;
    margin: 2rem 0.5rem 2rem 2rem;
    padding-right: 4rem;
  }

  h1 {
    margin-top: 0.5rem;
    font-size: 1.8rem;
  }

  /* nav-bar */

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .nav-bar ul {
    display: flex;
    flex-direction: row;
    font-size: 0.8rem;
    margin-left: -0.5rem;
  }

  .nav-bar ul li {
    margin-right: 0.4rem;
  }

  .nav-bar ul li.active {
    margin-left: 0rem;
  }

  /* end of nav-bar */

  /* main */
  .main {
    margin-left: 0;
    margin-right: -1.5rem;
  }
  /* end of main */
}
