/* 全局 */
body {
  background-color: #ffe6e6;
  font-family: Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* 導覽列 */
ul.navbar {
  list-style-type: none;
  display: flex;
  justify-content: flex-end;
  padding: 15px 30px;
  margin: 0;
  background-color: #fff0f5;
  position: relative;
  z-index: 10;
}

ul.navbar > li {
  position: relative;
  margin: 0 20px;
}

ul.navbar > li > a {
  color: black;
  font-size: 1em;
  text-decoration: none;
  font-weight: 400;
}

ul.navbar > li > a:hover {
  color: deeppink;
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff0f5;
  padding: 10px 0;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 5px;
  z-index: 9999;
}

.dropdown-menu li {
  display: block;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: black;
  text-decoration: none;
  font-size: 0.95em;
}

.dropdown-menu li a:hover {
  background-color: #ffd1dc;
  color: deeppink;
}

/* 顯示 dropdown on hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* Hero 區塊 */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-weight: 600;
  font-size: 2.5em;
  margin-top: 10px;
  font-family: "Inter", sans-serif;
}

.hero h2 {
  font-weight: 300;
  font-size: 1em;
  margin-top: 30px;
  font-family: "Inter", sans-serif;
  line-height: 1.5;
  letter-spacing: 0.5px;
  max-width: 1200px; 
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* CTA 按鈕 */
.cta-btn {
  display: inline-block;
  margin: 30px auto;
  padding: 12px 28px;
  background: deeppink;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cta-btn:hover {
  background: #c71585;
}

.cta-container {
  text-align: center;
  margin-bottom: 40px;
}

.hero-btn-container {
  text-align: center;
  margin-top: 25px;
}

.hero-btn {
  display: inline-block;
  background-color: deeppink;
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background-color: #c71585;
  transform: scale(1.05);
}

/* 筆電 Mockup (共用大小) */
.laptop-mockup {
  width: 500px;
  margin: 20px auto 0 auto;
  background: #222;
  border-radius: 12px 12px 0 0;
  padding: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.laptop-mockup:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.laptop-screen {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  height: 300px;
  position: relative;
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.play-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.9em;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.play-label:hover {
  background: deeppink;
  cursor: pointer;
}

.laptop-base {
  width: 70%;
  height: 12px;
  background: #333;
  margin: 0 auto;
  border-radius: 0 0 20px 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 5px 30px;
  font-size: 0.85em;
  color: #555;
  background-color: #fff0f5;
}

/* 作品集區塊（直式，每行一個） */
.portfolio-section {
  padding: 60px 20px;
  background-color: #fff0f5;
  text-align: center;
}

.portfolio-title {
  font-family: "Inter", sans-serif;
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 40px;
  color: #333;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: black;
  margin-bottom: 40px; /* 卡片間距 */
}

.portfolio-info {
  padding: 15px;
}

.portfolio-info h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.2em;
  color: #333;
}

/* RWD */
@media (max-width: 600px) {
  .laptop-mockup {
    width: 90%;
  }
  .laptop-screen {
    height: 200px;
  }
}

/* Prototype 按鈕 */
.prototype-btn {
  display: inline-block;
  background-color: #ffd1dc;  /* 淡粉色背景 */
  color: deeppink;            /* 深粉文字 */
  padding: 12px 28px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.prototype-btn:hover {
  background-color: deeppink; /* 滑鼠 hover 變深粉 */
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


/*.prototype-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid black;
  border-radius: 6px;
  text-decoration: none;
  color: black;
  font-weight: 500;
  transition: all 0.2s ease;
}

.prototype-btn:hover {
  background-color: deeppink;
  color: white;
}*/

/* 影片展示框樣式 */
.video-box {
  max-width: 800px;       /* 限制最大寬度 */
  margin: 40px auto;      /* 置中顯示並加點上下間距 */
  border-radius: 12px;    /* 圓角邊框 */
  overflow: hidden;       /* 避免圓角被影片蓋過 */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 柔和陰影 */
}

.video-box video {
  width: 100%;            /* 讓影片自適應容器寬度 */
  height: auto;           /* 保持影片比例 */
  display: block;         /* 移除底部空隙 */
  border: none;
}