/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;500;700&family=Noto+Sans+TC:wght@300;400;500&display=swap');

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

body{
  font-family:'Noto Sans TC', sans-serif;
  background:#f7f5f1;
  color:#2d2d2d;
  line-height:1.8;
}

/* 導覽列 */
.navbar{
  width:100%;
  padding:24px 8%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:fixed;
  top:0;
  background:rgba(247,245,241,0.85);
  backdrop-filter:blur(10px);
  z-index:1000;
}

.logo{
  font-family:'Noto Serif JP', serif;
  font-size:1.2rem;
  letter-spacing:2px;
}

nav a{
  margin-left:24px;
  text-decoration:none;
  color:#444;
  font-size:0.95rem;
  transition:0.3s;
}

nav a:hover{
  opacity:0.5;
}

/* Hero */
.hero{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:120px 8%;
  gap:80px;
}

.hero-text{
  flex:1;
}

.subtitle{
  letter-spacing:3px;
  color:#9a8f80;
  margin-bottom:20px;
  font-size:0.9rem;
}

.hero h1{
  font-family:'Noto Serif JP', serif;
  font-size:4rem;
  margin-bottom:24px;
  font-weight:500;
}

.description{
  color:#666;
  margin-bottom:40px;
}

.button{
  display:inline-block;
  padding:14px 32px;
  border:1px solid #444;
  text-decoration:none;
  color:#444;
  transition:0.3s;
}

.button:hover{
  background:#444;
  color:white;
}

.hero-image{
  flex:1;
  display:flex;
  justify-content:center;
}

.hero-image img{
  width:420px;
  height:540px;
  object-fit:cover;
  border-radius:4px;
  filter:grayscale(10%);
}

/* Section */
.section{
  padding:120px 10%;
}

.gray-bg{
  background:#efebe5;
}

.section-title{
  margin-bottom:50px;
}

.section-title span{
  color:#a89a88;
  font-size:0.9rem;
  letter-spacing:2px;
}

.section-title h2{
  font-family:'Noto Serif JP', serif;
  font-size:2.4rem;
  margin-top:10px;
  font-weight:500;
}

/* Card */
.card{
  background:white;
  padding:40px;
  max-width:850px;
  box-shadow:0 10px 30px rgba(0,0,0,0.04);
}

.center{
  text-align:center;
}

/* Skills */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:24px;
}

.skill-card{
  background:white;
  padding:36px;
  transition:0.3s;
}

.skill-card:hover{
  transform:translateY(-5px);
}

.skill-card h3{
  font-family:'Noto Serif JP', serif;
  margin-bottom:12px;
}

/* Footer */
footer{
  text-align:center;
  padding:40px;
  color:#888;
  font-size:0.9rem;
}

/* RWD */
@media(max-width:900px){

  .hero{
    flex-direction:column;
    text-align:center;
  }

  .hero h1{
    font-size:2.8rem;
  }

  .hero-image img{
    width:100%;
    max-width:360px;
    height:460px;
  }

}