* {
  font-family: Georgia, 'Times New Roman', Times, serif;
}

body {
  background-color: #ffffff;
}

.full-page-image {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.overlay {
  position: absolute;
  left: 15%;
  top: 53%;
  transform: translateY(-50%);
  color: white;
  z-index: 1;
  max-width: 80%; 
  padding: 0 15px;
}
  
.overlay h1 {
  color: white;
  font-size: calc(2.3rem + 1vw);
  margin: 0;
  padding: 0;
  text-align: left;
  margin-bottom: 15px;
  width: 100%;
}
  
.overlay p {
  font-size: calc(1.2rem + 0.5vw);
  text-align: left !important;
  text-indent: 0 !important;
}

.word-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  object-fit: cover;
  background-image: url('images/life_bg.jpg'); 
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}
.word {
  color: rgb(255, 255, 255);
  opacity: 0.7;
  font-size: 45px;
  margin: 0 20px;
  cursor: pointer;
}
.word:hover {
  color: rgb(255, 255, 255);
  opacity: 1;
  text-decoration: none;
}


.typed-text {
  font-weight: normal;
  color: white;
}
.cursor {
  display: inline-block;
  width: 3px;
  background-color: #ccc;
  margin-left: 0.1rem;
  animation: blink 1s infinite;
}
.cursor.typing {
  animation: none;
}
@keyframes blink {
  0% {background-color: #ccc;}
  49% {background-color: #ccc;}
  50% {background-color: transparent;}
  99% {background-color: transparent;}
  100% {background-color: #ccc;}
}

h1 {
  text-align: left;
  color: rgb(30, 30, 130);
  margin-right: 30px;
  margin-left: 30px;
}

h2 {
  text-align: left;
  color: rgb(30, 30, 130);
  margin-right: 30px;
  margin-left: 30px;
}

h3 {
  text-align: center;
}

li {
  margin-left: 30px;
}

.italic-time {
  font-style: italic;
  color: #828282;
}

.intro-effect {
  color: #0056b3;
  text-emphasis: open rgba(90, 200, 160, 0.8);
  text-emphasis-position: under;
}
.intro-effect:hover {
  color: #0056b3;
  text-emphasis: filled white;
  text-decoration: none;
}

.container {
  width: 100%;
  display:contents;
}
.container p {
  font-size: 19px;
  text-align: left;
  text-indent: 0px;
  margin-right: 30px;
  margin-left: 30px;
}
#row-exp {
  padding-bottom: 10%;
}
#row-project {
  padding-bottom: 55%;
}

.row {
  padding-left: 100px;
  padding-right: 100px;
  padding-top: 50px;
  padding-bottom: 70px;
}
.row.bg-white {
  background-color: white;
}
.row.bg-grey {
  background-color: #f8f9fa;
}


.img-responsive{
  width:100%;
  height:auto;
  margin-top: -20px;
  border-radius:2%;
}
.featured-image {
  display: block; 
  margin-left: auto; 
  margin-right: auto; 
  width: 85%; 
  border-radius:2%;
}


.photo-container {
  display: flex;
  justify-content: space-between;
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-top: -30px;
  border-radius: 3%;
}
.photo-item {
  width: 32%;
  text-align: center;
}
.photo-container img {
  width: 100%;
  border-radius: 3%;
}
.photo-container h5 {
  text-align: left;
  padding-left: 7px;
}
@media screen and (max-width: 768px) {
  .photo-container {
    flex-direction: column;
    align-items: center;
  }
  .photo-item {
    width: 85%;
    margin-bottom: 20px;
  }
}
.bottom-left {
  position: relative;
  left: 47%;
  transform: translate(-110%, -300%); 
  text-align: left;
  z-index: 1;
  max-width: 460px;
}
.bottom-left h1 {
  color: white;
  background-color: transparent;
}


.with-box-shadow {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}
.icon-container {
  display: flex;
  justify-content: flex-end;
  max-width: 300px;
  margin: 0 auto;
}
.icon-container span {
  margin-left: 20px;
}
.icon-container span:first-child {
  margin-left: 0;
}
.icon-container a {
  color: rgba(122, 120, 120, 0.879);
}
.icon-container a:hover {
  color: #343a40;
}

.form-container {
  padding: 40px;
  border: 1px solid #cfcfcf;
  border-radius: 5px;
  margin-left: 30px;
}
.fields {
  margin-bottom: 20px;
}
.field {
  margin-bottom: 10px;
}
label {
  display: block;
  margin-bottom: 5px;
}
input[type="text"],
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-sizing: border-box;
}
.actions {
  text-align: center;
}
input[type="submit"] {
  padding: 10px 20px;
  background-color: #2e6cc9;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}
input[type="submit"]:hover {
  background-color: #0056b3;
}


.copyright {
  position: relative;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #f8f9fa;
  color: #343a40;
}
.copyright p {
  text-align: center;
}


.wall-container {
  width: 100%;
  height: calc(100vh - 56px);
  overflow: hidden;
  background-color: #f8f9fa;
  position: relative;
  margin-top: 56px;
  display: flex;
  align-items: center; /* 垂直居中整个墙 */
}

.wall-scroll {
  position: relative;
  width: 150%;
  display: flex;
  flex-direction: column;
  animation: scroll 20s linear infinite;
  padding: 30px 0; /* 只保留上下内边距 */
}

.wall-scroll:has(.project:hover) {
  animation-play-state: paused;
}

.brick-row {
  display: flex;
  gap: 10px;
  padding: 0 10px; /* 移除上下内边距，只保留左右内边距 */
  width: 100%;
  flex-shrink: 0;
  margin: 0; /* 移除行间距 */
}

.brick {
  width: 200px;
  height: 150px;
  border-radius: 8px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.brick.empty {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.brick.project {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brick.project:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  z-index: 1;
}

.project-date {
  font-size: 0.9em;
  color: #666;
  font-style: italic;
}

.project-title {
  color: #0056b3;
  text-decoration: none;
  font-size: 1.1em;
  line-height: 1.4;
}

.project-title:hover {
  color: #003d82;
  text-decoration: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.33%);
  }
}


.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
}

.gallery .item {
  flex: 1 1 calc(33.333% - 20px);
  box-sizing: border-box;
  margin-bottom: 10px;
}

.gallery img,
.gallery video,
.gallery iframe {
  width: 100%;
  height: auto;
  display: block;
}

.gallery iframe {
  height: 100%;
}

.item video,
.item iframe {
  aspect-ratio: 16 / 9;
}

@media (max-width: 768px) {
  .gallery .item {
      flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .gallery .item {
      flex: 1 1 100%;
  }
}



.photo-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}

.photo-link {
  position: relative;
  flex: 1 1 calc(50% - 20px);
  text-decoration: none;
  color: white;
}

.photo {
  width: 100%;
  height: auto;
  display: block;
}

.photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-link:hover .photo-overlay {
  opacity: 1;
}

.photo-title {
  font-size: 1.5em;
  text-align: center;
  color: white;
}




.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.photo-grid a {
  flex: 1 1 calc(25% - 20px); /* Adjust percentage to fit 3-4 photos per row */
  box-sizing: border-box;
}

.photo-thumb {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}