:root {
  --color-bg-main: #f5f5f5;
  --color-bg-header: #1c1d25;

  --color-text-main: #1c1d25;
  --color-text-header: #fff;

  --color-highlight: #007bff;
  --invertFilter: 0;

  --transition-delay: 1s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg-main: #1c1d25;
    --color-bg-header: #f5f5f5;
    --color-text-main: #f5f5f5;
    --color-text-header: #1c1d25;
    --invertFilter: 1;
  }
}

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
}

body.dark-mode p {
  color: var(--color-text-main);
}

header {
  height: 68px;
  width: 100vw;
  background-color: var(--color-bg-header);
  justify-content: space-around;
  color: var(--color-text-header);
  position: fixed;
  z-index: 100;
}

.hamburger {
  display: none;
  font-size: 30px;
  background: none;
  border: none;
  color: var(--color-text-header);
  cursor: pointer;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 200;
}

nav a {
  text-decoration: none;
  font-size: 20px;
  color: var(--color-text-header);
}

nav ul {
  display: flex;
  list-style-type: none;
  width: 50%;
  justify-content: space-around;
  font-size: 30px;
}

nav li {
  text-decoration: none;
  margin-bottom: 15px;
  transition: transform var(--transition-delay);
}

nav li:hover {
  transform: scale(1.1);
  transition: transform var(--transition-delay);
  /* color: var(--color-text-header); */
}

.logo {
  width: 50px;
  margin-top: 10px;
  margin-bottom: 10px;
}

i {
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  color: var(--color-text-header);
  padding-bottom: 5px;
}

/* Styles for small screens */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 68px;
    left: 0;
    background: var(--color-bg-header);
  }

  .nav-links li {
    margin: 10px 0;
  }

  .nav-links li a {
    display: block;
    padding: 10px 20px;
  }

  .hamburger {
    display: flex;
    margin-left: 10rem;
  }

  .nav-links.show {
    display: flex;
  }
}

section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  .section-about,
  .section-projects {
    padding: 30px 0;
    margin: 30px 0;
  }
}

.section-about,
.section-projects {
  padding: 50px 0;
  margin: 50px 0;
}

.hero-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  height: 100vh;
}

.hero-header {
  font-weight: 500;
  font-size: 90px;
  cursor: pointer;
}

.hero-subtext {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 40px;
  font-weight: 200;
  text-align: center;
}

.hero-subtext,
.hero-subtext span {
  display: inline;
}

.highlight {
  color: var(--color-highlight);
}

.hero-header span {
  display: inline-block;
  transition: transform 0.3s;
}

.hero-header span:hover {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

@media (max-width: 1200px) {
  .hero-header {
    font-size: 70px;
  }
  .hero-subtext {
    font-size: 32px;
  }
}

@media (max-width: 960px) {
  .hero-header {
    font-size: 60px;
  }
  .hero-subtext {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .hero-header {
    font-size: 48px;
  }
  .hero-subtext {
    font-size: 24px;
  }
}

/* About Section */
.section-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.content-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.content-container-about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 65%;
  margin: auto;
}

@media (min-width: 966px) {
  .content-container-about {
    justify-content: space-evenly; /* Space out the children evenly */
  }
  .headshot-container {
    flex: 0 0 35%; /* Don't grow, don't shrink, start at 35% width */
  }

  .information {
    flex: 1; /* Take up the remaining space */
    padding: 0 2rem; /* Add some padding on the sides */
  }
}

.hero-header {
  font-size: clamp(2rem, 5vw, 90px); /* Adjust values as needed */
}

.information p {
  font-size: clamp(0.8rem, 2vw, 1rem); /* Adjust values as needed */
}

.info-header {
  font-weight: 400;
}

.information {
  padding: 50px;
}

/* .information p {
  color: var(--color-text-main);
} */

@media (max-width: 965px) {
  .information,
  .headshot-container {
    margin: 20px 0; /* Add more margin on top and bottom */
    padding: 0 15px; /* Add some padding on the sides */
  }
}

.info-header-container {
  padding-bottom: 50px;
}

.about-header {
  font-weight: 400;
  font-size: 40px;
  margin-bottom: 25px;
}

.headshot-container {
  display: flex;
  align-items: center;
}

.headshot {
  width: 100%; /* Make the image responsive */
  height: auto; /* Maintain aspect ratio */
  max-width: 400px; /* Maximum width can be set as needed */
  border-radius: 5px; /* Optional: adds rounded corners */
  transition: var(--transition-delay);
}

/* .headshot {
  margin-right: 15px;
  width: 400px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition-delay);
  border-radius: 5px;
} */

@media (max-width: 480px) {
  .headshot {
    width: 90vw;
  }
}

.headshot:hover {
  transform: scale(1.05);
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.25);
  transition: var(--transition-delay);
}

h2 {
  font-size: 50px;
  margin: 0;
}

@media (max-width: 1200px) {
  .project-card,
  .information,
  .headshot-container {
    width: auto;
    margin: 20px;
  }
}

@media (max-width: 960px) {
  .content-container {
    flex-direction: column;
    padding: 20px;
  }
  .information {
    padding: 15px;
    text-align: center;
  }
  .about-header,
  .info-header {
    font-size: 35px;
  }

  .headshot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin-top: 20px;
  }

  .headshot {
    width: 50%;
    height: auto;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .content-container {
    flex-direction: column;
    text-align: center;
  }
  .information,
  .headshot-container {
    padding: 20px;
    width: auto;
  }
}

/* Project Section */

.section-projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.project-container {
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.project-header-container {
  padding-bottom: 50px;
}

.project-header {
  font-weight: 400;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  margin: 20px;
  transition: var(--transition-delay);
  border-radius: 5px;
  background-color: #f5f5f5;
  color: #1c1d25;
  border: 1px solid transparent;
  flex: 1;
  max-width: calc(33.333% - 40px);
  min-height: 400px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.project-card:hover {
  transform: scale(1.05);
  transition: var(--transition-delay);
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.25);
  border-color: #eee;
  background-color: #eaeaea;
}

.project-card a {
  text-decoration: none;
  color: var(--color-text-main);
}

.project-img {
  margin-top: 25px;
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.project-container hr {
  margin-top: 40px;
  margin-left: 20px;
  margin-right: 20px;
}

.project-title {
  margin-top: 30px;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 400;
}

.subtext {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  font-weight: 400;
  margin-top: 25px;
  min-height: 4em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.projects {
  margin-top: 40px;
}

.description-link {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  cursor: pointer;
}

@media (min-width: 1697px) {
  .project-container {
    justify-content: center;
  }
  .project-card {
    flex: 0 1 calc(33.333% - 40px);
  }
}

@media (min-width: 1137px) and (max-width: 1697px) {
  .project-container {
    justify-content: space-around;
  }
  .project-card {
    flex: 0 1 calc(50% - 40px);
  }
}

@media (max-width: 1139px) {
  .project-card {
    width: calc(50% - 40px);
    margin: 20px;
  }

  .project-img {
    height: 200px;
  }

  .project-title,
  .project-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 1137px) {
  .project-container {
    justify-content: center;
  }

  .project-card {
    width: 90%;
    max-width: none;
    margin: 20px auto;
    flex: none;
  }

  .project-img {
    height: auto;
    margin-top: 15px;
  }

  .project-title,
  .project-description,
  .description-link {
    font-size: clamp(0.8rem, 4vw, 1rem);
  }
}

@media (max-width: 768px) {
  .project-card {
    width: 100%;
    margin: 10px 0;
  }

  .project-img {
    height: 150px;
  }

  .project-title {
    font-size: 1.2rem;
  }

  .project-description {
    font-size: 1rem;
  }
}

@media (max-width: 1137px) {
  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 80%;
    flex: none;
    margin: 20px 0;
  }
}

@media (max-width: 960px) {
  .project-container {
    flex-wrap: wrap;
    justify-content: center;
  }
  .project-card {
    width: 45%;
    margin: 20px;
  }
}

@media (max-width: 768px) {
  .project-container {
    flex-direction: column;
    align-items: center;
  }

  .project-card {
    width: 90%;
    margin: 20px;
  }

  .project-img {
    width: 80%;
  }
}

/* Contact Section */

.section-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px;
  /* margin-top: 100px; */
}

.contact-header {
  font-weight: 400;
  margin-bottom: 3rem;
}
.email {
  margin-bottom: 1rem;
}

@media (max-width: 960px) {
  .section-contact {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .section-contact {
    padding: 40px 20px;
  }
}

/* Project Description Views */
/* MyVinyls */
/* Description */

.project-description {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
  padding: 2rem 0;
  max-width: 900px;
  margin: auto;
}

.description-header-container {
  background-color: var(--color-bg-main);
  padding: 20px;
  border-radius: 8px;
}

.description-header {
  font-weight: 400;
  margin-top: 5rem;
  margin-bottom: 1rem;
}

.myVinyls {
  font-size: 50px;
  font-weight: 300;
  color: var(--color-highlight);
}

.content-container {
  text-align: left;
  padding: 0 15px;
}

.information p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

/* Showcase */

.project-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: auto;
}

.showcase-project-card {
  width: 80vw;
  min-height: 650px;
  transition: transform 0.3s;
  /* margin-bottom: 5px; */
}

.showcase-card-title {
  font-size: 35px;
  font-weight: 300;
}

.showcase-subtext {
  padding: 30px;
  text-align: justify;
  line-height: 1.6;
}

.showcase-description-container {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  margin: 10px;
  padding: 25px;
  gap: 50px;
}

.showcase-img {
  margin-top: 2rem;
  margin-bottom: 15px;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  transition: var(--transition-delay);
}

.showcase-img-2 {
  margin-top: 2rem;
  margin-bottom: 15px;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  transition: var(--transition-delay);
}

.showcase-img-3 {
  margin-top: 2rem;
  margin-bottom: 15px;
  padding: 10px;
  width: 100%;
  max-width: 100%;
  transition: var(--transition-delay);
}

.showcase-img:hover {
  transform: scale(1.5) translateX(28%);
  transition: var(--transition-delay);
}

.showcase-img-2:hover {
  transform: scale(1.5) translateX(-28%);
  transition: var(--transition-delay);
}

.showcase-img-3:hover {
  transform: scale(1.5) translateX(-28%);
  max-height: 500px;
  transition: var(--transition-delay);
}

.github-link {
  display: flex;
  justify-content: center;
}

.github-link a img {
  margin-top: 2rem;
  width: 50px;
}

.github-link-2 {
  width: 40px;
}

.linkedIn-link {
  width: 40px;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: invert(var(--invertFilter));
}

.social-link {
  margin: 0 10px;
  height: auto;
}

.mail-link {
  width: 40px;
  /* margin-left: 15px; */
}

/* Lessons Learned */

.lessons-learned {
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Showcase description container adjustment for mobile */
@media (max-width: 768px) {
  .showcase-description-container {
    /* Switch from grid to flexbox for easier stacking */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the items horizontally */
  }

  .showcase-img,
  .showcase-img-2,
  .showcase-img-3 {
    width: 90%; /* Adjust the width as desired, maybe 90% of the container */
    margin: 0 0 1rem 0; /* Reset any left/right margins and add margin below the image */
    height: auto; /* Keep the original aspect ratio */
  }

  .showcase-subtext {
    width: 100%; /* Allow the text to take the full width */
    padding: 1rem; /* Add some padding around the text */
    text-align: center; /* Center align the text for better readability */
  }
}

/* If you want to adjust the title size on mobile as well */
@media (max-width: 768px) {
  .showcase-card-title {
    font-size: 28px; /* Adjust the font size as needed */
  }
}
