/* ===== GLOBAL ===== */
body {
  margin: 0;
  font-family: "Science Gothic", sans-serif;
  background-color: #f9f9f9; /* subtle page background */
}

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

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

#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;
}

/* LINKS MATCH RESUME PAGE */
.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;
}

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

/* ===== HAMBURGER (EXACT MATCH) ===== */
.hamburger {
  display: none;
  position: relative;
  width: 34px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  overflow: visible;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

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

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

/* 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 ===== */
@media (max-width: 700px) {
  .nav-links {
    position: absolute;
    top: 70px;
    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;
  }

  .hamburger {
    display: block;
  }

  #title_name {
    display: none;
  }
}

/* ===== PAGE CONTENT ===== */
main {
  background-color: whitesmoke;
  padding: 30px 20px;
  border-radius: 10px; /* subtle rounding */
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* soft shadow */
}

#personal {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center;
}

#me {
  width: 350px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#bio {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
}

/* MEDIA SECTION */
#media {
  margin-top: 40px;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

#media img {
  width: 250px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ===== SCROLLER ===== */
.capsule {
  width: 100%;
  overflow: hidden;
  background: white;
  margin-top: 40px;
  padding: 10px 0;
}

.scroll-track {
  display: flex;
  gap: 20px;
  animation: scroll-left 20s linear infinite;
}

.imagerow {
  width: 100px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 15px;
}

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