/* 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;
}

/* Carousel Container */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  /* Limit width */
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.project-list {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 30px;
  width: 100%;
  padding: 40px 10px;
  /* Space for hover effects */

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.project-list::-webkit-scrollbar {
  display: none;
}

.project-item {
  /* Show exactly 3 items: (100% - 2 * 30px gap) / 3 */
  flex: 0 0 calc((100% - 60px) / 3);
  min-width: 300px;
  /* Fallback/minimum size */
  height: 400px;
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-decoration: none;
  padding: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* Navigation Buttons */
.nav-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 20;
  position: absolute;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.nav-btn.prev {
  left: -70px;
}

.nav-btn.next {
  right: -70px;
}

/* Responsive Adjustments */
@media (max-width: 1100px) {
  .nav-btn {
    display: none;
  }

  /* Hide buttons on smaller screens, allow swipe */
  .project-item {
    flex: 0 0 300px;
  }

  /* Fixed width on small screens */
}

.project-list::-webkit-scrollbar {
  display: none;
}

.project-item {
  flex: 0 0 auto;
  width: 300px;
  height: 380px;
  scroll-snap-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Center content vertically too? User said 'align to middle' */
  align-items: center;
  /* Center align text inside card */
  text-align: center;

  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-decoration: none;
  padding: 30px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

/* Card Hover Effect */
.project-item:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* =========================================
   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;
  }
}