:root {
  --primary-color: #4f46e5; /* Indigo */
  --secondary-color: #10b981; /* Emerald */
  --text-color: #1f2937; /* Cool Gray 800 */
  --light-text-color: #f9fafb; /* Cool Gray 50 */
  --bg-color: #f9fafb;
  --card-bg: #ffffff;
  --font-primary: "Poppins", "Noto Sans TC", sans-serif;
  --font-secondary: "Noto Sans TC", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-secondary);
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  background-image: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    #7c3aed 100%
  ); /* Violet */
  z-index: -1;
  top: 0;
  left: 0;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text-color);
  position: relative; /* For scroll indicator positioning */
}

.hero-content {
  opacity: 0; /* Initial state for GSAP */
  transform: translateY(30px);
}

.main-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.main-title span {
  display: inline-block; /* For GSAP stagger */
  opacity: 0;
  transform: translateY(20px) scale(0.8);
}

.main-title .highlight {
  color: var(--secondary-color);
  /* text-shadow: 0 0 10px var(--secondary-color); */
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 300;
  margin-bottom: 2em;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
}

.cta-buttons .btn {
  padding: 0.8em 1.8em;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  margin: 0 0.5em;
  transition: all 0.3s ease;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  border: 2px solid var(--secondary-color);
}
.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
}
.btn-secondary:hover {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  opacity: 0;
}
.scroll-indicator span {
  display: block;
  width: 1px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  margin: 0 auto 5px;
  animation: scroll-anim 1.5s infinite ease-out;
}

@keyframes scroll-anim {
  0% {
    transform: translateY(-5px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(5px);
    opacity: 0;
  }
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
}

/* Data Glance Section */
.section-data-glance {
  background: #111;
  padding: 30px 0;
}

.data-visuals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}
.feature-card {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}
.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji", sans-serif;
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.feature-desc {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.mini-chart {
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  margin-top: 15px;
  padding: 0 10px;
}
.mini-chart .bar {
  background-color: #ef4444;
  width: 18%;
  border-radius: 3px 3px 0 0;
  height: 0%; /* Initial state for GSAP */
  opacity: 0;
}

/* Flow Section */
.section-flow {
  background-color: #e0e7ff; /* Indigo 100 */
  padding: 80px 0;
}
.section-flow .section-title {
  color: var(--primary-color);
}

.flow-diagram {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}
.flow-step,
.flow-arrow {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  padding: 15px 25px;
  border-radius: 8px;
  margin: 10px;
  opacity: 0; /* Initial state for GSAP */
  transform: scale(0.5);
}
.flow-step {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}
.flow-arrow {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: bold;
}

/* Final CTA Section */
.section-final-cta {
  background-color: var(--text-color);
  color: var(--light-text-color);
  padding: 80px 0;
  text-align: center;
}
.section-final-cta .section-title {
  color: var(--light-text-color);
}
.section-final-cta p {
  font-size: 1.1rem;
  margin-bottom: 2em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
}
.section-final-cta .btn-large {
  padding: 1em 2.5em;
  font-size: 1.1rem;
  opacity: 0;
  transform: scale(0.8);
}
.stats-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
/* Footer */
footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background-color: var(--bg-color);
  color: #6b7280;
}

@media (max-width: 768px) {
  .flow-diagram {
    flex-direction: column;
  }
  .flow-arrow {
    transform: rotate(90deg) scale(0.5) !important; /* Ensure !important if GSAP sets it */
    margin: 5px 0;
  }
}
