/************ Custom Font ************/
/* @font-face {
	font-family: Centra;
	src: url('./assets/font/CentraNo2-Bold.ttf');
	font-weight: 700;
}
@font-face {
	font-family: Centra;
	src: url('./assets/font/CentraNo2-Medium.ttf');
	font-weight: 500;
}
@font-face {
	font-family: Centra;
	src: url('./assets/font/CentraNo2-Book.ttf');
	font-weight: 400;
} */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}
@font-face {
  font-family: PromptM ;
  src: url('./font/Prompt/Prompt-Medium.ttf');
}
@font-face {
  font-family: Prompt ;
  src: url('./font/Prompt/Prompt-Regular.ttf');
}
@font-face {
  font-family: Ramm ;
  src: url('./font/RammettoOne-Regular.ttf');
}

/************ Default Css ************/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  background-color: #c4ff6b !important;
  color: #fff !important;
  font-family: 'Prompt', sans-serif !important;
  margin: 0;
  padding: 0%;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  line-height: normal;
  font-family: 'Ramm', sans-serif !important;
}
h1{
  font-family: 'Ramm', sans-serif !important;
}

p, a, li, button, ul {
  margin: 0;
  padding: 0;
  line-height: normal;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  width: 100%;
  height: auto;
}

button {
  border: 0;
  background-color: transparent;
}

input:focus, textarea:focus, select:focus {
  outline: none;
}

@media (min-width:1700px) {
	main .container {
		max-width: 100%;
		padding: 0 150px;
	}
}

p.success {
	color: green;
}

p.danger {
	color: red;
}
/************ Navbar Css ************/

nav.navbar {
  padding: 18px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 9999;
  transition:  0.32s ease-in-out;
}

.name{
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
  padding: 0 25px;
  font-size: 18px;
  opacity: 0.75;
}

.spaceBetweenNav{
  display: flex;
  justify-content: space-between;
  width: 100%;
}
nav.BarContent {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav.navbar.scrolled {
  padding: 10px 0;
  background-color: #121212;
}

nav.navbar a.navbar-brand {
    width: 9%;
}
nav.navbar .navbar-nav .nav-link.navbar-link {
  font-weight: 400;
  color: #c4ff6b !important;
  letter-spacing: 0.8px;
  padding: 0 25px;
  font-size: 18px;
  opacity: 0.75;
}
nav.navbar .navbar-nav a.nav-link.navbar-link:hover,
nav.navbar .navbar-nav a.nav-link.navbar-link.active {
    opacity: 1;
}
span.navbar-text {
    display: flex;
    align-items: center;
}

.navbar-text button {
  font-weight: 700;
  color: #fff;
  border: 1px solid #fff;
  padding: 18px 34px;
  font-size: 18px;
  margin-left: 18px;
	position: relative;
	background-color: transparent;
	transition: 0.3s ease-in-out;
}
.navbar-text button span {
  z-index: 1;
}
.navbar-text button::before {
  content: "";
  width: 0%;
  height: 100%;
  position: absolute;
  background-color: #fff;
  left: 0;
  top: 0;
  z-index: -1;
  transition: 0.3s ease-in-out;
}
.navbar-text button:hover {
  color: #121212;
}
.navbar-text button:hover::before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
}
nav.navbar .navbar-toggler:active,
nav.navbar .navbar-toggler:focus {
	outline: none;
    box-shadow: none;
}
nav.navbar .navbar-toggler-icon {
  width: 24px;
  height: 17px;
  background-image: none;
  position: relative;
  border-bottom: 2px solid #c4ff6b;
  transition: all 300ms linear;
  top: -2px;
}
nav.navbar .navbar-toggler-icon:focus {
	border-bottom: 2px solid #c4ff6b;
}
nav.navbar .navbar-toggler-icon:after,
nav.navbar .navbar-toggler-icon:before {
	width: 24px;
	position: absolute;
	height: 2px;
	background-color: #c4ff6b;
	top: 0;
	left: 0;
	content: '';
	z-index: 2;
	transition: all 300ms linear;
}
nav.navbar .navbar-toggler-icon:after {
	top: 8px;
}
nav.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
	transform: rotate(45deg);
	background-color: #c4ff6b;
	height: 2px;
}
nav.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
	transform: translateY(8px) rotate(-45deg);
	background-color: #c4ff6b;
	height: 2px;
}
nav.navbar .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
	border-color: transparent;
}

.social-icon {
  display: inline-block;
  margin-left: 14px;
}
.social-icon a {
  width: 42px;
  height: 42px;
  background: rgba(217, 217, 217, 0.1);
  display: inline-flex;
  border-radius: 50%;
  margin-right: 6px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.social-icon a::before {
  content: "";
  width: 42px;
  height: 42px;
  position: absolute;
  background-color: #c4ff6bb6;
  border-radius: 50%;
  transform: scale(0);
transition: 0.3s ease-in-out;
}
.social-icon a:hover::before {
  transform: scale(1);
}
.social-icon a img {
width: 40%;
z-index: 1;
transition: 0.3s ease-in-out;
}

/************ Banner Css ************/
.banner {
  margin-top: 0;
  padding: 30vh 0 10vh 0;
  background-color: #000000;
  background-position: top center;
  background-size: cover;
  background-repeat: no-repeat;
}
.banner .tagline {
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 8px 10px;
  background: linear-gradient(90.21deg, rgba(170, 54, 124, 0.5) -5.91%, rgba(74, 47, 189, 0.5) 111.58%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 20px;
  margin-bottom: 16px;
  display: inline-block;
}
.banner h1 {
  font-size: 100px;
  font-weight: 100;
  letter-spacing: 0.8px;
  line-height: 1.4;
  margin-bottom: 20px;
  display: block;

}
.banner p {
  color: #B8B8B8;
  font-size: 14px;
  letter-spacing: 0.8px;
  line-height: 1.5em;
  width: 96%;
}
.banner-content {
  display: flex;
  justify-content: space-between;
  
}
.banner-self {
  width: 50%;
  position: relative;
  padding: 0 5vw 0 0;
}
@media (max-width:950px) {
  .banner h1 {
    font-size: 80px;
  }
  .banner p {
    font-size: 14px;
  }
}
@media (max-width:650px) {
  .banner-content {
    display: flex;
    flex-direction: column;
  }
  .banner-self {
    width: 100%;
    padding: 0;
  }
  .banner {
    padding: 20vh 0 10vh 0;
  }
  .banner h1 {
    font-size: 65px;
  }
}

/* .banner img {
  animation: updown 3s linear infinite;
}
@keyframes updown {
    0% {
        transform: translateY(-20px);
    }
    50% {
        transform: translateY(20px);
    }
    100% {
        transform: translateY(-20px);
    }
} */
.txt-rotate > .wrap {
  border-right: 0.08em solid #666;
}


/************ About Css ************/
.about {
  padding: 0 0 10px 0;
  position: relative;
  background-color: #000000;
  overflow: hidden;
}
.about .container {
  overflow: hidden;
}
.about-text-wrapper {
  overflow: hidden;
  position: relative;
  margin-top: 0;
  padding-top: 0;
}
.about-text{
  position: relative;
  margin-top: 0;
  padding-top: 0;
  transform-origin: center;
}
.about-text.animate__animated {
  overflow: hidden;
}
.about h2 {
	font-size: 50px;
	font-weight: 700;
}
.about p {
    color: #B8B8B8;
    font-size: 18px;
    letter-spacing: 0.8px;
    line-height: 1.5em;
    margin: 14px 0 14px 0;
    
}
.hline{
  height: 3px;
  background-color: #c4ff6b;
  opacity: 1;
  margin: 0 auto;
  margin-bottom: 50px;
}

/* 项目部分的 hline 默认隐藏，只在移动设备显示 */
.project .hline {
  display: none;
}
@media screen and (max-width: 950px) {
  .about h2 {
    font-size: 40px;
  }
  .about p {
    font-size: 16px;
  }
}

/************ Projects Css ************/


.project {
  padding:  0;
  position: relative;
  background-color: black;
  overflow: hidden;
}
.project h2 {
	font-size: 4vw;
	font-weight: 700;
  text-align: left;
  margin-top: 60px;
  line-height: 1.2;
}
.project p {
  color: #B8B8B8;
  font-size: 18px;
  letter-spacing: 0.8px;
  line-height: 1.5em;
  margin: 14px auto 30px auto;
  text-align: center;
  width: 56%;
}
.split {
  display: flex;
  flex-direction: row;
  padding: 5vw;
}
.ReProjectTitle{
  width: 30vw;
  padding-bottom: 20px;
  position: static;
}
.fixed {
  position: fixed;
  top: 8%;
  width: 40%;
  z-index: 10;
}
.bottom {
  position: absolute;
  bottom: 0;
  width: 40%;
  padding-bottom: 50px;
}

.Line{
  width: 3px;
  background-color: #c4ff6b;
  margin: 0 auto;
  opacity: 1;
  margin-right: 20px;
}

  @media screen and (max-width: 950px) {
    .fixed {
      position: relative;
    }
    .bottom {
      position: relative;
    }
  }
.ReProjectPreview{
  width: 60vw;
  padding-top: 50px;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-item {
  width: 100%;
}

.proj-txtx {
  text-align: left;
  opacity: 1;
  width: 100%;
  padding: 20px 0;
  padding-bottom: 60px;
}
.proj-txtx h4 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.1em;
}
.proj-txtx span {
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.8px;
}
@media (max-width:950px) {
	.split {
    display:  flex;
    flex-direction: column;
	}
  .project .hline {
    display: block; /* 在移动设备显示 */
  }
  .project h2 {
    font-size: 50px;
    margin-top: 0;
  }
  .ReProjectPreview{
    margin: 0 auto;
    width: 100%;
  }
  .project-list {
    gap: 60px;
  }
  .proj-img3 {
    height: 50vw;
    max-height: 500px;
  }
  .proj-txtx {
    padding-bottom: 40px;
  }
  .proj-txtx h4 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1.1em;
  }
  .proj-txtx span {
    font-style: italic;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.8px;
  }

}
@media (max-width:650px) {
	.split {
    display:  flex;
    flex-direction: column;
	}
  .project h2 {
    font-size: 40px;
  }
  .ReProjectPreview{
    margin: 0 auto;
    width: 100%;
  }
  .project-list {
    gap: 40px;
  }
  .proj-img3 {
    height: 50vw;
    max-height: 400px;
  }
  .proj-txtx h4 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.8px;
    line-height: 1em;
  }
}


.background-image-right {
  top: 20%;
  position: absolute;
  bottom: 0;
  width: 35%;
  right: 0;
  z-index: -4;
}
.proj-img3 {
  width: 100%;
  height: 50vw;
  max-height: 600px;
  margin: 0 auto;
  display: flex;
  overflow: hidden;
  border-radius: 2px;
  flex-wrap: wrap;
}

.proj-imgbx img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  transition: 0.3s ease-in-out;
  object-fit: cover;
}

.proj-imgbx img:hover {
  transform: scale(1.1);
}

/************ Projects Css ************/
.contact {
  position: relative;
  background: linear-gradient(90deg, #c4ff6b -20%, #000000 30%, #000000 85%, #c4ff6b 150%);
  padding: 60px 0 200px 0;
  z-index: 100;
}
.contact img {
  width: 92%;
}
.contact h2 {
	font-size: 45px;
	font-weight: 700;
  margin-bottom: 30px;
}
.contact form input, .contact form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  color: #fff;
  margin: 0 0 8px 0;
  padding: 18px 26px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.8px;
  transition: 0.3s ease-in-out;
}
.contact form input:focus, .contact form textarea:focus {
  background: rgba(255, 255, 255, 1);
  color: #121212;
}
.contact form input::placeholder, .contact form textarea::placeholder {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
}
.contact form input:focus::placeholder, .contact form textarea:focus::placeholder {
  color: #121212;
  opacity: 0.8;
}
.contact form button {
  font-weight: 700;
  color: #000;
  background-color: #fff;
  padding: 14px 48px;
  font-size: 18px;
  margin-top: 25px;
  border-radius: 0;
  position: relative;
  transition: 0.3s ease-in-out;
}
.contact form button span {
  z-index: 1;
  position: relative;
}
.contact form button:hover {
  color: #fff;
}
.contact form button::before {
  content: "";
  background: #121212;
  width: 0;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  transition: 0.3s ease-in-out;
}
.contact form button:hover::before {
  width: 100%;
}
@media (max-width:950px) {
  .contact{
    background: linear-gradient(90deg, #c4ff6b -50%, #000000 15%, #000000 85%, #c4ff6b 150%);
  }
  .contact h2 {
    font-size: 40px;
    margin-top: 30px;
  }
  .contact img {
    width: 100%;
  }

}


/************ Footer Css ************/
.footer {
  position: relative; /* 确保定位可以支持覆盖效果 */
  background-color: #000; /* 设置背景颜色，按需调整 */
  padding: 40px 20px; /* 内边距 */
  margin-top: -60px; /* 让 footer 向上覆盖页面内容 */
  border-radius: 40px 40px 0 0; /* 上方圆角 */
  z-index: 1000; /* 确保 footer 在内容之上 */
  box-shadow: 0 0 20px 5px #c4ff6b65;
}

.footer img {
  width: 26%;
}
.footer p {
  font-weight: 400;
  font-size: 16px;
  color: #B8B8B8;
  letter-spacing: 0.5px;
}
@media (max-width:950px) {
  .align-items-center{
    display: flex;
    flex-direction: column;
  }
  .namefoot{
    text-align: center;
  }
  .footer p{
    font-size: 14px;
  }
}

/************ Project Detail Page Css ************/
.project-detail {
  background-color: #000000;
  min-height: 100vh;
  padding-top: 100px;
}

.project-detail .container {
  padding-top: 20px;
}

.back-button {
  display: inline-block;
  margin-bottom: 30px;
  color: #c4ff6b;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.8px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.back-button:hover {
  opacity: 1;
  text-decoration: underline;
}

.project-header {
  padding: 40px 20px;
  margin-bottom: 40px;
}

.project-header h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.8px;
}

.project-description {
  color: #B8B8B8;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  letter-spacing: 0.8px;
}

.project-video {
  margin-bottom: 40px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.project-image-clickable {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

/* Image Modal Styles */
#imageModal .modal-dialog {
  margin: 0;
}

#imageModal .modal-content {
  background-color: rgba(0, 0, 0, 0.95);
  border: none;
  border-radius: 0;
}

#imageModal .modal-header {
  border: none;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1051;
  background: transparent;
  padding: 0;
}

#imageModal .btn-close {
  font-size: 2.5rem;
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
  width: 50px;
  height: 50px;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 0;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: none; /* 隐藏 Bootstrap 默认的 X 图标 */
}

/* 隐藏 Bootstrap 默认的 X 图标 */
#imageModal .btn-close::before {
  display: none;
}

/* 自定义的白色 X */
#imageModal .btn-close span {
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
  color: #fff;
}

#imageModal .modal-body {
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
}

#modalImage {
  height: 100vh;
  width: auto;
  object-fit: contain;
  cursor: grab;
  transition: transform 0.2s ease;
  user-select: none;
}

.zoom-controls {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 1051;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zoom-btn {
  width: 50px;
  height: 50px;
  background-color: rgba(0,0,0,0.7);
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.zoom-btn:hover {
  background-color: rgba(196, 255, 107, 0.8);
}

@media screen and (max-width: 950px) {
  .project-header h1 {
    font-size: 36px;
  }
  
  .project-description {
    font-size: 16px;
  }
}
