:root {
  --main-color: white;
  --topbar-color: #1f3a93;
  --nav-color: #1417a6;
  --nav-link-color: white;
  --marquee-color: linear-gradient(90deg, #265bd7, #265bd7),
    linear-gradient(180deg, #fcf485, #f39e27 78.69%);
  --article-title-color: #bbc3be;
  --footer-color: #121111;
  --white-color: #ffffff;
  --primary-color: #f0cda3;
  --section-bg-color: #1e222e;
  --grey-color: #d0d1d1;
  --p-color: #717275;
  --dot-color: #121111;
  --yellow-color: #fbc12f;

  --body-font-family: "Poppins", sans-serif;

  --h5-font-size: 24px;
  --p-font-size: 20px;
  --copyright-text-font-size: 16px;
  --product-link-font-size: 14px;
  --custom-link-font-size: 12px;

  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-bold: 600;
}

html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--main-color);
  color: var(--main-color);
  font-family: var(--body-font-family);
  position: relative;
}

/*---------------------------------------
    TYPOGRAPHY               
  -----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: #ffffff;
  line-height: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
}

h1,
h2 {
  font-weight: var(--font-weight-black);
}

h1 {
  font-size: 64px;
  line-height: normal;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 30px;
}

h4 {
  font-size: 32px;
}

h5 {
  font-size: 24px;
}

h6 {
  font-size: 20px;
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

a,
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

.text-primary {
  color: var(--primary-color) !important;
}

::selection {
  background: var(--primary-color);
  color: var(--white-color);
}

/*---------------------------------------
    loader               
  -----------------------------------------*/
.loader-wrapper {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
  width: 50px;
  aspect-ratio: 1;
  border: 2px solid;
  --c: conic-gradient(from -90deg at calc(100% - 2px) calc(100% - 2px), #0000 0 90deg, #ffffff 0);
  background: var(--c), var(--c);
  background-size: 16px 16px;
  background-position: 0 0;
  animation: l3 1s infinite;
}

@keyframes l3 {
  100% {
    background-position: -16px -16px, 16px 16px;
  }
}

.loader-wrapper.fade-out {
  opacity: 0;
  transform: scale(1.2);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


/*---------------------------------------
    nav               
  -----------------------------------------*/
.tablet-navbar {
  display: none;
}

.overlay-box {
  position: fixed;
  top: 0%;
  left: 50%;
  width: 100%;
  height: 70px;
  background-color: rgba(120, 120, 120, 0.1);
  transform: translate(-50%, 0);
  z-index: 999;
  transition: all 0.2s ease-in-out;
}

.overlay-box.expanded {
  top: 2%;
  width: 80%;
  transform: translate(-50%, 0);
  box-shadow: 0px 0px 100px 4px rgba(178, 178, 178, 0.52);
  border-radius: 40px;
  background-color: rgba(105, 104, 104, 0.4);
  backdrop-filter: blur(10px);
}

.overlay-box .nav-navbar {
  height: 100%;
  list-style-type: none;
  padding-left: 0;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.overlay-box .nav-navbar .nav-item {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  text-align: center;
  -webkit-flex-basis: 0;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
}

.overlay-box .nav-navbar .nav-link {
  -webkit-box-flex: 1;
  -webkit-flex-grow: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  text-align: center;
  -webkit-flex-basis: 0;
  -ms-flex-preferred-size: 0;
  flex-basis: 0;
  flex-grow: 1;
  color: #f8f9fa;
  font-weight: bold;
  display: inline-block;
  text-decoration: none;
  font-size: calc(12px + (15 - 12) * ((100vw - 300px) / (1300 - 300)));
}

.overlay-box .nav-navbar .nav-link:hover {
  background: url("/images/color.png") center;
  background-size: cover;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: colorEffect 7s linear infinite;
}

.overlay-box .nav-navbar .nav-item.logo {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.overlay-box .nav-navbar .nav-link img {
  height: 100%;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 5%;
}

@keyframes colorEffect {
  to {
    background-position-x: -900px;
  }
}

/*---------------------------------------
    canvas               
  -----------------------------------------*/
canvas {
  position: absolute;
  width: 100%;
  height: auto;
  display: block;
  background: radial-gradient(ellipse at center, #001d3d 0%, #000000 100%);
  opacity: 0.4;
  z-index: -1;
}

.mask-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.7);
  mask-image: radial-gradient(circle 150px at 50% 50%, transparent 0%, black 100%);
  -webkit-mask-image: radial-gradient(circle 150px at 50% 50%, transparent 0%, black 100%);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  z-index: 0;
}

.side-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: #111;
  color: white;
  z-index: 1001;
  transition: right 0.4s ease;
  padding: 50px 20px;
}

/*---------------------------------------
    banner               
  -----------------------------------------*/
.banner {
  margin: 0 auto;
  width: 100%;
  padding-top: 170px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;;
  grid-template-rows: repeat(1, 1fr);
  gap: 10px;
  position: relative;
  z-index: 0;
  flex-wrap: wrap; /* 小螢幕時換行 */

  /* page loading */
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1s ease, transform 1s ease;
}

.banner-left,
.banner-center,
.banner-right {
  flex: 1 1 300px; /* 基本寬度為 300px，可縮放 */
  margin: 10px;
}

.banner.show-banner {
  opacity: 1;
  transform: scale(1);
}

/* center */
.banner-center {
  margin: 0 auto;
  max-width: 360px;
  width: 100%;
  height: auto;
}

.card {
   aspect-ratio: 360 / 530;
  width: 100%;
  max-width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s ease-in-out;
  cursor: pointer;
  border: 1px solid #560d65;
  box-shadow: 0px -20px 31px 2px rgb(204, 27, 152, 0.27);
  border-radius: 15px;
}

.card:hover {
  transform: rotateY(180deg);
}

.front-page,
.back-page {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
}

.front-page {
  background-image: url("/images/banner-me.png");
  background-size: cover;
}

.card-info {
  position: absolute;
  bottom: 50px;
  left: 45px;
  color: #fff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.card-title {
  font-style: 2rem;
  font-weight: bold;
}

.card-subtitle {
  font-size: 1.2rem;
  margin-top: 5px;
  background-image: linear-gradient(
    144deg,
    rgb(148, 57, 186),
    rgb(204, 27, 152) 50%,
    rgb(12, 121, 248)
  );
  color: transparent; /* 文字顏色設為透明 */
  background-clip: text; /* 讓背景漸層應用於文字 */
  -webkit-background-clip: text;
}

.back-page {
  background-color: #1e272e;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotateY(180deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-content {
  text-align: center;
  padding: 20px;
  max-width: 300px;
}

.card-content h3 {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.card-description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-button {
  align-items: center;
  background-image: linear-gradient(
    144deg,
    rgb(148, 57, 186),
    rgb(204, 27, 152) 50%,
    rgb(12, 121, 248)
  );
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #ffffff;
  display: flex;
  font-family: Phantomsans, sans-serif;
  font-size: 20px;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  margin: 0 auto;
}

.card-button:active,
.card-button:hover {
  outline: 0;
}

.card-button span {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
}

.card-button:hover span {
  background: none;
}

/* text */
.banner h2{
  font-family: 'Orbitron', sans-serif;
  --min-size: 16;
  --max-size: 50;
	--font-size: calc(
		(var(--min-size) * 1px) + 
		(var(--max-size) - var(--min-size)) * 
		((100cqw - 320px) / (1920 - 320))
	);
	font-size: clamp(var(--min-size) * 1px, var(--font-size), var(--max-size) * 1px);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4) !important;
}

.iam-text {
  background: linear-gradient(90deg, #d400ff, rgb(204, 27, 152)); /* 紫色漸層 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: bold;
  margin: 0;
  text-align: right;
}

.playground-text{
  background: linear-gradient(90deg, rgb(41, 134, 241), rgb(12, 121, 248)); /* 紫色漸層 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  margin: 0;
  text-align: left;
}

.typing-text {
  font-weight: bold;
  display: flex;
  align-items: center;
}

#typing{
  background: linear-gradient(to left, rgb(148, 57, 186), rgb(204, 27, 152));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-text{
  font-weight: bold;
  text-align: right;
}

#welcome-typing{
  background: linear-gradient(to right, rgb(148, 57, 186), rgb(12, 121, 248));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cursor {
  display: inline-block;
  color: white !important;
  animation: blink 0.5s steps(2, start) infinite;
  font-weight: normal;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

/* text gride */
.banner-left .left-text-1{
  margin-top: 5%;
}

.banner-left .left-text-2{
  margin-top: 20%;
}

.banner-right .right-text-1{
  margin-top: 20%;
}

.banner-right .right-text-2{
  margin-top: 20%;
}

@media(max-width:1300px) {
  /* .banner-center {
    width: 250px;
    height: 368px;
  }

  .banner-left .left-text-1{
    margin-top: 10%;
  }
  
  .banner-left .left-text-2{
    margin-top: 30%;
  }
  
  .banner-right .right-text-1{
    margin-top: 25%;
  }
  
  .banner-right .right-text-2{
    margin-top: 30%;
  } */

  .card-description {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.4;
  }
}

/*---------------------------------------
    about-me               
  -----------------------------------------*/
.about-me {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  gap: 40px;
  color: white;
  position: relative;
  z-index: 0;
  margin-top: 150px;
}

.about-left {
  flex: 6;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  opacity: 0;
  transform: translateX(-200px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.about-left.show {
  opacity: 1;
  transform: translateX(0);
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 4px; 
}

.greeting {
  font-size: 20px;
  color: #ccc;
  margin: 0;
  font-weight: bold;
}

.name-gradient {
  font-family: 'Orbitron', sans-serif;
  font-size: 50px;
  font-weight: 700;
  background: linear-gradient(to right, #a100f2, #ff4ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4) !important;
  margin: 0;
}

.subtitle {
  font-size: 20px;
  color: white;
  margin: 0;
  font-weight: bold;
}

.description {
  font-size: 14px;
  color: white;
  max-width: 90%;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  background: #444;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: white;
}

.social-icons {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 25px rgb(12, 121, 248);
  text-decoration: none;
  transition: transform 0.3s;
}

.icon:hover {
  color:rgb(12, 121, 248);
  transform: scale(1.2);
}

.about-right {
  flex: 4;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(200px);
  transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}

.about-right.show {
  opacity: 1;
  transform: translateX(0);
}

.photo-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid rgba(52, 204, 255, 0.4);
  box-shadow: 0 0 45px rgb(12, 121, 248);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.profile-pic {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.photo-container:hover {
  animation: rippleGlow 1.5s ease-in-out infinite;
}

.photo-container::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(12, 121, 248, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
}

.photo-container:hover::after {
  opacity: 0;
  animation: rippleEffect 1.5s ease-out infinite;
}

@keyframes rippleGlow {
  0% {
    box-shadow: 0 0 45px rgba(12, 121, 248, 1);
  }
  30% {
    box-shadow: 0 0 90px rgba(12, 121, 248, 0.8);
  }
  100% {
    box-shadow: 0 0 45px rgba(12, 121, 248, 1);
  }
}

@keyframes rippleEffect {
  0% {
    width: 0;
    height: 0;
    opacity: 0.6;
  }
  50% {
    width: 150%;
    height: 150%;
    opacity: 0.3;
  }
  100% {
    width: 200%;
    height: 200%;
    opacity: 0;
  }
}

/*---------------------------------------
    skills-section               
  -----------------------------------------*/
  .skills-section {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 30px;
    position: relative;
    z-index: 0;
  }
  
  .skill-box {
    flex: 1 1 calc(16.66% - 20px);
    border: 2px solid rgb(12, 121, 248);
    border-radius: 15px;
    box-shadow: 8px 8px 30px rgba(12, 121, 248, 0.5);
    padding: 20px;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .skill-title {
    font-weight: bold;
    font-size: 1.2em;
    background: linear-gradient(to right, #a100f2, #ff4ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
  }
  
  .skill-bar {
    position: relative;
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    overflow: visible;
    margin-top: 10px;
  }
  
  .skill-progress {
    height: 100%;
    /* width: 0%; */
    transition: width 1.5s ease-out;
    background: rgb(204, 27, 152);
    border-radius: 5px 0 0 5px;
  }
  
  .skill-percent {
    position: absolute;
    right: 5px;
    top: -25px;
    font-size: 12px;
    color: white;
  }
  
  /*---------------------------------------
    contact-us               
  -----------------------------------------*/
  .contact-section {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease-out;
    width: 50%;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 0;
  }

  .contact-section.show {
    opacity: 1;
    transform: translateX(0);
  }
  
  .contact-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(to right, #a100f2, #ff4ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4) !important;
  }
  
  .contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .input-group{
    position: relative;
  } 

  .input-group_input{
    width: 100%;
    font: inherit;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    outline: 2px solid rgb(204, 27, 152);
    background-color: transparent;
    transition: outline-color 500ms;
  }

  .input-group_input:is(:focus, :valid){
    outline-color: rgb(12, 121, 248);
    box-shadow: 8px 8px 30px rgba(12, 121, 248, 0.5);
  }

  .input-group_label{
    position: absolute;
    top: 0;
    left: 0;
    translate: 10px 10px;
    color: #fff;
    transition: translate 500ms, scale 500ms;
  }

  .input-group_input:focus + .input-group_label, 
  .input-group_input:valid + .input-group_label{
    padding-inline: 5px;
    translate: 10px -14px;
    scale: 0.8;
    background-color: #000;
  }
  
  /* button */
  .button-out {
    width: 100%;
    height: auto;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .button {
    width: 150px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;  /* 关键属性 */
    color: #fff;
    z-index: 1;
    border-radius: 4px;
    background-color: rgb(204, 27, 152);
  }

  .button::before {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    content: "";
    width: 200%;
    height: 200%;  /* 调整此处宽高控制旋转边框的长度 */
    position: absolute;
    background: linear-gradient(135deg, rgb(148, 57, 186), rgba(255, 78, 199), #ffcc00, #00ffcc, #ff0066);
    z-index: -2;
    left: 50%;
    top: 50%;
    animation: run 3s linear infinite;
    transform-origin: left top;
    box-shadow: 0px 13px 30px rgba(255, 78, 199);
  }

  .button::after {
    content: "";
    position: absolute;
    --w: 4px; /* 控制宽度 */
    width: calc(100% - 2 * var(--w));
    height: calc(100% - 2 * var(--w));
    left: var(--w);
    top: var(--w);
    background: #000;
    z-index: -1;
    border-radius: inherit;
  }

  .button:hover::before{
    opacity: 1;
    visibility: visible;
  }

  .button:hover{
    scale: 0.95;
    background-color: rgb(12, 121, 248);
    box-shadow: 0px 13px 30px rgb(12, 121, 248, 0.7);
  }

  @keyframes run {
    0% {
      transform: rotate(0);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  
  /*---------------------------------------
    portfolio-section               
  -----------------------------------------*/
  .portfolio-section {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    z-index: 0;
  }
  
  .portfolio-tabs {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  .tab-btn {
    background: transparent;
    color: white;
    padding: 10px 30px;
    border: 2px solid #d400ff;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: 
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    border 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .tab-btn i {
    font-size: 18px;
    color: #ff4ec7;
  }
  
  .tab-btn.active,
  .tab-btn:hover {
    box-shadow: 1px 0px 20px 5px rgb(12, 121, 248, 0.7);
    border: 2px solid rgb(12, 121, 248);
    color: rgb(12, 121, 248);
  }
  
  .tab-btn.active i,
  .tab-btn:hover i{
    color: rgb(12, 121, 248);
  }

  .portfolio-cards {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .portfolio-card {
    display: block;
    text-decoration: none;
    opacity: 0;
    transform: translateY(30px); 
    transition: transform 0.8s ease, opacity 0.8s ease;
  }
  

  .portfolio-card-inner {
    background: #111;
    color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 78, 199, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .portfolio-card-inner img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .portfolio-card-inner p{
    font-size: 18px;
  }
   
  .portfolio-card:hover .portfolio-card-inner {
    transform: translateY(-5px) scale(0.98);
    box-shadow: 0 10px 30px rgba(255, 78, 199, 0.5);
  }
  
  .portfolio-card.from-left {
    transform: translateX(-60px);
  }
  .portfolio-card.from-bottom {
    transform: translateY(60px);
  }
  .portfolio-card.from-right {
    transform: translateX(60px);
  }

  .portfolio-card.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  
   /*---------------------------------------
    footer           
  -----------------------------------------*/
  .custom-footer {
  position: relative;
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(to right, #10001f, #000010); /* 深紫至接近黑 */
  color: white;
}


.footer-name {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(to right, #a100f2, #ff4ec7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav li {
  margin: 0 12px;
}

.footer-nav a,
.footer-icons a {
  margin: 0 12px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.2s;
}

.footer-icons {
  margin-top: 15px;
}

.footer-icons a i {
  font-size: 20px;
}

.footer-nav a:hover,
.footer-icons a:hover {
  color: rgb(12, 121, 248);
}

.footer-copyright {
  margin-top: 20px;
  font-size: 14px;
  color: #ccc;
}


/* 平板 */
@media (max-width: 1023px) {
  .mask-layer{
    display: none;
  }

  .banner {
    display: none;
  }

  .about-me {
    width: 95%;
    margin-top: 0px;
    padding-top: 100px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .description{
    max-width: 100%;
  }

  .about-right {
    order: -1; 
    /* transform: translateX(0); */
    width: 50%;
  }

  .tags,
  .social-icons {
    justify-content: center;
  }

  .skills-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: 1fr;                  
    gap: 20px;
    width: 90%;
    margin: 0 auto;
  }

  .skill-box {
    height: auto;
  }

  .skill-title{
    font-size: 1em;
  }

  .portfolio-cards {
    grid-template-columns: 1fr; 
    gap: 30px; 
  }

  .tab-btn{
    padding: 8px 20px;
    border: 1px solid #d400ff;
  }

  .tab-btn i {
    font-size: 12px;
    color: #ff4ec7;
  }

  .contact-section{
    width: 80%;
  }

  .overlay-box{
    display: none;
  }

  .tablet-navbar {
  position: fixed;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 0 20px;
  z-index: 100;
}

.tablet-navbar .logo img{
  height: 100%;
  max-height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: 5%;
}

.logo img {
  height: 40px;
}

/* Hamburger positioning */
#hamburger-toggle {
  display: none;
}

.hamburger-label {
  position: absolute;
  right: 20px;
  cursor: pointer;
  z-index: 110;
}

.hamburger-icon {
  width: 30px;
  height: 22px;
  position: relative;
}

.hamburger-icon .line {
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-icon .line1 { top: 0; }
.hamburger-icon .line2 { top: 9px; }
.hamburger-icon .line3 { top: 18px; }

/* Animate hamburger */
#hamburger-toggle:checked + .hamburger-label .line1 {
  transform: rotate(45deg);
  top: 10px;
}

#hamburger-toggle:checked + .hamburger-label .line2 {
  opacity: 0;
}

#hamburger-toggle:checked + .hamburger-label .line3 {
  transform: rotate(-45deg);
  top: 10px;
}

/* Overlay */
.overlay-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hamburger-toggle:checked ~ .overlay-menu {
  transform: translateX(0);
}

.menu-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.menu-list li {
  margin: 20px 0;
}

.menu-list a {
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}
}

/* 手機 */
@media (max-width: 599px) {
  .about-me{
    width: 100%;
  }

  .about-right{
    width: 90%;
  }

  .greeting{
    font-size: 16px;
  }

  .name-gradient{
    font-size: 40px;
  }

  .skills-section{
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-section{
    width: 100%;
  }

  .contact-title{
    font-size: 30px;
  }

  .tab-btn{
    padding: 5px 8px;
    border: 1px solid #d400ff;
    gap: 1px;
    font-size: 16px;
    font-weight: 400;
  }

  .tab-btn i {
    font-size: 10px;
    color: #ff4ec7;
  }

  h3{
    font-size: 20px;
  }
}