* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-size: 1em;
  font-family: 'Roboto Condensed', sans-serif;
  overflow-x: hidden;
}

.notransition {
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
  transition: none !important;
}

a:link {
  text-decoration: none;
  transition: all 0.1s;
}

section {
  display: flex;
  flex-direction: column;
  padding: 1em;
  min-height: 100vh;
}

section h2 {
  position: relative;
  width: 95%;
  background-color: white;
  margin-bottom: 1em;
  font-size: 1.8em;
}

section h2::after {
  position: absolute;
  left: 0;
  bottom: -4px;
  display: inline-block;
  content: "";
  height: 4px;
  width: 100%;
  background-image: linear-gradient(to right, forestgreen, blue, red);
  background-size: 300%;
  background-position: left;
/*   animation: slide_gradient 4s infinite; */
  animation: slide_gradient 4s infinite alternate;
}

@keyframes slide_gradient {
  0% {
    background-position: left;
  }
  100% {
    background-position: right;
  }
}

section > div {
  flex-grow: 1;
}


/******NAV STYLES*********/

.icon {
  position: fixed;
  top: 0;
  right: 0;
  padding: 1em;
  cursor: pointer;
  z-index: 1100;
}

.hidden { display: none; }

nav {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 12em;
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: #555c;
  color: #eee;
  font-size: 2em;
  padding: 0.5em;
  z-index: 1000;
  transition: width 0.5s;
}


nav.header {
  flex-direction: row;
  width: 100%;
  bottom: unset;
  left: 0;
}

nav.closed {
  width: 0;
  right: -4em;
}

nav a {
  position: relative;
  color: inherit;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #f9f9f9;
}

nav a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  z-index: 100;
  border-bottom: 2px solid #ffbf00;
  transition: width 0.2s;
}

nav a:hover::after {
 width: 100%; 
}

/**************HOME LANDING PAGE************/

#home {
  display: grid;
  justify-content: center;
  align-items: center;
  font-size: 3em;
}

h1 {
	color: #222;
/* 	box-shadow: 1px 12px 10px green; */
/* 	box-shadow: 0px 6px 7px 6px rgba(0,0,0,0.75); */
/*   text-shadow: -3px -3px 3px #b30f0f; */
  text-shadow: -3px -3px 3px #d11;
	padding: 0.2em;
}

h1 span {
  font-family: 'Courgette', cursive;
}


/*********************/
/***ABOUT ME SECTION***/
/**********************/

.section-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-me-block {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 1em;
  gap: 1em;
  align-items: center;
  background-color: #e9e9e2;
  width: 48em;
  font-size: 1.4em;
  color: #222;
  border-radius: 15px;
}

.about-me-block > div {
  flex: 1 1 16em;
}

.about-me-block img {
  width: 8em;
}

.about-me-block p {
  margin: 1em 0;
}

/*****skills section******/

.skill-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-wrap: wrap;
}

.skill-item {
  position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	font-size: 1.8em;
	margin: 0 2.5em;
	margin-top: 2.5em;
	border-radius: 15px;
	border: 2px solid gray;
	padding: 0.3em;
  background-color: transparent;
  transition: background-color 0.2s;
}

.skill-item:hover {
/* 	background-color: #e8e8e8b8; */
	background-color: #e8e8e8d8;
/* 	background-color: black; */
}

.skill-item::after {
  opacity: 0;
  transition: opacity 0.35s;
  content: "Proficiency Level: " attr(data-proficiency) " Stars";
  position: absolute;
  top: -2.8em;
  left: 50%;
  transform: translateX(-50%);
  background-color: #393ba8;
  color: #fff;
  border-radius: 12px;
  padding: 0.4em;
  white-space: nowrap;
}

.skill-item:hover::after {
  opacity: 1;
}

.skill-item img {
  height: 6em;
  width: 6em;
  margin-bottom: 1em;
}


/*************PROJECTS AREA*********/

.my-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2em;
  padding: 2em;
  grid-template-rows: 400px;
  align-content: center;
}

.card {
  display: flex;
  flex-direction: column;
  background-color: #ececec;
  padding: 0.5em;
  border-radius: 12px;
  font-size: 1.2em;
  box-shadow: 0px 0px 6px 2px rgba(0,0,0,0.75);
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0px 0px 12px 2px rgba(0,0,0,0.75);
}

.card_title {
  font-size: 1.25em;
}

.project-thumb {
  margin: 1em 0;
  background-color: gray;
  height: 8em;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
}

.card>div:last-child {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}


/****************************************/
/*************CERTIFICATIONS AREA********/
/****************************************/

.certifications > a {
  width: 13em;
  margin: 3em;
  padding: 1em;
  background-color: #fff0;
  transition: all 0.3s;
  border-radius: 12px;
}

.certifications > a:hover {
  background-color: #dddd;
}

.certifications img { width: 100%; }


/****************************************/
/*************CONTACT AREA***************/
/****************************************/


.contact-box {
  background-color: #76a432;
  padding: 0.5em;
  border-radius: 12px;
  font-size: 1.5em;
  color: #eee;
  width: 24em;
}

.contact-head {
  border-bottom: 1px solid white;
  font-size: 1.1em;
}

.contact-head + * {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.3em
}

.contact-box img {
  height: 1.2em;
}

.contact-box a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.2em;
  background-color: lightgray;
  border-radius: 8px;
  color: #222;
  border: 1px solid #222;
  transition: all 0.3s;
}

.contact-box a:hover {
  background-color: #222;
  color: lightgray;
  border: 1px solid lightgray;
}



/**********GOODBYE AREA *****/


.goodbye-area {
  height: calc(100vh - (43px + 1em));
  display: grid;
  place-items: center;
  background-color: gray;
}


.goodbye-area > h2 {
  font-size: 4em;
  text-align: center;
  background-image: linear-gradient(black, purple, black, red, black, red, black, blue, black);
  background-size: auto 300%;
  background-position: center;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: 0.2s;
}


/* .goodbye-area > h2:hover  */
.goodbye-area > h2.scroll {
  background-position: bottom;
}

.goodbye-area > h2.up {
  background-position: top;
}

/******FOOTER***********/


footer {
  background-color: #222;
  color: #aaa;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.5em;
}

footer > * {
  margin: 0.25em 0;
  text-align: center;
}

footer a:link,
footer a:visited {
  color: #bbb;
}

footer a:hover {
  color: #eee;
}


/***media querries**/

@media only screen and (max-width: 450px) {
  .my-projects {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    justify-content: center;
    gap: 1.5em;
  }
}

@media only screen and (max-width: 350px) {
  #home { font-size: 2em; }
  nav { width: 100%; }
}
