* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif !important;
}

body{
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* ------------------------------------------------------------------------- */
/* Navbar css starts here */
/* Existing CSS */
header {
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: transparent;
  padding: 10px 0;
  transition: background-color 0.3s;
}

.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  color: white;
  padding: 0 20px;
}

.name {
  font-family: 'Leckerli One', sans-serif;
  font-size: 1.5rem;
  color: #695aa6;
  cursor: pointer;
  transition: all 0.3s ease;
}

.name:hover {
  transform: scale(1.05);
  color: #543d8d;
}

.menu ul {
  display: flex;
  font-size: 15px;
}

.menu ul li {
  list-style: none;
  margin: 20px;
  font-family: 'Patrick Hand', cursive;
  color: white;
}

.menu ul li a {
  text-decoration: none;
  color: white;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: 0.4s;
}

/* Media Queries */
@media (max-width: 768px) {
  .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 70px;
      right: 20px;
      background-color: white;
      border: 1px solid #695aa6;
      border-radius: 8px;
      padding: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .menu ul {
      flex-direction: column;
      padding: 0;
      margin: 0;
  }

  .menu ul li {
      margin: 10px 0;
  }

  .menu ul li a {
      color: #695aa6;
  }

  .menu-toggle {
      display: flex;
  }

  .navBar.bgColor .menu {
      background-color: white;
  }

  .navBar.bgColor .menu-toggle .bar {
      background-color: #695aa6;
  }
}

.menu.active {
  display: flex;
}

/* New CSS */
.header-scrolled {
  background-color: #fff;
}

.header-scrolled .name,
.header-scrolled #menu li a {
  color: #695aa6;
}

.header-scrolled .name:hover,
.header-scrolled #menu li a:hover {
  color: #543d8d;
}

/* Navbar CSS ends here  */
/* ------------------------------------------------------------------------------------- */
/* Hero section CSS starts here */
.hero {
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/pic1.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero .container .text {
  flex: 1;
  padding-right: 50px;
}

.hero .container .text h1 {
  font-family: 'Permanent Marker', cursive !important;
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: normal;
  margin-bottom: 20px;
}

.hero .container .text h2 {
  font-family: 'Caveat', cursive;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
}

.hero .container .text p {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 30px;
}

.hero-container{
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
}

.hero-container h1 {
  font-size: 50px;
  color: #212529;
  font-family: 'Permanent Marker', cursive;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-container h1 .auto-type {
  color: #695aa6;
}

.hero-container .up {
  font-size: 50px;
  color: #212529;
  font-family: Leckerli One, sans-serif;
  margin-bottom: 5px;
}

.hero-container .down {
  font-size: 50px;
  color: #212529;
  font-family: Leckerli One, sans-serif;
  margin-bottom: 5px;
}

.hero-container p{
  margin: 0;
  padding: 0;
  float: left;
}

.over{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, #fff 0%, rgba(105, 90, 166, 0.35) 99%, rgba(105, 90, 166, 0.5) 100%);
}

.hero-container .botton {
  margin-top: 24px;
}

.hero-container .botton a{
  text-decoration: none;
  color:#695aa6;
}

.hero-container .botton img{
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .hero{
    height: 80vh;
  }

  .hero-container h1 {
    font-size: 40px;
  }
  
  .hero-container .up,
  .hero-container .down {
    font-size: 40px;
  }

  .hero-container .botton img {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }
}

@media (max-width: 480px) {
  .hero{
    height: 80vh;
  }

  .hero-container h1 {
    font-size: 30px;
  }
  
  .hero-container .up,
  .hero-container .down {
    font-size: 30px;
  }

  .hero-container .botton img {
    width: 20px;
    height: 20px;
    margin-right: 5px;
  }
}
/* hero section CSS end here  */
/* -------------------------------------------------------------------------- */
/* about section CSS starts here  */
.about{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  padding: 40px;
}

.about-container{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.imgeffect, .text{
  height: 400px;
}

.text{
  width: 650px;
  margin-left: 100px;
  margin-top: 120px;
}

.text h2, .text p{
  margin: 0;
  padding: 0;
}

.text .p1{
  font-size: 1.2rem;
  color: #695aa6;
  margin-bottom: 10px;
}

.text .p2{
  font-family: Patrick Hand, cursive;
  margin-bottom: 16px;
}

.text h2 {
  font-family: Leckerli One, sans-serif;
  margin-bottom: 16px;
  text-align: left !important;
  font-size: 20px;
  color: black;
  position: static;
}

.text h2::after {
  display: none;
}

.text button {
  background: #695aa6;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Patrick Hand', cursive;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.text button:hover {
  background: #564a8a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(105, 90, 166, 0.3);
}

.imgeffect img{
  width: 300px;
  height: 400px;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .about{
    height: 80vh;
    padding: 20px;
  }
  .about-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .text {
    width: 100%;
    margin-left: 0;
  }

  .text button {
    width: 100%;
    max-width: 150px;
  }
}


@media (max-width: 480px) {
  .about {
    height: 100vh;
    padding: 20px;
  }

  .text .p1, .text .p2 {
    font-size: 14px;
  }

  .text h2 {
    font-size: 24px;
  }

  .text button {
    width: 100%;
    max-width: 125px;
    font-size: 15px;
  }
}

/* about section CSS ends here */
/* -------------------------------------------------------------- */
/* skills section CSS starts here  */
.Skills{
  display: block;
  width: 100%;
  background-color: #f9f9f9;
  padding: 30px 0;
}

.Skills .container {
  width: 70%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0 auto;
  padding: 50px 0;
}

.Skills .container .heading{
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.Skills .container .heading h1{
  padding: 0%;
  margin: 0%;
  font-size: 24px;
}

.Skills .container .heading h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

.skillh1{
  color: black;
}

.Skills .container .mainSkill {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 0;
}

.Skills .container .mainSkill .front,
.Skills .container .mainSkill .back,
.Skills .container .mainSkill .datasci,
.Skills .container .mainSkill .tools {
  flex: 0 0 calc(50% - 20px);
  min-width: calc(50% - 20px);
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 300px;
  display: flex;
  flex-direction: column;
}

.Skills .container .mainSkill .front h2, .back h2, .datasci h2, .tools h2{
  margin: 0%;
  padding: 0%;
  font-size: 20px;
  font-family: Patrick Hand, cursive;
  font-weight: 600;
  color: black;
  margin-bottom: 20px;
  text-align: center;
}

.Skills .container .mainSkill .box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: auto;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-content: center;
  padding: 10px;
}

.Skills .container .mainSkill .front .frontSkill, 
.Skills .container .mainSkill .back .backSkill, 
.Skills .container .mainSkill .datasci .datasciSkill, 
.Skills .container .mainSkill .tools .toolsSkill {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.Skills .container .mainSkill .front .frontSkill:hover, 
.Skills .container .mainSkill .back .backSkill:hover,
.Skills .container .mainSkill .datasci .datasciSkill:hover,
.Skills .container .mainSkill .tools .toolsSkill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.Skills .container .mainSkill .front .box img,
.Skills .container .mainSkill .back .box img,
.Skills .container .mainSkill .datasci .box img,
.Skills .container .mainSkill .tools .box img {
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .back .box img{
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .datasci .box img{
  width: 30px;
  height: 30px;
}

.Skills .container .mainSkill .tools .box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-items: center;
  justify-content: center;
  width: 100%;
}

.Skills .container .mainSkill .tools .toolsSkill {
  width: 100%;
  max-width: 200px; /* 限制最大宽度，确保卡片大小一致 */
}

@media (max-width: 768px) {
  .Skills .container {
    width: 85%;
  }
  
  .Skills .container .mainSkill {
    grid-template-columns: 1fr;
  }
  
  .Skills .container .mainSkill .front h2,
  .Skills .container .mainSkill .back h2,
  .Skills .container .mainSkill .datasci h2,
  .Skills .container .mainSkill .tools h2 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .Skills .container .mainSkill .front .frontSkill,
  .Skills .container .mainSkill .back .backSkill,
  .Skills .container .mainSkill .datasci .datasciSkill,
  .Skills .container .mainSkill .tools .toolsSkill {
    font-size: 12px;
    padding: 10px 14px;
  }

  .Skills .container .mainSkill .box {
    gap: 10px;
  }

  .Skills .container .mainSkill .front .box img,
  .Skills .container .mainSkill .back .box img,
  .Skills .container .mainSkill .datasci .box img,
  .Skills .container .mainSkill .tools .box img {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  .Skills .container .heading {
    font-size: 16px;
    margin-top: 80px;
    margin-bottom: 15px;
  }

  .Skills .container .mainSkill .front,
  .Skills .container .mainSkill .back,
  .Skills .container .mainSkill .datasci,
  .Skills .container .mainSkill .tools {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .Skills .container .mainSkill .front h2,
  .Skills .container .mainSkill .back h2,
  .Skills .container .mainSkill .datasci h2,
  .Skills .container .mainSkill .tools h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .Skills .container .mainSkill .front .frontSkill,
  .Skills .container .mainSkill .back .backSkill,
  .Skills .container .mainSkill .datasci .datasciSkill,
  .Skills .container .mainSkill .tools .toolsSkill {
    font-size: 10px;
    padding: 8px 12px;
  }

  .Skills .container .mainSkill .box {
    gap: 8px;
  }

  .Skills .container .mainSkill .front .box img,
  .Skills .container .mainSkill .back .box img,
  .Skills .container .mainSkill .datasci .box img,
  .Skills .container .mainSkill .tools .box img {
    width: 20px;
    height: 20px;
  }
}

/* skills section CSS ends here  */
/* ------------------------------------------------------------------------------- */
/* experience section CSS starts here  */
.expirience {
  margin: 0;
  padding: 30px 0;
  font-family: 'Roboto', sans-serif;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
}

.expirience h1 {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.expirience h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

h1 span {
  font-weight: 600;
}

.container-ex {
  width: 80%;
  padding: 50px 0;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}

.container-ex:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -1px;
  width: 2px;
  height: 100%;
  background: #CCD1D9;
  z-index: 1
}

.timeline-block {
  width: -webkit-calc(50% + 8px);
  width: -moz-calc(50% + 8px);
  width: calc(50% + 8px);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  justify-content: space-between;
  clear: both;
}

.timeline-block-right {
  float: right;
}

.timeline-block-left {
  float: left;
  direction: rtl
}

.marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #F5F7FA;
  background: #695aa6;
  margin-top: 10px;
  z-index: 9999
}

.timeline-content {
  width: 95%;
  padding: 0 15px;
  color: #666;
  margin-bottom:25px ;
}

.timeline-content h3 {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 25px;
  font-weight: 500;
  color: #695aa6;
}

.timeline-content span {
  font-size: 15px;
  color: #a4a4a4;
}

.timeline-content p {
  font-size: 14px;
  line-height: 1.5em;
  word-spacing: 1px;
  color: #888;
}


@media screen and (max-width: 768px) {
  .container-ex:before {
     left: 8px;
     width: 2px;
  }
  .timeline-block {
     width: 100%;
     margin-bottom: 30px;
  }
  .timeline-block-right {
     float: none;
  }

  .timeline-block-left {
     float: none;
     direction: ltr;
  }
}
 /* experience section CSS ends hhere */
/* ---------------------------------------------------------------------- */
/* project section CSS starts here  */

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 30px 0;
  background-color: #f9f9f9;
  font-weight: 400;
}

.project .main {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
}

.project .main h1 {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: 'Leckerli One', sans-serif;
  font-size: 24px;
  position: relative;
  margin-bottom: 20px;
  display: inline-block;
}

.project .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

.project .container {
  width: calc(min(76.5rem, 90%));
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.project .container .project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.project .container .project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #f8f9fa;
}

.project .container .project-card .project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.project .container .project-card:hover .project-img {
  transform: scale(1.02);
}

.project .container .project-card .project-info {
  padding: 20px;
}

.project .container .project-card .project-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.project .container .project-card .project-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.project .container .project-card .project-info .project-links {
  display: flex;
  gap: 15px;
}

.project .container .project-card .project-info .project-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #695aa6;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project .container .project-card .project-info .project-links a:hover {
  color: #564a8a;
}

.project .container .project-card .project-info .project-links a img {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project .container .project-card .project-info .project-links a:hover img {
  transform: translateX(3px);
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
    gap: 1.5rem;
  }
  
  .card-inner {
    height: 15rem;
  }
  
  .card .content h3 {
    font-size: 1.5rem;
  }
  
  .card .content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .main h2 {
    font-size: 20px;
  }

  .container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card-inner {
    height: 12rem;
  }
  
  .card .content h3 {
    font-size: 1.2rem;
  }
  
  .card .content p {
    font-size: 0.8rem;
  }
  
  .card ul li {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}

/* project section CSS ends here  */
/* --------------------------------------------------------------------- */
/* Blogs section CSS starts here  */

.blogs {
  display: flex;
  flex-direction: column;
  height: 50vh;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}
  
.blogs .tit{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.blogs .tit h1{
  font-size: 30px;
  font-family: Leckerli One, sans-serif;
}

.blogs .con{
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.article-card {
  width: 350px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 300ms;
}
  
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
  
.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
  
.article-card .content {
  box-sizing: border-box;
  width: 100%;
  position: absolute;
  padding: 30px 20px 20px 20px;
  height: auto;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.article-card .title {
  margin: 0;
}

.article-card .title {
  font-size: 17px;
  color: #212529;
}
  
.article-card .btn {
    padding: 3px;
    margin: 5px;
    margin-right: 0;
    margin-bottom: 0;
    border: 1px solid black;
    border-radius: 5px;
    background: transparent;
    color: #212529;
    font-size: 14px;
    cursor: pointer;
    transition: all 300ms;
}
/* blogs section CSS ends here */
/* ---------------------------------------------------------------------------- */
/* contact section CSS starts here  */
body {
  font-family: 'Patrick Hand', cursive;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.contact {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.contact-container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  padding: 40px;
  background-color: #695aa6;
  color: white;
}

.contact-info h2 {
  font-family: 'Leckerli One', sans-serif;
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-links a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
}

.contact-form {
  flex: 2;
  padding: 40px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  padding: 12px 24px;
  background-color: #695aa6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: #543d8d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    width: 90%;
  }

  .contact-info,
  .contact-form {
    padding: 30px;
  }
}

.navBar .logo h1 {
  font-family: 'Caveat', cursive;
  font-size: 2.5rem;
  color: #fff;
}

.Skills .container .heading h1,
.expirience h1,
.project .main h1,
.contact .main h1 {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.Skills .container .heading h1::after,
.expirience h1::after,
.project .main h1::after,
.contact .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

/* 全局字体设置 */
* {
  font-family: 'Quicksand', sans-serif !important;
}

/* Hero 区域字体 */
.hero-container .down {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 3.5rem;
  color: #fff;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  margin-bottom: 5px;
}

.hero-container .up {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 500;
}

.hero-container .text h2 {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 500;
}

/* 导航栏字体 */
.navBar .name h1 {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 2.5rem;
  color: #fff;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* 标题字体 */
.Skills .container .heading h1,
.expirience h1,
.project .main h1,
.contact .main h1 {
  font-family: 'Quicksand', sans-serif !important;
  font-size: 2.5rem;
  color: #000;
  font-weight: 600;
}

.Skills .container .heading h1::after,
.expirience h1::after,
.project .main h1::after,
.contact .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

/* 按钮和链接字体 */
button, a {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 500;
}

/* 输入框字体 */
input, textarea {
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 400;
}

/* 其他文本元素 */
p, span, div, h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif !important;
}

.project-card .icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px !important;
  height: 20px !important;
  background: #282828;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1;
}

.project-card .icon .arrow-icon {
  width: 16px;
  height: 16px;
  transition: all 0.3s ease;
}

.project-card:hover .icon {
  background: #695aa6;
}

.project-card:hover .icon .arrow-icon {
  transform: translate(2px, -2px);
}

.Projects {
  padding: 30px 0;
  background-color: #f9f9f9;
}

.about .text h2,
.Skills .container .heading h1,
.expirience h1,
.project .main h1,
.contact .main h1 {
  font-size: 20px;
  text-align: center;
  font-family: Leckerli One, sans-serif;
  font-weight: 600;
  margin-top: 0;
  color: black;
  margin-bottom: 30px;
  position: relative;
}

.about .text h2::after,
.Skills .container .heading h1::after,
.expirience h1::after,
.project .main h1::after,
.contact .main h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #695aa6;
  border-radius: 2px;
}

.header-scrolled .navBar .name h1 {
  color: #695aa6 !important;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.card:nth-child(1) .box .icon .iconBox,
.card:nth-child(2) .box .icon .iconBox,
.card:nth-child(3) .box .icon .iconBox {
  background: #695aa6;
}

.card .content {
  padding: 0.938rem 0.625rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card .content h3 {
  text-transform: capitalize;
  font-family: 'Patrick Hand', cursive;
  font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
  margin-bottom: 0.625rem;
}

.card .content p {
  margin: 0.625rem 0 1.25rem;
  font-family: 'Patrick Hand', cursive;
  color: #565656;
  flex: 1;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.card ul li {
  text-transform: uppercase;
  background: #695aa6;
  color: #282828;
  font-weight: 700;
  font-family: 'Patrick Hand', cursive;
  font-size: 0.8rem;
  padding: 0.375rem 0.625rem;
  border-radius: 0.188rem;
}

.card ul li.github,
.card ul li.site {
  color: white;
}

.card ul a {
  text-decoration: none;
  color: inherit;
}

.card ul a:hover li {
  background: #564a8a;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 18.75rem;
  background: var(--clr);
  border-radius: 1.25rem;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.card-inner .box {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 1.25rem;
  overflow: hidden;
}

.card-inner .box .imgBox {
  position: absolute;
  inset: 0;
}

.card-inner .box .imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-inner .box .imgBox img {
  transform: scale(1.02);
}

.card-inner .box .icon {
  position: absolute;
  bottom: -0.375rem;
  right: -0.375rem;
  width: 6rem;
  height: 6rem;
  background: var(--clr);
  border-top-left-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-inner .box .icon .iconBox {
  position: absolute;
  inset: 0.625rem;
  background: #282828;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.card-inner .box .icon .iconBox:hover {
  background: #695aa6;
  transform: translateX(3px);
}

.card-inner .box .icon .iconBox img {
  width: 1.5rem;
  height: 1.5rem;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.card-inner .box .icon .iconBox:hover img {
  transform: translateX(2px);
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.contact-form .success-message {
  color: #28a745;
  margin-top: 10px;
  text-align: center;
}

.contact-form .error-message {
  color: #dc3545;
  margin-top: 10px;
  text-align: center;
}

.contact-container {
  display: flex;
  width: 80%;
  max-width: 1200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info {
  flex: 1;
  padding: 40px;
  background-color: #695aa6;
  color: white;
}

.contact-info h2 {
  font-family: 'Leckerli One', sans-serif;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 10px 0;
  line-height: 1.5;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-links a img {
  width: 20px;
  height: 20px;
}

.contact-form {
  flex: 2;
  padding: 40px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form button {
  padding: 10px;
  background-color: #695aa6;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #543d8d;
}

.contact-form button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

#menu li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

#menu li a:hover {
  color: #695aa6;
  transform: scale(1.05);
}