/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  /* Regular */
}

h1,
h2,
h3 {
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  /* Bold */
}

/* ========================================
   Case Studies Page - Delightful Animations
   ======================================== */

/* Staggered fade-in animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle float animation for decorative elements */
@keyframes gentleFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Pulse animation for live indicator */
@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Underline draw animation for hero headline */
@keyframes drawUnderline {
  from {
    stroke-dashoffset: 200;
  }

  to {
    stroke-dashoffset: 0;
  }
}

/* Apply draw animation to hero underline */
.hero-underline path {
  stroke-dasharray: 200;
  animation: drawUnderline 1s ease-out 0.5s forwards;
}

/* Smooth hover transitions for cards */
.case-study-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Line clamp utility for card descriptions */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #2B5CE7 0%, #9B87FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card accent hover effect */
.card-accent-bar {
  transition: height 0.3s ease;
}

.group:hover .card-accent-bar {
  height: 6px;
}

/* Number counter animation (for stats) */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number {
  animation: countUp 0.6s ease-out forwards;
}

/* Backdrop blur support for older browsers */
@supports not (backdrop-filter: blur(10px)) {
  .backdrop-blur-sm {
    background-color: rgba(255, 255, 255, 0.95);
  }
}

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

/* ========================================
   Standard Content Container
   Narrower than topbar for better readability
   ======================================== */
.content-container {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .content-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .content-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #2B5CE7;
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}