.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /*Hides any content that overflows this container.*/
  z-index: -2; /*Places the video behind other content.*/
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /*Adjusts position to truly center the video using CSS transform.*/
  object-fit: cover; /*Scales the video to cover the entire container.*/
  filter: brightness(0.7); /*Makes the video darker.*/
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5); /*Adds 50% opacity.*/
  z-index: -1;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  margin: 0 auto;
  background-color: #3A506B;
  border-color: #062750;
  border-top: none;
  border-right: none;
  border-left: none;
  padding-top: 10px;
  position: relative;
  z-index: 10; /*Puts navbar above most content.*/
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.navbar nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1500px;
  padding: 0 20px;
  box-sizing: border-box;
}
.navbar nav ul {
  display: flex;
  align-items: center;
  justify-content: space-evenly; /*Distributes list items evenly with space around them.*/
  width: 100%;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style-type: none; /*Removes bullet point from the text.*/
}
.navbar nav ul li {
  border-color: black;
  border-style: solid;
  background-color: white;
  border-radius: 10px;
  width: 175px;
  height: 80px;
  list-style-type: none;
}
.navbar nav ul li a {
  display: flex;
  width: 100%;
  height: 100%;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  color: black;
  justify-content: center;
  position: relative;
  overflow: hidden;
  align-items: center;
}
.navbar nav ul li a span {
  position: relative;
  display: inline-block;
}
.navbar nav ul li a span::after {
  content: ""; /*Required for pseudo-elements (virtual element that doesn't exist in the structure).*/
  position: absolute; /*Positions the underline relative to the <span>.*/
  bottom: -5px; /*Positions the underline directly below the text.*/
  left: 50%;
  transform: translateX(-50%) scaleX(0); /*Scales the zero width and centers.*/
  transform-origin: center;
  width: 100%;
  height: 3px;
  background-color: black;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out; /*Smooth transition for transform and opacity.*/
  opacity: 0; /*Initially invisible.*/
}
.navbar nav ul li a:hover span::after {
  transform: translateX(-50%) scaleX(1); /*Scales the underline to full width.*/
  opacity: 1; /*Makes the undelrine fully visible.*/
}
@media screen and (max-width: 800px) {
  .navbar nav {
    flex-direction: column;
    align-items: center;
  }
  .navbar nav ul {
    flex-direction: column; /*Stacks the list items vertically.*/
    align-items: center;
    gap: 10px; /*Adds space between the items.*/
    align-items: stretch;
  }
  .navbar nav ul li {
    width: 100%;
    height: 60px;
    margin: 0;
  }
  .navbar nav ul li a {
    font-size: 18px;
  }
}

#SAMEERHAQ {
  width: 60%;
  height: 20vh;
  border-radius: 50px;
  border-color: black;
  border-style: solid;
  overflow: hidden;
}
#SAMEERHAQ #tooltip {
  position: absolute;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 4px;
  pointer-events: none;
  font-family: sans-serif;
  font-size: 14px;
  display: none;
  z-index: 10;
}
@media screen and (max-width: 800px) {
  #SAMEERHAQ {
    width: 90%;
    flex-direction: column;
    margin-bottom: 10px;
    margin-top: 10px;
    height: 15vh;
  }
}

footer {
  display: flex;
  border-style: solid;
  border-color: #062750;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  height: 100px;
  border-bottom: none;
  border-right: none;
  border-left: none;
  background-color: #3A506B;
  color: white;
}
footer a {
  color: white;
}
@media screen and (max-width: 800px) {
  footer {
    font-size: 20px;
    text-align: center;
  }
}
body {
  background-color: #1b1b1b;
  color: #ffffff;
  margin: 0;
  min-height: 100vh; /*Full height of the viewport.*/
  position: relative;
  background-image: url("../assets/thumbnails/MainBackground4.gif");
  z-index: 0; /*Sets the stacking order for the body.*/
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

#keywords {
  display: flex;
  padding: 10px;
  border-style: solid;
  border-color: #ffffff;
  width: 50%;
  border-radius: 10px;
  margin: 0 auto;
  background-color: #ffffff;
  color: black;
  height: 80px;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  margin-bottom: 50px;
}

.underline {
  text-decoration: underline;
}

.bold {
  font-weight: bold;
}

.text-large {
  font-size: 25px;
}

#aboutme {
  display: flex;
  position: relative;
  z-index: 1;
  width: 80%;
  height: 110%;
  margin: 0 auto;
  justify-content: space-between;
  padding: 20px;
  background-color: #ffffff;
  color: black;
  margin-bottom: 50px;
  border-radius: 15px;
  background-color: transparent;
}

.card-content {
  background-color: #ffffff;
  color: black;
  width: 110%;
  height: 110%;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box; /* Ensures padding is included in the width */
  border-radius: 15px;
  position: relative;
  z-index: 2; /* Ensures content is above the gradient */
}
.card-content p {
  width: 60%;
  margin: 0;
  padding-right: 20px;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
#aboutme::after, #aboutme::before {
  --angle: 0deg;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 102%;
  height: 104%;
  transform: translate(-50%, -50%);
  background-image: conic-gradient(from var(--angle), transparent 50%, blue);
  z-index: -1;
  border-radius: 15px;
  animation: 3s spin linear infinite;
  border-radius: 15px;
}

#aboutme::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}
#aboutme > p, #aboutme .image-swap-container {
  position: relative;
  z-index: 2;
}

.card-content .image-swap-container {
  border: 2px solid black;
  position: relative;
  width: 350px;
  height: 450px;
}
.card-content .image-swap-container img {
  position: absolute;
  object-fit: cover;
  width: 350px;
  height: 450px;
  transition: opacity 0.5s ease-in-out;
}
.card-content .image-swap-container .base-image {
  opacity: 1;
}
.card-content .image-swap-container .hover-image {
  opacity: 0;
}

.card-content .image-swap-container:hover .base-image {
  opacity: 0;
}

.card-content .image-swap-container:hover .hover-image {
  opacity: 1;
}

#pinned {
  width: 77%;
  height: 400px;
  margin: 0 auto;
  position: relative;
  border-color: #3A506B;
  border-style: solid;
  box-sizing: border-box;
  margin-bottom: 30px;
  border-radius: 10px;
}
#pinned #pinned-tooltip {
  position: absolute;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  border-radius: 4px;
  pointer-events: none;
  font-family: sans-serif;
  font-size: 14px;
  display: none;
  z-index: 10;
}

#timeline {
  border-style: solid;
  border-color: #ffffff;
  position: relative;
  width: 85%;
  max-width: 1500px;
  box-sizing: border-box;
  margin: 0 auto;
  justify-content: center;
  min-height: 600px;
  background-color: #ffffff;
  color: black;
  border-radius: 10px;
}

.year {
  text-align: center;
  align-items: center;
  width: 100%;
  font-size: 25px;
  font-weight: bold;
  text-decoration: underline;
}

.slide {
  display: none;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: black;
  font-weight: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(94, 94, 94, 0.8);
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

#timeline .text {
  width: 94%;
  align-items: center;
  margin: 0 auto;
  font-size: 20px;
}

.modules {
  border-color: blue;
  border-style: solid;
  padding: 10px;
}

.projcerts {
  border-color: red;
  border-style: solid;
  padding: 10px;
}

.extra {
  border-color: green;
  border-style: solid;
  padding: 10px;
  margin-bottom: 30px;
}

@media screen and (max-width: 800px) {
  #keywords {
    width: 90%;
  }
  #aboutme {
    max-width: 98vw;
    padding: 8px;
  }
  #aboutme .card-content {
    flex-direction: column-reverse;
    align-items: center;
    padding: 10px;
  }
  #aboutme p {
    width: 100%;
    padding-right: 0;
    margin-bottom: 20px;
    text-align: left;
  }
  #aboutme .card-content .image-swap-container {
    width: 200px;
    height: 250px;
  }
  #aboutme .card-content .image-swap-container img {
    width: 200px;
    height: 250px;
  }
  #pinned {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 98vw;
    min-width: 0;
    max-width: 100vw;
    height: 220px; /* Reduce height for mobile */
    padding: 8px;
    box-sizing: border-box;
    overflow-x: auto;
    gap: 10px; /* Space between boxes */
  }
  #pinned > div {
    width: 120px; /* Make each box smaller */
    height: 120px;
    margin: 0;
    flex: 0 0 auto; /* Prevent shrinking */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  #timeline {
    width: 90%;
    padding: 10px;
  }
  #timeline .text {
    font-size: 15px;
  }
}

/*# sourceMappingURL=index.css.map */
