/* ===================== */
/* GLOBAL RESET */
/* ===================== */

body {
  margin: 0;
  font-family:"Science Gothic",sans-serif;
}

header {
  width: 100%;
  overflow: visible;
}

/* ===================== */
/* NAVIGATION BAR */
/* ===================== */

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #333;
  padding: 10px 20px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* Logo + Name */
#person {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
}

#logo_personal {
  border: 3px solid orangered;
  border-radius: 15px;
  margin-right: 10px;
}

#title_name {
  font-size: 20px;
  color: white;
}

/* Desktop Links */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 5px;
  transition: 0.2s ease;
}

.nav-links a:hover {
  background-color: white;
  color: black;
}

/* ===================== */
/* HAMBURGER BUTTON */
/* ===================== */

.hamburger {
  display: none;
  position: relative;
  width: 34px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  z-index: 1000;
  overflow: visible;
}

/* All 3 lines */
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Position lines */
.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 12px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* Animate into X */
.hamburger.active span:nth-child(1) {
  top: 12px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 12px;
  bottom: auto;
  transform: rotate(-45deg);
}

/* ===================== */
/* MOBILE RESPONSIVE */
/* ===================== */

@media screen and (max-width: 700px) {

  .nav-links {
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    background-color: #333;
    flex-direction: column;
    text-align: center;
    display: none;
    padding: 15px 0;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    font-size: 18px;
  }

  .hamburger {
    display: block;
  }

  #title_name {
    display: none;
  }
}

/* ===================== */
/* MAIN CONTENT */
/* ===================== */

main {
  background-color: whitesmoke;
  padding: 15px;
}

#resume {
  width: 100%;
  display: block;
}

/* ===================== */
/* FOOTER */
/* ===================== */

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 14px;
}

#foot {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}