/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: #1e1e1e;
    color: #fff;
    font-family: 'Poppins', sans-serif;
  }
  
  /* Hero Section */
  .hero-section {
    text-align: center; /* Center hero content */
    padding: 10rem 1rem; /* Increased padding for hero section */
    position: relative;
    background-image: url('images/hero-bg.jpg'); /* Hero background image */
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
  }
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
  }
  .hero-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10; /* Ensure header is above overlay */
  }

  .hero-content {
    position: relative;
    z-index: 10; /* Ensure content is above overlay */
    padding: 2rem 1rem;
  }
  
  .main-title {
    font-size: 3rem; /* Larger title */
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.7); /* Stronger glow */
    margin-bottom: 1.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem; /* Slightly larger subtitle */
    margin-bottom: 2.5rem; /* More space below subtitle */
    color: #eee; /* Lighter subtitle text */
  }
  
  /* 按鈕樣式 */
  .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem;
    border-radius: 4px;
    text-decoration: none;
    border: none;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  }
  .primary-btn {
    font-weight: 700;
  }
  
  /* Hamburger menu */
  .hamburger-menu {
    display: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    z-index: 20; /* Ensure hamburger menu is above overlay */
  }
  .hamburger-menu span {
    display: block;
    width: 28px; /* Wider hamburger icon */
    height: 4px; /* Thicker hamburger icon */
    margin: 5px; /* Adjusted margin */
    background-color: #fff;
    border-radius: 2px; /* Rounded hamburger icon lines */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Transition for animation */
  }
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile navigation menu (initially hidden) */
  .nav-links#navMenu {
    display: none; /* Initially hidden on mobile */
    position: absolute;
    top: 4rem; /* Position below header */
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background for mobile nav */
    text-align: center;
    padding: 1rem 0;
    flex-direction: column; /* Stack links vertically on mobile */
    margin-top: 0; /* Reset desktop margin */
  }
  .nav-links#navMenu.show {
    display: flex; /* Show mobile nav when active */
  }
  .nav-links#navMenu a {
    display: block; /* Full width links on mobile */
    padding: 1rem;
    margin: 0; /* Reset link margins for mobile */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Separator for mobile links */
  }
  .nav-links#navMenu a:last-child {
    border-bottom: none; /* Remove separator from last link */
  }
  
  /* About Section */
  .about-section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 3rem 2rem; /* Increased padding */
    text-align: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px; /* More rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Subtle shadow */
  }
  
  /* Services Section */
  .services-section {
    max-width: 1100px; /* Wider services section */
    margin: 3rem auto; /* Increased margin */
    padding: 2rem 1rem;
    text-align: center;
  }
  .services-section h2 {
    margin-bottom: 1.5rem; /* Space below section title */
    font-size: 2rem; /* Slightly larger section title */
  }
  .service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Wider service cards */
    gap: 2rem; /* Increased gap between cards */
    margin-top: 2.5rem; /* More space above cards */
  }
  .service-card {
    background-color: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    padding: 2.5rem; /* Increased padding */
    border-radius: 12px; /* More rounded corners */
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Subtle card shadow */
  }
  .service-card:hover {
    transform: translateY(-8px); /* Increased hover lift */
    box-shadow: 0 8px 20px rgba(0,0,0,0.6); /* Stronger hover shadow */
  }
  .service-card .icon {
    font-size: 2.5rem; /* Larger icons */
    margin-bottom: 1.2rem;
  }
  .service-card h3 {
    margin-bottom: 0.8rem; /* Space below service title */
    font-size: 1.4rem; /* Slightly larger service title */
  }
  .service-card p {
    font-size: 1rem; /* Slightly larger service description */
    line-height: 1.6; /* Improved line height for readability */
  }
  
  /* Footer */
  .site-footer {
    background-color: #111;
    padding: 3rem; /* Increased footer padding */
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05); /* Subtle top border */
  }
  .site-footer p {
    font-size: 0.9rem; /* Slightly smaller footer text */
    color: #ddd; /* Lighter footer text */
  }
  .site-footer a {
    color: #ffec99; /* 金黃色 */
    text-decoration: none;
    font-weight: 500;
  }
  .site-footer a:hover {
    text-decoration: underline;
  }
  
  /* Fade-in effect */
  .fade-target {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease; /* Slightly slower fade */
  }
  .fade-in {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Portfolio Section */
  .portfolio-section {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    text-align: center;
  }
  .portfolio-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  }
  .gallery-item img {
    display: block;
    width: 100%;
    height: auto;
  }
  .gallery-item h4 {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
  }

  /* Testimonials Section */
  .testimonials-section {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2rem 1rem;
    text-align: center;
  }
  .testimonials-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .testimonials-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
  }
  .testimonial-card {
    background-color: rgba(255,255,255,0.05);
    backdrop-filter: blur(6px);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
  }
  .testimonial-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
  }
  .testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }
  .testimonial-card span {
    display: block;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ddd;
  }

  /* Contact Section */
  .cta-section {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    text-align: center;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }
  .cta-section h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .cta-section p {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #eee;
  }
  .social-info {
    margin-top: 2rem;
  }
  .social-info p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }
  .social-info a {
    color: #ffec99;
  }


  /* RWD 手機版: 小螢幕時顯示漢堡選單, 隱藏原先桌面導覽 */
  @media (max-width: 768px) {
    .hero-section {
      padding-top: 8rem; /* Adjust hero padding on mobile */
      padding-bottom: 6rem;
    }
    .hero-content {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }
    .main-title {
      font-size: 2.3rem; /* Smaller title on mobile */
    }
    .subtitle {
      font-size: 1.1rem; /* Smaller subtitle on mobile */
    }
    .nav-links {
      display: none; /* Hide desktop nav on mobile */
    }
    .hamburger-menu {
      display: block; /* Show hamburger menu on mobile */
    }
    .about-section,
    .services-section,
    .portfolio-section,
    .testimonials-section,
    .cta-section,
    .site-footer {
      padding-left: 1.5rem; /* Adjust section padding on mobile */
      padding-right: 1.5rem;
    }
    .service-cards {
      grid-template-columns: 1fr; /* Stack service cards on mobile */
    }
    .testimonials-cards {
      grid-template-columns: 1fr; /* Stack testimonial cards on mobile */
    }
  }
