/* General Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text-accent-color: #292929;
  --accent-color: #c5a974;
  --background-font: "Holtwood One SC", serif;
  --text-grey-color: #808080;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  min-height: 100vh;
  width: 100%;
  display: block;
  margin: 0;
  background-color: black;
  color: var(--text-grey-color);
  font-family: "Courier New", Courier, monospace;
  text-align: center;
}

/* skip to main content styling */
.skip-link {
  position: absolute;
  top: -40px; /* Move it off-screen */
  left: 0;
  padding: 10px;
  background-color: #000;
  color: white;
  text-decoration: none;
  z-index: 1000;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

/* Header Styles */
/* header styling */
header {
  width: 100%;
  z-index: 1;
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-style: italic;
  color: var(--text-accent-color);
  background-color: var(--accent-color);
  display: flex;
  justify-content: space-around;
  height: 100px;
}

/* logo styling in header */
.logo {
  height: 50px;
  width: 50px;
  border-radius: 100%;
  margin: auto 5px;
}

/* nav styling in header */
.navList {
  display: block;
  list-style-type: none;
}

ul {
  padding: 0;
}

/* title styling in header */
.title {
  font-size: 2rem;
  margin: auto 0;
  font-family: var(--background-font);
}

/* Footer Styles */
/* Footer styling */
.footer {
  align-items: center;
  display: flex;
  justify-content: space-around;
  height: 100px;
  width: 100%;
  background-color: var(--accent-color);
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-style: italic;
  color: var(--text-accent-color);
}

.bottomName {
  font-size: 2rem;
  font-family: var(--background-font);
}

/* Homepage Styles */
/* homepage shane text styling */
.BackgroundShane {
  color: var(--text-grey-color);
  font-size: 4rem;
  font-family: var(--background-font);
  font-style: italic;
  transform: translateY(25px);
}

/* homepage image styling */
.HomePageImg {
  display: block;
  height: 300px;
  width: 300px;
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 15px;
  border: 2px solid var(--text-grey-color);
}

/* homepage bio styling */
.Bio {
  display: block;
  color: var(--accent-color);
  font-family: "Courier New", Courier, monospace;
}

/* homepage bio -> skills text styling */
.Skills {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* homepage bio text styling */
.Bio1 {
  font-size: 1.3rem;
}

.Bio2 {
  font-size: 1.1rem;
}

.Bio3 {
  font-size: 1.1rem;
}

.Bio1,
.Bio2,
.Bio3 {
  margin-bottom: 5px;
}

/* About Page Styles */
/* About me Paragraph styling */
.AboutMe,
.paragraph {
  font-family: "Courier New", Courier, monospace;
  color: var(--text-grey-color);
}

.AboutMe {
  margin-top: 15px;
  font-size: 1.2rem;
}

.paragraph {
  margin-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.line {
  margin-top: 20px;
}

/* Achievements Styles */
/* Achievements title styling */
.achievementstitle {
  margin: 15px 0;
  font-size: 1.2rem;
}
/* Achievements container styling */
.achievements-grid {
  display: grid;
  row-gap: 40px;
  grid-template-columns: 1fr;
}

/* Achievement image styling */
.achievement-item {
  width: 95%;
  margin: auto;
}

.achievement-item img {
  display: block;
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 2px solid var(--text-grey-color);
  border-radius: 10px;
  margin: auto;
}

.ach1,
.ach2 {
  object-position: 0 40%;
}

/* achievement description styling */
.achievement-item .description {
  margin-top: 10px;
  padding: 0 10px;
}

.achievement-item:nth-child(3) .description {
  margin-bottom: 40px;
}

/* Portfolio page Styles */
/* Projects text styling */
.projecttitle {
  font-size: 2rem;
  margin: 20px 0;
}

/* projects grid container styling */
.grid-container {
  display: grid;
  row-gap: 40px;
}

.grid-container > div:nth-child(6) {
  margin-bottom: 60px;
}

/* seperate project styling */
.project-title {
  font-size: 1.3rem;
  padding: 10px;
}

/* seperate project image styling */
.grid-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 2px solid var(--text-grey-color);
  border-radius: 10px;
  margin-bottom: 15px;
}

/* skills learned text styling */
.skills-learned {
  font-size: 1.1rem;
}

/* skill list styling */
.skillList {
  margin: 10px auto;
}

/* Contact Me page styles */
.contactMe {
  color: var(--text-grey-color);
  font-family: var(--background-font);
  margin-top: 50px;
  font-size: 2rem;
}

/* form styles contact me page */
.form-container {
  width: 90%;
  height: fit-content;
  padding: 25px;
  background-color: var(--text-accent-color);
  color: lightgrey;
  margin: 50px auto;
  border-radius: 50px;
  border: 5px solid var(--accent-color);
}

.label-input-wrapper {
  text-align: left;
  padding-bottom: 20px;
}

.label {
  font-size: 1.5rem;
  font-family: "Courier New", Courier, monospace;
}

.input {
  display: block;
  width: 100%;
  border-radius: 10px;
  border: none;
  resize: vertical;
  background-color: #fafad2;
  padding: 5px;
}

.input:focus {
  background-color: #f8f8ac;
}

.button-wrapper {
  margin-top: 25px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
}

.button {
  padding: 20px;
  width: 150px;
  border: none;
  border-radius: 50px;
  background-color: var(--accent-color);
  transition: background-color 2s ease;
}

.button:hover {
  background-color: darkorange;
}

.contact-me-paragraph {
  width: 50%;
  margin: 40px auto;
  font-size: 1.3rem;
}

/* Hover effects for project images */
.grid-img:hover,
.ach1:hover,
.ach2:hover,
.ach3:hover {
  transform: scale(1.05);
  transition: transform 500ms ease;
}

.grid-img,
.ach1,
.ach2,
.ach3 {
  transition: transform 500ms ease;
}

/* media query for tablet screen sizes */
@media (min-width: 768px) {
  .HomePageImg {
    height: 550px;
    width: 550px;
  }

  .grid-container {
    grid-template-columns: 1fr 1fr;
  }

  ul {
    list-style-type: none;
  }

  .contactMe {
    margin-top: 10px;
  }

  .form-container {
    margin: 10px auto 30px auto;
  }

  .achievement-item,
  .paragraph {
    width: 60%;
    margin: 10px auto;
  }
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Media Query for Light Mode */
@media (prefers-color-scheme: light) {
  /* General Body Styles */
  body {
    background-color: #fcf6d3a7;
    color: #333;
  }

  /* Skip link styling */
  .skip-link {
    background-color: #fff;
    color: #000;
  }

  /* Header Styles */
  header {
    color: #333;
  }

  /* Footer Styles */
  .footer {
    color: #333;
  }

  /* Homepage Styling */
  .BackgroundShane {
    color: #333;
  }

  .HomePageImg {
    border: 2px solid #333;
  }

  .Bio {
    color: #333;
  }

  /* About Page Styles */
  .AboutMe,
  .paragraph {
    color: #333;
  }

  /* Achievements Styles */
  .achievement-item img {
    border: 2px solid #333;
  }

  /* Portfolio Page Styles */
  .grid-img {
    border: 2px solid #333;
  }

  /* Contact Page Styles */
  .form-container {
    background-color: #aaa9a8;
    color: #333;
    border: 5px solid #c5a974;
  }

  .button {
    background-color: #c5a974;
    color: #333;
  }

  .button:hover {
    background-color: #d6a24e;
  }

  /* Other Lighter Elements */
  .input {
    background-color: #fff;
    color: #333;
  }

  .label {
    color: black;
  }

  .input:focus {
    background-color: #f0f0f0;
  }

  .contact-me-paragraph {
    color: #333;
  }
}

/* Media query to handle reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .grid-img:hover,
  .ach1:hover,
  .ach2:hover,
  .ach3:hover {
    transform: none;
    transition: none;
  }
}
