/*  

1----- TYPOGHRAPHY SYSTEME :

- SPACING SYSTEM (px)
  2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
  
- FONT SIZE SYSTEM (px)
  10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- FONT-WEIGHT :
    default:400
    500


- LETTER SPACING :
  0.75px

- LINE-HEIGHT :
  default :1
  
   
2----- COLORS:

- Main:  #1d21f9
- Tints: 
#EFF7FA
#DFEDF3

- Shades: 
#006ee6
- Accents:
- Greys : #555 #222

5----- SHADOWS


6----- BORDER RADUIS
  

7----- WHITESPACE


*/

.grid {
  display: grid;
}

.grid-center {
  align-items: center;
}

.grid--2 {
  grid-template-columns: 1fr 1fr;
}

/* 
-------------HERO SECTION ---------------
-----------------------------------------
*/
@keyframes myAnim {
  0%,
  100% {
    transform: translateY(0);
  }

  10%,
  30%,
  50%,
  70% {
    transform: translateY(-8px);
  }

  20%,
  40%,
  60% {
    transform: translateY(8px);
  }

  80% {
    transform: translateY(6.4px);
  }

  90% {
    transform: translateY(-6.4px);
  }
}

@-webkit-keyframes myAnim {
  0%,
  100% {
    transform: translateY(0);
  }

  10%,
  30%,
  50%,
  70% {
    transform: translateY(-8px);
  }

  20%,
  40%,
  60% {
    transform: translateY(8px);
  }

  80% {
    transform: translateY(6.4px);
  }

  90% {
    transform: translateY(-6.4px);
  }
}

@-moz-keyframes myAnim {
  0%,
  100% {
    transform: translateY(0);
  }

  10%,
  30%,
  50%,
  70% {
    transform: translateY(-8px);
  }

  20%,
  40%,
  60% {
    transform: translateY(8px);
  }

  80% {
    transform: translateY(6.4px);
  }

  90% {
    transform: translateY(-6.4px);
  }
}

.animate {
  animation: myAnim 20s ease 0s infinite normal both;
}

.hero-img {
  width: 100%;
}

.section-hero {
  background-color: #eff7fa;
  /* background-image: linear-gradient(to right, #eff7fa, #cce4ff); */

  padding: 4.8rem 0 9.6rem 0;
}

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.subheading {
  display: block;
  color: #1d21f9;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.75px;
  text-transform: uppercase;
}

.tag {
  display: inline-block;
  background-color: #b7e3f7;
  padding: 1.2rem 2.4rem;
  border-radius: 3rem;
  margin-bottom: 3.2rem;
}

.primary-heading {
  font-size: 5.2rem;
  line-height: 1.05;
  color: #222;
  margin-bottom: 3.2rem;
}

.hero-description {
  font-size: 2rem;
  line-height: 1.6;
  margin-bottom: 4.8rem;
}

.hero-button {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  /* justify-content: center; */
}

.btn-full:link,
.btn-full:visited {
  background-color: #1d21f9;
  color: white;
}

.btn-full:hover,
.btn-full:active {
  background-color: #0055b3;
  /* box-shadow: 0 1.2rem 1.4rem #b7dceb; */
  box-shadow: 0rem 0.2rem 2rem rgba(4, 61, 122, 0.267);
}

.btn-outline:link,
.btn-outline:visited {
  background-color: white;
  color: #555;
}

.btn-outline:hover,
.btn-outline:active {
  background-color: #eff7fa;
  color: #555;
  box-shadow: inset 0px 0px 0px 3px white;
}

.btn:link,
.btn:visited {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  font-size: 2rem;
  border-radius: 9px;
  padding: 1.6rem 3.2rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-cta-about:link,
.btn-cta-about:visited {
  padding: 1.2rem 2.4rem;
}

.hero-icon-box {
  font-size: 1.6rem;
  gap: 2.4rem;
}

.hero-button {
  margin-bottom: 6.4rem;
}

.icon {
  margin-right: 1.6rem;
  background-color: white;
  padding: 1.2rem;
  border-radius: 50%;
  transition: all 0.3s;
}

.hero-icon-text {
  font-weight: 500;
}

.icon-link:link,
.icon-link:visited {
  color: #555;
  text-decoration: none;
}

.icon:hover,
.icon:active {
  background-color: #1d21f9;
  color: white;
  transform: translateY(-0.4rem);
  box-shadow: 0 1.4rem 1.6rem rgba(0, 0, 0, 0.075);
}

/* MOBILE */

.btn-mobile {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
  z-index: 9999;
}

.btn-mobile-icon {
  color: #333;
  width: 4.8rem;
  height: 4.8rem;
}

.btn-mobile-icon[name="close-outline"] {
  display: none;
}

/* 
-------------ABOUT ME SECTION ---------------
-----------------------------------------
*/

.section-aboutme {
  padding: 9.6rem 0;
}

.container {
  max-width: 120rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.about-img {
  width: 100%;
}

.about-name {
  font-size: 2.4rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.6rem;
}

.about-description {
  font-size: 2rem;
  line-height: 3.2rem;
  margin-bottom: 3.2rem;
  text-align: justify;
}

/* .english-cv {
  margin-right: 1.2rem;
} */

.section-service {
  padding: 8rem 0;
}

/* 
-------------PROJECTS SECTION ---------------
-----------------------------------------
*/

.section-projects {
  padding: 9.6rem 0;
}

.project-card {
  background-color: #eff7fa;
  border-radius: 1.6rem;
  overflow: hidden;
}

.project-img {
  padding: 3.6rem 2.8rem;
  width: 100%;
}

.project-title {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  color: #1d21f9;
  margin-bottom: 1.6rem;
}

.project-description-box {
  align-items: center;
  padding: 0 2.4rem 2.8rem 2.4rem;
}

.project-description {
  font-size: 1.8rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 1.8rem;
}

.project-tech {
  background-color: #80bdff;
  padding: 0.8rem;
  border-radius: 16rem;
  align-items: center;
  gap: 0.8rem;
}

.project-tech-icon {
  width: 2.6rem;
  height: 2.6rem;
}

.tech-name {
  font-size: 1.6rem;
  color: white;
}

.tech {
  gap: 0.8rem;
  justify-content: center;
}

.project-link:link,
.project-link:visited {
  background-color: #1d21f9;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 16rem;
  align-items: center;
  gap: 0.8rem;
  color: white;
  transition: all 0.3s;
}
.project-link:hover,
.project-link:active {
  background-color: rgb(252, 196, 25);
  color: white;
}

.link-icon {
  width: 2.6rem;
  height: 2.6rem;
}

.tech-link-name {
  font-size: 1.6rem;
}

.project-links {
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.project-container {
  grid-template-columns: repeat(2, 1fr);
  gap: 4.8rem;
}

/*
-------------SERVICES SECTION ---------------
-----------------------------------------
*/

.service-card {
  /* background-color: #1d21f9; */
  padding: 4rem 3.2rem;
  transform: skewX(-3deg);
  border-radius: 1.6rem;
  border: #66666629 solid 1px;
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0px 14px 2.4rem rgb(0, 110, 230, 0.3);
  transform: translateY(0);
}

.service-icon {
  height: 6.4rem;
  width: 6.4rem;
  background-color: #1d21f9;
  margin-bottom: 3.2rem;
  padding: 1.6rem;
  border-radius: 50%;
}

.service-name {
  font-size: 2rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 1.6rem;
}

.service-description {
  font-size: 1.8rem;
  line-height: 1.6;
}

/* ----------------------------------
skills & education section 
-------------------------------------*/

.section-skills {
  background-color: #eff7fa;
  padding: 9.6rem 0;
  transform: translateY(2px);
}

.skill-icon {
  background-color: white;
  border-radius: 50%;
  width: 7.6rem;
  height: 7.6rem;
  padding: 1.6rem;
  margin-bottom: 1.6rem;
  box-shadow: 0px 1rem 2rem rgba(0, 111, 230, 0.074);
  transition: all 0.3s;
}

.skills-box {
  justify-items: center;
  column-gap: 2.8rem;
  row-gap: 4.8rem;
}

.skill-name {
  text-align: center;
  font-size: 1.4rem;
  color: #666;
}

.skill {
  transition: all 0.3s;
  text-align: center;
}

.skill:hover {
  transform: translateY(-1.2rem);
}

.skills {
  column-gap: 3.2rem;
}

.education-box {
  background-color: white;
  padding: 2.4rem 3.2rem 2.4rem 1.6rem;
  border-radius: 9px;
  box-shadow: 0px 1rem 2rem rgba(0, 111, 230, 0.05);
  transition: all 0.3s;
  justify-self: center;
}

.education-box:hover {
  box-shadow: 0px 0rem 2rem rgba(0, 111, 230, 0.1);
  transform: translateY(-1.2rem);
}

.education-logo {
  width: 9.4rem;
  margin-bottom: 1.2rem;
  /* height: 9.4rem; */
}

.education-program {
  font-size: 1.6rem;
  font-weight: 500;
  color: #222;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.education-current-year {
  font-size: 1.4rem;
}

.education-year {
  font-size: 1.4rem;
  color: #2b9cb8;
  font-weight: 500;
  text-align: center;
}

.education-img-box {
  justify-self: center;
  text-align: center;
}

/* --------------------------------
certificates 
---------------------------------*/

.section-certificates {
  padding: 9.6rem 0;
}

.certificate-img {
  width: 100%;
}

.certificate-card {
  /* background-color: #eaf4ff; */
  border-radius: 1.1rem;
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.075);
  overflow: hidden;
  transition: all 0.4s;
}

.certificate-card:hover {
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.06);
  transform: translateY(-1.2rem);
}

.certificate-description {
  padding: 4rem 3.2rem;
}

.certificate-icon {
  width: 4.8rem;
  height: 4.8rem;
  padding: 1rem;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1.6rem 4.8rem rgba(0, 0, 0, 0.08);
}

.certificate-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.link:link,
.link:visited {
  font-size: 1.6rem;
  color: #1d21f9;
  border-bottom: 1px solid #1d21f9;
  text-decoration: none;
  transition: all 0.3s;
}

.link:hover,
.link:active {
  color: #0055b3;
  border-bottom: 1px solid #0054b300;
}

/* ---------------------------------
contact section 
---------------------------------*/

.section-contact {
  padding: 9.6rem 0;
}

.contact-container {
  /* background-color: #eff7fa; */
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2.4rem;
}

.contact {
  padding: 6.4rem 3.2rem;
  border-radius: 0.9rem;
  background-image: linear-gradient(to right bottom, #eff7fa, #b3d7ff);
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.1);
}

.contact-card {
  background-color: white;
  align-items: center;
  padding: 1.2rem 2.4rem;
  font-size: 1.8rem;
  gap: 1.2rem;
  border-radius: 0.9rem;
  color: rgb(143, 143, 143);
}

.contact-icon {
  width: 4rem;
  height: 4rem;
}

.contact-description {
  color: #00254c94;
}

form {
  flex-direction: column;
  gap: 2.4rem;
  color: #00254c;
}

form input,
textarea,
form button {
  padding: 1.2rem;
  border-radius: 0.9rem;
  border: none;
  font-size: 1.8rem;
  font-family: inherit;
  color: inherit;
}

.contact-cards {
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 3.2rem;
  margin-bottom: 6.4rem;
}

.contact-heading {
  font-size: 3.6rem;
  color: #222;
  text-align: center;
  margin-bottom: 8rem;
}

.contact-heading span {
  color: #1d21f9;
}

.submit {
  display: inline-block;
  margin-top: 2.4rem;
  cursor: pointer;
  align-self: center;
  padding: 1.6rem 6.2rem;
  color: white;
  background-color: #1d21f9;
  border: none;
}

.submit:active,
.submit:hover {
  background-color: #0055b3;

  box-shadow: 0rem 0.2rem 2rem rgba(0, 111, 230, 0.267);
}

.contact-form *:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem rgb(0, 122, 255, 0.15);
}

.contact-cards a:link,
.contact-cards a:visited {
  text-decoration: none;
  transition: box-shadow 0.3s;
}

.contact-cards a:hover,
.contact-cards a:active {
  box-shadow: 0px 0rem 2rem rgba(0, 111, 230, 0.074);
}

/* ---------------------------------
HEADER 
---------------------------------*/

.logo {
  height: 3.4rem;
}

header {
  padding: 0 4.8rem;

  background-color: #eff7fa;
  height: 8rem;
}

.main-nav-list {
  align-items: center;
  gap: 4.8rem;
  list-style: none;
}

.main-nav-link:link,
.main-nav-link:visited {
  text-decoration: none;
  display: inline-block;
  color: #333;
  font-size: 1.8rem;
  font-weight: 500;
  transition: all 0.3s;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: #0055b3;
}

.main-nav {
  transform: translateY(3px);
}

.nav-cta:link,
.nav-cta:visited {
  background-color: #1d21f9;
  color: white;
  padding: 1.2rem 2.4rem;
  border-radius: 9px;
}

.nav-cta:hover,
.nav-cta:active {
  background-color: #0055b3;
  box-shadow: 0rem 0.2rem 2rem rgba(0, 111, 230, 0.267);
}

.sticky .header {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 8rem;
  background-color: rgb(255, 255, 255, 0.97);
  box-shadow: 0 1.2rem 3.2rem rgba(0, 0, 0, 0.03);
  z-index: 299;
}

.sticky .section-hero {
  margin-top: 8rem;
}

.sticky-margin {
  margin-top: 8rem;
}

/* ------------------------
footer section 
---------------------------*/

footer {
  padding: 12.8rem 0;
  border-top: 1px solid #eee;
}

.footer-icons {
  justify-self: center;
  gap: 3.2rem;
}

.footer-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: #555;
}

.footer-icon:hover,
.footer-icon:active {
  color: #333;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.4;
  justify-self: end;
  color: #767676;
}

/**************************/
/* Fixing Safari flexbox gap */
/**************************/

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.8rem;
}

.no-flexbox-gap .hero-button a:not(:last-child) {
  margin-right: 1.6rem;
}

.no-flexbox-gap .hero-icon-text {
  margin-right: 2.4rem;
}

.no-flexbox-gap .contact-cards a:not(:last-child) {
  margin-right: 3.2rem;
}

.no-flexbox-gap .contact-icon {
  margin-right: 1.2rem;
}

.no-flexbox-gap .contact-form > *:not(:last-child) {
  margin-bottom: 2.4rem;
}

.no-flexbox-gap .footer-icons a:not(:last-child) {
  margin-right: 3.2rem;
}

.animate-from-bottom {
  opacity: 0;
  transform: translateY(10rem);
  transition: transform 0.5s, opacity 0.5s;
}

.animate-from-left {
  opacity: 0;
  transform: translateX(-20rem);
  transition: transform 0.5s, opacity 0.5s;
}

.animate-from-right {
  opacity: 0;
  transform: translateX(20rem);
  transition: transform 0.5s, opacity 0.5s;
}

.wtp {
  width: 6rem;
  height: 6rem;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1;
}

.wtp-link:link,
.wtp-link:visited {
  text-decoration: none;
}
