/* BODY */
body {
  font-family: Arial, Helvetica, sans-serif;
  padding-top: 70px;
  background-color: #f5f7fa;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* MAIN */
main {
  flex: 1;
  padding: 60px 20px;
  text-align: center;
}

/* HEADER TITLES */
.intro h1 {
  color: #023047;
  margin-bottom: 10px;
  font-size: 2.5rem;
}

.intro h2 {
  color: #0077b6;
  margin-bottom: 40px;
  font-weight: normal;
}

/*  NAVBAR  */
.nav_links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #078fd8;
  padding: 10px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  height: 60px;
}

.nav_links img {
  display: block;
  height: 40px;
}

.nav_menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  margin-left: 30px;
  margin-right: 15px;
}

.nav_menu ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav_menu li {
  margin-right: 25px;
}

.nav_menu a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  transition: color 0.3s ease;
}

.nav_menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffb703;
  transition: width 0.3s ease;
}

.nav_menu a:hover::after {
  width: 100%;
}

.nav_main {
  gap: 25px;
  display: flex;
}

.nav_right {
  display: flex;
  gap: 15px;
}

.nav_toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  position: absolute;
  right: 40px;
}

.theme-button {
  font-size: 17px;
  margin-right: 40px;
}


/*  FOOTER  */
footer {
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px;
  background: #f3f4f6;
  color: #555;
  font-size: 14px;
  border-top: 1px solid #ddd;
}

/*  MEDIA QUERIES  */
@media (max-width: 768px) {
  .nav_toggle {
    display: block;
  }

  .nav_menu {
    display: none;
    flex-direction: column;
    background-color: #078fd8;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 20px;
    margin-left: 0;
    box-sizing: border-box; 
  }

  .nav_menu.active {
    display: flex;
  }

  .nav_menu ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .nav_menu li {
    margin: 10px 0;
  }

  .nav_main {
    margin-bottom: 10px;
  }

  .nav_right {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .theme-button {
    display: none;
  }
}



/* ________________________________________________ */
/* DARK THEME STYLES */
/*  HEADER / NAVBAR  */
body.dark-theme {
  background: linear-gradient(135deg, #243b55, #3b4f70);
  color: #e8eef7;
}

body.dark-theme .nav_links {
  background-color: #121417;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.05);
}

body.dark-theme .nav_menu a {
  color: #e6edf3;
}

body.dark-theme .nav_menu a::after {
  background: #ffb703;
}

body.dark-theme .nav_toggle {
  color: #e6edf3;
}

@media (max-width: 768px) {
  body.dark-theme .nav_menu {
    background-color: #121417;
  }
}

/*  FOOTER  */
body.dark-theme footer {
  background-color: #0e1012;
  color: #9aa0a6;
  border-top: 1px solid #1f2a37;
  border-bottom: 1px solid #1f2a37;
}

/* 🌗 Floating button */
.theme-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #00b4d8;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 1100;
}

.theme-toggle:hover {
  background: #3ed2f8;
  transform: translateY(-2px);
}

body.dark-theme .theme-toggle {
  background: #222;
  color: #e6edf3;
  box-shadow: 0 4px 10px rgba(255,255,255,0.1);
}

body.dark-theme .theme-toggle:hover {
  background: #333;
}
/* === Scroll Progress Bar (under header) === */
#scrollProgress {
  position: fixed;
  top: 73px;
  left: 0;
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, #003366, #004c99, #0066cc);
  box-shadow: 0 0 12px rgba(0, 51, 102, 0.6);
  transition: width 0.25s ease-out;
  z-index: 9999;
}


.dark-theme #scrollProgress {
  background: linear-gradient(90deg, #66a6ff, #007cf0, #00dfd8);
  box-shadow: 0 0 10px rgba(0, 124, 240, 0.6);
}

