@import url("https://font.emtech.cc/css/GenSenRoundedTW");


:root{
    --white:#ffffff;
    --light-gray:#e9e9e9;
    --dark-gray:#434343;
    --darker:#2e2e2e;
    --dot-gray:#cccccc;
    --text-light:#bdbdbd;
    --glow:#ffffff;
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  body{
    font-family: "GenSenRoundedTW", sans-serif;
    color:#1a1a1a;
    line-height:1.9;
    overflow-x:hidden;
  }
  section{position:relative;}

  /* ============ HERO ============ */
  #hero{
    min-height:100vh;
    background:var(--white);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    overflow:hidden;
    padding:60px 24px 40px;
  }
  #meteor-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;}
  .hero-inner{position:relative;top: 60%; z-index:2;width:100%;max-width:900px;}

  .hello{
    font-size:clamp(20px,3vw,30px);
    color:var(--dot-gray);
    transform:rotate(-8deg);
    position: relative;
    left: -25%;
    display:inline-block;
    margin-left:6%;
    margin-bottom:-20px;
    opacity:0;
    letter-spacing:2px;
  }
  .hero-title{
    font-size:clamp(38px,7vw,72px);
    font-weight:600;
    letter-spacing:2px;
    margin-bottom:34px;
    opacity:0;
  }
  .hero-title .name-box{
    background:var(--dark-gray);
    color:#fff;
    padding:3% 3%;
    border-radius:6px;
    margin-left:20px;
    display:inline;
  }
  .hashtags{
    font-size:clamp(15px,2vw,20px);
    color:var(--dot-gray);
    transform:rotate(-8deg);
    position: relative;
    left: 20%;
    letter-spacing:3px;
    margin-bottom:60px;
    opacity:0;
  }

  /* signpost */
  .signpost{
    position:absolute;
    bottom:0;
    right: 10%;
    z-index:3;
    opacity:0;
  }
  .signpost .post{width:6px;height:250px;background:var(--dark-gray);margin:0 auto;border-radius:2px;}
  .sign{
    position:absolute;
    background:var(--dark-gray);
    color:#fff;
    font-size:16px;
    font-weight: 600;
    letter-spacing:2px;
    padding:10px 30px 8px 40px;
    text-decoration:none;
    transition:transform .25s ease, background .25s ease;
    white-space: nowrap;
  }
  .sign::after{content:"";position:absolute;top:0;width:0;height:0;}
  .sign-right{left:-60px;top:-10px;padding:10px 50px 8px 40px;clip-path:polygon(0 0,85% 0,100% 50%,85% 100%,0 100%);transform:rotate(-9deg);}
  .sign-center{left:-90px;top:70px;padding:10px 30px 8px 50px;clip-path:polygon(15% 0,100% 0,100% 100%,15% 100%,0 50%);transform:rotate(5deg);}
  .sign-left{right:-70px;top:150px;padding:10px 30px 8px 50px;clip-path:polygon(15% 0,100% 0,100% 100%,15% 100%,0 50%);transform:rotate(-8deg);}
  .sign:hover{background:#1b1b1b;transform:scale(1.05);}

  @media (max-width:700px){
    .signpost .post{width:6px;height:150px;}
    .sign{
      font-size:10px;
      font-weight: 500;
      letter-spacing:2px;
    }
    .sign-right{left:-30px;top:-10px;padding:5px 25px 4px 20px;clip-path:polygon(0 0,85% 0,100% 50%,85% 100%,0 100%);transform:rotate(-9deg);}
    .sign-center{left:-45px;top:40px;padding:5px 15px 4px 25px;clip-path:polygon(15% 0,100% 0,100% 100%,15% 100%,0 50%);transform:rotate(5deg);}
    .sign-left{right:-50px;top:90px;padding:5px 15px 4px 25px;clip-path:polygon(15% 0,100% 0,100% 100%,15% 100%,0 50%);transform:rotate(-8deg);}
    .sign:hover{background:#1b1b1b;transform:scale(1.05);}
  }
  
  /* skill dots */
  .dots-row{
    position:relative;
    z-index:2;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:clamp(14px,3vw,42px);
    flex-wrap:wrap;
    margin-top:20px;
    min-height:120px;
    position: relative;
    bottom: -150px;
  }
  .dot{
    position:relative;
    border-radius:50%;
    background:var(--dot-gray);
    cursor:pointer;
    transition:transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease;
    display:flex;align-items:center;justify-content:center;
    color:transparent;
    margin: 0 10px;
    
  }
  @keyframes dot-pulse{
    0%   {box-shadow:0 0 0 0 rgba(171, 171, 171, 0.35);}
    70%  {box-shadow:0 0 0 20px rgba(171, 171, 171, 0);}
    100% {box-shadow:0 0 0 0 rgba(171, 171, 171, 0);}
  }
  .dot:nth-child(4){animation:dot-pulse 1s ease-out infinite;}
  .dot::before {
    content: '';
    position: absolute;
    top: -30px;
    bottom: -30px;
    left: -30px;
    right: -30px;
  }
  .dot .icon{font-size:0;transition:font-size .3s ease;line-height:1;}
  .dot .label{
    position:absolute;
    top:calc(100% + 10px);
    left:50%;
    transform:translateX(-50%);
    font-size:13px;
    color:var(--dark-gray);
    white-space:nowrap;
    opacity:0;
    transition:opacity .3s ease;
    letter-spacing:1px;
  }
  .dot:hover{background:var(--dark-gray);transform:scale(1.6);animation:none; /* hover 時停止脈動，交給原本的放大效果 */}
  .dot:hover .icon{font-size:20px;}
  .dot:hover .label{opacity:1;}
  /* bridging big dot */
  .bridge-dot{
    position:absolute;
    left:50%;
    bottom:-200px;
    width:140px;height:140px;
    border-radius:50%;
    background:var(--dark-gray);
    transform:translateX(-50%) scale(0);
    z-index:100;
  }

  /* ============ DARK SECTIONS ============ */
  .dark{background:var(--dark-gray);color:#f2f2f2;}
  .wrap{max-width:820px;margin:0 auto;padding:80px 28px;}
  .section-head{
    font-size:clamp(18px,3.4vw,24px);
    font-weight:700;
    letter-spacing:2px;
    padding-bottom:14px;
    border-bottom:2px solid rgb(255, 255, 255);
    margin-bottom:20px;
  }
  .about-p{color:var(--text-light);margin-bottom:22px;font-size:16px;}
  .about-p .role{color:#fff;font-weight:700;}
  .rotating{
    color:#fff;font-weight:700;
    text-shadow:0 0 10px var(--glow),0 0 20px var(--glow);
    border-right:2px solid #fff;
    padding-right:2px;
  }
  .solid-line{border:none;border-top:2px solid rgb(255, 255, 255);margin:0 0 0;}

  /* my jobs */
  .jobs-list{list-style:none;margin-top:5px;}
  .jobs-list li{
    font-size:16px;padding:5px 0;color:var(--text-light);
  }

  /* collapsible top-level sections (Resume / Honors / Certificates) */
  .collapse-section .wrap{padding-top:0;}
  /* keep the section spacing tight between stacked collapsible sections */
  #resume .wrap,#honors .wrap,#certificates .wrap{padding-top:0;padding-bottom:40px;}

  /* the heading doubles as the collapse toggle, styled like .section-head (same level as My Jobs) */
  .section-head.acc-head{
    display:flex;align-items:center;justify-content:space-between;
    cursor:pointer;user-select:none;
    /* inherits font-size / weight / letter-spacing / bottom border from .section-head */
  }
  .acc-plus{
    font-size:34px;font-weight:300;line-height:1;
    transition:transform .35s ease;
    transform-origin:center;
    margin-left:16px;flex:none;
  }
  .acc-item.open .acc-plus{transform:rotate(135deg);}
  .acc-body{
    max-height:0;overflow:hidden;
    transition:max-height .45s ease;
  }
  .acc-inner{padding:8px 4px 6px;color:var(--text-light);font-size:15px;}
  .acc-inner .placeholder{opacity:.6;font-style:italic;}
  .acc-inner ul{list-style:none;}
  .acc-inner li{font-size:16px;padding:5px 0;color:var(--text-light);}

  /* ============ GALLERY ============ */
  #gallery{background:var(--light-gray);}
  #gallery .section-head{color:var(--darker);border-bottom:2px solid var(--darker);}
  .gallery-grid{
    display:flex;flex-wrap:wrap;gap:36px;justify-content:center;
    padding:20px 0 30px;
  }
  .photo{
    position:relative;
    width:clamp(200px,30vw,150px);
    background:#fff;
    padding:12px 12px 40px;
    box-shadow:0 8px 24px rgba(0,0,0,.15);
    transition:transform .35s ease, box-shadow .35s ease;
    cursor:pointer;
  }
  .photo:nth-child(odd){transform:rotate(-4deg);}
  .photo:nth-child(even){transform:rotate(3deg);}
  .photo:hover{transform:rotate(0deg) scale(1.06);box-shadow:0 14px 34px rgba(0,0,0,.28);z-index:5;}
  .photo img{width:100%;display:block;background:#d3d3d3;aspect-ratio:3/4;object-fit:cover;}
  .photo .frame-empty{
    width:100%;aspect-ratio:3/4;background:#cfcfcf;
    display:flex;align-items:center;justify-content:center;
    color:#8a8a8a;font-size:13px;
  }
  .photo .caption{
    position:absolute;left:0;right:0;bottom:0;
    background:rgba(0,0,0,.78);color:#fff;
    font-size:13px;text-align:center;padding:8px;
    opacity:0;transition:opacity .3s ease;
  }
  .photo:hover .caption{opacity:1;}

  /* ============ FOOTER ============ */
  #footer{background:var(--dark-gray);color:#f2f2f2;}
  .footer-wrap{
    max-width:820px;margin:0 auto;padding:60px 28px 90px;
    display:flex;flex-direction:column;align-items:center;text-align:center;
  }
  .footer-top{display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:40px;}
  .footer-logo{
    margin-top:30px;
    height:40px;
    position:relative;
  }
  .footer-logo img{
    height:46px;
    position:relative;
  }
  .footer-links{margin-top:10px;display:flex;justify-content:center;gap:14px;color:var(--text-light);font-size:15px;margin-bottom:16px;flex-wrap:wrap;}
  .footer-links a{color:var(--text-light);text-decoration:none;transition:color .25s ease;}
  .footer-links a:hover{color:#fff;}
  .footer-links .sep{color:rgba(255,255,255,.3);}

  @media (max-width:700px){
    .dots-row{bottom: 10px;}
    .hero-inner{top: 10%;}
    .hello{margin-left:2%;}
    .hashtags{left: 10%;}
  }