/* === 全域設定 === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", "微軟正黑體", sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Header 導覽列 === */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(255, 180, 80, 0.2);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 20px;
}

nav a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffb347, #ffcc33);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ffcc33;
}

/* === Hero 區塊 === */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  animation: fadeIn 1.2s ease-out;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.8rem;
  color: #ffcc33;
  text-shadow: 0 0 10px #ffb347;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 30px;
  color: #f0e6d2;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(90deg, #ffb347, #ffcc33);
  color: #111;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 200, 100, 0.4);
}

.btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255, 200, 100, 0.7);
}

/* === 區塊通用設定 === */
section {
  padding: 100px 20px;
  text-align: center;
  animation: fadeUp 1.2s ease forwards;
}

h2 {
  color: #ffcc33;
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 204, 51, 0.6);
}

p, li, .project {
  font-size: 1.1rem;
  margin: 10px 0;
}

/* === 興趣 === */
ul {
  display: inline-block;
  text-align: left;
  margin-top: 10px;
}

/* === 學歷 === */
.project {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ffcc33;
  padding: 12px;
  margin: 10px auto;
  width: 300px;
  border-radius: 10px;
  transition: transform 0.3s ease, background 0.3s;
}

.project:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

/* === Contact === */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(255, 204, 51, 0.1);
  color: #ffcc33;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 204, 51, 0.3);
  transform: translateY(-3px);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #ccc;
  border-top: 1px solid rgba(255, 204, 51, 0.3);
}

/* === 動畫效果 === */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
