/* ============================================
   WEPOKER 微扑克 - Custom Styles
   ============================================ */

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* ============================================
   Custom Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
  }
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(60px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* Initially hidden for scroll animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Navbar Styles
   ============================================ */

.navbar {
  transition: all 0.3s ease;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled .nav-link {
  color: #1f2937 !important;
}

.navbar.scrolled .brand-text {
  color: #4f46e5 !important;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #4f46e5;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu.active {
  max-height: 500px;
  opacity: 1;
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.navbar.scrolled .hamburger span {
  background-color: #1f2937;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   Card Hover Effects
   ============================================ */

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-card {
  transition: all 0.35s ease;
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.15);
  border-color: rgba(79, 70, 229, 0.2);
}

.feature-card:hover .feature-icon {
  transform: scale(1.15);
  background-color: #4f46e5;
  color: #fff;
}

.feature-icon {
  transition: all 0.35s ease;
}

/* Testimonial Card */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Gradient Overlays
   ============================================ */

.gradient-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4f46e5 70%, #6366f1 100%);
}

.gradient-indigo {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
}

.gradient-dark {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f0d2e 100%);
}

.gradient-overlay {
  position: relative;
}

.gradient-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 13, 46, 0.7) 0%, rgba(79, 70, 229, 0.3) 100%);
  z-index: 1;
}

/* ============================================
   FAQ Accordion Styles
   ============================================ */

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.faq-item:hover {
  border-color: #c7d2fe;
}

.faq-item.active {
  border-color: #4f46e5;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.1);
}

.faq-question {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
  background: #fff;
  user-select: none;
}

.faq-question:hover {
  background: #f9fafb;
}

.faq-item.active .faq-question {
  color: #4f46e5;
  background: #f5f3ff;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #4f46e5;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #fff;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 24px 20px;
  color: #4b5563;
  line-height: 1.8;
}

/* ============================================
   Form Styles
   ============================================ */

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  color: #1f2937;
  background: #fff;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-error-message {
  color: #ef4444;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.form-error-message.show {
  display: block;
}

/* ============================================
   Button Styles
   ============================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.45);
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: #4f46e5;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid #4f46e5;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #4f46e5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #fff;
  color: #4f46e5;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: #fff;
  color: #4f46e5;
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   Stats Counter
   ============================================ */

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Hero Image Container
   ============================================ */

.hero-image-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
  pointer-events: none;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* ============================================
   Team Member Cards
   ============================================ */

.team-card {
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.team-card:hover .team-avatar img {
  transform: scale(1.1);
}

.team-avatar img {
  transition: transform 0.5s ease;
}

/* ============================================
   Contact Info Cards
   ============================================ */

.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.contact-info-card:hover .contact-icon {
  background-color: #4f46e5;
  color: #fff;
}

.contact-icon {
  transition: all 0.3s ease;
}

/* ============================================
   Values Section
   ============================================ */

.value-card {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.value-card:hover {
  border-left-color: #4f46e5;
  transform: translateX(6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ============================================
   About Page Timeline
   ============================================ */

.timeline-item {
  position: relative;
  padding-left: 36px;
  padding-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(180deg, #4f46e5 0%, #e5e7eb 100%);
}

.timeline-item:last-child::after {
  display: none;
}

/* ============================================
   Map Placeholder
   ============================================ */

.map-placeholder {
  background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 50%, #ede9fe 100%);
  border: 2px dashed #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 250px;
  border-radius: 16px;
}

/* ============================================
   Loading / Toast
   ============================================ */

.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.4s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
  transform: translateX(0);
}

.toast.success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.toast.error {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

/* ============================================
   Responsive Tweaks
   ============================================ */

@media (max-width: 768px) {
  .hero-image-wrapper {
    margin-top: 32px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 15px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-white {
    padding: 12px 24px;
    font-size: 15px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .feature-card {
    padding: 20px 16px;
  }

  .testimonial-card {
    padding: 20px 16px;
  }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .navbar,
  .mobile-menu,
  .footer {
    display: none;
  }
}
