* {
  box-sizing: border-box;
}


#hobbies{ 
  background-color: rgb(127, 135, 198);
  padding: 20px;
  margin-bottom: 30px;
  border: 6px solid rgba(231, 183, 223, 0.797);
}

#sports{ 
  background-color: rgb(241, 97, 152);
  padding: 20px;
  margin-bottom: 30px;
  border: 6px solid #aef8f4cb;
}

#school{ 
  background-color: rgb(110, 72, 185);
  padding: 20px;
  margin-bottom: 30px;
  border: 6px solid #f4f4b5;
}

 #school ol {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;

 }
 #school li {
  background: white;
  border: 1px solid #ddd;
  padding: 15px;
  /* flex: 1 makes each card grow equally to fill available horizontal space */
  flex: 1;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}
nav{

  display: flex;
  justify-content: space-around;
  gap: 20ptx;
}

h2 {
  color: rgb(221, 208, 160)

}
nav {
  display: flex;
    flex-direction: column;
  justify-content: space-around;
  background-color: #333;
  padding: 10px;
  margin-top: 300px;
}

nav a {
  color: white;
  text-decoration: none;

}

#background ol {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
}

#background li {
  background: white;
  border: 1px solid #ddd;
  padding: 15px;
  /* flex: 1 makes each card grow equally to fill available horizontal space */
  flex: 1;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 300px;
  background-color: #f4f4f4;
  position: fixed; 
  top: 0;
  width: 100%;
  z-index: 10x;
}

.video-container {
position: relative;
padding-bottom: 56.25%; 
height: 0;
overflow: hidden;
}

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

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

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

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

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

/* Mobile View Styles */
@media (max-width: 600px) {
  #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%;
}

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

.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);
}
.nav-actions {
    display: flex;
    margin-left: auto;
    gap: 0.75rem;
}
.dark-mode {
    color: #ecf0f1;
    background-color: #1a1a2e;
}

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

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