/*
 * CoTranslator - Global Styles
 * ===========================
 * Consolidated CSS for the entire site
 * Works alongside Tailwind CSS v4
 */

/* Local Outfit Font */
@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-primary: 'Outfit', system-ui, sans-serif;
}

/* Apply the primary font to body */
body {
  font-family: var(--font-primary);
}

 .layout{
  width: 90%;
  max-width: 1220px;
  margin: auto;
 }

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* ============================================
   SMOOTH SCROLL
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   GRADIENTS
   ============================================ */
.gradient-bg {
  background: linear-gradient(to right, #325DEB, #713FED);
}

.gradient-bg-diagonal {
  background: linear-gradient(135deg, #325DEB 0%, #713FED 100%);
}

.gradient-text {
  background: linear-gradient(to right, #325DEB, #713FED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #325DEB, #713FED) border-box;
  border: 2px solid transparent;
}

/* ============================================
   BUTTONS - PILLOW STYLE (rounded-full)
   ============================================ */
.btn-primary {
  background: linear-gradient(to right, #325DEB, #713FED);
  color: white;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(50, 93, 235, 0.5);
}

.btn-secondary {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #F9FAFB;
  border-color: #D1D5DB;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid #E5E7EB;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #325DEB;
  color: #325DEB;
}

/* ============================================
   CARD EFFECTS
   ============================================ */
.hover-lift {
  transition: all 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(50, 93, 235, 0.15);
}

.bento-card {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bento-card > h3,
.bento-card > p {
  text-align: center;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(50, 93, 235, 0.15);
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 5s ease-in-out infinite;
  animation-delay: 1.5s;
}

.animate-float-delayed-2 {
  animation: float 5s ease-in-out infinite;
  animation-delay: 3s;
}

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.02); }
}

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

/* Scroll indicator */
@keyframes scroll-line {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.5; }
  100% { transform: translateY(0); opacity: 1; }
}

.animate-scroll {
  animation: scroll-line 2s ease-in-out infinite;
}

/* Fade in up */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-gradient {
  background: linear-gradient(135deg, #325DEB 0%, #713FED 100%);
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline-line {
  background: linear-gradient(to bottom, #325DEB, #713FED);
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-top: 0;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-trigger {
  cursor: pointer;
}

.faq-item .faq-trigger span {
  font-size: 1.125rem; /* text-lg */
}

.faq-item .faq-answer p {
  font-size: 1rem; /* text-base */
  line-height: 1.75;
}

/* ============================================
   FORMAT SELECTOR BUTTONS
   ============================================ */
.format-btn.active {
  border-color: #325DEB !important;
}

.format-btn.active .w-10 {
  background: #325DEB !important;
}

.format-btn.active .w-10 i {
  color: white !important;
}

/* ============================================
   VIDEO CONTAINER
   ============================================ */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   INPUT FIELDS
   ============================================ */
.input-field {
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #325DEB;
  box-shadow: 0 0 0 3px rgba(50, 93, 235, 0.1);
  outline: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, #325DEB, #713FED);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  /* width: 100%; */
}

/* ============================================
   LANGUAGE BADGE (EN / 中文 with gradient)
   ============================================ */
.lang-badge {
  background: linear-gradient(135deg, rgba(50, 93, 235, 0.1), rgba(113, 63, 237, 0.1));
  border: 1px solid rgba(50, 93, 235, 0.2);
}

.lang-badge-text {
  background: linear-gradient(to right, #325DEB, #713FED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   SLIDER DOTS
   ============================================ */
.slider-dot {
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: #325DEB;
  width: 24px;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 1024px) {
  .glass-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ============================================
   SIGNIN PAGE SPECIFIC
   ============================================ */
.signin-split-left {
  background: linear-gradient(135deg, #325DEB 0%, #713FED 100%);
}

.signin-pattern {
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

/* ============================================
   SCROLL PROGRESS BAR (optional)
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #325DEB, #713FED);
  z-index: 9999;
  transition: width 0.1s ease;
}
