#introduction {
  background-color: rgb(0, 42, 255);
  padding: 20px;
  margin-bottom: 30px;
  border: 2px solid black;
}

#background {
    background-color: rgb(230, 143, 81);
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
}

#skills {
    background-color: rgb(22, 215, 35);
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
}

#projects {
    background-color: rgba(109, 4, 76, 0.957);
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
}
#contact {
    background-color: rgba(93, 154, 228, 0.877);
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
}


#hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}


nav {
  display: flex;
  justify-content: space-around;
  background-color: #333;
  padding: 10px;
}

nav a {
  color: rgb(36, 218, 227);
  text-decoration: none;
}

nav {
  display: flex;
  justify-content: space-around;
  background-color: #333;
  padding: 10px;
  /* New code below */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.nav-actions {
    display: flex;
    margin-left: auto;
    gap: 0.75rem;
}

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


.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Ratio (9 / 16 = 0.5625) */
  height: 0;
  overflow: hidden;
}

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

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
  background-color: rgb(4, 217, 255);
}


#hamburger { display: block; }

.nav-menu {
  display: none; /* Hide links by default on mobile */
  flex-direction: column;
  position: absolute;
  top: 60px;
  background-color: #333;
  width: 100%;
}

/* When JS adds this class, the menu appears! */
.nav-menu.nav-open {
  display: flex;
}

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

@media (max-width: 600px) {
  #background ol {
    flex-direction: column;
  }

  header {
    height: 200px;
    text-align: center;
  }
}

nav a:hover {
  background-color: #0b95da;
  transform: translateY(-3px);
  transition: 0.3s;
}


.dark-mode {
    color: #ecf0f1;
    background-color: #000000;
}

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


.dark-mode .about {
    background-color: #16213e;
}