* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Patrick Hand", cursive;
  font-weight: 400;
  font-style: normal;
  /* font-size: 18px; */
}

body {
  background-color: #fff;
  padding: 15px 20px;
  color: #111;
}

.top-bar {
  height: 101px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  border-radius: 20px;
  background-color: #fadcd9;
  margin-bottom: 20px;
}

.logo {
  font-size: 1.2rem;
}

nav a {
  text-decoration: none;
  color: #111;
  margin-left: 30px;
  font-size: 0.9rem;
}

.grid-container {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.section-info {
  flex: 7;
}

.section-projects {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.section-intro-top {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.section-intro-bottom {
  display: flex;
  gap: 20px;
}

.intro {
  height: 479px;
  position: relative;
  background: #ffe5e5;
  padding: 30px;
  border-radius: 20px;
  flex: 7;
}

.intro h1 {
  font-size: 3.25rem;
  line-height: 1.5;
  bottom: 50px;
  position: absolute;
}

.intro em {
  font-style: italic;
  color: #555;
}

.intro strong {
  font-weight: 800;
  color: #000;
}

.intro .intro-icon-vector {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 30px;
  right: 30px;
}

.portrait {
  flex: 3;
  height: 479px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  max-height: 500px; /* Giới hạn chiều cao tối đa */
}

.project-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 8;
  background-color: #ffe5e5;
  padding: 20px;
  border-radius: 16px;
}

.project-featured .top-row {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 10px;
}

.project-featured img {
  width: 100%;
  border-radius: 12px;
}

.project-links div {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  font-weight: 500;
}

.bio {
  position: relative;
  height: 351px;
  background: #ffe5e5;
  padding: 20px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 5;
}

.bio img {
  position: absolute;
  top: 30px;
  left: 30px;
}

.bio p {
  padding-right: 150px;
  left: 30px;
  position: absolute;
  bottom: 60px;
}

.contact-box {
  background-color: #fbb1b1;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 5;
}

.contact-box p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.contact-box h2 {
  font-size: 1.6rem;
}

.arrow {
  font-size: 1.2rem;
  margin-left: 8px;
}

.socials {
  height: 101px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 20px;
  background-color: #fadcd9;
  padding: 15px 0;
  border-radius: 16px;
}

.socials a {
  text-decoration: none;
  color: #111;
  font-size: 0.9rem;
}

.theme-switcher {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: 1000;
}

.theme-switcher button {
  padding: 10px 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  background-color: #eee;
  transition: background-color 0.3s ease;
}

.theme-switcher button:hover {
  background-color: #ccc;
}

.project-image-wrapper {
  width: 100%;
  height: 300px; /* Hoặc bất kỳ chiều cao cố định nào bạn muốn */
  overflow: hidden;
  border-radius: 12px;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh luôn đầy khung mà không méo */
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

.project-image-wrapper img.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.project-image-wrapper img.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.intro:hover,
.bio:hover,
.contact-box:hover,
.project-panel:hover {
  background-color: #000;
  transition: background-color 0.3s ease;
  box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

section {
  transition: all 0.3s ease;
  will-change: transform, background-color;
}

::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

/* Thumb có hình ảnh nền */
::-webkit-scrollbar-thumb {
  background: url('/architect/resources/image/Noel.jpg'); /* ảnh nền */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

/* Hover: thay đổi filter ảnh nếu muốn */
::-webkit-scrollbar-thumb:hover {
  filter: brightness(0.9);
}
