/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Serif TC", "Noto Sans TC", sans-serif;
  line-height: 1.8;
  color: #1a1a1a;
  scroll-behavior: smooth;
  background-color: #fafaf8;
}

/* Top Bar */
.top-bar {
  background-color: #8b0000;
  color: #fff8dc;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 248, 220, 0.2);
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: right;
}

.top-bar-link {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s;
}

.top-bar-link:hover {
  color: #ecf0f1;
}

.top-bar-link i {
  margin-right: 5px;
}

/* Navbar */
.navbar {
  background-color: white;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: #8b0000;
  transition: transform 0.3s;
  font-family: "Noto Serif TC", serif;
  letter-spacing: 1px;
}

.logo:hover {
  transform: scale(1.05);
}

.logo .icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: #fff;
  text-align: center;
  line-height: 32px;
  border-radius: 50%;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 20px;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #007bff;
  display: inline-block;
}

.dropdown .dropbtn {
  display: flex;
  align-items: center;
}

.dropdown .dropbtn i {
  margin-left: 5px;
  font-size: 12px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 150px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  display: block;
  padding: 12px 15px;
  color: #555;
  font-size: 14px;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f5f7fa;
  color: #007bff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.social-icons a {
  margin: 0 12px;
  color: #007bff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #0056b3;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

.underline {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  margin: 0 auto 50px;
  border-radius: 2px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.services h2 {
  font-size: 30px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.service-item {
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hexagon {
  position: relative;
  width: 80px;
  height: 92px;
  background: linear-gradient(135deg, #4a90e2, #357abd);
  margin: 0 auto 25px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-item:hover .hexagon {
  transform: rotate(15deg);
}

.hexagon i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 28px;
}

.service-item h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.service-item p {
  font-size: 15px;
  color: #777;
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-item button {
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s;
}

.service-item button:hover {
  background: linear-gradient(90deg, #0056b3, #003d82);
  transform: scale(1.05);
}

.banner {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff8dc;
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.banner-text h1 {
  font-family: "Noto Serif TC", serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 4px;
}

.banner-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.banner-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
}

.banner-features i {
  color: #ffd700;
}

.banner-description {
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.video-section {
  position: relative;
  padding: 5px 0;
}

.video-background {
  background: url("your-path") no-repeat center center/cover;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-content {
  text-align: center;
  color: #fff;
}


.image-section {
  position: relative;
  padding: 5px 0;
}

.image-background {
  background: url("your-path") no-repeat center center/cover;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-content {
  text-align: center;
  color: #fff;
}

.trust-section {
  padding: 80px 0;
  background: linear-gradient(to bottom, #fff8dc, #fff);
  border-top: 2px solid rgba(139, 0, 0, 0.1);
  border-bottom: 2px solid rgba(139, 0, 0, 0.1);
}

.trust-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.trust-item {
  text-align: center;
  padding: 40px 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(139, 0, 0, 0.1);
}

.trust-item:hover {
  transform: translateY(-10px);
}

.trust-item i {
  font-size: 3rem;
  color: #8b0000;
  margin-bottom: 20px;
}

.trust-item h3 {
  font-family: "Noto Serif TC", serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.trust-item p {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
}

.resources {
  padding: 60px 20px;
  background: #fff;
}

.resources-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.resources-columns {
  display: flex;
  gap: 20px;
}

.resources-columns a {
  text-decoration: none;
}

.resources-column {
  flex: 1;
}

.resources-column h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  font-weight: 600;
}

.resources-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resource-image {
  max-width: 30rem;
  border-radius: 30px;
  object-fit: cover;
}

.resource-image-placeholder {
  width: 8px;
  height: 8px;
  background: #007bff;
  border-radius: 50%;
}

.resource-text {
  font-size: 16px;
  color: #555;
}

.column-items {
  display: flex;
  gap: 15px;
  padding-bottom: 5rem;
}

/* Footer Styles */
.footer {
  background: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer p {
  font-size: 14px;
}

.footer-social a {
  margin: 0 10px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: #007bff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .resources-features-row {
    flex-direction: column;
  }

  .resources-column,
  .features-column {
    flex: 100%;
  }
}

@media (max-width: 768px) {
  /* Navbar Responsive */
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: #f9f9f9;
  }

  .social-icons {
    display: none;
  }

  .resource-items {
    gap: 10px;
  }

  .trust-container {
    grid-template-columns: 1fr;
  }

  /* What We Do Responsive */
  .services-container {
    grid-template-columns: 1fr;
  }

  .what-we-do h2 {
    font-size: 32px;
  }

  /* Resources Responsive */
  .resources-column {
    flex: 100%;
  }

  .resources-columns {
    display: inline-block;
  }

  /* Features Responsive */
  .card {
    border-radius: 12px;
  }

  .card-header {
    padding: 1.25rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .feature-item {
    padding: 0.75rem;
  }

  .number-container {
    width: 36px;
    height: 36px;
  }

  .number-bg {
    width: 36px;
    height: 36px;
  }

  .number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .feature-text {
    font-size: 0.95rem;
  }

  .form-container {
    flex-direction: column;
  }
}

.fixed-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-icon:hover {
  fill: white;
}

.contact-section h2 {
  font-size: 30px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.contact-description {
  font-size: 20px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.buttons-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 44px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
  color: white;
}

.call-button {
  color: #2196f3;
  border: 1px solid #ccc;
  background-color: transparent;
}

.call-button:hover {
  color: white;
  transform: translateY(-2px);
  background-color: #2196f3;
}

.line-button {
  color: #06c755;
  border: 1px solid #ccc;
  background-color: transparent;
}

.line-button:hover {
  color: white;
  transform: translateY(-2px);
  background-color: #06c755;
}

.button-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  fill: white;
}

/* Process Section Styles */
.process {
  padding: 60px 20px;
  text-align: center;
}

.process h2 {
  font-size: 30px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.process-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.process-steps {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.process-step {
  flex: 1;
  min-width: 250px;
  padding: 30px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.step-number {
  width: 50px;
  height: 50px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
  margin: 0 auto;
}

.process-step h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 1rem;
  color: #666;
}

/* Advantages Section Styles */
.advantages {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.advantages h2 {
  font-size: 30px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.advantages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advantage-item {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.advantage-number {
  width: 40px;
  height: 40px;
  background: #28a745;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
  margin: 0 auto;
}

.advantage-item p {
  font-size: 1rem;
  color: #555;
  margin: 5px 0;
}
