* {
  box-sizing: border-box;
}
/* Step 1: Horizontal navigation using Flexbox */
nav {
  display: flex;
  justify-content: space-around;
  background-color: #333;
  padding: 10px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 10px 20px;
}

nav a:hover {
  background-color: #555;
  transform: translateY(-3px);
  transition: 0.3s;
}
#hobbies {
   background-image: url("./Images/notebook.jpg");
    /* Optional additional properties for better control: */
    background-repeat: no-repeat;
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; /* Centers the image */
    background-color: #cccccc; /* Fallback color if the image can't be loaded */
    height: 320px; /* Set a height, as divs are 0px high by default without content */
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
}

#schools {
    background-image: url("./Images/pinkprint.jpg");
    /* Optional additional properties for better control: */
    background-repeat: no-repeat;
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; /* Centers the image */
    background-color: #cccccc; /* Fallback color if the image can't be loaded */
    height: 400px; /* Set a height, as divs are 0px high by default without content */
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
}
#contact {
    background-image: url("./Images/greenprint.jpg");
    /* Optional additional properties for better control: */
    background-repeat: no-repeat;
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; /* Centers the image */
    background-color: #cccccc; /* Fallback color if the image can't be loaded */
    height: 320px; /* Set a height, as divs are 0px high by default without content */
    padding: 20px;
    margin-bottom: 30px;
    border: 2px solid black;
    

}
.white{ color: white;}
.pink{ 
  background-color: pink
  }

#schools ol {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
}
#schools li {
  background: pink;
  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);
}

#contact ol {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
}
#contact li {
  background: pink;
  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: pink;
  display: flex;
  justify-content: space-around;
  background-image: url("./Images/eye.jpg");
    /* Optional additional properties for better control: */
    background-repeat: no-repeat;
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; 
  background-color: pink;
  padding: 10px;
  /* New code below */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}


#navigation {
    background-image: url("./Images/wings.jpg");
    /* Optional additional properties for better control: */
    background-repeat: no-repeat;
    background-size: cover; /* This makes the image cover the entire element */
    background-position: center; /* Centers the image */
    background-color: #cccccc; /* Fallback color if the image can't be loaded */
    height: 320px; /* Set a height, as divs are 0px high by default without content */
    padding: 20px;
    margin-bottom: 30px;
    margin-top: 320px;
    border: 2px solid black;
}

/* Hide hamburger by default on desktop */
#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;
  }
}

.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 colour */
.dark-mode {
    color: #ecf0f1;
    background-color: #1a1a2e;
}

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

.dark-mode #background li {
    background-color: #0f3460;
    border-color: #1a1a2e;
    color: #ecf0f1;
}

.dark-mode .project-card{
  background-color: #0f3460;
  border-color: #1a1a2e;
  color: #ecf0f1;
}

.dark-mode .modal{
  background-color: #0f3460;
  border-color: #1a1a2e;
  color: #ecf0f1;
}


.dark-mode #background h2,
.dark-mode #projects h2,
.dark-mode #contact h2{
    color: #ecf0f1;
}
