/* ============================================
   code1to1 — Custom Styles
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0A0A0F;
  --bg-surface: #12121A;
  --bg-elevated: #1A1A2E;
  --text-primary: #F0F0F5;
  --text-secondary: #9898B0;
  --accent-indigo: #6366F1;
  --accent-cyan: #22D3EE;
  --accent-violet: #A855F7;
  --accent-emerald: #10B981;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-violet {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gradient Buttons --- */
.btn-gradient {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet));
  background-size: 200% 200%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gradient:hover {
  background-position: 100% 100%;
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(99, 102, 241, 0.5);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.05);
}

/* --- Navigation --- */
.nav-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(10, 10, 15, 0.8);
}

.nav-transparent {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* --- Hero Glow --- */
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Hero Floating Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(10px) rotate(-1.5deg); }
  66% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes dash-draw {
  to { stroke-dashoffset: 0; }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 10s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 4s ease-in-out infinite;
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

/* --- Service Cards --- */
.service-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
  transform: translateY(-4px);
}

.service-card .icon-wrapper {
  transition: all 0.4s ease;
}

.service-card:hover .icon-wrapper {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

/* --- AI Section Background --- */
.ai-section-bg {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
}

.ai-grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- AI Feature Cards --- */
.ai-feature-card {
  background: linear-gradient(135deg, rgba(18, 18, 26, 0.8), rgba(26, 26, 46, 0.5));
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all 0.4s ease;
}

.ai-feature-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 40px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

/* --- Process Timeline --- */
.timeline-line {
  background: linear-gradient(to right, var(--accent-indigo), var(--accent-violet));
  height: 2px;
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 0;
}

.timeline-line-vertical {
  background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-violet));
  width: 2px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 24px;
  z-index: 0;
}

.timeline-step-number {
  background: var(--bg-primary);
  border: 2px solid var(--accent-indigo);
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-step-number {
  background: var(--accent-indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* --- Stats --- */
.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

/* --- Contact Form --- */
.form-input {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input::placeholder {
  color: var(--text-secondary);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Section Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.3), transparent);
}

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

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

/* --- Dot Pattern (for decorative backgrounds) --- */
.dot-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
