* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-image: url('images/awfuopaiw.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: sans-serif;
  min-height: 100vh;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 95px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  z-index: 9999;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 30px;
}

.nav-left {
  width: 430px;
}

.nav-right a {
  margin-left: 40px;
  color: #9dffff;
  font-size: 22px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.nav-right button {
  margin-left: 40px;
  color: #9dffff;
  font-size: 22px;
  font-weight: bold;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.3s;
  appearance: none;
}
.nav-right button:hover,
.nav-right button.active {
  color: white;
  border-bottom: 2px solid #9dffff;
}

.nav-right button:hover {
  color: white;
  border-bottom: 2px solid #9dffff;
}

.nav-right a:hover,
.nav-right a.active {
  color: white;
  border-bottom: 2px solid #9dffff;
}

.hamburger {
  display: none;
  font-size: 36px;
  background: none;
  border: none;
  color: #9dffff;
  cursor: pointer;
}

.container {
  display: flex;
  height: 100vh;
}

.sidebar {
  width: 330px;
  height: 100vh;
  background-color: rgba(17, 50, 64, 0.8);
  padding: 115px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.avatar {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background-color: #2b3c56;
  background-size: cover;
  background-position: center;
  margin-bottom: 30px;
  border: 5px solid #9dffff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.intro-title {
  font-size: 30px;
  color: #9dffff;
  font-weight: bold;
  margin-bottom: 10px;
}

.content {
  flex: 1;
  padding: 120px 40px 40px 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 100vh;
  scroll-behavior: smooth;
  align-items: center;
}

.content::-webkit-scrollbar {
  width: 12px;
}
.content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}
.content::-webkit-scrollbar-thumb {
  background: #9dffff;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.content::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

.about-container {
  width: 100%;
  max-width: 1500px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: white;
  margin-bottom: 40px;
}

.about-container h1 {
  border-bottom: 2px solid #9dffff;
  font-size: 40px;
  margin-bottom: 20px;
  color: #9dffff;
}

.about-container p {
  margin-bottom: 15px;
  line-height: 1.8;
  font-size: 35px;
  color: #82f3f3;
}

.li-about {
  margin-bottom: 10px;
  color: #82f3f3;
  line-height: 1.2;
  font-size: 25px;
}

.skill {
  margin-bottom: 20px;
}
.skill span {
  font-size: 32px;
  font-weight: bold;
  color: #e0f8fb;
  margin-bottom: 5px;
  display: inline-block;
}
.skill h1 {
  font-size: 40px;
  color: hsl(189, 47%, 91%);
  margin-bottom: 5px;
}
.bar {
  background-color: #111;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}
.fill {
  background: linear-gradient(90deg, #00e6ff, #0099cc);
  height: 100%;
  width: 0;
  animation: fill-in 2s forwards;
  transition: filter 0.5s;
}
.fill:hover {
  filter: brightness(1.4) saturate(1.3);
}

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 9999;
}
.toast.show {
  bottom: 30px;
  opacity: 1;
}

@keyframes fill-in {
  from { width: 0; }
  to { width: var(--target-width); }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 20px;
    flex-wrap: wrap;
  }

  .avatar {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
  }

  .intro-title {
    font-size: 22px;
    text-align: center;
    width: 100%;
  }

  .content {
    padding: 20px;
    max-height: none;
    overflow-y: visible;
  }

  .about-container {
    padding: 20px;
    margin: 20px 0;
  }

  .about-container h1 {
    font-size: 28px;
  }

  .about-container p {
    font-size: 18px;
    line-height: 1.6;
  }

  .li-about {
    font-size: 16px;
  }

  .skill span,
  .skill h1 {
    font-size: 20px;
  }

  .bar {
    height: 6px;
  }

  .fill {
    animation-duration: 1.5s;
  }

  .hamburger {
    display: block;
  }

  .nav-left {
    display: none;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 95px;
    right: 0;
    width: 100%;
    padding: 20px;
    z-index: 10000;
  }

  .nav-right.show {
    display: flex;
  }

  .nav-right a {
    font-size: 20px;
    padding: 10px 0;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-right button {
    font-size: 20px;
    padding: 10px 0;
    margin: 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 10001;
    font-size: 36px;
    background: none;
    border: none;
    color: #9dffff;
    cursor: pointer;
  }

  html, body {
    background-size: auto 100%;
    background-repeat: repeat-y;
  }
}
