/* style.css */
body {
    margin: 0;
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f4f4f4;
    color: #333;
  }
  
  header {
    position: sticky;
    height: 62px;
    top: 0;
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .clickable-logo {
    cursor: pointer;
    transition: opacity 0.3s;
  }
  
  .clickable-logo:hover {
    opacity: 0.8;
  }
  
  nav {
    display: flex;
  }
  
  .nav-buttons {
    display: flex;
  }
  
  .nav-button {
    background: none;
    color: #3498db;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 20px;
  }
  
  .nav-button:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
  }
  
  .hero {
    height: 70vh;
    background: url('images/head_pic2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
    font-size: 2.5rem;
    font-weight: bold;
    padding: 2rem;
    text-align: center;

    opacity: 0;
    transition: opacity 0.5s ease-in;
  }
  
  .section {
    padding: 4rem 2rem;
    text-align: center;
    background: white;
  }
  
  .about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    background: #faf8f8;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow:
      0 8px 30px rgba(0, 0, 0, 0.12),
      0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
  }
  
  
  .about-content {
    flex: 1;
    padding-right: 2rem;
    text-align: left;
  }
  
  .about-content h2 {
    font-size: 30px;
    margin-top: 0;
    color: #2c3e50;
  }
  
  .about-content p {
    line-height: 1.8;
    margin-top: 1rem;
    font-size: 18px;
    color: #555;
  }
  
  .about-image {
    width: 320px;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .about-image:hover {
    transform: scale(1.02);
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 2rem auto;
  }
  
  .card {
    background: #efeded;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  }
  
  .card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .card h3 {
    color: #2c3e50;
    margin-top: 0;
  }
  
  .card p {
    color: #666;
    line-height: 1.6;
  }
  
  footer {
    background: #333;
    color: white;
    padding: 2.5rem;
    text-align: center;
  }
  
  footer p {
    margin: 0.5rem 0;
  }
  
  #backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #backToTop:hover {
    background-color: #2980b9;
    transform: translateY(-3px) scale(1.05);
  }
  
  .contact-container {
    display: inline-block;
    text-align: left;
    margin: 0 auto;
  }
  
  .contact-info {
    display: inline-block;
    text-align: left;
  }
  
  @media (max-width: 768px) {
    header {
      padding: 1rem;
      flex-direction: column;
      height: auto;
    }
    
    .nav-buttons {
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .hero {
      font-size: 1.8rem;
      padding: 1rem;
      height: 50vh;
    }
    
    .about-container {
      flex-direction: column;
      padding: 1.5rem;
    }
    
    .about-content {
      padding-right: 0;
      margin-bottom: 1.5rem;
      text-align: center;
    }
    
    .about-image {
      width: 100%;
      max-width: 300px;
    }
    
    .cards {
      grid-template-columns: 1fr;
      max-width: 400px;
    }
    
    #backToTop {
      width: 45px;
      height: 45px;
      right: 20px;
      bottom: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .nav-button {
      padding: 0.5rem;
      font-size: 0.9rem;
    }
    
    .hero {
      font-size: 1.5rem;
      height: 40vh;
    }
    
    .section {
      padding: 2rem 1rem;
    }
  }