/* ===== UGC 21tab — Custom CSS (3D, Glass, Glow, Animations) ===== */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #000000;
  --purple-50: #f5f3ff;
  --purple-100: #ede9fe;
  --purple-200: #ddd6fe;
  --purple-300: #c4b5fd;
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;
  --purple-900: #4c1d95;
  --glass-bg: rgba(139, 92, 246, 0.06);
  --glass-bg-hover: rgba(139, 92, 246, 0.12);
  --glass-border: rgba(139, 92, 246, 0.15);
  --glass-border-hover: rgba(139, 92, 246, 0.35);
  --glow-sm: 0 0 20px rgba(139, 92, 246, 0.15);
  --glow-md: 0 0 40px rgba(139, 92, 246, 0.2);
  --glow-lg: 0 0 80px rgba(139, 92, 246, 0.25);
  --glow-xl: 0 0 120px rgba(139, 92, 246, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 40px rgba(139, 92, 246, 0.08);
  --shadow-card-hover: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.2);
}

/* ---------- Base Resets ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--purple-600) #111;
}

body {
  background: var(--bg-primary);
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--purple-600);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb {
  background: var(--purple-700);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--purple-500); }

/* ---------- Glassmorphism ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

/* ---------- Glow Effects ---------- */
.glow-text {
  text-shadow: 0 0 20px rgba(139, 92, 246, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.glow-btn {
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.15);
  transition: all 0.3s ease;
}

.glow-btn:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 0 60px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}

.glow-border {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.15), inset 0 0 15px rgba(139, 92, 246, 0.05);
}

/* ---------- Purple Gradient Buttons ---------- */
.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: #fff;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--purple-500), var(--purple-400));
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-300);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--glass-border-hover);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--purple-400);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 12px 0;
}

.nav-link {
  position: relative;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-500), var(--purple-300));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

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

/* ---------- Hero Background Effects ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
}

.hero-bg-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-600), transparent 70%);
  top: -200px;
  right: -200px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero-bg-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--purple-800), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero-bg-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--purple-500), transparent 70%);
  top: 40%;
  left: 50%;
  animation: orbFloat3 12s ease-in-out infinite;
}

/* ---------- 3D Floating Shapes ---------- */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1000px;
  will-change: transform;
}

.shape {
  position: absolute;
  opacity: 0.15;
  will-change: transform;
  transform: translateZ(0);
}

/* 3D Cube */
.cube-3d {
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  animation: cubeRotate 15s linear infinite;
}

.cube-face {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--purple-400);
  background: rgba(139, 92, 246, 0.05);
}

.cube-face-front  { transform: translateZ(30px); }
.cube-face-back   { transform: rotateY(180deg) translateZ(30px); }
.cube-face-right  { transform: rotateY(90deg) translateZ(30px); }
.cube-face-left   { transform: rotateY(-90deg) translateZ(30px); }
.cube-face-top    { transform: rotateX(90deg) translateZ(30px); }
.cube-face-bottom { transform: rotateX(-90deg) translateZ(30px); }

/* 3D Ring */
.ring-3d {
  width: 80px;
  height: 80px;
  border: 3px solid var(--purple-400);
  border-radius: 50%;
  animation: ringFloat 8s ease-in-out infinite;
}

/* 3D Pyramid */
.pyramid-3d {
  width: 0;
  height: 0;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(139, 92, 246, 0.15);
  animation: pyramidFloat 10s ease-in-out infinite;
}

/* Small dots */
.dot-3d {
  width: 8px;
  height: 8px;
  background: var(--purple-400);
  border-radius: 50%;
  animation: dotPulse 3s ease-in-out infinite;
}

/* ---------- 3D Card Tilt ---------- */
.tilt-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.1s ease-out;
}

.tilt-card-inner {
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.tilt-card:hover .tilt-card-inner {
  transform: translateZ(20px);
}

/* ---------- Service Icon 3D ---------- */
.service-icon-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
  transition: all 0.4s ease;
}

.glass-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(139, 92, 246, 0.1));
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.2);
  transform: rotateY(10deg) scale(1.05);
}

/* ---------- Process Timeline ---------- */
.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--purple-600), var(--purple-600), transparent);
  transform: translateX(-50%);
}

.process-step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ---------- Stats Counter ---------- */
.stat-card {
  text-align: center;
  padding: 32px 24px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-300), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  background: var(--glass-bg);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--glass-border-hover);
}

.faq-question {
  width: 100%;
  padding: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Inter', sans-serif;
}

.faq-question:hover { color: var(--purple-300); }

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

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

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

.faq-answer-inner {
  padding: 0 24px 24px;
  color: #a1a1aa;
  line-height: 1.7;
}

/* ---------- Contact Form ---------- */
.form-group label {
  display: block;
  color: var(--purple-300);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
  background: rgba(139, 92, 246, 0.04);
}

.form-input::placeholder {
  color: #52525b;
}

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

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

.form-input.error + .form-error { display: block; }

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-custom.checked {
  background: var(--purple-600);
  border-color: var(--purple-500);
}

/* ---------- Sticky CTA Banner ---------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 16px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  will-change: transform;
}

.sticky-cta.visible { transform: translateY(0); }

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mobile-menu a:hover { color: var(--purple-400); }

/* ---------- Brand Logo Placeholder ---------- */
.brand-logo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple-400);
  box-shadow: var(--glow-md);
}

/* ---------- Loading Spinner ---------- */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ---------- Toast Notification ---------- */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 2000;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #4ade80;
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* ---------- Section Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Gradient text ---------- */
.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--purple-300) 50%, var(--purple-500) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, var(--purple-300), var(--purple-500));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Section Divider ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

/* ---------- Keyframe Animations ---------- */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-30px, 20px) scale(1.05); }
  66% { transform: translate(20px, -15px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(-50px, 30px) scale(1.15); opacity: 0.5; }
}

@keyframes cubeRotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

@keyframes ringFloat {
  0%, 100% { transform: translateY(0) rotateX(60deg) rotateZ(0deg); }
  50% { transform: translateY(-20px) rotateX(60deg) rotateZ(180deg); }
}

@keyframes pyramidFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(15deg); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.3); }
  50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---------- Legal Page Styles ---------- */
.legal-page h2 {
  color: var(--purple-300);
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
}

.legal-page h3 {
  color: var(--purple-400);
  font-size: 1.15rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  color: #a1a1aa;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul { list-style: none; padding: 0; }
.legal-page ul li { padding-left: 24px; position: relative; }
.legal-page ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-bg-orb-1 { width: 300px; height: 300px; top: -100px; right: -100px; }
  .hero-bg-orb-2 { width: 200px; height: 200px; }
  .hero-bg-orb-3 { width: 150px; height: 150px; }

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

  .process-line { left: 28px; }

  .floating-shapes { display: none; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
