/* ella li */
html{
  scroll-behavior: smooth;
}
#section1,#about,#skills,#portfolio,#contact {
  position: relative;
  padding: 6rem 0;
}
#header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}

.hamburger {
  display: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger i {
  font-size: 24px; /* 调整图标大小 */
}
@media screen and (max-width: 768px) {
  .hamburger {
      display: block;
  }

  #navLinks {
      display: none;
      width: 100%;
  }

  #navLinks ul {
      list-style-type: none;
      margin: 0;
      padding: 0;
  }

  #navLinks ul li a {
      display: block;
      padding: 10px;
      text-decoration: none;
      color: black;
      border-bottom: 1px solid #ddd;
      font-size: 0.7rem;
  }
}
footer {
  text-align: center;
  background-color: #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  height: 4rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}
#resume {
  margin-left: 1rem;
  background-color: #80d2e7; /* 更正为蓝绿色背景 */
  color: white; /* 白色文本 */
  text-decoration: none; /* 移除下划线 */
  padding: 5px 10px; /* 内边距 */
  border-radius: 5px; /* 圆角边框 */
  text-align: center;
  width: 30%;
 
}

#resume:hover {
  background-color: #006d77; /* 悬停时更深的蓝绿色 */
}

@media (max-width: 768px) {
  #resume {
    
    font-size: 14px; /* 调整字体大小 */
    margin-bottom: 3rem;
    width: 30%; /* 在小屏幕上增加宽度比例 */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #resume {
   
    width: 20%; /* 中等屏幕的宽度调整 */
  }
}

@media (min-width: 1025px) {
  #resume {
    width: 90%; /* 大屏幕的宽度调整 */
  }
}

nav ul {
  list-style-type: none; /* 移除列表项目的标记 */
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex; /* 使用Flex布局 */
  justify-content: center; /* 水平居中 */
}

nav ul li {
  float: left;
}

nav ul li a {
  display: block;
  color: black; /* 设置链接文字颜色 */
  text-align: center;
  padding: 14px 16px;
  text-decoration: none; /* 移除下划线 */
}

nav ul li a:hover {
  background-color: #ddd; /* 鼠标悬停时的背景颜色 */
}
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: -1;
}


.position-relative {
  position: relative;
  z-index: 1; /* 确保内容在视频上方显示 */
}
@media (max-width: 768px) {
  .hero {
    min-height: 50vh; /* 在较小设备上减少高度 */
  }

  #bg-video {
    min-height: 50vh;
  }

  .container {
    padding: 20px; /* 增加内边距 */
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 30vh; /* 在更小设备上进一步减少高度 */
  }

  #bg-video {
    min-height: 30vh;
  }

  .container {
    padding: 10px; /* 在更小屏幕上进一步增加内边距 */
  }

  .font-italic.lead {
    font-size: smaller; /* 减小文本大小 */
  }
}
.scroll-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid #fff;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  position: absolute;
  bottom: 3rem;
  left: calc(50% - 1.25rem);
  -webkit-animation: float 2s linear infinite;
  animation: float 2s linear infinite;
  -webkit-animation-direction: alternate;
  animation-direction: alternate;
  z-index: 2;
}

.scroll-btn:hover, .scroll-btn:focus {
  color: #fff;
  text-decoration: none;
}

@-webkit-keyframes float {
  0% {
    -webkit-transform: translateY(0.5rem);
    transform: translateY(0.5rem);
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}

@keyframes float {
  0% {
    -webkit-transform: translateY(0.5rem);
    transform: translateY(0.5rem);
  }
  100% {
    -webkit-transform: none;
    transform: none;
  }
}

.text-small {
  font-size: 1rem !important;
}

.bg-cover {
  background-size: cover !important;
}

.bg-center {
  background-position: center center !important;
}

.dark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.text-uppercase {
  letter-spacing: 0.08em;
}

.bg-gray {
  background: #eee !important;
}

.text-gray {
  color: #999 !important;
}

.social-link {
  width: 26px;
  height: 26px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: #4fbfa8;
  font-size: 0.8rem;
}

.social-link:hover, .social-link:focus {
  color: #fff;
  text-decoration: none;
}

.social-link-facebook {
  background: #4460ae;
}



.social-link-instagram {
  background: #cd4378;
}

.social-link-linkedin {
  background: #0077B5;
}

.lined::after {
  content: '';
  display: block;
  width: 6.25rem;
  height: 1px;
  margin: 1.25rem auto;
  background: #4fbfa8;
}

.lined-compact::after {
  margin-top: 0.5rem;
}

.icon {
  width: 2.5rem;
  height: 2.5rem;
  border: solid 1px #6c757d;
  margin: 0 auto;
  border-radius: 50%;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.z-index-1 {
  z-index: 10;
  color: #ffffff;
  text-align: center;
}
/* 为整个行设置Flexbox布局，确保内容水平对齐且有间距 */
.row {
  display: flex;
  align-items: center; /* 垂直居中 */
  justify-content: center; /* 水平居中 */
  flex-wrap: wrap; /* 允许内容换行 */
  padding: 8rem;
  
}

/* 为文本和图片设置弹性，使它们占据相同的空间 */
.col-lg-6 {
  flex-basis: 50%; /* 每列占据一半宽度 */
  display: flex;
  
  flex-direction: column;
  justify-content: center;
  
}

/* 确保图片在其容器内居中显示 */
.col-lg-6 img {
  max-width: 90%;
  height: auto;
  padding: 5rem;
  border-radius: 50%;
}

.text-center {
  width: 100%;
  text-align: center;
  margin-bottom: 0.5em;
}

.lined {
  position: relative;
}

.lined::after {
  content: '';
  display: block;
  width: 5rem;
  height: 0.1rem;
  background-color: #008000;
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}

p {
  color: #333;
  line-height: 1.6;
  padding: 1rem;
}



/* 中等屏幕设备（如平板）响应式调整 */
@media (max-width: 991px) {
  .col-lg-6 {
    flex-basis: 100%;
  }
  
  .col-lg-6 img {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem; /* 减少图片周围的间距 */
  }
  .row {
   padding: 1rem;
    
  }
  .col-lg-6 img {
   padding: 0.1rem;
  }
  
}

/* 小屏幕设备（如手机）的响应式调整 */
@media (max-width: 768px) {
  .col-lg-6 img {
    max-width: 70%; /* 在小屏幕上进一步减小图片宽度 */
    padding: 1rem; /* 在小屏幕上进一步减少间距 */
  }

  .lined::after {
    width: 3rem; /* 在小屏幕上减小线条宽度 */
  }

  p {
    font-size: 0.9rem; /* 在小屏幕上减小字体大小 */
  }
  .row {
    padding: 1rem;
     
   }
   .col-lg-6 img {
    padding: 0.1rem;
   }
   
}

/* 联系部分样式 */
#contact{
  background-color: #eee;
}
.contact-section {
  display: flex;
  align-items: center; /* 使弹性项目垂直居中 */
  justify-content: center; /* 水平居中 */
  min-height: 100vh; /* 视口的最小高度为100% */
  padding: 2rem; /* 内容周围的间距 */
}

.contact-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-header h2 {
  text-transform: uppercase;
}

/* 表单和段落容器 */
.form-and-text-container {
  display: flex;
  justify-content: space-between; /* 在表单和文本之间分配空间 */
  width: 100%; /* 表单和文本容器占满全宽 */
}

/* 表单样式 */
.contact-form {
  width: 100%; /* 表单占容器的50%宽度 */
}

/* 调整输入框和按钮的宽度 */
.contact-form .form-group,
.contact-form .form-group input,
.contact-form .form-group textarea,
.contact-form .form-group button {
  width: 100%; /* 所有表单元素占满全宽 */
}

/* 标签和输入框对齐 */
.contact-form label {
  display: block; /* 标签占满全宽 */
  margin-bottom: .5rem;
}

.contact-form input,
.contact-form textarea {
  padding: .75rem; /* 输入框和文本区内部的填充 */
  margin-bottom: 1rem; /* 间距底部用于间隔 */
  border: 1px solid #ced4da;
  border-radius: .25rem;
}

/* 按钮样式 */
.contact-form button {
 
  border: 1px solid #4fbfa8;
  background-color: #fff;
  color: #4fbfa8;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}

.contact-form button:hover {
  background-color: #4fbfa8;
  color: #fff;
}

/* 名和姓在同一行 */
.form-names {
  display: flex;
 
}

.form-names .form-group {
  flex: 1; 


}



/* 使表单响应式 */
@media (max-width: 768px) {
  .form-and-text-container {
    flex-direction: column;
  }

  .contact-form,
  .text-and-socials-container {
    width: 100%; /* 在小屏幕上占满全宽 */
  }

  .form-names .form-group {
    flex: 1 1 100%; /* 在小屏幕上占满全宽 */
  }

  .text-and-socials-container {
    padding-left: 0; /* 在小屏幕上移除左边的填充 */
  }
}
/* 移除前面的点并设置列表为水平显示 */
.mb-0.list-inline {
  list-style-type: none; /* 取消前面的点 */
  padding-left: 0; /* 移除默认的内边距 */
  text-align: center; /* 使列表居中显示 */
}

/* 设置列表项为内联块，以使其水平排列 */
.list-inline-item {
  display: inline-block; /* 设置为内联块元素 */
  margin-right: 10px; /* 在列表项之间添加一些右边距 */
}

/* 链接和图标样式可以根据需要调整 */
.social-link {
  text-decoration: none; /* 取消链接下划线 */
  
}

/* 可以添加额外的样式来调整图标大小、颜色等 */
.fab {
  font-size: 20px; /* 设置图标大小 */
}



@media (min-width: 1000px) {
  body,
  html {
    width: 100%;
    height: 100%;
  }
  html,
  body,
  .onepage-wrapper {
    width: 100%;
    height: 100%;
  }
  .onepage-wrapper .section {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
  }
}

@media (max-width: 999px) {
  body,
  html {
    overflow: auto;
  }
  body,
  .onepage-wrapper,
  .onepage-wrapper .section,
  html {
    width: 100%;
    height: auto !important;
  }
}




/*
 * 3. TYPE
 */
body {
  font-family: "cardo", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
}

a {
  color: #4fbfa8;
  text-decoration: none;
}

a:hover, a:focus {
  color: #348e7b;
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  margin-bottom: 0.5rem;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: inherit;
}

h1,
.h1 {
  font-size: 3rem;
}

h2,
.h2 {
  font-size: 2.3rem;
}

h3,
.h3 {
  font-size: 1.9rem;
}

h4,
.h4 {
  font-size: 1.5rem;
}

h5,
.h5 {
  font-size: 1.1rem;
}

h6,
.h6 {
  font-size: 1rem;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  color: #ffffff;
}
/* 技能区域的容器，使用flex包装来允许换行 */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around; /* 确保元素在容器中均匀分布 */
  max-width: 1200px; /* 可根据实际内容调整 */
  margin: auto; /* 水平居中 */
  padding: 1rem;
}

/* 技能卡片样式 */
.skill-card {
  flex: 0 0 calc(33.333% - 1rem); /* 每个卡片占据三分之一的空间，减去间隔 */
  margin-bottom: 1rem; /* 下边距 */
  text-align: center; /* 文本居中 */
  box-sizing: border-box; /* 边距和填充包含在宽度内 */
}
/* 标题样式 */
.skill-title {
  margin-bottom: 0.5rem; /* 标题下方的空间 */
}

/* 描述文本样式 */
.skill-description {
  font-size: 1rem;
}
@media (max-width: 900px) {
  .skill-card {
    flex: 0 0 100%; 
  }
  .skills-container{
    padding: 3rem;
  }
}
.portfolioimg {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

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

.portfolioimg img {
  width: 100%;
  height: auto;
  transition: opacity 0.5s ease;
}

.portfolioimg .view-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  padding: 10px;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.5s ease;
}

/* 在较大屏幕上，悬停时显示按钮和半透明背景 */
.portfolioimg:hover img {
  opacity: 0.7;
}

.portfolioimg:hover .view-btn {
  display: block;
  opacity: 1;
}

/* 响应式设计：在小屏幕上始终显示查看按钮和半透明背景 */
@media (max-width: 768px) {
  .portfolioimg img {
    opacity: 0.7; /* 图片始终半透明 */
    background-color: rgba(255, 255, 255, 0.5); /* 半透明白色背景 */
  }

  .portfolioimg .view-btn {
    display: block; /* 始终显示查看按钮 */
   
    opacity: 1;
  }
}
