@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,900;1,700&display=swap");

/* Variables */
:root {
  --font-family: "Roboto", sans-serf;
  --normal-font: 400;
  --bold-font: 700;
  --bolder-font: 900;
  --bg-color: rgb(40, 40, 40);
  --primary-color: #fafafb;
  --secondary-color: rgb(40, 40, 40);
  --primary-shadow: #ffffff;
  --secondary-shadow: #e8bfad;
  --bottom-margin: 0.5rem;
  --bottom-margin-2: 1rem;
  --line-height: 2rem;
  --transition: 0.3s;
  --variable-name: value;
}

html {
  scroll-behavior: smooth;
  scroll-padding: 4rem;
}

/* CSS Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* border: 2px solid red; */
}

/* General HTML page formatting */
ul {
  list-style-type: none;
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);

}

/* Naviagation bar format */
nav {
  opacity: 0;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3.5rem;
  background-color: var(--secondary-color);
  transition: 0.6s;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

nav h1 {
  color: var(--primary-color);
}

nav a {
  color: var(--primary-color);
  transition: var(--transition);
}
nav a:hover {
  color: rgb(52, 97, 193);
  border-bottom: 2px solid rgb(52, 97, 193);
}

nav ul {
  display: flex;
  gap: 1.9rem;
}

nav ul li {
  font-weight: var(--bold-font);
}

.burger-menu {
  color: var(--primary-color);
  font-size: 2rem;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  display: none;
}

.image-container {
    position: relative;
    width: 3rem;   /* Set the desired width */
    height: 3rem;   /* The height will be determined by the content */
    margin-bottom: -2rem;
    transform: translateY(-0.9rem);

}

.image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.4s ease; /* Smooth transition for opacity */
}

.img2 {
    opacity: 0; /* Hide the second image by default */
}

.image-container:hover .img2 {
    opacity: 1; /* Fade in the second image on hover */
}

.image-container:hover .img1 {
    opacity: 0; /* Fade out the first image on hover */
}


/* About me format */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 10px;
  margin: auto;
  z-index: 10;
  width: 40rem;
}

.bio {
  padding: 0.625rem;
  color:var(--primary-color);
  background-color: transparent;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1000;
  height: 300px;

}

/* "Luke" title */
.bio h1 { 
  font-size: 13rem;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  justify-content: center;
  margin-bottom: -56px;
  padding: 0;
  transition: 0.6s, color 0.1s;
  text-shadow: none;
  animation: fadeIn 1.9s, slideRight 1.3s, textShadow 1.5s 0.8s forwards;
}

.bio h1:hover {
  color:rgb(52, 97, 193);
  text-shadow: 7px 2px 2px white !important;
}

/* "Reinbach" title */
.bio h2 {
  opacity: 0%;
  font-size: 4.6rem;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  justify-content: center;
  margin-left: 6px;
  white-space: nowrap;
  padding: 0;
  transition: 0.7s, color 0.1s;
  text-shadow: none;
  animation: fadeIn 1.7s forwards, slideLeft 1.2s, textShadow 1.5s 0.8s forwards;
}

.bio h2:hover {
  color: rgb(52, 97, 193);
  text-shadow: 7px 2px 2px white !important;
  
}

@keyframes fadeIn {
  from {opacity: 0%}
  to {opacity: 100%}
}

@keyframes slide {
  from {margin-top: -300px}
  to {margin-top: 0}
}

@keyframes slideLeft {
  from {margin-left: -300px}
  to {margin-top: 0}
}

@keyframes slideRight {
  from {margin-right: -300px}
  to {margin-right: 0}
}

@keyframes slide {
  0% {transform: translateX(-500px)}
  100% { transform: translateX(0); }
}

@keyframes textShadow {
  100% {text-shadow: 8px 2px 3px rgb(52, 97, 193);}
}

.miniBio {
  padding: 0.625rem;
  color:var(--primary-color);
  background-color: var(--secondary-color);
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 50rem;
  margin: auto;
  width: fit-content;
}

/* bit of text below "Luke Reinbach" heading */
.miniBio p {
  opacity: 0;
  padding: 0.3rem 0;
  font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 25px;
  overflow: hidden; /* Ensures the content is not revealed until the animation */
  border-right: .15em solid rgb(52, 97, 193); /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 0 auto; /* Gives that scrolling effect as the typing happens */
  animation: 
    fadeIn 0s forwards,
    typing 1.8s steps(40, end),
    blink-caret 0.75s step-end infinite;
  animation-delay: 0.8s;
  margin-bottom: 20rem;
  margin-top: 40px;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgb(52, 97, 193); }
}

/* More about me format */ 
.more-about {
  display: flex;
  background-color: var(--bg-color);
  color: rgb(255, 255, 255);
}

.more-about-box {
  opacity: 0;
  right: -100px;
  background-color: rgb(36, 36, 36);
  padding: 2.5rem;
  padding-bottom: 5.5rem;
  color: white;
  justify-content: left;
  align-items: left;
  text-align: center;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin-left: 6.3rem;
  font-size: 20px;
  border: 3px solid rgb(52, 97, 193);
  box-shadow: 2px 6px 8px 2px rgba(0, 0, 0, 0.2), 2px 6px 20px 2px rgba(0, 0, 0, 0.19);
  width: 42%;
  border-radius: 25px;
  height:fit-content;
  padding-top: 4rem;
}

@media (prefers-reduced-motion: no-preference) {
  .more-about-animation {
    animation: fadeIn 1.8s forwards, slide 1.3s forwards;
    animation-delay: 0.2s;
  }
}

/* "How's it going" title */
.more-about h2 {
  margin-top: 1rem;
  margin-bottom: 2.75rem;
  text-align: center;
  justify-content: center;
  align-items: center;
  font-size: 34px;
}

/* "About" title */
.aboutTitle {
  color: white; 
  width: 11.5rem;
  font-size: 3rem; 
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin: auto;
  margin-bottom: 8rem;
  margin-top: 1rem;
  align-items: center;
  justify-content:center;
  text-align: center;
  padding: 1.1rem;
  border-bottom: 0.75rem solid rgb(52, 97, 193);
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.more-about p {
  line-height: var(--line-height);
  text-align: center;
}

.image img {
  height: 17.5rem;
  width: 17.5rem;
  margin-left: 18rem;
  margin-top: -8rem;

}

/* Skills format */
.skill-box {
  position: relative;
  display: flex;
  margin: auto;
  background-color: var(--bg-color);
  flex-wrap: wrap;
  width: 30rem;
  justify-content: center;
  align-items: center;
}

.icon {
  width: 7rem;
  height: 7rem;
  padding: 1rem;
}

.icon-card {
  opacity: 0;
  background-color: rgb(36, 36, 36);
  border-radius: 50%;
  border: 4px solid rgb(52, 97, 193);
  box-shadow: 0 6px 0 rgb(0, 0, 0);
  padding: 8px;
  margin: 10px;
  transition: 0.3s;
  height: fit-content;
}

.icon-card:nth-child(1) {
  animation-delay: 1s;
}

.icon-card:nth-child(2) {
  animation-delay: 0.6s;
  transform: translateY(-3.75rem)
}

.icon-card:nth-child(3) {
  animation-delay: 0.4s;
}

.icon-card:nth-child(4) {
  animation-delay: 0.9s;
}

.icon-card:nth-child(5) {
  animation-delay: 0.8s;
  transform: translateY(-3.75rem);
}

.icon-card:nth-child(6) {
  animation-delay: 0.7s;
}

.icon-card:nth-child(7) {
  animation-delay: 0.3s;
}

.icon-card:nth-child(8) {
  animation-delay: 0.5s;
  transform: translateY(-3.75rem)
}

.icon-card:nth-child(9) {
  animation-delay: 0.1s;
}

.icon-card:nth-child(10) {
  color: white;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 0;
  padding-top: -1.8rem;
  animation-delay: 0.2s;
  transform: translateY(-3.75rem);
  height: 8.75rem;
}

/* Tooltip text */
.icon-card .tooltiptext {
  visibility: hidden;
  width: 6rem;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
 
  /* Position the tooltip below the icon */
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the tooltip text when you mouse over the tooltip container */
.icon-card:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.icon-card:nth-child(1):hover,
.icon-card:nth-child(3):hover,
.icon-card:nth-child(4):hover,
.icon-card:nth-child(6):hover,
.icon-card:nth-child(7):hover,
.icon-card:nth-child(9):hover {
  transform: scale(0.9);
  background-color: rgb(182, 182, 182);
  box-shadow: 0 0px rgba(184, 182, 182);
}

.icon-card:nth-child(2):hover,
.icon-card:nth-child(5):hover,
.icon-card:nth-child(8):hover {
  transform: translateY(-3.75rem) scale(0.9);
  background-color: rgb(182, 182, 182);
  box-shadow: 0 0px rgba(184, 182, 182);
}

.icon-card:nth-child(10):hover {
  transform: translateY(-3.75rem) scale(0.9);
  background-color: rgb(182, 182, 182);
  box-shadow: 0 0px rgba(184, 182, 182);
}

@media (prefers-reduced-motion: no-preference) {
  .icon-animation {
    animation: fadeIn 1.5s forwards
  }
}

/* Projects format */
.projects {
  background-color: var(--bg-color);
  margin-top: 10rem;
  color: white;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

.projects h2 {
  width: 14rem;
  font-size: 45px; 
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin: auto;
  margin-bottom: 4rem;
  margin-top: 1rem;
  align-items: center;
  justify-content:center;
  text-align: center;
  padding: 1.1rem;
  border-bottom: 12px solid rgb(52, 97, 193);
  text-shadow: 2px 2px 4px rgb(0, 0, 0);
}

.projects a {
  text-decoration: none;
}

.projects a:link {
  color: white;
}

.projects a:visited {
  color: white;
}

.projects a:hover {
  color: white;
}

.project-pic {
  width: 65%;
  height: 60%;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 0.45rem;
  box-shadow: 1px 1px 4px black;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.projects-title {
  text-align: center;
  margin-top: 7rem;
  margin-bottom: 3rem;
}

.project-container {
  text-align: center;
  width: 21.875rem;
  padding: 1rem;
}

.project-container p {
  padding: 0.4rem;
}

.project-title {
  margin-bottom: var(--bottom-margin);
  margin-top: .75rem;
}

.project-details {
  margin-bottom: var(--bottom-margin);
  background-color: rgb(58, 57, 57);
  border-radius: 0.45rem;
  transition: 0.25s;
}

.project-card {
  width: 27rem;
  height: 19rem;
  background-color: rgb(36, 36, 36);
  border-radius: 11px;
  box-shadow: 0 3px 10px black;
  padding: 20px;
  margin: 10px;
  border: 2px solid rgb(52, 97, 193);
  transition: 0.25s;
}

.project-card:hover {
  background-color: rgb(52, 97, 193);
  transform: scale(1.05);
}

.project-card:hover .project-details {
  background-color: rgb(201, 201, 201);
  color: black;
}

/* Contact Format */
.contact {
  margin-top: 13rem;
  margin-bottom: 8rem;
  color: white;
  justify-content: center;
  align-items: center;
}

.contact h1 {
  color: #ffffff;
  font-size: 45px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  margin: auto;
  text-align: center;
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}

.contact-form-container {
  max-width: 40.75rem;
  margin: 0 auto;
  padding: 0.938rem;
  border-radius: 25px;
}

.contact-form-container textarea {
  min-height: 6.25rem;
  font-size: 14px;
}

.contact-form-container .input-field {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  border: none;
  border: 2px outset rgb(61, 61, 61);
  font-size: 0.875rem;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  outline: none;
  background-color: rgb(61, 61, 61);
  border: 3px solid rgb(52, 97, 193);
  color: white;
}

.input-field::placeholder {
  padding: -0.5rem;
  color: rgb(213, 213, 213);
  opacity: 40%;
}

.submit-btn {
  width: 30%;
  padding: 10px;
  margin-left: 27.25rem;
  color:rgb(164, 164, 164);
  background-color: rgb(61, 61, 61);
  border: 2px solid rgb(52, 97, 193);
  border-radius: 5px;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: var(--bold-font);
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: rgb(52, 97, 193);
  color: rgb(255, 255, 255);
  cursor: pointer;
}


/* Footer format */
footer {
  color: white;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  background-color: rgb(28, 28, 28);
  padding: 1.25rem;
  text-align: center;
  margin: 2rem 0 0;
}

@media screen and (max-width: 740px) {
  nav {
    padding: 1.5rem 1rem;
  }

  nav ul {
    position: fixed;
    background-color: var(--bg-color);
    flex-direction: column;
    top: 86px;
    left: 10%;
    width: 80%;
    text-align: center;
    transform: translateX(120%);
    transition: transform 0.5s ease-in;
  }

   nav ul li {
    margin: 8px;
  }

  .burger-menu {
    display: block;
  }

  nav ul.show {
    transform: translateX(0);
  }

  .hero {
    margin-top: -4rem;
    flex-direction: column;
    gap: 0;
    width: fit-content;
  }

  .bio {
    margin-top: 4rem;
   
    width: fit-content;
   

  }

  .bio h1 {
    font-size: 5rem;
    margin: auto;
    margin-bottom: -1.35rem;

  }

  .bio h2 {
    font-size: 1.75rem;
    margin: auto;
  
  }

  .miniBio {
    padding: 0.625rem;
    max-width: 100rem;
    margin: auto;
    margin-top: -12rem;
    margin-bottom: 5rem;
  }
  
  .miniBio p {
    font-size: 12px;
  }

  .more-about {
    display: block;
  }

  .aboutTitle {
    width: 6.5rem;
    font-size: 1.5rem; 
    margin: auto;
    margin-bottom: 8rem;
    margin-top: 1rem;
    padding: 0.8rem;
    border-bottom: 0.5rem solid rgb(52, 97, 193);
  }

  .more-about h2 {
    font-size: 1rem;
    margin-bottom: 1.6rem
  }

  .more-about-box {
    display: block;
    font-size: 0.5rem;
    right: 0;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    width: 80%;
    margin-top: -4rem;
    line-height: 0.1em;
    padding: 1rem;
  }

  .skill-box {
    display: flex;
    width: 22rem;
    margin: 0 auto;
    margin-top: 7rem;
    justify-content: center;
    align-items: center;
  }

  .icon {
    width: 5rem;
    height: 5rem;
    padding: 1rem;
    line-height: 1.1rem !important;
  }

  .icon-card {
    opacity: 0;
    background-color: rgb(36, 36, 36);
    border-radius: 50%;
    border: 3px solid rgb(52, 97, 193);
    box-shadow: 0 6px 0 rgb(0, 0, 0);
    padding: 4px;
    margin: 10px;
    transition: 0.3s;
    height: fit-content;
    width: fit-content;
  }

  /* Tooltip text */
  .icon-card .tooltiptext {
    width: 4rem;
    font-size: 13px;
    padding: 3px 0;
  }

  .icon-card:nth-child(10) {
    font-size: 0.75rem;
    line-height: -1000rem;
    padding-top: -5rem;
    transform: translateY(-3.75rem);
    height: 6.25rem;
  }

  .icon-card:nth-child(10):hover {
    transform: translateY(-3.75rem) scale(0.9);
  }

  .projects h2 {
    width: 8.5rem;
    font-size: 1.5rem; 
    margin-bottom: 3rem;
    margin-top: 1rem;
    padding: 0.8rem;
    border-bottom: 0.5rem solid rgb(52, 97, 193);
  }

  .projects-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .project-container {
    text-align: center;
    width: 20rem;
    height: fit-content;
    padding: 1rem;
  }

  .contact h1 {
    font-size: 25px;
  }

}

@media screen and (max-width: 440px) {
  .submit-btn {
    margin-left: 16.875rem;
    font-size: 13px;
  }
}

@media screen and (max-width: 380px) {
  .submit-btn {
    margin-left: 15.15rem;
    font-size: 13px;
  }
}