:root {
  --primary-color: #8dfc9e;
  --secondary-color: #4b65fc;
  --dark-color: #1E1B18;
  --light-color: #E8E1EF;
  --extra-color: #FC6471;
  
  --dark-mode-background-color: var(--dark-color);
  --dark-mode-foreground-color: var(--light-color);
  --dark-mode-highlight-color: var(--primary-color);

  --light-mode-background-color: var(--light-color);
  --light-mode-foreground-color: var(--dark-color);
  --light-mode-highlight-color: var(--secondary-color);
}

html {
  color: #4b65fc;
  font-family: "IBM Plex Sans", Courier, monospace;
  /* font-optical-sizing: auto; */
  background-color: var(--dark-color);
  font-size: 16px;
}

a, a:visited:active {
  color: var(--dark-mode-highlight-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
}

a:active {
  background-color: var(--secondary-color);
}

body {
  margin: 0px;
}

h1 {
  margin: auto;
  text-align: center;
  font-weight: 500;
  font-size: 5rem;
}

h2 {
  margin: auto;
  padding: 160px 0px;
  text-align: center;
  font-size: 3rem;
}

h3 {
  font-size: 2rem;
  padding: 0px;
  margin: 0px;
}

.headerDiv {
  display: flex;
  background-color: #8dfc9e;
  width: 100%;
  height: 70vh;
  margin: auto;
}


.navbar {
  position: fixed;
  /* left: 50%;
  transform: translateX(-50%); */
  list-style-type: none;
  overflow: hidden;
  width: 90%;
  margin: 30px 5%;
  padding: 0px;
  z-index: 1;
}

.navbar li a {
  float: left;
  display: block;
  padding: 15px;
  background-color: rgb(75, 101, 252, 0);
  color: #4b65fc;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  background-color: #8dfc9e;
}

.navbar li a:hover {
  background-color: rgb(75, 101, 252, 1);
  /* font-weight: bolder; */
  color: white;
  text-decoration: none;
}

.showreel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  z-index: -1;
}

.showreel iframe{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

#projects {
  background-color: #000000;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.project-item {
  position: relative;
  display: block;
  overflow: hidden;
}

.project-thumbnail {
  width: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}

.project-title {
  text-align: center;
  color: white;
  font-size: 1rem;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgb(75, 101, 252, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.project-item:hover .project-overlay{
  opacity: 1;
}

/* project page */

section#case-study, section#about {
  margin: 0px 5%;
  font-size: 1.5rem;
  color: var(--light-color);
}

section#case-study .case-study-description, .case-study-info {
  padding: 20px 30% 0px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-width: 0px 0px 2px 0px;
  border-color: var(--dark-mode-highlight-color);
  border-style: solid;
  padding: 10px 0px;
  margin: 10px 0px;
}

.info-item .label {
  font-size: 1.5rem;
  font-weight: 700;
}

#case-study iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  padding: 50px 0px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.case-study-grid div {
  background-color: var(--light-mode-highlight-color);
  overflow: hidden;
  height: 400px;
}

.case-study-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-grid .full-width {
  grid-column: 1 / -1;
}

@media (max-width: 1300px) {
  h1 {
    font-size: 10vw;
  }
  .headerDiv {
    height: 30vh;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .navbar {
    width: 100%;
    margin: auto;
  }
  .navbar li a {
    font-size: 4vw;
    margin: auto;
    padding: 10px;
  }

  section#case-study .case-study-description, .case-study-info {
    padding: 10px 0px 0px;
  }
  .info-item {
    flex-direction: row;
  }
}

@media (max-width: 450px) {
  .projects-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}