:root {
  --primary-blue: #2196f3;
  --primary-blue-dark: #1976d2;
  --primary-green: #43a047;
  --primary-green-dark: #2e7d32;

  /* Bright Theme Colors */
  --bg-color: #f0f4f8;
  --bg-gradient: linear-gradient(135deg, #e0f7fa 0%, #e8eaf6 100%);

  --text-main: #334155;
  --text-secondary: #64748b;
  --text-light: #f8fafc;
  /* For buttons or dark backgrounds */

  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

  --font-main: 'Noto Sans TC', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-gradient);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Background Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
}

.shape-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-blue), transparent 70%);
  animation: float 20s infinite ease-in-out;
  position: fixed;
  /* Stop affecting scroll layout */
}

.shape-2 {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--primary-green), transparent 70%);
  animation: float 15s infinite ease-in-out reverse;
  position: fixed;
  /* Stop affecting scroll layout */
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(30px, 50px);
  }
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0;
  font-weight: 700;
}

.highlight-blue {
  color: var(--primary-blue);
  text-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
}

.highlight-green {
  color: var(--primary-green);
  text-shadow: 0 0 20px rgba(67, 160, 71, 0.5);
}

.blue-text {
  color: var(--primary-blue);
}

.green-text {
  color: var(--primary-green);
}

/* Layout */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
  width: 100%;
  /* Ensure it takes full width within container */
}

section {
  margin-bottom: 6rem;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.title-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.main-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

.hero-avatars {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}

.avatar-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.05);
}

.blue-glow {
  box-shadow: 0 0 40px rgba(33, 150, 243, 0.3);
}

.green-glow {
  box-shadow: 0 0 40px rgba(67, 160, 71, 0.3);
}

/* Buttons */
.btn-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
  color: white;
  border: 1px solid transparent;
}

.blue-btn {
  background: var(--primary-blue);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.blue-btn:hover {
  background: var(--primary-blue-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.6);
}

.green-btn {
  background: var(--primary-green);
  box-shadow: 0 4px 15px rgba(67, 160, 71, 0.4);
}

.green-btn:hover {
  background: var(--primary-green-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(67, 160, 71, 0.6);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  color: var(--text-light);
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Feature Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--glass-shadow);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Bot Details Section */
.bot-details-section {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.bot-block {
  background: rgba(255, 255, 255, 0.7);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.08);
}

.section-desc {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.command-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.command-item {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.command-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.cmd-trigger {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
  background: rgba(33, 150, 243, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

/* Command Grid for second bot */
.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.cmd-card {
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.cmd-card code {
  display: block;
  background: rgba(255, 255, 255, 0.8);
  color: var(--primary-green);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 1.1em;
  margin-bottom: 0.5rem;
  border: 1px solid #e2e8f0;
}

.image-showcase {
  text-align: center;
  margin-top: 2rem;
}

.feature-img-styled {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--card-border);
}

.img-caption {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
}

/* Team Section */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.team-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  width: 250px;
  text-align: center;
  border: 1px solid var(--card-border);
  box-shadow: var(--glass-shadow);
}

.member-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: #94a3b8;
}

.role {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
}

.blue-tag {
  color: var(--primary-blue);
  background: rgba(33, 150, 243, 0.1);
}

.green-tag {
  color: var(--primary-green);
  background: rgba(67, 160, 71, 0.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0 1rem 0;
  /* Reduced bottom padding */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: auto;
  /* Ensure it stays at bottom in flex container */
}

footer p {
  margin: 0;
}

/* Footer Buttons */
.footer-btn-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2em 0;
  flex-wrap: wrap;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2em;
  border-radius: 50px;
  background: white;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.footer-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .hero-avatars {
    gap: 1.5rem;
  }

  .avatar-wrapper {
    width: 120px;
    height: 120px;
  }

  .btn-row {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .bot-block {
    padding: 1.5rem;
  }

  .footer-btn-row {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .footer-btn {
    width: 100%;
    text-align: center;
    max-width: 250px;
  }
}
