@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap");
:root {
  --primary-color: #134074;
  --secondary-color: #0b2545;
  --text-color: #8da9c4;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: "Roboto Mono";
  background-color: #fafafa;
  width: 100%;
}

html {
  scroll-padding: 50px;

  scroll-behavior: smooth;
}

nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--secondary-color);
  padding: 10px;
  display:flex;
  flex-direction: column-reverse;
  

}
nav.full-nav-mobile{
    height:100vh;
}
nav.full-nav-mobile ul{
display:block;
}
nav button{
    border:none;
    text-align:center;
    font-size:20pt;
    color:#fff;
    background-color:transparent;
}

nav ul {

  gap: 10px;
  display:none;
  height:100%;

  justify-content: center;
  list-style: none;
}

nav ul li a {
  font-size: 18px;
  padding: 10px;
  text-decoration: none;
  color: #fff;
}

header {
  padding: 20px;
  text-align: center;
  background-color: var(--primary-color);
}

header h1 {
  margin-bottom: 8pt;
  color: #fff;
}
header a {
  text-decoration: none;
  font-size: 14pt;
  padding: 10px;
  border-radius: 9999px;
  margin-right: 10px;
}
header a.btn-primary {
  background-color: #fff;
  color: var(--primary-color);
  border: 2px solid #fff;
}
header a.btn-secondary {
  color: #fff;
  border: 2px solid #fff;
}

header p {
  color: var(--text-color);
  margin-bottom: 16pt;
}

h2 {
  color: var(--primary-color);
  text-align: center;
  margin: 30px auto;
  padding: 5px;
  border-radius: 5px;
  border: 3px solid var(--primary-color);
  width: fit-content;
  position: relative;
  transition: 0.3s;
}

h2::after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;

  transition: 0.3s;
  z-index: -1;
}

h2:hover::after {
  background-color: var(--primary-color);
}

h2:hover {
  color: #fff;
}

.history {
  display: flex;
  flex-direction: column;

  margin: 10px 25%;
  gap: 30px;
  position: relative;
  padding-bottom: 10px;
}

.history article {
  left: 50%;
  position: relative;
  max-width: 50%;
  padding-left: 20px;
}

.history article::after {
  z-index: -1;
  content: "";
  translate: -50%;
  background-color: #fff;
  border: 5px solid var(--primary-color);
  width: 25px;
  height: 25px;
  position: absolute;
  top: 25px;
  border-radius: 50%;
  margin-right: auto;
  transition: all 0.5s;
}

.history article:hover::after {
  background-color: var(--primary-color);
}

.history article::after {
  right: calc(100% + 5px);
  translate: 50%;
}

.history::before {
  content: "";
  z-index: -2;
  border-radius: 9999px;
  position: absolute;
  top: 10px;
  width: 5px;
  left: 49.5%;
  translate: -50%;
  background-color: var(--primary-color);
  height: 105%;
}
.history article p {
  color: var(--text-color);
}

.skills,
.projects,
.certificates {
  display: block;
  width: 100%;
  gap: 20px;
  width: fit-content;
  margin: auto;
}

.skills article,
.projects article,
.certificates article {
  margin-bottom: 10px;
  padding: 15px;
  text-align: center;

  box-shadow: 0 0 5px 2px #00000049;
  border-radius: 20px 10px;
  transition: all 0.3s;
  background-color: #fff;
}

.skills article h3,
.projects article h3,
.certificates article h3 {
  margin-top: 20px;
}

.projects article h3 a,
.certificates article h3 a {
  color: #fff;
  border-radius: 99999px;
  padding: 10px 20px;
  text-decoration: none;
  background-color: var(--primary-color);
}

.projects article img,
.skills article img,
.certificates article img {
  aspect-ratio: 16/9;
  width: 50vw;

  max-width: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.skills article:hover {
  transform: skewX(-5deg);
}

section {
  margin: auto;
  width: 75%;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
}

.skills-section {
  padding: 20px;
}

.projects article .image-container,
.certificates article .image-container {
  position: relative;
  margin-bottom: 10px;
}

.projects article .image-container::before,
.certificates article .image-container::before {
  content: "";
  left: 0;
  top: 0;
  position: absolute;
  border-radius: 10px;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}

.projects article:hover .image-container::before,
.certificates article:hover .image-container::before {
  background-color: #13407480;
}

footer {
  color: white;
  display: flex;
  flex-direction: column;
  text-align: center;
}

footer .footer-main {
  display: block;
}

footer .footer-buttom {
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer .footer-main,
footer .footer-buttom {
  padding: 10px;
}

footer .footer-buttom .icons ul {
  display: flex;
  gap: 10px;
  list-style: none;
}

footer .footer-buttom .icons ul li a i {
  color: white;
  text-decoration: none;
}

footer .footer-buttom {
  background-color: var(--secondary-color);
}

footer .footer-main {
  background-color: var(--primary-color);
}

footer .footer-main ul {
  list-style: none;
}

footer .footer-main ul li a {
  color: #fff;
  text-decoration: none;
}
.certificates p{
    margin-top:10px;
    font-size:10pt;
    color:var(--text-color);
}
@media (min-width: 1025px) {
  .skills,
  .projects,
  .certificates {
    display: grid;

    grid-template-columns: repeat(4, minmax(25%, 1fr));
  }
  nav{
    display:block;
    height:fit-content;
   
  }
  nav button{
      display:none;
    }
    nav ul{
        height:fit-content;
        
    display:flex;
  }
  .skills article,
  .projects article,
  .certificates article {
    margin-bottom: 0;
  }
}
