:root {
  --primary-color: #191A1D;
  --secondary-color: #1F4FC7;
  --accent1-color: #919191;
  --accent2-color: #FAF33E;
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  background-color: #eee;
}

header {
  width: 100%;
  height: 100px;
  position: relative;
}

.scrolled {
  background-color: white;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
}

#fixed-top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hamburger {
  position: absolute;
  right: 5%;
  cursor: pointer;
  Z-index: 5;
}

div.hamburger .line {
  width: 30px;
  height: 3px;
  margin: 5px;
  background: #1f4fc7;
}

header .header_logo {
  font-size: 30px;
  color: #35363a;
  font-weight: 500;
  margin-left: 50px;
  cursor: pointer;
}

header .header_logo:hover {color: #1F4FC7;}

/* Header responsivity */
header nav {
  position: absolute;
  top: -20px;
  left:0;
  width: 100%;
  height: 100vh;
  background: #35363a;
  clip-path: circle(5px at 95% 5%);
  -webkit-clip-path: circle(5px at 95% 5%);
  transition: clip-path 0.5s ease-in;
  z-index: 2;
  padding-top: 100px;
}

header nav ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

header nav.open {
   clip-path: circle(2000px at 95% 5%);
  -webkit-clip-path: circle(2000px at 95% 5%);
}

header nav ul a { 
  text-decoration: none;
  color: white;
  border-bottom: none;
  position: relative;
  transition: color 0.5s;
  font-size: 1.5rem;
  padding: 20px auto;
}

header nav ul {
  list-style: none;
}

header nav ul a:hover {
  color: #1f4fc7;
}

main {
  width: 100%;
  height: auto;
  margin: 0;
}
/* Container style */
.container {
  display: flex;
  align-items: center;
  width: 100%;
  height: fit-content;
  position: relative;
  margin-top: 100px;
}

.container section {
  width: 80%;
  height: 100%;
  padding: 50px;
  color: #35363a;
  margin-left: 5%;
}

.container section h1 {font-size: 3rem;}

.container section p {
  font-size: 2rem;
  margin-bottom: 75px;
}

.container section button{
  width: 220px;
  height: 60px;
  background: #1f4fc7;
  border-radius: 5px;
  color: #fff;
  font-size: 25px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  margin-right: 25px;
}

.container section button:hover{
  transform: scale(1.05);
  background: transparent;
  border: 2px solid #1f4fc7;
  color: #1F4FC7;
}

.container picture {
  display: none;
}

/* --------------about section------------------ */
div.about, div.contact {
  width: 90%;
  height: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.about .profile {
  width: 100%;
  padding: 50px;
}


.about_header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 50px;
}

.about .about_header picture img {
  width: 200px;
  height: 200px;
  border-radius: 10px;
}

.about .profile .about_header picture {
  float: left;
  margin-right: 50px;
}

.about_header .description p {
  margin-top: 30px;
}

section {
  margin-top: 50px;
}

section .progress {
  display: flex;
  width: 100%;
  height: 1rem;
  font-size: .75rem;
  background-color: #ddd;
  margin: .75rem 0 2rem 0;
}

section .progress-bar {
  height: 100%;
  background-color: #1F4FC7;
}

section span#number {float: right;}


/* arctile about me */
article {
  padding: 50px;
  width: 100%;
}

article h2 {
  margin-top: 1rem;
  margin-bottom: 50px;
  font-size: 2rem;
}

article p {
  font-size: 1.3rem;
  line-height: 2.5rem;
}

/* Education */
.education {
  margin-top: 50px;
  margin-left: 50px;
}

.education li .title {
  width: 20%;
  height: auto;
  background-color: #1F4FC7;
  border-radius: 10px;
  text-align: center;
  color: white;
  padding: 10px;
}

.education li {position: relative;list-style: none;}

.education li p {width: 20%;margin-bottom: 75px;}

.education li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -30px;
  width: 20px;
  height: 20px;
  background-color: #35363a;
  border-radius: 10px;
}
.education li::after {
  content: "";
  position: absolute;
  top: 50px;
  left: -20px;
  width: 2px;
  height: 75%;
  background-color: #35363a;
  border-radius: 10px;
}

.education li p {
  width: 90%;
  height: auto;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
}

/* Services card */

#education, #about, #services, #portfolio, #contact {
  text-align: center;
  margin-top: 150px;
  position: relative;
  font-size: 2.5rem;
}

#education::after, #about::after, #services::after, #portfolio::after,  #contact::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 50px;
  width: 5%;
  height: 5px;
  background-color: #1f4fc7;
  border-radius: 10px;
}

.services {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.services div.card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
  background-color: #fff;
  max-width: 400px;
}

.services div.card p {
  width: 85%;
}

.services div.card .icon {
  font-size: 2rem;
  width: 75px;
  height: 75px;
  margin-top: 25px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* statistics banner */
.stat-banner {
  margin-top: 150px;
  width: 100%;
  height:fit-content;
  background-image: url("/img/back.jpg");
  background-position:center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.stat-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  opacity: 0.6;
  z-index: 1;
}

.stat-banner .container {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  margin: 0 auto; 
  width: 80%;
  height: 100%;
  z-index: 2;
}

.stat-banner .container .element {
  color: white;
  font-size: 1rem;
  text-align: center;
  line-height: 1rem;
}

.element #number {font-size: 2rem;}

/* Portfolio sectio */
.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  width: 75%;
  margin: 50px auto;
  justify-items: center;
}

.portfolio .work {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.portfolio .work img {
  width: 100%;
  height: auto;
}

.portfolio .work p {
  margin-left: 20px;
  margin-bottom: 20px;
  color: black;
  line-height: 1.3rem;
}

.portfolio .work p:nth-child(1) {font-size: 1.4rem;}

.portfolio .work p:nth-child(2) {font-size: .9rem;}

.portfolio .work p span {font-weight: bold;}


/* Contact us */

.contact section {
  width: 90%;
  margin-left: 20px;
}

.contact section h2 {font-size: 2rem;margin: 10px;}
.contact form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

.contact form input, .contact form textarea {
  padding: 20px;
  margin: 20px 0;
  border: none;
  border-radius: 5px;
  font-size: 1.3rem;
  font-family: "Open Sans", sans-serif;
  background-color: #eee;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
}

.contact form input:focus, .contact form textarea:focus {
  outline: none;
}

.contact form .btn {
  background: #1f4fc7;
  border-radius: 5px;
  color: #fff;
  font-size: 25px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
}

.contact .contact-info {
  width: 100%;
  margin-top: 150px;
  padding-left: 50px;
}

.contact .contact-info li {
  position: relative;
  list-style: none;
  font-size: 1.2rem;
}

.contact .contact-info li p {margin-bottom: 75px;width: 90%;}

.contact-info ul li::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -30px;
  width: 20px;
  height: 20px;
  background-color: #35363a;
  border-radius: 10px;
}
.contact-info ul li::after {
  content: "";
  position: absolute;
  top: 50px;
  left: -20px;
  width: 2px;
  height: 100%;
  background-color: #35363a;
  border-radius: 10px;
}

.contact-info .social-media ul {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 75px;
}

.social-media ul li::after, .social-media ul li::before {
  display: none;
}

.social-media ul {padding: 0;}

.social-media ul li {
  width: 50px;
  height: 50px;
  margin-right: 25px;
  background: #1F4FC7;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.233);
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.social-media ul li:hover {
  background-color: white;
  border: 2px solid #1F4FC7;
}

.social-media ul li i {
  width: 100%;
  height: 100%;
  color: white;
  font-size: 1.4rem;
}

.social-media ul li:hover i {
  color: #1F4FC7;
}

/* Footer */
footer {
  width: 100%;
  height: auto;
  text-align: center;
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.5);
  margin-top: 100px;
  font-size: 1.3rem;
}