/* --- Global Styles --- */
body {
  margin: 0;
  background-color: white;
  color: black;
  transition: background-color 0.3s, color 0.3s;
  padding: 10px;
  min-height: 100vh;
}

.root {
  justify-items: center;
  align-items: center;
  min-height: 100vh;
}

.h4-project {
  color: #1A73E8;
  font-family: "Inter", sans-serif;
}


/* --- Header / Navbar --- */
.header-bar {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border-radius: 20px;
  gap: 158px;
  padding: 10px;
  position: relative;
}

@media screen and (max-width: 786px) {
  .header-bar {
    gap: 85px;
    text-align-last: left;
    word-spacing: 2px;
  }
}

/* --- Desktop nav --- */
.nav {
  display: flex;
  align-items: center;

  color: black;
  background-color: transparent;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
}

/* Nav links */
.nav-lin {
  display: flex;
  color: black;
  background-color: white;
  border: 1px solid black;
  border-radius: 10px;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
  justify-content: center;
  text-decoration: none;
}

.nav-lin:hover {
  color: white;
}

.darkmode .nav-lin:hover {
  color: black !important;
}

/* Nav links color in darkmode */
.darkmode .nav a {
  color: white !important;
}

/* Hamburger button - hidden on desktop */
#hamburgmenu {
  display: none;
  background-color: white;
  border: 1px solid black;
  align-items: center;
  border-radius: 10px;
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
}

#hamburgmenu:hover {
  background-color: black;
  color: white;
}

.darkmode #hamburgmenu {
  border: 1px solid white;
  background-color: #212121;
  color: white;
}

.darkmode #hamburgmenu:hover {
  background-color: white;
  color: black;
}

@media screen and (max-width: 786px) {
  .nav {
    display: none !important;
    flex-direction: column;
    background-color: rgba(169, 169, 169, 0.8);
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    border-radius: 8px;
    z-index: 999;
  }

  .nav.active {
    display: flex !important;
  }

  #hamburgmenu {
    display: flex !important;
  }
}

/* darkmode toggle button */

.darkmode {
background-color: #212121;
  color: white;
}

/* Dark-mode button style */
#darkModeToggle {
  display: flex;
  background-color:transparent;
  border: 1px solid black;
  border-radius: 10px;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
}

#darkModeToggle:hover {
  background-color: black;
  border: 1px solid white;
}

.darkmode #darkModeToggle {
  background-color: #212121;
  color: black;
  border: 1px solid white;
}

.darkmode #darkModeToggle:hover {
  background-color: white;
  border: 1px solid black;
}

/* Paragraph style */
p {
  margin: 0;
  font-size: 20px;
  text-align: justify;
}

/* --- Spacer --- */
.spacer {
  height: 40px;
}

/* text style */
p {
  color: black;
  font-size: 16px;
  padding: 10px;
  cursor: pointer;
  background-color: transparent;
  transition: background-color 0.3s, color 0.3s;
  border-radius: 10px;
}

.darkmode p {
  color: white;
}

.title {
  font-size: 30px;
  text-align: start;
  display: block;
}

/* downlode resume button*/
#downloadResume {
  display: flex;
  color: black;
  background-color: white;
  border: 1px solid black;
  border-radius: 10px;
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
  justify-content: center;
}

#downloadResume:hover {
  background-color: black;
  color: white;
}

.darkmode #downloadResume {
  border: 1px solid white;
  background-color: #212121;
  color: white;
}

.darkmode #downloadResume:hover {
  background-color: white;
  color: black;
}

@media screen and (max-width: 786px) {
  .nav-lin {
    display: flex;
    color: black;
    background-color:transparent;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    padding: 6px 8px;
    cursor: pointer;
    justify-content: center;
  }
}

.nav-lin:hover {
  background-color: #212121;
  color: white;
}

.darkmode .nav-lin {
  border: 1px solid none;
  background-color: transparent;
  color: white;
}

.darkmode .nav-lin:hover {
  background-color: white;
  color: black;
}

/*image*/

#my-img {
  border-radius: 30px;
  width: 600px;
}

@media screen and (max-width: 786px) {
  #my-img {
    width: 330px;
  }
}

/*footer */
.social-link {
  margin-left: 1rem;
  color: #212529;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: translateY(-10px);
}

.darkmode .social-link {
  margin-left: 1rem;
  color: white;
  text-decoration: none;
}

.my-5 {
  max-width: 650px;
}

.core-strength {
  word-spacing: 0.3px;
  line-height: normal;
}

/* this is the project section on index.html */

.projects {
  border: 0.5px solid black;
  padding: 15px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.darkmode .projects {
  border: 0.5px solid gray;
}

.projects:hover {
  transform: translateY(-10px);
}

.card-link {
  text-decoration: none;
  color: black;
}

.darkmode .card-link {
  text-decoration: none;
  color: white;
}

.section-2 {
  display: flex;
  text-align: left;
}

/* this is the project section on index.html */
