header {
  position: relative;
  color: white;
  filter: blur(100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.Header-background {
  width: 100vw;
  object-fit: cover;
  height: 45vh;
}
header::before {
content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgb(0, 0, 0), rgba(0, 0, 0, 0));
    z-index: 1;
}
.Header-foreground{
  position: absolute;
  top: 0px;
  height: 45vh;
  margin: 0px;
}
.Header-content{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
}
.Header-text {
    position: absolute;
    bottom: 0px;
    z-index: 2;
}
#Header-name{
  font-family: 'Times New Roman', Times, serif;
  font-size: 7vw;
  font-weight: bold;
  color: rgb(255, 255, 255);
  z-index: inherit;
  padding: 0px;
  margin: 0px
}

#Header-description {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 3vw;
  color: rgb(0, 255, 255);
  display: flex;
  justify-content: center;
  padding: 0px;
  margin: 0px
}

body {
    font-family: 'Times New Roman', Times, serif;
    color: black;
    margin: 0px;
    padding: 0px;

}


nav {
  background-color: rgb(132, 85, 85);
  position: fixed;
  right: 0px;
  bottom: 0px;
  padding: 2vh;
  z-index: 100;
}

.nav-menu {
  position: inherit;
  display: flex;
  justify-content: space-evenly;
  font-size: 15pt;
  color: white;
  width: 100%;
  margin: 0px;
  background-color: inherit;
  right: 0px;
  bottom: 0px;
  padding: 2vh;
}

.video-container iframe {
  position: auto;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.Chess-info {
  display: flex;
  flex-direction: row;
}





.main-content {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dark-mode-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    line-height: 1;
    width: 40px;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.15);
}
.dark-mode {
    color: #ecf0f1;
    background-color: #000000d8;
}

.dark-mode .about,
.dark-mode .contact {
    background-color: #000000;
}

#hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.projects-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 10px;
    word-wrap: break-word;
    max-width: 250px;
}

.project-card img {
    max-width: 100%;
}

.modal-overlay {
    display: none; /* Keep hidden initially */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; } /* Logic will toggle this */

.modal {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
  #hamburger { 
    display: block;
    margin-top: auto;
    margin-left: auto
  }


  .nav-menu {
    display: none;
  }
  nav.nav-open{
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    left: 0px;
    top: 0px;
    background-color:rgba(0, 0, 0, 0.94)
  }
  .nav-menu.nav-open{
    position: absolute;
    top: 0px;
    bottom: 50px;
    background-color: transparent;
    font-size: 30pt;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    gap: 20px
  }
}