:root {
  --primary: rgb(197, 109, 255);
  --body: rgb(20, 8, 24);
  --secondary: #190e1d;
  --text-colour: whitesmoke;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-colour);
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background-color: var(--body);
  color: var(--secondary);
  line-height: 1.7;
}

p {
  font-size: large;
}

a {
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s ease 0s;
}

a:hover {
  font-size: larger;
  color: var(--text-colour);
}

h2 img {
  height: 1em; /* Matches the current font-size */
  width: auto; /* Maintains aspect ratio */
}

.download-container {
  padding: 20px;
  margin-top: 10px;
}

.work-container {
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: var(--secondary);
  margin-top: 20px;
  margin-bottom: 5px;
  text-align: left;
}

.download-container img {
  justify-self: center;
  width: 50vw;
  height: auto;
  border-radius: 30px;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 20px var(--primary);
  margin: 15px;
  margin-bottom: 30px;
  transition: transform 0.2s ease 0s;
}

.download-container img:hover {
  transform: scale(1.03);
}

header {
  padding-bottom: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.logo {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.6rem;
}

.navbar {
  color: var(--text-colour);
}

.nav-link {
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease 0s;
  font-weight: 600;
  margin-left: 10px;
  margin-right: 10px;
  margin-top: 15px;
  width: 145px;
  height: 50px;
  font-size: 18px;
  background-color: rgb(38, 2, 54);
  border: 1px solid var(--secondary);
  border-radius: 25px;
}

.nav-item a:hover {
  background-color: var(--primary);
  transform: scale(1.1);
}

.hero {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#home {
  position: relative;
}

.image-bg {
  background-image: url(../images/backdrop_2.avif);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  filter: opacity(0.4);
  width: 100%;
  height: 100%;
  z-index: -1;
}

.blur {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  height: 100%;
  width: 100%;
}

h1 {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

h2 {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(2, 2, 2, 0.8);
  color: var(--primary);
}

h3 {
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.special-bold {
  font-size: larger;
  color: var(--primary);
  text-shadow: 0 0 20px rgb(204, 0, 255);
  font-weight: 800;
}

.special-highlight {
  font-weight: 800;
  color: rgb(235, 154, 255);
}

.about-me-header {
  font-weight: 800;
  font-size: 100px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
    url(../images/backdrop_1.jpg);
  background-attachment: fixed;
  border-radius: 20px;
  text-shadow: 0 2px 8px rgba(2, 2, 2, 0.8);
}

.hero-text h2 {
  color: var(--primary);
  font-weight: 800;
  font-size: 70px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transition: all 0.5s ease 0s;
}

.hero-text h2:hover {
  transform: scale(1.1);
  color: aliceblue;
}

.section-page {
  padding: 60px 10%;
  margin: 75px;
  text-align: center;
  border-top: 1px solid #020202;
}

.download-page {
  margin: 0;
  margin-bottom: 100px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), var(--body)),
    url(../images/backdrop_3.jpg);
  background-attachment: scroll;
}

.carousel {
  box-shadow: 0 2px 20px rgba(19, 0, 24, 0.5);
}

.carousel-caption {
  text-shadow: 0 2px 20px var(--body);
  backdrop-filter: blur(3px) brightness(0.9);
}

.carousel button {
  box-shadow: none;
}

.carousel button:hover {
  background: rgba(212, 0, 255, 0.1);
}

.featured-page {
  padding: 35px 10%;
  text-align: center;
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(../images/ForTheCore4.png);
  background-attachment: fixed;
}

#featured-name {
  padding-top: 75px;
  text-shadow: 0 2px 20px var(--body);
}

#featured-title {
  font-size: 55px;
}

.card {
  display: flex;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  height: 300px;
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.05);
}

.project-card img {
  width: 100%;
  height: 100%;
}

form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
textarea {
  color: var(--body);
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 0.625rem;
}

button {
  box-shadow: inset 0px 1px 11px 0px #e184f3;
  background: linear-gradient(to bottom, #c123de 5%, #a20dbd 100%);
  background-color: #c123de;
  border-radius: 6px;
  border: 1px solid #a511c0;
  display: inline-block;
  cursor: pointer;
  color: var(--text-colour);
  font-family: Georgia;
  font-size: 15px;
  font-weight: bold;
  padding: 6px 24px;
  text-decoration: none;
  text-shadow: 0px 1px 2px #9b14b3;
}

button:hover {
  background: linear-gradient(to bottom, #a20dbd 5%, #c123de 100%);
  background-color: #a20dbd;
}

.project-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  height: 550px;
}

#projects {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 1)),
    url(../images/backdrop_3.jpg);
  background-attachment: fixed;
  margin: 0;
}

.project-container img {
  width: 25vw;
  height: auto;
}

.project-container-content {
  padding-top: 20%;
}

.project-container-content button {
  box-shadow: none;
  border: none;
  font-size: large;
}

.text-align-right {
  text-align: right;
}

footer {
  background-color: var(--secondary);
  color: white;
  padding: 1.25rem;
  text-align: center;
  margin: 3.75rem;
}

#topBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.card-img {
  filter: blur(2px) brightness(0.75);
}

.card-title {
  color: var(--primary);
  text-shadow: 0px 0px 5px #840994;
  background: rgba(27, 1, 29, 0.5);
  border-radius: 15px;
}

.accordion-body {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/backdrop_1.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.accordion-collapse {
  background-color: black;
}

.accordion {
  --bs-accordion-border-color: black;
  margin-bottom: 30px;
}

.accordion-item {
  background-color: black;
}

.accordion-button {
  font-size: 1.2rem;
  color: black;
  --bs-accordion-active-color: var(--text-colour);
  transition: font-size 0.2s ease 0s;
  border: 2px solid black;
}

.accordion-button:hover {
  font-size: 1.5rem;
  color: var(--text-colour);
}

.table {
  --bs-table-bg: var(--secondary);
  --bs-table-color: var(--text-colour);
  --bs-table-border-color: var(--body);
  --bs-table-hover-color: var(--primary);
}

thead {
  --bs-table-color: var(--primary);
}

.shake-animation {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
  75% {
    transform: rotate(-1deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }

  h2 {
    font-size: larger;
  }

  h3,
  h4,
  h5 {
    font-size: large;
  }

  .hero {
    padding: 0 20px;
  }

  .hero-p {
    font-size: small;
  }

  .project-container img {
    width: 40vw;
    height: auto;
  }

  .section-page {
    padding: 10px;
    margin: 3px;
    margin-bottom: 50px;
    text-align: center;
    border-top: 1px solid #020202;
  }

  #featured-title {
    font-size: 35px;
  }

  .featured-page {
    background-attachment: scroll;
  }

  .about-me-header {
    font-weight: 700;
    font-size: 40px;
    background-attachment: scroll;
  }

  .accordion-txt {
    font-size: smaller;
  }

  .hero-text h2 {
    font-size: 45px;
  }

  .nav-link {
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 30px;
    width: 85px;
    height: 38px;
    font-size: 11px;
    background-color: rgb(76, 5, 109);
  }

  .nav-item a:hover {
    font-size: 12px;
  }

  .project-collapse {
    padding-left: 15px;
    padding-right: 15px;
  }

  #projects {
    background-attachment: scroll;
  }

  .accordion-body {
    background-attachment: scroll;
  }
}
