:root {
    --primary: #2563eb;
    --dark: #1e293b;
    --light: #f1f5f9;
    --white: #ffffff;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background: var(--light);
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Header Styles */
  .header {
    background: var(--primary);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  
  .header-content {
    position: relative;
    z-index: 100;
  }
  
  .profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 4px solid var(--white);
    margin-bottom: 2rem;
  }
  
  .header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .header p {
    font-size: 1.25rem;
    opacity: 0.9;
  }
  
  /* 語系切換下拉選單 */
  .language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 110;
  }
  
  .language-switcher select {
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #ccc;
    background: var(--white);
  }
  
  /* Navigation */
  .nav {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .nav-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
  }
  
  .nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: var(--light);
    color: var(--primary);
  }
  
  /* Sections */
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
  }
  
  /* Projects */
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .project-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
  }
  
  .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-content {
    padding: 1.5rem;
  }
  
  .project-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }
  
  /* Skills */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .skill-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .skill-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
  }
  
  /* Contact Form */
  .contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
  }
  
  .form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
  }
  
  .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  }
  
  .submit-button {
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .submit-button:hover {
    background: #1d4ed8;
  }
  
  /* Footer */
  .footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
  }
  
  .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .social-link {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
  }
  
  .social-link:hover {
    color: var(--primary);
  }
  
  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .nav-list {
      flex-direction: column;
      align-items: center;
      padding: 1rem 0;
    }
  
    .header h1 {
      font-size: 2rem;
    }
  
    .section-title {
      font-size: 1.75rem;
    }
  }
  