main,
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  cursor: none;
}

.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 180px;
  text-align: center;
  text-shadow: 0 0 8px rgb(0, 0, 0);
  padding-left: 5%;
  padding-right: 5%;
}

.intro h1 {
  font-size: 6rem;
  font-weight: 700;
  color: #e8e6e3; /* pale ivory white */
  letter-spacing: 1px;
  margin: 0;
}

.intro .tagline {
  font-size: 1.8rem;
  margin-top: 15px;
  color: #a31e2f; /* deep blood red */
  font-weight: 500;
}

.intro .bio {
  font-size: 1.2rem;
  color: #c2bfb6; /* slightly faded bone-gray */
  max-width: 800px;
  margin-top: 20px;
  line-height: 1.6;
}


/* Responsive tweaks */
@media (max-width: 768px) {
  .intro h1 {
    font-size: 3rem;
  }

  .intro .tagline {
    font-size: 1.4rem;
  }

  .intro .bio {
    font-size: 1rem;
  }
}

/* body {
  background: linear-gradient(to top right, rgb(22, 22, 22) 0%, #042630 45%, rgb(22, 22, 22) 75%, #192122 120%);
  font-family: sans-serif, Courier, monospace;
  color: white;
  font-size: 16px;
} */
body {
  position: relative;
  background-image: url("resources/GoldParticles.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100%; /* Full height of the screen */
  font-family: sans-serif, Courier, monospace;
  color: white;
  font-size: 16px;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Gradient color (optional) */
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0) 70%), 
              url("resources/GoldParticles.jpg"); /* The gradient and image combined */
  background-size: cover;
  background-position: center center;
  filter: blur(5px); /* Apply blur to the background */
  z-index: -1; /* Ensure the overlay is behind the content */
}

@media (max-width: 768px) {
  .featured-gallery {
    width: 95%;
    padding: 10px;
  }
}

/* Remove cursor on mobile devices */
@media (max-width: 412px) {
  body, html {
    cursor: none; /* Hides the cursor */
  }

  .cursor {
    display: none; /* Hides the custom cursor element */
  }
}

.featured-gallery {
  width: 90%;
  margin: 0 auto 50px auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08); /* glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.featured-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.featured-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

h4 {
  font-size: .9rem;
  display: flex;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  color: white;
}

h3 {
  font-size: 2rem;
  display: flex;
  margin-block-start: 0;
  margin-block-end: 0;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  color: white;
}

.section-header {
  display: flex;
  justify-content: center;
  margin-top: 80px;
  margin-bottom: 20px;
}

.section-header h2 {
  text-align: center;
  font-size: 3rem;
  color: #e8e6e3; /* ivory white to match h1 */
  border-bottom: 2px solid #a31e2f; /* deep blood red */
  padding-bottom: 8px;
}


p {
  margin-left: 2%;
}

/* Navigation */
header {
  display: flex;
  width: 100%;
}

header .desktop {
  position: fixed;
  top: 0;
  z-index: 5;
  height: 80px;
  width: 100%;
  background-color: #000000;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

header .mobile a {
  display: none;
}

header h3 {
  display: flex;
  color: white;
  font-size: 1.5rem;
  padding: 10px;
  align-items: center;
  background-color: #7c0505;
  border-radius: 20px;
  box-shadow: 0px 0px 10px 5px rgb(24, 24, 24);
}

header a {
  color: white;
  align-items: center;
}

header img {
  height: 70px;
  margin-top: 5px;
}

a:hover {
  cursor: none;
}

/* Intro */
.intro h1,
.intro a {
  color: white;
  margin-top: 80px;
  margin-left: 2%;
  font-size: 6rem;
  /* this too */
  width: 80%;
  /* remember to change for @media */
}

.intro a {
  color: #c43433;
}

@media (max-width: 900px) {
  .intro h1,
  .intro a {
    font-size: 5rem; /* Adjust font size for half-screen */
    margin-top: 30px; /* Adjust top margin for better spacing */
    width: 80%; /* Widen or narrow the container if needed */
  }
}

@media (max-width: 768px) {
  .intro h1,
  .intro a {
    font-size: 3rem; /* Smaller font size for mobile devices */
    margin-top: 40px; /* Adjust margin to fit smaller screens */
    width: 80%; /* Expand the width for better readability */
  }
}

/* Smaller phones (extra small screens) */
@media (max-width: 480px) {
  .intro h1,
  .intro a {
    font-size: 3rem; /* Even smaller font for very small screens */
    margin-top: 20px;
    width: 90%;
  }
}

/* Image Gallery */
.proj {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;

}

.responsive {
  display: flex;
  align-items: center;
  width: 475px;
}

div.gallery {
  padding: 10px;
  margin: 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08); /* semi-transparent white */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); /* soft outer glow */
  border: 1px solid rgba(255, 255, 255, 0.15); /* subtle inner edge */
  transition: all 0.3s ease;
}

[id^="waveform"] {
  margin-bottom: 8px;
}

div.gallery img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

div.gallery:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
  transform: scale(1.01);
}

div.desc {
  position: relative; /* needed for ::after absolute positioning */
  display: flex;
  padding: 15px;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 20px;
  background-color: #000000;
  height: auto;
  flex-direction: column;
}



/* play button */
/* Base play button container size */
.playButton {
  display: flex;
  align-items: center; /* Aligns content in the center */
  justify-content: start;
  gap: 10px;
}

/* Ensure the play button image scales correctly */
.playButton img {
  width: 100%; /* Make the image take the full width of its container */
  height: 100%; /* Maintain aspect ratio */
  max-width: 50px; /* Set a max width */
  max-height: 50px; /* Set a max height */
  object-fit: contain; /* Ensures the aspect ratio is maintained without distortion */
}

/* skills */
.school-description {
  margin: 2%;
  width: 300px;
}

.school-description h3 {
  border-bottom: 2px solid #7c0505;;
}

.school-description p {
  margin-left: 0px;
  border-bottom: 2px solid #7c0505;;
}

.small-header {
  margin-left: 2%;
  width: fit-content;
  border-bottom: 2px solid #7c0505;;
}

.flexBox {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 25%;
  margin-bottom: 15px;
}

.skills {
  display: flex;
  justify-content: space-around;
  flex-flow: row wrap;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
}

.skills-list {
  margin-left: 2%;
}

.skills img {
  max-width: 200px;
  max-height: 200px;
}

.playButton-list {
  margin-left: 2%;
}

.academic {
  font-size: 1rem;
}

/* Footer */
footer {
  display: flex;
  margin: 10px 0px;
  width: 100%;
  justify-content: space-around;
  background: #000000;
  box-shadow: 0px 0px 20px 10px black;
}

footer p {
  padding-left: 4%;
}

/* contact  */
.contact-main {
  width: 100%;
  display: flex;
  flex-direction:column;
  background-origin: content-box;
  background-position: 80% 5%;
  background-size: 300px;
  background-repeat: no-repeat;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
}

.contact-intro h1,
.contact-intro a {
  color: white;
  margin-top: 80px;
  margin-left: 2%;
  font-size: clamp(2rem, 6vw, 7rem);
  width: 60%;
}

.contact-intro a {
  color: #BB86FC;
}



.contact-info {
  display: flex;
  flex-direction: row;
  margin-top: 100px;
  width: 100%;
}

/* cursor */
.cursor {
  width: 3rem;
  height: 3rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.3s ease;
  transition-property: background, transform;
  transform-origin: -15% -15%;
  z-index: 10;
}

.link-grow {
  transform: scale(.25);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

@keyframes pulseGlow {
    from {
      box-shadow: 0 0 5px 2px rgba(255, 80, 80, 0.4);
    }
    to {
      box-shadow: 0 0 30px 8px rgba(255, 80, 80, 0.8);
    }
  }

@media only screen and (max-width: 965px) {

  header .mobile {
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: left;
    width: 100%;
    height: 80px;
    bottom: 0px;
    background-color: #000000;
    z-index: 5;
  }

  header .mobile a {
    display: flex;
    width: 10%;
  }

  header .mobile img {
    display: flex;
    width: 90%;
    height: 90%;
  }

  header .desktop {
    display: none;
  }

  /* contact page */
  .contact-intro {
    display: flex;
    flex-direction: column;
    margin-top: -75px;
  }

  .contact-intro img {
    width: 100%;
  }

  .contact-info {
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
  }

  /* Glowing animated box-shadow */
  .glow-active {
    animation: pulseGlow 0.4s ease-in-out infinite alternate;
  }

  /* end contact page */

  .responsive {
    width: 100%;
  }

  iframe {
    width: 100%;
  }

  .skills img {
    max-width: 100px;
    max-height: 100px;
  }

  footer {
    margin-bottom: 110px;
  }

  
}

.explore-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto 80px auto;
}

.explore-card {
  flex: 1 1 300px;
  text-decoration: none;
  color: #e8e6e3;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  text-align: center;
  transition: all 0.3s ease;
}

.explore-card:hover {
  background: #a31e2f;
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(163,30,47,0.6);
}

.explore-card h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.explore-card p {
  font-size: 1.1rem;
  color: #c2bfb6;
  margin: 0;
}

@media (max-width: 768px) {
  .explore-container {
    flex-direction: column;
    gap: 20px;
  }

  .explore-card {
    padding: 30px 20px;
  }

  .explore-card h3 {
    font-size: 1.6rem;
  }
}