/* General Stuff */

:root {
  --dark-color: #010101;
  --light-color: #dfdfe2;

  --main-color1: #0B0704;
  --main-color2: #060201;
  --main-color3: #251F1F;
  --main-color4: #170A02;

  --accent-color1: #220A00;
  --accent-color2: #924926;
  --accent-color3: #A65923;
  --accent-color4: #C88761;

  --header-height: 80px;
  --header-height-neg: -80px; 
}

* {
  /* border: 2px solid red; */
  margin: 0;
  padding: 0;
}

html {
  font-family: sans-serif;
  box-sizing: border-box;
  font-size: 20px;
}

@font-face {
  font-family: headerFont;
  src: url(./Fonts/lt_wave/LTWave-Black.otf);
}

@font-face {
  font-family: bodyFont;
  src: url(./Fonts/garet/Garet-Book.otf);
}

h1, h2 {
  font-family: headerFont;
  font-weight: 100;
}

h3, p, div {
  font-family: bodyFont;
  font-weight: 100;
  line-height: 1.1;
}

body {
  background-color: var(--main-color3);
  color: var(--dark-color);
  margin: 0;
}

/* section {
  margin-top: 60px;
  margin-bottom: -60px;
} */

/* This section handles the navigation bar on top of the screen */

/* Part of the navbar was borrowed from w3schools.com https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_topnav also used https://www.youtube.com/watch?v=qzAAiKFfNLo&t=171s*/

header {
  width: 100%;
  background: linear-gradient(5deg, var(--main-color1), var(--main-color2));
  /* background-color: red; */
  box-shadow: 0 0 20px 0 #060201;
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: row; */
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 99999;
  overflow: hidden;
}

.logo-name {
  width: min-content;
  color: var(--light-color);
  font-size: 4rem;
  text-align: left;
  padding-left: 10px;
  /* height: 100%; */
  /* display: flex; */
  /* flex-direction: row; */
  margin: auto 0;
}

/* .logo {
  height: 80%;
  padding: 0.4rem;
} */

nav {
  /* width: 50%; 
  max-width: 600px; */
  height: 100%;
  /* overflow: hidden; */
}

nav > ul {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  padding-inline-start: 0;
  margin-block: 0;
  height: 100%;
}

nav > ul > li, .hamburger-container {
  color: #dfdfe2;
  font-size: 1.3rem;
  margin: 0 0.4rem;
  display: flex;
  align-items: center;
}

.hamburger-container {
  margin: auto 30px auto 0;
  font-size: 1.6rem;
  padding: 0.2rem 0.4rem;
  display: none;
  /* position: absolute; */
  transform-origin: center;
  /* width: min-content; */
  color: var(--light-color);
  width: min-content;
  height: min-content;
  border-radius: 10%;
}

.hamburger-container:hover {
  animation: hamburger-button 1s forwards;
}

nav > ul > li > div {
  width: 0%;
  padding: 0.4rem;
  border-radius: 2px;
}

nav > ul > li:hover > div {
  background-color: #dfdfe2;
  width: 0%;
  cursor: pointer;
  animation: nav-element 1s forwards;
}

li > div > p, .hamburger-container > p {
  margin: auto 0;
  width: 100%;
  color: inherit;
  text-align: center;
}

@media screen and (max-width: 1000px) {
  header {
    /* align-items: left; */
    /* justify-content: left; */
    height: auto;
  }

  /* .logo-name {
    position: relative;
    right: 38vw;
  } */

  nav {
    overflow: visible;
    width: 100%;
  }

  nav > ul {
    width: 100%;
    flex-direction: column;
    align-items: left;
    justify-content: left;
  }

  nav > ul > li {
    width: 100%;
  }

  nav > ul > li > div {
    display: none;
  }

  .hamburger-container {
    display: inline-flex;
    /* position: absolute;
    right: 20vw;
    top: 1rem; */
  }

  .navbar.responsive > ul > li > div {
    float: left;
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
  }
}

@media screen and (max-width: 700px) {
  .logo-name {
    font-size: 3rem;
  }
  nav > ul > li {
    font-size: 1rem;
    margin: 0 0.2rem;
  }
  nav > ul > li > div {
    padding: 0.2rem;
  }
}

/* This section handles the Home section */
.home-section {
  /* width: 100vw; */
  height: 100vh;
  overflow: hidden;
}

h1 {
  font-size: min(3rem, 3.4vw);
}

.home-stand-out-text {
  font-size: 1.3em;
  color: var(--light-color)
}

.home-background-photo {
  width: 100%;
  height: 120%;
  position: relative;
  z-index: -1;
  object-fit: cover;
  overflow: hidden;
}

.home-slogan {
  position: relative;
  top: -80vh;
  left: 63vw;
  /* overflow: visible; */
  z-index: -1
}

@media only screen and (max-width: 1200px) {
  .home-slogan {
    text-align: center;
    width: 100%;
    left: 0;
    display: flex;
  }

  .home-slogan > div {
    padding: 8px;
    margin: 0 auto;
    background-color: var(--accent-color2);
    border-radius: 5px;
    box-shadow: 5px 5px 10px 2px var(--dark-color);
  }

  h1 {
    font-size: 2.5rem;
  }

  .home-stand-out-text {
    font-size: 1.3em;
  }
}

@media only screen and (max-width: 600px) {
  h1 {
    font-size: min(2.5rem, 9vw);
  }

  .home-stand-out-text {
    font-size: 1.3em;
  }

  .home-slogan > div {
    width: 100%;
    border-radius: 0;
    box-shadow: 0 5px 10px 2px var(--dark-color);
  }
}

/* This sectoin handles the About section */
/* For this section we have the text blurb coming in from the left, the line growing from the center, and the timeline coming up from the bottom. */

.about-section {
  /* This height may need to be adjusted as  more things are added to the timeline */
  height: 70vh;

  padding: 20px 0;
  background-color: var(--main-color3);
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  /* margin-bottom: var(--header-height-neg); */
}

.about-section > div {
  opacity: 0;
  margin: 10px 30px;
  transition: 1s all ease;
  color: var(--accent-color4);
}

.blurb-container {
  width: 45%;
  max-width: 600px;
  transform: translateX(-600px);
  margin-left: 60px;
  margin-top: 60px;
}

.about-section.active > .blurb-container {
  transform: translateX(0px);
  opacity: 1;
}

.line {
  height: 0%;
  border: solid 1px var(--light-color);
  margin: 20px 0;
}

.about-section.active > .line {
  height: 90%;
  opacity: 1;
}

.timeline-container {
  width: 35%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  transform: translateY(300px);
  margin-right: 60px;
  margin-bottom: 60px;
}

.about-section.active > .timeline-container {
  transform: translateY(0);
  opacity: 1;
}

.timeline-element {
  font-size: min(1rem, 1.5vw);
  margin-top: 10px;
  border-top: solid 2px var(--main-color4);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

.timeline-element > p {
  font-size: 1.3em;
}

.timeline-element:nth-of-type(1) {
  border-top: 0;
}

@media screen and (max-width: 1350px) {
  .blurb-container {
    font-size: 0.8rem;
  }
}

@media only screen and (max-width: 1000px) {
  .timeline-element {
    font-size: min(1rem, 3vw);
  }

  .about-section {
    flex-direction: column;
    height: auto;
  }
  .line {
    height: 0;
    width: 0;
  }
  .about-section.active > .line {
    height: 0;
    width: 90%;
    opacity: 1;
  }
  .blurb-container, .timeline-container {
    width: 80%;
  }
}

@media screen and (max-width: 500px) {
  .timeline-element {
    font-size: 0.7rem;
  }

  .blurb-container {
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 400px) {
  .about-section > div {
    text-align: center;
  }
  .timeline-container {
    width: 60%;
  }
  .timeline-element {
    flex-direction: column;
    align-items: center;
  }
  .timeline-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* This section handles the Skills section */
.skills-section {
  width: 100%;
  /* height: 5rem; */
  background-color: var(--main-color1);
  /* padding: 2vh 0; */
  /* margin-top: var(--header-height); */
  overflow: hidden;
}

/* Container styles */
.scrolling-text-container {
  border-radius: 4px;
  overflow: hidden;
}

/* Inner container styles */
.scrolling-text-inner {
  /* height: 100%; */
  display: flex;
  white-space: nowrap;
  font-size: 3rem;
  color: var(--light-color);
  font-weight: 600;
  padding: 8px 0;
}

/* Text styles */
.scrolling-text {
  display: flex;
}

.scrolling-text-item {
  padding: 0 max(2vw, 15px);
}

/* Apply the animation to the text items */
.scrolling-text-inner>div {
  animation: scroll var(--marquee-speed) linear infinite;
}

/* Pause the animation when a user hovers over it */
.scrolling-text-container:hover .scrolling-text-inner>div {
  animation-play-state: paused;
}

/* Setting the Animation using Keyframes */
@keyframes scroll {
  0% {
    transform: translateX(10vw);
  }

  50% {
    transform: translateX(calc(-100% + 90vw));
  }

  100% {
    transform: translateX(10vw);
  }
}

@media screen and (max-width: 1350px) {
  .scrolling-text-inner {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 1000px) {
  .scrolling-text-inner {
    font-size: 2rem;
  }
}

/* This is the section for the projects page */
/* For these project cards I used some html and css from devdevout.com https://devdevout.com/css/css-cards https://codepen.io/jepooley/pen/NWYryap*/
.project-container {
  width: 400px;
  height: 300px;
  padding: 50px;
  color: var(--accent-color4);
  margin: 20px;
  background-color: var(--light-color);
  border: 5px solid black;
  border-radius: 10px;
  box-shadow: 0 0 10px 2px var(--dark-color);
  position: relative;
  /* transition: .3s .1s ease-in; */
  cursor: pointer;
}

.project-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
  z-index: 1;
  border-radius: 5px;
  transition: opacity .2s ease-out;
}

.project-container > .project-text-container {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 2;
}

.project-container > .project-text-container > h2 {
  position: absolute;
  inset: auto auto 80px -20px;
  margin: 0;
  padding: 5px;
  border-radius: 2px;
  box-shadow: 0 0 5px 0px var(--dark-color);
  transition: inset .3s .3s ease-out;
  font-weight: normal;
  text-transform: uppercase;
  background-color: var(--dark-color);
}

.project-container > .project-text-container > p, .project-container > .project-text-container > a {
  position: absolute;
  opacity: 0;
  max-width: 80%;
  transition: opacity .3s ease-out;
  color: var(--dark-color)
}

.project-container > .project-text-container > p {
  inset: 230px auto auto -10px;
  padding: 2px;
}

.project-container > .project-text-container > a {
  inset: auto auto 60px -10px;
  text-decoration: none;
}

.project-container:hover {
  transform: scale(1.05);
  transition: .3s .1s ease-out;
}

.project-container:hover > .project-text-container > h2 {
  inset: auto auto 180px -20px;
  transition: inset .3s ease-out;
}

.project-container:hover > .project-text-container > p, .project-container:hover > .project-text-container > a {
  opacity: 1;
  transition: opacity .5s .1s ease-in;
}

.project-container:hover img {
  transition: opacity .3s ease-in;
  opacity: 0.1;
}

@media screen and (max-width: 600px) {
  .project-container {
    width: 150px;
  }

  .project-container > .project-text-container > p {
    inset: 130px auto auto -35px;
    font-size: 0.8rem;
  }

  .project-container > .project-text-container > h2 {
    font-size: 1.2rem;
    width: min-content;
    text-align: center;
    width: auto;
    inset: auto 80px 80px -30px;
  }

  .project-container:hover > .project-text-container > h2 {
    inset: auto 80px 280px -30px;
  }
}

/* These are for the contacts section */
.contacts-section h2 {
  margin: 0 auto;
  font-size: min(3rem, max(4vw, 2rem));
  text-align: center;
}

.socials-container {
  /* min-width: 450px; */
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 2vh;
}

.social-element {
  width: 90px;
  height: 90px;
  margin: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-element-background {
  background-color: var(--light-color);
  width: 0;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12%;
}
.social-element:hover > .social-element-background {
  animation: contact-button 1s forwards;
}

.social-element img{
  width: 70px;
}

@media only screen and (max-width: 1000px) {
  .social-element {
    width: 70px;
    height: 70px;
    margin: 0 5px;
  }
  .social-element img {
    width: 60px;
  }
}

/* These are for the footer */
footer {
  display: flex;
  justify-content: space-around;
  width: 100%;
  background: var(--main-color4);
}

.credits, .personal-info {
  display: flex;
  flex-direction: column;
  margin: 20px;
}

footer p {
  font-size: 0.9rem;
  color: var(--accent-color4)
}

.credits a{
  font-size: 0.8rem;
}

@media screen and (max-width: 1000px) {
  footer p {
    font-size: 0.7rem;
  }

  .credits a {
    font-size: 0.6rem;
  }
}

@media screen and (max-width: 600px) {
  footer {
    flex-direction: column;
  }
}

/* These are the animations for this page */

@keyframes contact-button {
  0% {
    width: 0%;
    height: 0%;
  }
  100% {
    width: 100%;
    height: 100%;
  }
}

@keyframes nav-element {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
    color: var(--dark-color);
  }
}

@keyframes hamburger-button {
  0% {
    opacity: 0;
    background-color: var(--light-color);
  }
  100% {
    opacity: 1;
    color: var(--dark-color);
    background-color: var(--light-color);
  }
}

@keyframes highlight-element {
  100% {
    transform: scale(1.1);
  }
}