/* ===== SIIIM — Custom Styles ===== */

:root {
  --color-primary: #5C63EC;
  --color-primary-dark: #3D45C9;
  --color-primary-light: #7B81F0;
  --color-accent: #C8E84C;
  --color-accent-dark: #B5D43A;
  --color-bg-light: #F5F6FB;
  --color-bg-cream: #FAFAFD;
  --color-bg-dark: #0F1117;
  --color-text: #1A1D2B;
  --color-text-secondary: #6B7094;
  --color-success: #22C55E;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-border: rgba(92, 99, 236, 0.08);
}

html {
  scroll-behavior: smooth;
}

.font-inter {
  font-family: 'Inter', sans-serif;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-syne {
  font-family: 'Inter', sans-serif;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent highlight (lime background tag) */
.accent-highlight {
  background: var(--color-accent);
  color: var(--color-text);
  padding: 2px 12px;
  border-radius: 6px;
  display: inline;
  -webkit-text-fill-color: var(--color-text);
}

/* Gradient backgrounds */
.gradient-bg {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.gradient-bg-subtle {
  background: linear-gradient(135deg, rgba(92, 99, 236, 0.04) 0%, rgba(61, 69, 201, 0.07) 100%);
}

/* Buttons */
.btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(92, 99, 236, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid rgba(26, 29, 43, 0.15);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.btn-ghost:hover {
  background: rgba(92, 99, 236, 0.06);
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  border: 1px solid var(--color-border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(92, 99, 236, 0.1);
  border-color: rgba(92, 99, 236, 0.18);
}

.card-flat {
  background: white;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--color-border);
}

/* Service icon containers */
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(92, 99, 236, 0.08);
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-icon.accent {
  background: var(--color-accent);
  color: var(--color-text);
}

/* Stat card */
.stat-card {
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.stat-card.primary {
  background: var(--color-primary);
  color: white;
}

.stat-card.light {
  background: var(--color-bg-light);
  color: var(--color-text);
}

/* Counter */
.counter {
  font-variant-numeric: tabular-nums;
}

/* Navbar */
.navbar {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.navbar a.active,
.navbar a:hover {
  color: var(--color-primary);
}

/* Mobile menu */
.mobile-menu {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.97);
}

/* Chip/Tag */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(92, 99, 236, 0.08);
  color: var(--color-primary);
}

.chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Floating card (hero UI element) */
.float-card {
  background: white;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hero shapes */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  pointer-events: none;
  background: var(--color-primary);
}

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(92, 99, 236, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 99, 236, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Dot pattern */
.dot-pattern {
  background-image: radial-gradient(rgba(92, 99, 236, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Process steps */
.process-step {
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 28px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(92, 99, 236, 0.1));
  pointer-events: none;
}

.process-step:last-child::after {
  display: none;
}

/* Testimonial card */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-quote {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

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

.faq-item.active {
  border-color: rgba(92, 99, 236, 0.2);
  box-shadow: 0 4px 20px rgba(92, 99, 236, 0.06);
}

.faq-question {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.2s;
}

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

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-icon {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

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

/* Form styles */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(92, 99, 236, 0.1);
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(92, 99, 236, 0.08);
}

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

/* Form label */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

/* Prose (blog content) */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.prose p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--color-primary-dark);
}

.prose img {
  border-radius: 12px;
  margin: 2rem 0;
}

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.25rem;
  margin: 2rem 0;
  color: var(--color-text);
  font-style: italic;
}

.prose code {
  background: rgba(92, 99, 236, 0.06);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

.prose pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.prose-lg p {
  font-size: 1.125rem;
}

/* Status badges */
.badge-active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
}

.badge-completed {
  background: rgba(92, 99, 236, 0.1);
  color: var(--color-primary);
}

/* Client logos row */
.clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.client-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: rgba(26, 29, 43, 0.2);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

.client-logo:hover {
  color: rgba(26, 29, 43, 0.45);
}

/* Arrow link icon */
.arrow-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--color-text);
}

.arrow-link:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(200, 232, 76, 0.4);
}

/* Focus-visible for keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: width 0.25s ease, left 0.25s ease;
}

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

/* Arrow slide on hover (use inside group) */
.arrow-slide {
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .arrow-slide,
a:hover .arrow-slide {
  transform: translateX(4px);
}

/* Button press feedback */
.press {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.press:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Card lift on hover */
.card-lift {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
}

/* Social icon bounce */
.social-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
  transform: translateY(-2px) scale(1.08);
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: none; }

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

/* Pulse glow */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(92, 99, 236, 0.15); }
  50% { box-shadow: 0 0 40px rgba(92, 99, 236, 0.3); }
}

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

/* Marquee infinite scroll */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee {
  animation: marquee 25s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--color-text);
  color: white;
  font-size: 0.875rem;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Portfolio filter */
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
}

.filter-btn:hover {
  color: var(--color-primary);
  background: rgba(92, 99, 236, 0.05);
}

.filter-btn.active {
  color: var(--color-primary);
  background: rgba(92, 99, 236, 0.1);
  border-color: rgba(92, 99, 236, 0.2);
}

/* Sidebar (dashboard) */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #9CA3AF;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.sidebar-link:hover {
  background: rgba(92, 99, 236, 0.08);
  color: #E5E7EB;
}

.sidebar-link.active {
  background: rgba(92, 99, 236, 0.15);
  color: var(--color-primary);
  font-weight: 500;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
  background: #C4C7D4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-secondary);
}

::selection {
  background: rgba(92, 99, 236, 0.15);
  color: var(--color-text);
}

/* Reduced motion: disable animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .stagger-children > * { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 768px) {
  .process-step::after {
    display: none;
  }
  .hero-blob {
    opacity: 0.03;
  }
  .clients-row {
    gap: 32px;
  }
}

/* Dashboard dark theme */
.dashboard-dark {
  background: #0F1117;
  color: #E5E7EB;
}

.dashboard-dark .card {
  background: #1A1D2B;
  border-color: rgba(92, 99, 236, 0.1);
}

.dashboard-dark .card:hover {
  border-color: rgba(92, 99, 236, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-dark .form-input {
  background: #1A1D2B;
  border-color: rgba(92, 99, 236, 0.15);
  color: #E5E7EB;
}

.dashboard-dark .form-input::placeholder {
  color: #6B7094;
}

.dashboard-dark .form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(92, 99, 236, 0.15);
}
