:root {
  --body-bg-color: #6896e0;
  --highlight-color: white;
  --header-bg-color: rgba(41, 80, 153, 0.3);
  --header-bg-color: rgba(31, 57, 157, 0.4);
  --hamburger-bg-color: rgba(41, 80, 153, 0.8);
  --header-border-color: rgba(0, 0, 0, 0.1);
  --nav-link-color: #8bffc4;
  --name-color: #ffffff;
  --highlight-color: #fd7ed5;
  --highlight-color: #ffffff;
  --figcaption-bg-color: rgba(41, 80, 153, 0.6);
  /* --figcaption-bg-color: rgb(27, 43, 124, 0.6); */
  --figcaption-color: #abfbd2;
  --figcaption-color: #ffffff;
  --nav-hover-color: #feff99;
  /* --name-color: #f8a9fd; */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body,
span,
div,
h1,
h2,
h3,
h4,
h5,
h6,
a,
ul,
li,
a,
figure,
img {
  font-family: "Kumbh Sans", sans-serif;
  font-style: normal;
  margin: 0;
  padding: 0;
  list-style-type: none;
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  background: url(images/skygrass.svg) no-repeat top center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-color: var(--body-bg-color);
}

body {
  min-height: 100vh;
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  line-height: 0;
}

/* img.bg {
  display:block;

  min-height: 100%;
  min-width: 1024px;
  
  width: 100%;
  height: auto;
  
  position: fixed;
  top: 0;
  left: 0;
} */

.container {
  width: 100%; /* Ensure the container takes up full width */
  margin: 0 auto; /* Center the container */
}

header {
  flex: 0 1 auto;
  width: 90vw;
  margin: auto;
  padding: 4rem 0 2rem 0;
  visibility: hidden;
  position: relative;
  z-index: 10;
}

.headercontainer {
  display: flex; /* Set up flex container */
  justify-content: space-between; /* Space between logo and nav */
  align-items: baseline; /* Vertically align items */
  background-color: var(--header-bg-color);
  border: 0.5px solid var(--header-border-color);
  padding: 0.7rem 2rem 0.7rem 2rem;
  position: relative;
  border-radius: 3rem;
}

.myname {
  position: relative;
  top: 0;
  display: block;
  font-weight: 500;
  font-size: 3rem;
  color: var(--name-color);
  line-height: 2rem;
  letter-spacing: -0.1rem;
  padding: 1rem 1rem;
}

.myname a:link {
  text-decoration: inherit;
  color: inherit;
  cursor: pointer;
}

.myname a:visited {
  text-decoration: inherit;
  color: inherit;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin: 0;
  padding: 0 1rem;
  z-index: 1000;
}

nav ul li {
  position: relative;
  top: 0;
  display: block;
}

nav a:link {
  display: block;
  position: relative;
  top: 0;
  color: var(--nav-link-color);
  /* margin-top: 0.2rem; */
  font-size: 0.85rem;
  font-weight: 350;
  letter-spacing: 0.01rem;
  text-decoration: none;
  transition: all 0.5s;
}

nav a::before {
  display: block;
  position: absolute;
  top: -1rem;
  left: -1rem;
  bottom: -1rem;
  right: -1rem;
  content: "";
}

nav a:visited {
  color: var(--nav-link-color);
}

nav a:hover {
  color: var(--nav-hover-color);
  font-weight: 600;
  transform: scale(1.1);
}

/* nav a:active {
  color: var(--highlight-color);
  font-weight: 600 !important;
  font-size: 2rem;
} */

.activenavitem {
  color: #ffffff !important;
  font-weight: 650 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.01rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: absolute;
  right: 2rem;
  top: 40%;
}

.hamburger span {
  width: 1.5rem;
  height: 3px;
  background-color: var(--nav-link-color);
  /* border-radius: 3px; */
}

main {
  flex: 1 1 auto;
  width: 90vw;
  margin: auto;
  align-items: center;
}

.top-container {
  display: flex;
  flex: 1 1 auto;
  width: 90vw;
  margin: auto;
  align-items: center;
  justify-content: center;
  padding: 2rem 0 4rem 0;
}

.video-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.sizzle-reel {
  position: relative;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  background-color: #ffffff;
  border-radius: 2rem;
  outline: 1px solid rgba(255, 255, 255, 0.4);
  visibility: hidden;
}

.sizzle-reel video {
  width: 100%;
  height: auto;
  display: block;
}

video::-webkit-media-controls {
  box-shadow: none !important; /* Remove the shadow */
}

/* video::-webkit-media-controls { display: none; box-shadow:none;} */

video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, #9ba5ca) !important;
  /* color: #478cfd; */
  /* color: #9ba5ca; */
}

#playOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: self-end;
  opacity: 1;
}

#playSymbol {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  transition: all 0.6s ease;
}

#playSymbol:hover {
  opacity: 1;
}

#playOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#playSymbol.hidden {
  opacity: 0;
  pointer-events: none;
}

/* fix this */
.sizzle-reel .play-reel.hidden {
  opacity: 0;
  pointer-events: none;
}

.sizzle-reel .play-reel:hover {
  transform: scale(1);
  opacity: 0.5;
  cursor: pointer;
}

#imagegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 2fr));
  justify-content: center;
  grid-column-gap: 10rem;
  grid-row-gap: 10rem;
  visibility: hidden;
}

figure.projectimage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  aspect-ratio: 6 / 5;
  cursor: pointer;
  /* opacity: 0.5; */
}

.imagemask {
  min-height: 100%;
  aspect-ratio: 6 / 5;
  pointer-events: none;
  outline: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
}

.imagemask a {
  display: grid;
  align-items: center;
  justify-items: center;
  -webkit-appearance: none;
  -moz-appearance: none;
  pointer-events: none;
}

figure.projectimage::before {
  display: block;
  position: absolute;
  top: -2rem;
  left: -2rem;
  bottom: -2rem;
  right: -2rem;
  content: "";
}

.imagemask img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

figcaption.caption {
  margin-top: 1rem;
  padding-top: 0.2rem;
  color: var(--figcaption-color);
  text-align: center;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 2rem;
  pointer-events: none;
  letter-spacing: 0.02rem;
  visibility: hidden;
  background-color: var(--figcaption-bg-color);
  border-radius: 17px;
  width: 100%;
}

/* Media Queries */
@media (max-width: 768px) {
  header {
    padding: 3rem 0 2rem 0;
  }

  .headercontainer {
    padding: 1.5rem 2rem;
    border-radius: 1.5rem;
  }

  .myname {
    font-size: 2.2rem;
    line-height: 1.5rem;
    padding: 0rem 0;
  }

  nav ul {
    gap: 1.5rem;
  }

  nav a:link {
    font-size: 0.7rem;
    font-weight: 400;
  }

  .activenavitem {
    font-size: 0.8rem !important;
  }

  .top-container {
    padding: 2rem 0 3rem 0;
  }

  .video-container video {
    width: 100%; /* Allow video to take maximum width */
  }

  figcaption.caption {
    margin-top: 0.5rem;
    padding-top: 0;
    font-size: 0.6rem;
    line-height: 1.5rem;
    border-radius: 1rem;
    width: 95%;
  }

  #imagegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-gap: 6vw;
    padding: 0 0 5em 0;
    margin: 0;
    /* opacity: 0; */
    visibility: hidden;
  }
}

@media (max-width: 480px) and (orientation: portrait) {
  header {
    padding: 3rem 0 0rem 0;
  }

  .headercontainer {
    padding: 1rem 0;
    /* line-height: 10rem; */
  }
  .myname {
    font-size: 2rem;
    letter-spacing: -0.05rem;
    padding-left: 1.8rem;
    line-height: 2rem;
  }

  nav a:link {
    font-size: 0.9rem;
    font-weight: 400;
  }

  .activenavitem {
    font-size: 0.9rem !important;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--hamburger-bg-color);
    border: 0.5px solid var(--header-border-color);
    border-radius: 1.5rem;
    gap: 1rem;
    padding: 1rem 1.8rem;
  }

  nav ul.show {
    display: flex; /* Show nav when toggled */
  }

  nav ul li {
    margin: 0.8rem 0;
  }

  figcaption.caption {
    font-size: 0.7rem;
    line-height: 1rem;
    margin-top: 0.7rem;
    padding-top: 0;
  }

  #imagegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    grid-gap: 3rem;
    padding: 0 0 10rem 0;
    margin: 0;
    /* opacity: 0; */
    visibility: hidden;
  }
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
  #imagegrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 2fr));
    grid-gap: 5rem;
    padding: 0 0 10em 0;
    margin: 0;
    /* opacity: 0; */
    visibility: hidden;
  }
}
