/* variables declared here - these are the colors for our pages, as well as the font stacks and sizes. */
:root {
  --black: #171321;
  --dkblue: #0d314b;
  --plum: #4b0d49;
  --hotmag: #ff17e4;
  --magenta: #e310cb;
  --aqua: #86fbfb;
  --white: #f7f8fa;
  --font-size: 1.3rem;
  --mono: "Oxygen mono", monospace;
  --sans: Oxygen, sans-serif;
}
/* border box model: https://css-tricks.com/box-sizing/ */
html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  padding: 0;
  margin: 0;
  font-family: var(--sans);
  background-color: var(--black);
  color: var(--white);
  font-size: var(--font-size);
}

h1,
h2,
h3 {
  margin: 0;
}

a {
  color: var(--magenta);
}

a:hover {
  color: var(--hotmag);
  text-decoration: none;
}

img {
  width: 100%;
}

/*div background-colors*/

.section-blue {
  background-color: var(--dkblue);
}

.section-plum {
  background-color: var(--plum);
}

.gradient {
  background: linear-gradient(
    90deg,
    rgba(255, 23, 228, 1) 0%,
    rgba(134, 251, 251, 1) 100%
  );
  height: 2px;
}

/*div background-colors*/

#intro {
  padding: 4rem 1rem 10rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto;
}

#intro p {
  font-size: 1rem;
  line-height: 1.5;
}

#intro .name {
  font-family: var(--mono);
}

.name span {
  font-family: var(--sans);
  font-size: 4rem;
  color: var(--aqua);
  display: block;
  font-weight: 300;
}

#intro h2 {
  font-size: 4rem;
}

/*contact */

#contact {
  text-align: center;
  width: 400px;
  margin: 0 auto;
  padding: 3rem 0;
}

#contact p:last-child {
  margin-top: 3rem;
}

/*about*/

nav {
  font-family: var(--mono);
  font-size: 80%;
  padding: 1rem;
}

nav h1 a {
  font-family: var(--sans);
}

nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style-type: none;
  align-items: center;
  gap: 2rem;
}

nav li:first-child {
  border: 0px solid red;
  flex-basis: 100%;
  text-align: center;
}

nav a {
  text-decoration: none;
  color: white;
  display: block;
}

nav [class*="fa-"] {
  font-size: 150%;
  color: var(--aqua);
}

nav h1 [class*="fa-"] {
  font-size: 100%;
  color: var(--aqua);
}

nav a:hover,
nav [class*="fa-"]:hover {
  color: var(--hotmag);
}

.resume {
  padding: 0.5rem;
  color: white;
  background-color: var(--magenta);
  border-radius: 5px;
  font-family: var(--mono);
  text-decoration: none;
}

.resume:hover {
  color: var(--white);
  background-color: var(--hotmag);
}

/*projects section*/

#projects {
  padding: 4rem 1rem;
}

#projects h2 {
  font-size: 2.5rem;
  margin-bottom: calc(2.5rem * 1.5);
}

#projects h3 {
  color: var(--aqua);
}

#projects h4 {
  font-size: 1rem;
  font-family: var(--mono);
  margin: 0;
}

.blackbox {
  padding: 1rem;
  border-radius: 10px;
  color: white;
  background-color: var(--black);
  font-size: 1rem;
  line-height: 1.5;
}

#projects ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  gap: 1rem;
  font-size: 1rem;
}

#projects img {
  margin: 2rem 0 4rem 0;
  padding: 1rem;
  border-left: 1px solid var(--aqua);
  border-top: 1px solid var(--aqua);
  border-radius: 25px;
}

/*footer */
footer {
  font-weight: normal;
  text-align: center;
  padding: 4rem 0;
}

footer ul {
  list-style-type: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
  gap: 3rem;
  font-size: 3rem;
}

/*Transitions*/
.fa-linkedin,
.fa-github,
.fa-envelope,
.fa-square-github {
  transition: transform 0.3s linear, color 0.5s linear;
}

.fa-linkedin:hover,
.fa-envelope:hover,
.fa-github:hover,
.fa-square-github:hover {
  transform: scale(1.25);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;

  /* Position */
  position: absolute;
  bottom: 100%; /* above the icon */
  left: 50%;
  /* transform: translateX(-50%); */
  white-space: nowrap;

  /* Small arrow */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (min-width: 800px) {
  article {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
  }

  #projects {
    max-width: 1200px;
    margin: 0 auto;
  }

  #projects img {
    grid-column: 1/6;
    grid-row: 1/2;
  }
  .text {
    grid-column: 5/11;
    grid-row: 1/2;
    order: 2;
    text-align: right;
  }

  /*About me*/
  .aboutme {
    padding-top: 2rem;
    color: var(--aqua);
  }

  #projects ul {
    justify-content: flex-end;
  }

  #projects .text-left {
    grid-column: 1/7;
    grid-row: 1/2;
    order: 1;
    text-align: left;
  }

  #projects .image-right {
    grid-column: 6/11;
    grid-row: 1/2;
  }

  #projects .text-left ul {
    justify-content: flex-start;
  }
}

/*responsive design*/

@media (min-width: 850px) {
  nav {
    border: 0px solid red;
    max-width: 1200px;
    margin: 0 auto;
  }

  nav li:first-child {
    flex-basis: auto;
    text-align: center;
    margin-right: auto;
  }
}
