/* Fonts */
@import url("https://fonts.googleapis.com/css?family=Fira Code");
@import url("https://fonts.googleapis.com/css?family=Fira Mono");
@import url("https://fonts.googleapis.com/css?family=Roboto Mono");
@import url("https://fonts.googleapis.com/css?family=Calibre");
@import url("https://fonts.googleapis.com/css?family=Inter");
@import url("https://fonts.googleapis.com/css?family=San Francisco");
@import url("https://fonts.googleapis.com/css?family=SF Pro Text");
@import url("https://fonts.googleapis.com/css?family=-apple-system");


/* Colors */
:root {
  --bg-color: #0a192f;
  --color-1: #64ffda; /* Primary accent color */
  --color-2: #8892b0; /* Secondary text color */
  --txt-color: #ccd6f6; /* Main text color */
  --color-3: rgba(100, 255, 218, 0.1); /* Third color */
  --font-1: "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --font-2: "Calibre", "Inter", "San Francisco", "SF Pro Text", -apple-system,
    system-ui, sans-serif;
}

*,
::before,
::after {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--txt-color);
  line-height: 1.1;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-1) var(--bg-color);
}

body {
  height: 100%;
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg-color);
  color: var(--color-2);
  font-family: var(--font-2);
  font-size: 20px;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

main {
  margin: 0 auto;
  width: 100%;
  max-width: 1600px;
  min-height: 100vh;
  padding: 0 150px;
}

@media (max-width: 1200px) {
  main {
    padding: 0 100px;
  }
}

@media (max-width: 768px) {
  main {
    padding: 0 50px;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0 20px;
  }
}

header#navbarheader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 11;
  padding: 0 50px;
  width: 100%;
  height: 70px;
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
  transition: all 0.3s;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: var(--txt-color);
  font-family: var(--font-1);
  z-index: 12;
}

nav .logo img {
  height: 40px;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav li {
  margin-left: 30px;
}

nav ul li {
  margin: 5px;
  position: relative;
  font-size: 16px;
}

nav ul li a {
  padding: 10px;
}

nav a {
  color: var(--txt-color);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

nav a.logo {
  height: 40px;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--color-1);
  left: 0;
  bottom: 0;
  transition: width 0.3s;
}

nav a:hover {
  color: var(--color-1);
}

nav a:hover::after {
  width: 100%;
}

nav .button {
  padding: 10px 20px;
  border: 1px solid var(--color-1);
  border-radius: 5px;
  color: var(--color-1);
  transition: background 0.3s;
}

nav .button:hover {
  background: var(--color-3);
}

.nav-links.active {
  display: flex;
}

.burger-menu {
  display: none;
}

.side_LeftElement,
.side_RightElement {
  position: fixed;
  bottom: 0;
  z-index: 10;
}

.side_LeftElement {
  left: 30px;
}

.side_RightElement {
  right: 30px;
}

.socials,
.email {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  margin: 0;
}

.socials li,
.email li {
  margin-bottom: 20px;
  list-style: none;
}

.socials a,
.email a {
  color: var(--txt-color);
  padding: 10px;
  font-size: 36px;
  transition: color 0.3s;
}

.socials a:hover,
.email a:hover {
  color: var(--color-1);
}

.socials::after,
.email::after {
  content: "";
  display: block;
  width: 1px;
  height: 90px;
  margin: 0 auto;
  background-color: var(--txt-color);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
}

.hero p {
  margin: 20px 0px 0px;
  max-width: 540px;
}

.hero h1 {
  font-size: 48px;
  color: var(--color-1);
  margin: 0;
  margin-bottom: 16px;
}

.hero h2 {
  font-size: 60px;
  color: var(--txt-color);
  margin: 0;
  margin-bottom: 48px;
}

.hero h3 {
  font-size: 24px;
  color: var(--color-2);
  margin-bottom: 20px;
}

.hero ul {
  display: none;
}

.button {
  padding: 15px 30px;
  color: var(--color-1);
  border: 1px solid var(--color-1);
  text-decoration: none;
  transition: background 0.3s;
  border-radius: 5px;
  font-family: var(--font-1);
  width: fit-content;
  margin-top: 50px;
}

.button:hover {
  background: var(--color-3);
}

.about {
  max-width: 900px;
}

.about p {
  color: var(--color-2);
  font-size: 18px;
}

.about .inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  justify-content: center;
  align-items: center;
}

.about-image img {
  position: relative;
  width: 70%;
  border-radius: 4px;
  display: block;
  margin: auto;
}

section {
  margin: 0 auto;
  padding: 100px 0;
  max-width: 1000px;
}

.projects {
  display: flex;
  flex-direction: column;
}

.projects .projects-grid {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  position: relative;
}

.project {
  position: relative;
  cursor: default;
  transition: all 0.3s;
}

.project:hover {
  transform: translateY(-5px);
}

.project .project-inner {
  box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  height: 100%;
  padding: 2rem 1.75rem;
  border-radius: 4px;
  background-color: #112240;
  overflow: auto;
}

.project .project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
}

.project .project-top .bx-folder {
  color: var(--color-1);
  font-size: 2rem;
}

.project .project-top .bx-link-external {
  display: flex;
  align-items: center;
  margin-right: -10px;
  color: var(--color-2);
  font-size: 1.5rem;
}

.project .project-top .bx-link-external a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 7px;
}

.project a {
  position: relative;
  z-index: 1;
}

.project .project-title {
  margin: 0 0 10px;
  color: var(--txt-color);
  font-size: 22px;
}

.project .project-title a {
  position: static;
}

.project .project-title a::before {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.project .project-description {
  color: var(--color-2);
  font-size: 17px;
}

.project .project-techlist {
  display: flex;
  align-items: flex-end;
  flex-grow: 1;
  flex-wrap: wrap;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.project .project-techlist li {
  font-family: var(--font-1);
  font-size: 12px;
  line-height: 1.75;
}

.project .project-techlist li:not(:last-child) {
  margin-right: 15px;
}

.contact {
  text-align: center;
  margin: 0 auto 100px;
  max-width: 600px;
}

.contact p {
  color: var(--color-2);
  padding-bottom: 20px;
}

/* --------------------------MEDIA-QUERIES--------------------------------- */

@media (max-width: 768px) {
  header#navbarheader {
    padding: 0 20px;
  }

  .burger-menu {
    display: block;
    background: none;
    border: none;
    color: var(--txt-color);
    font-size: 36px;
    cursor: pointer;
    padding: 0px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-color);
    position: absolute;
    top: 50px;
    left: 0;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }

  .nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .socials,
  .email {
    display: none;
  }

  .hero {
    padding: 0 20px;
    text-align: center;
    align-items: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h2 {
    font-size: 48px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h3 {
    font-size: 32px;
  }

  .hero ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    margin-top: 20px;
    list-style: none;
    font-size: 32px;
  }

  .hero li {
    margin: 0 10px;
  }

  .about .inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero h2 {
    font-size: 36px;
  }

  .hero h3 {
    font-size: 24px;
  }

  .button {
    padding: 10px 20px;
    font-size: 14px;
  }
}
