:root {
  --nav-highlight-color: aquamarine;
  --main-content-bg-color: #7d9390;
  --main-body-bg-color: #203030;
  --main-highlight-color: #F1C65D;
  --color-secondary: darkslategray;
  --color-navbar: #1a1a1a;
}

body {
  background-color: var(--main-body-bg-color);
  margin: 0;
  padding: 0 ;
  background-image: url('bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  zoom: 1.1;
}

.content {
  max-width: 100%;
  margin: 0 auto;
  padding: 0px;
  font-family: "Iosevka Charon Mono", serif;
}
.content h1 {
  font-size: xx-large;
  justify-self: center;
  margin-top: 32px;
  padding-top: 16px;
}


.text-fade {
  opacity: 0;
  animation: fadeSlideUp 1.0s ease forwards;
  background-color: darkslategray;
  margin: 0 auto;
  padding: 0px 24px 5px 24px;
  width: fit-content;
  
  border-radius: 2px;
  border-style: solid;
  border-width: 4px;
  border-color: var(--main-body-bg-color);
}

/*==========================
        NAV BAR STUFF
==========================*/
.navbar {
  display: flex;
  justify-content: space-between;
  background-color: var(--color-navbar);
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: filter 0.1s ease;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 60%;
  padding: 22px;
  width: 100%;
  margin: 0 auto;
}

.nav-brand {
  font-size: xx-large;
  font-family: "Iosevka Charon Mono", serif;
  text-decoration: none;
  color: #f0ffff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 64px;
  margin: 0;
  padding: 0;
}

/* This targets each 'a' contained in .nav-links */
.nav-links a {
  font-size: large;
  font-family: "Iosevka Charon Mono", serif;
  text-decoration: none;
  color: azure;
  transition: color 0.3s ease;
}


.navbar:hover {
  filter: brightness(1.10);
}

.nav-links a:hover {
  color: var(--nav-highlight-color);
}

/*==========================
        ABOUTME STUFF
==========================*/
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}

.intro-text {
  opacity: 0;
  background-color: var(--main-content-bg-color);
  margin: 0 auto;
  padding: 0px 24px 20px 24px;
  font-size: large;
  flex: 1;
  animation: fadeSlideUp 0.8s ease forwards;
  
  border-radius: 2%;
  border-style: solid;
  border-width: 4px;
  border-color: var(--main-body-bg-color);
}

.intro-image {
  opacity: 0;
  flex: 1; /* This allows the image to take up the remaining space */
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.2s;
}

.intro-image img {
  width: 100%;
  border-radius: 2%;
  border-style: solid;
  border-width: 4px;
  border-color: var(--main-highlight-color);
}

.section1 {
  opacity: 0;
  background-color: var(--main-content-bg-color);
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0px 24px 20px 24px;
  max-width: 900px;
  animation: fadeSlideUp 0.8s ease forwards;
  animation-delay: 0.1s;
  
  border-radius: 2%;
  border-style: solid;
  border-width: 4px;
  border-color: darkslategray;

}
.section1 h1 {
  font-size: xx-large;
  text-align: center;
}
.section1 h2 {
  font-size: x-large;
  text-align: center;
}
.section1 p {
  text-align: center;
  font-size: large;
  font-weight: normal;
}

.section1 img {
  display: block;
  border-radius: 2%;
  border-style: solid;
  border-width: 4px;
  border-color: darkslategray;
  margin: 0 auto;
  width: 70%;
}

.section1 img:hover {
  filter: brightness(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.section1 a {
  display: block;
  text-align: center;
  color: azure;
  text-decoration: none;
  margin: 0 auto;
  margin-top: 12px;
  margin-bottom: 12px;
  background-color: #8cb7af;
  width: 20%;
  border: solid;
  border-radius: 10%;
  border-color: darkslategray;
  border-width: 4px;
}

.section1 a:hover {
  filter: brightness(1.10);
  color: aquamarine;
}

.about-bg-section {
  background-color: rgba(32, 48, 48, 0.7);
  margin: 0 auto;
  width: 100%;
}

.about-bg-content {
  margin: 0 auto;
  max-width: 900px;
  padding: 80px 24px;
  font-size: large;
}

.about-bg-tnr-content {
  margin: 0 auto;
  max-width: 900px;
  padding: 80px 24px;
  font-size: 1.2rem;
  line-height: 2rem;
  font-family:'Times New Roman', Times, serif;
}

.about-bg-goals {
  margin: 0 auto;
  max-width: 900px;
  padding: 80px 24px;
  font-size: large;
}

.about-bg-goals li {
  margin-bottom: 12px;
  font-weight: bold;
  list-style-type: "> ";
}

/*==========================
        PROJECTS STUFF
==========================*/

.card-wrapper {
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  place-items: center;
}

.projects-content {
  margin: 0 auto;
  padding: 48px 24px;
}

.projects-grid {
  margin: 0 auto;
  max-width: 60%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px;
}

.ring-analysis {
  margin: 0 auto;
  
  background-color: rgba(32, 48, 48, 0.7);
  margin: 0 auto;
  width: 100%;
}
.ring-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
  padding: 48px 24px;
}
.ring img{
  width: 100%;
  filter: grayscale(100%) brightness(0.4);
  cursor: pointer;
  transition: filter 0.6s ease;
  margin: 0 auto;
}
.ring.revealed img {
  filter: brightness(1.10);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}
.ring p {
  text-align: center;
  font-size: large;
  color: azure;
}
.project-card {
  display: block;
  text-decoration: none;
  color: black;
  background-color: var(--main-content-bg-color);
  transition: transform 0.05s ease, box-shadow 0.05s ease, filter 0.05s ease;
}

.card-wrapper:nth-child(1) { animation-delay: 0.2s; }
.card-wrapper:nth-child(2) { animation-delay: 0.3s; }
.card-wrapper:nth-child(3) { animation-delay: 0.4s; }
.card-wrapper:nth-child(4) { animation-delay: 0.5s; }

.project-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  filter: brightness(1.10);
  transform: scale(0.99);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-info {
  padding: 8px;
  margin-top: -15px;
}

/*==========================
        RESUME STUFF
==========================*/
.resume-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.resume-embed {
  width: 100%;
  height: 90vh;
}

/*==========================
        FOOTER STUFF
==========================*/
.footer {
  background-color: #1a1a1a;
  color: white;
  width: 100%;
  margin-top: 0px;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  color: azure;
  font-size: 2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #aaaaaa;
}

.footer-copy {
  font-size: 0.85rem;
  color: #aaaaaa;
}

.footer:hover {
  filter: brightness(1.10);
}

/*==========================
        BOOKS STUFF
==========================*/
.books-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px;
}

.books-row {
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  display: flex;
  gap: 24px;
}

.book-card {
  flex: 1;
}

.book-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  
  border-radius: 2%;
  border-style: solid;
  border-width: 4px;
  border-color: var(--main-body-bg-color);
}

.book-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
  transform: scale(0.99);
}


/*==========================
        SKILLS STUFF
==========================*/
.skills-section {
  opacity: 0;
  animation: fadeSlideUp 0.6s ease forwards;
  animation-delay: 0.2s;
  background-color: var(--main-content-bg-color);
  width: 100%;
}

.skills-content {
  max-width: 900px;
  margin: 0 auto;
  margin-top: 12px;
}

.skill-card {
  background-color: #8cb7af;
  padding-left: 15px;
  padding-right: 15px;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.skill-card:hover {
  filter: brightness(1.10);
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}


.skill-card p {
  line-height: 1.7;
}

/*==========================
        MISC STUFF
==========================*/
.quote {
  margin: 0;
  margin-right: 30%;
  padding: 24px 32px;
  border-left: 4px solid var(--main-body-bg-color);
}

.quote p {
  font-size: 1.6rem;
  line-height: 1.7;
  font-style: italic;
  margin: 0 0 12px 0;
}

.contacts-section {
  margin: 0 auto;
  width: 100%;
  color: azure;
}


/*==========================
        MISC STUFF
==========================*/
.project-intro img {
  margin: 0 auto;
  width: 100%;
  border-radius: 2%;
  border-style: solid;
  border-width: 4px;
  border-color: darkslategray;
}

.code-summary {
  cursor: pointer
}

.code-details {
  background-color: #1a1a1a;
  color: azure;
  width: fit-content;
  padding: 6px;
}