/* style.css */

/* =========================================
   1. Global Reset & Layout
   ========================================= */
body { 
  margin: 0; 
  font-family: Georgia, 'Times New Roman', serif;
  background-color: #000000; 
  overflow: hidden; 
}

/* 確保所有標題繼承字體設定 */
h1, h2, h3, p, a, li, span, div { 
  font-family: Georgia, 'Times New Roman', serif;
}

ul { list-style: none; padding: 0; }

/* =========================================
   2. Panel Base
   ========================================= */
.panel { 
  height: 100vh; 
  width: 100vw;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  flex-direction: column; 
  padding: 40px; 
  color: white; 
  position: relative; 
  box-sizing: border-box;
}

h2 {
  font-size: 3rem; 
  margin-bottom: 2rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================
   3. Hero Section
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: #000000; 
  overflow: hidden;
  padding: 0;
  display: block;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #000000);
  pointer-events: none;
  z-index: 5;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
}

/* =========================================
   4. Hero Overlay (Typography)
   ========================================= */
.hero-overlay {
  position: absolute;
  top: 10%; 
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 100%;
  pointer-events: none; 
}

.title {
  font-size: 5.5rem; 
  font-weight: 700;  
  margin: 0 0 0.5rem 0;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
  font-style: normal;
}


.hint-text {
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #d4c5b0;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: fadeInPulse 3s infinite alternate;
}

@keyframes fadeInPulse {
  0% { opacity: 0.4; }
  100% { opacity: 0.9; }
}

/* =========================================
   5. Skills Section
   ========================================= */
.skills { background: #000000; }
.skills ul { text-align: center; }
.skills li { 
  margin-bottom: 15px; 
  font-size: 1.5rem; 
  font-weight: 400;
  opacity: 0.9; 
  letter-spacing: 0.5px;
  font-style: italic;
}

/* =========================================
   6. Projects Section
   ========================================= */
.projects { background: #000000; }
.project-list { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 20px; 
  width: 100%;
  max-width: 700px;
}

.project-item {
  display: block;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 1.4rem; 
  font-weight: 500;
  padding: 25px 30px;
  border-radius: 4px; 
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  letter-spacing: 1px;
}

.project-item:hover {
  transform: translateY(-5px);
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* =========================================
   7. Activities Section (Elegant Style)
   ========================================= */
.activities { background: #000000; overflow: hidden; }

.activities .bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35; 
  z-index: 1;
}

.activities .content { 
  position: relative; 
  z-index: 2; 
  text-align: center; 
  background: transparent;
  padding: 0;
}

.activities h2 {
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.activity-links { 
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.activity-links a {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 2rem; 
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9); 
  text-decoration: none; 
  padding: 5px 10px; 
  transition: all 0.4s ease;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.activity-links a:hover {
  color: #fff;
  transform: scale(1.1);
  text-shadow: 0 5px 20px rgba(255,255,255,0.6);
}

.activity-links .separator { 
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
}

.activities p {
  margin-top: 40px;
  letter-spacing: 2px;
  font-size: 0.8rem;
  opacity: 0.6;
  text-transform: uppercase;
}

/* RWD */
@media (max-width: 768px) {
  .title { font-size: 3.5rem; }
  .subtitle { font-size: 0.9rem; }
  .project-item { padding: 15px; font-size: 1.1rem; }
  .activity-links a { font-size: 2rem; }
}
