/* ============================================
   AITC — Artificial Intelligence CloudTech
   Bright & Vibrant Style
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Primary palette — vibrant gradient */
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #4834D4;
  --accent: #00D2D3;
  --accent-light: #55EFC4;
  --accent-warm: #FD79A8;

  /* Bright background palette */
  --bg: #FFFFFF;
  --bg-alt: #F8F9FE;
  --bg-dark: #1A1A2E;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Text */
  --text: #2D3436;
  --text-light: #636E72;
  --text-inverse: #FFFFFF;

  /* Misc */
  --border: #E8E8F0;
  --shadow: 0 4px 24px rgba(108, 92, 231, 0.10);
  --shadow-lg: 0 12px 40px rgba(108, 92, 231, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Font */
  --font: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}
.btn-outline {
  background: transparent;
  color: var(--text-inverse);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* =====================
   NAVIGATION
   ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  padding: 10px 0;
}
.navbar.scrolled .logo-text,
.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }
.navbar.scrolled .lang-btn { color: var(--primary); border-color: var(--primary); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.5rem;
}
.logo-icon { font-size: 1.6rem; }
.logo-text { color: var(--text-inverse); transition: var(--transition); }
.navbar.scrolled .logo-text { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }

.lang-btn {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font);
}
.lang-btn:hover { background: rgba(255,255,255,0.15); }

/* Nav Toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6C5CE7 0%, #a855f7 30%, #00D2D3 70%, #55EFC4 100%);
  animation: gradientShift 8s ease-in-out infinite alternate;
}
@keyframes gradientShift {
  0% { background: linear-gradient(135deg, #6C5CE7 0%, #a855f7 30%, #00D2D3 70%, #55EFC4 100%); }
  50% { background: linear-gradient(135deg, #4834D4 0%, #FD79A8 40%, #6C5CE7 70%, #00D2D3 100%); }
  100% { background: linear-gradient(135deg, #00D2D3 0%, #6C5CE7 40%, #a855f7 70%, #FD79A8 100%); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-inverse);
  padding: 120px 0 80px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.15);
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 400;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-icon { font-size: 2.2rem; }
.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
  font-weight: 500;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* =====================
   SECTIONS (common)
   ===================== */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}

/* =====================
   ABOUT
   ===================== */
.about { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.about-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.about-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}
.about-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.about-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =====================
   SERVICES
   ===================== */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Featured card */
.service-card.featured {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-inverse);
  border: none;
}
.service-card.featured .service-icon { color: var(--text-inverse); }
.service-card.featured h3 { color: var(--text-inverse); }
.service-card.featured p { color: rgba(255,255,255,0.85); }
.service-card.featured .service-tags li {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.service-icon-wrap { margin-bottom: 24px; }
.service-icon {
  width: 56px;
  height: 56px;
  color: var(--primary);
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.service-tags li {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* =====================
   VISION
   ===================== */
.vision { background: var(--bg-alt); }
.vision-content { max-width: 900px; margin: 0 auto; }
.vision-statement {
  text-align: center;
  margin-bottom: 50px;
}
.vision-statement blockquote {
  position: relative;
  padding: 40px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
}
.vision-statement blockquote p {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.5;
}

.vision-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.pillar {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-icon { font-size: 2rem; margin-bottom: 12px; }
.pillar h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.pillar p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* =====================
   CONTACT
   ===================== */
.contact { background: var(--bg); }
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
  stroke: #fff;
}
.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact-item a,
.contact-item p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}
.contact-item a:hover { color: var(--primary); }

.contact-cta {
  background: var(--bg-alt);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
}
.contact-cta p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-brand .logo-icon { font-size: 1.4rem; }
.footer-brand .logo-text {
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}
.footer-brand p {
  width: 100%;
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 4px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.5;
}

/* =====================
   ANIMATIONS
   ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Floating particles */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  animation: float linear infinite;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 20px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: var(--transition);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
  .nav-links a:hover { color: var(--primary) !important; }
  .lang-btn { color: var(--primary) !important; border-color: var(--primary) !important; }

  .hero-content { padding: 100px 0 60px; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-number { font-size: 1.6rem; }

  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .contact-content { grid-template-columns: 1fr; gap: 32px; }
  .vision-pillars { grid-template-columns: 1fr 1fr; }

  .section { padding: 60px 0; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .vision-pillars { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
