@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --background-darkblue: #101C26;
  --background-blue: #141A26;

  --dark-blue: #031D40;
  --medium-blue: #CADADE;
  --light-blue: #4B83A6;
  --soft-blue: #B4D2D9;

  --soft-blue-shadow: rgba(180, 210, 217, 0.8);
  --blue-shadow: rgba(180, 210, 217, 0.3);
  --darkblue-shadow: rgba(20, 26, 38, 0.8);

  --white: #FDFEFE;
  --black: #000000;

  --principal-font: 'Raleway', sans-serif;
  --title-font: 'IBM Plex Mono', monospace;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--principal-font);
  font-size: 62.5%;
}

body {
  background-color: var(--background-blue);
}

body h2,
h3 {
  font-family: var(--title-font);
}

.container {
  max-width: 980px;
  margin: 0 auto;
}

/* Header */
header {
  position: fixed;
  z-index: 1200;
  top: 0;
  width: 100%;
  background-color: var(--darkblue-shadow);
}

/* Navbar */
nav {
  padding: 35px;
}
nav ul {
  float: right;
}
nav ul li {
  display: inline-block;
}
nav ul li:not(:first-child) {
  margin-left: 25px;
}
nav ul li a {
  display: inline-block;
  outline: none;
  color: var(--soft-blue);
  font-size: 1.8rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
nav ul li a:hover {
  text-decoration: none;
}
#nav:checked+.nav-open {
  transform: rotate(45deg);
}
#nav:checked+.nav-open i {
  background: var(--soft-blue);
  transition: transform 0.2s ease;
}

#nav:checked+.nav-open i:nth-child(1) {
  transform: translateY(6px) rotate(180deg);
}
#nav:checked+.nav-open i:nth-child(2) {
  opacity: 0;
}
#nav:checked+.nav-open i:nth-child(3) {
  transform: translateY(-6px) rotate(90deg);
}
#nav:checked~.nav-container {
  z-index: 9990;
  opacity: 1;
}
#nav:checked~.nav-container ul li a {
  opacity: 1;
  transform: translateY(0);
}
.hidden {
  display: none;
}
.after-transform a {
  position: relative;
  font-size: 1.4rem;
}
.after-transform a:after {
  content: "";
  transition: all .3s ease;
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 2px;
  width: 100%;
  background-color: var(--medium-blue);
  border-radius: 3px;
  transform: scaleX(0) translateZ(0);
  transform-origin: bottom center;
}
.after-transform a.active:after,
.after-transform a:hover:after {
  transform: scaleX(1) translateZ(0);
}
/* /Navbar */
/* /Header */

/* Hero */
.hero {
  height: 200px;
  margin: 55px 35px;
}
/* Herotext */
.hero__text {
  padding: 35px 0;
}
.hero__text h1 {
  position: relative;
  color: var(--light-blue);
}
.hero__text p {
  color: var(--soft-blue);
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 2px 0 0;
}
.hero__text h1,
.hero__text p {
  font-family: var(--title-font);
  font-size: 4rem;
}
.hero__text h1:before {
  content: attr(data-text);
  position: absolute;
  overflow: hidden;
  max-width: 63rem;
  white-space: nowrap;
  color: var(--soft-blue);
  animation: loading 12s linear;
}
@keyframes loading {
  0% {
      max-width: 0;
  }
}
/* /Herotext */
/* /Hero */

/* Aboutme */
.aboutme {
  margin: 55px 0;
}
.aboutme h2 {
  color: var(--medium-blue);
  font-size: 4rem;
  text-align: center;
  margin: 35px 0;
}
.aboutme__content {
  padding: 35px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.aboutme__text p {
  color: var(--soft-blue);
  font-size: 1.6rem;
  line-height: 2rem;
}
.aboutme__text {
  padding: 25px;
}
/* Skills */
.skills {
  width: 300px;
  margin: 0 auto;
  padding: 25px;
  border: 1px solid var(--light-blue);
}
.skills h3 {
  color: var(--medium-blue);
  padding-bottom: 15px;
  font-size: 2rem;
}
.skills li {
  list-style-type: none;
}
.skills li {
  margin: 10px 0;
}
.skills li h4 {
  color: var(--soft-blue);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
  font-size: 1.4rem;
}
.bar {
  display: block;
  height: 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-shadow: 0 0 7px var(--blue-shadow);
}
.bar span {
  height: 5px;
  float: left;
  background-color: var(--light-blue);
}
.html {
  width: 95%;
  animation: html 2s;
}
.css {
  width: 90%;
  animation: css 2s;
}
.sql {
  width: 70%;
  animation: sql 2s;
}
.php {
  width: 50%;
  animation: php 2s;
}
.net {
  width: 50%;
  animation: 2s;
}
.java {
  width: 40%;
  animation: jquery 2s;
}
.javascript {
  width: 20%;
  animation: javascript 2s;
}
@keyframes html {
  0% {
    width: 0%;
  }
  100% {
    width: 95%;
  }
}
@keyframes css {
  0% {
    width: 0%;
  }
  100% {
    width: 90%;
  }
}
@keyframes sql {
  0% {
    width: 0%;
  }
  100% {
    width: 70%;
  }
}
@keyframes php {
  0% {
    width: 0%;
  }
  100% {
    width: 50%;
  }
}
@keyframes net {
  0% {
    width: 0%;
  }
  100% {
    width: 50%;
  }
}
@keyframes java {
  0% {
    width: 0%;
  }
  100% {
    width: 40%;
  }
}
@keyframes javascript {
  0% {
    width: 0%;
  }
  100% {
    width: 20%;
  }
}
/* /Skills */
/* /Aboutme */

/* Projects */
.projects {
  margin: 55px 0;
}

.projects h2 {
  color: var(--medium-blue);
  font-size: 36px;
  text-align: center;
  margin: 35px 0;
}

/* Cards */
.card-container {
  padding: 35px 0;
}
.card-container a {
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
}
.grid>.card {
  box-shadow: 2px 2px 6px 0px var(--blue-shadow);
  border: 1px solid var(--soft-blue);
  /* background-color: #fff; */
  width: 100%;
  height: 150px;
}
.card__content {
  width: 100%;
  height: 150px;
  position: relative;
  text-align: center;
  padding: 45px;
}
.card__content h3,
.card__content p {
  color: var(--soft-blue);
  font-size: 1.6rem;
}
/* /Cards */
/* /Projects */

/* Footer */
footer {
  margin: 25px 0;
}
.footer__socialmedia {
  text-align: center;
}
.footer__socialmedia ul {
  list-style: none;
	margin: 0;
	padding: 0;
}
.footer__socialmedia ul li {
  display: inline-block;
}
.footer__socialmedia ul li a {
  display: block;
  margin: 0 5px;
}
.footer__author {
  padding: 15px;
}
.footer__author a {
  text-decoration: none;
}
.footer__author p {
  text-align: center;
  color: var(--soft-blue);
  font-size: 1.5rem;
}
/* /Footer */

/* Responsive */
/* @media (max-width: 480px) {
  .aboutme__content {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .hero__text h1,
  .hero__text p {
    font-size: 2rem;
  }
} */

@media screen and (min-width:320px) and (max-width: 480px) {
  .aboutme__content {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
  .hero {
    margin: 55px 0;
  }
  .hero__text h1,
  .hero__text p {
    font-size: 2rem;
  }
  .nav-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: var(--background-blue);
    opacity: 0;
    transition: all 0.2s ease;
  }
  .nav-container ul {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
  }
  .nav-container ul li {
    display: block;
    float: none;
    width: 100%;
    text-align: right;
    margin-bottom: 10px;
  }
  .nav-container ul li:nth-child(1) a {
    transition-delay: 0.2s;
  }
  .nav-container ul li:nth-child(2) a {
    transition-delay: 0.3s;
  }
  .nav-container ul li:nth-child(3) a {
    transition-delay: 0.4s;
  }
  .nav-container ul li:nth-child(4) a {
    transition-delay: 0.5s;
  }
  .nav-container ul li:not(:first-child) {
    margin-left: 0;
  }
  .nav-container ul li a {
    padding: 10px 25px;
    opacity: 0;
    color: var(--soft-blue);
    font-size: 2.4rem;
    font-weight: 600;
    transform: translateY(-20px);
    transition: all 0.2s ease;
  }
  .nav-open {
    position: fixed;
    right: 10px;
    top: 10px;
    display: block;
    width: 48px;
    height: 48px;
    cursor: pointer;
    z-index: 9999;
    border-radius: 50%;
  }
  .nav-open i {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--soft-blue);
    border-radius: 2px;
    margin-left: 14px;
  }
  .nav-open i:nth-child(1) {
    margin-top: 16px;
  }
  .nav-open i:nth-child(2) {
    margin-top: 4px;
    opacity: 1;
  }
  .nav-open i:nth-child(3) {
    margin-top: 4px;
  }
}