/* ===== Google Fonts ===== */
/* 
   英文字體: Quintessential
   中文字體: LXGW WenKai Mono TC 
*/

:root {
    --font-english: 'Quintessential', cursive;
    --font-chinese: 'LXGW WenKai Mono TC', sans-serif;
}

/* 全站使用中文字體 */
body {
    font-family: var(--font-chinese);
}

/* 標題和導航用英文字體 */
h1, h2, h3, h4, h5, h6, .logo, .nav-link {
    font-family: var(--font-english);
}


/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-subtitle {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 1.5rem;
  color: var(--accent-purple);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title .highlight {
  display: block;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-avatar {
  position: relative;
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.avatar-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  margin: 0 auto;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(139, 92, 246, 0.3);
  box-shadow: var(--shadow-glow);
  transition: 0.4s;
}

.avatar-container::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: var(--gradient-main);
  opacity: 0.2;
  animation: rotate 20s linear infinite;
}

.avatar-container::after {
  content: '✨';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-container:hover .avatar-image {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
}

/* Featured Grid */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.featured-card {
  aspect-ratio: 3/4;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s;
}

.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, transparent 60%);
  z-index: 1;
}

.featured-card:hover img {
  transform: scale(1.1);
}

.featured-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transform: translateY(20px);
  opacity: 0;
  transition: 0.4s;
}

.featured-card:hover .featured-info {
  transform: translateY(0);
  opacity: 1;
}

.featured-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.featured-info p {
  font-size: 0.9rem;
  margin: 0;
}

/* About Section */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 50px;
  }

  .hero-content {
    order: 2;
  }

  .hero-avatar {
    order: 1;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
