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

.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;
  }
}

.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: calc(var(--proj-gap) * 2); /* breathing room above */
  margin-bottom: var(--proj-gap); /* equal to grid gap */
}

.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;
}

.gallery iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;  /* Keeps correct proportions */
  border-radius: 12px;
  margin: 0 auto; /* centers the iframe */
}

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;
}

/* 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%;
  }
}

:root {
  --proj-gap: 20px; /* single source of truth */
}


.proj {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--proj-gap);
  row-gap: var(--proj-gap);
  padding: var(--proj-gap);
  grid-auto-flow: dense;
}

.proj > .responsive:last-child {
  grid-column: 2 / 3; /* centers in the middle column */
}

div.gallery {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;      /* fills the grid cell only */
  height: 100%;     /* fills the grid cell only */
  padding: 10px;    /* inside padding is fine */
  box-sizing: border-box; /* 👈 prevents overflow from padding */
  margin: 0;        /* remove any extra spacing */

  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  background-clip: padding-box;
  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);
  transition: all 0.3s ease;
}

[id^="waveform"] {
  margin-bottom: 8px;
  height: 90px; /* add this */
}

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%;
}

@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 */


  iframe {
    width: 100%;
  }

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

  footer {
    margin-bottom: 110px;
  }
  /* Tablet view: 2 columns */
@media (max-width: 1024px) {
  .proj {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view: 1 column */
@media (max-width: 768px) {
  .proj {
    grid-template-columns: 1fr;
    padding: 10px;
    row-gap: 20px;
  }

  .proj .gallery {
    width: 100%;
    justify-self: center;
  }
}




}
