/* ============================================================
   AGENCY THEME - Animations & Interactions
   GSAP + CSS GPU Animations | Premium Motion Design
   ============================================================ */

/* ---- Flash Guard: hidden before JS loads ---- */
html.js-loading .animate-up,
html.js-loading .animate-left,
html.js-loading .animate-right,
html.js-loading .animate-down,
html.js-loading .animate-zoom,
html.js-loading .animate-blur,
html.js-loading .animate-fade {
  opacity: 0 !important;
}
html.js-loading .animate-up { transform: translateY(30px) !important; }
html.js-loading .animate-left { transform: translateX(-40px) !important; }
html.js-loading .animate-right { transform: translateX(40px) !important; }
html.js-loading .animate-down { transform: translateY(-30px) !important; }
html.js-loading .animate-zoom { transform: scale(0.92) !important; }
html.js-loading .animate-blur { filter: blur(6px) !important; }

/* ---- Keyframes ---- */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

@keyframes floatX {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(15px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.03); }
}

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

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 100%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 0%; }
  100% { background-position: 0% 50%; }
}

@keyframes shapeMorph {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 12px var(--color-accent), 0 0 24px rgba(249, 115, 22, 0.2); }
  50% { box-shadow: 0 0 20px var(--color-accent), 0 0 40px rgba(249, 115, 22, 0.4); }
}

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



@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blurIn {
  from { opacity: 0; filter: blur(10px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes textReveal {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes lineExpand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 0.6; }
  50% { transform: translateY(-10px) translateX(-5px); opacity: 0.4; }
  75% { transform: translateY(-30px) translateX(15px); opacity: 0.5; }
}

@keyframes counterUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll Animation Classes ---- */

.animate {
  opacity: 0;
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate.visible {
  opacity: 1;
}

.animate-fade {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade.visible {
  opacity: 1;
}

.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-down.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-zoom {
  opacity: 0;
  transform: scale(0.92);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

.animate-blur {
  opacity: 0;
  filter: blur(6px);
  transition: all 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-blur.visible {
  opacity: 1;
  filter: blur(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.6s; }
.stagger-5 { transition-delay: 0.75s; }
.stagger-6 { transition-delay: 0.9s; }

/* ---- Hero Animations ---- */

.hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary-300);
  top: -10%;
  right: -5%;
  animation: floatSlow 10s ease-in-out infinite;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: var(--color-accent-200);
  bottom: -10%;
  left: -5%;
  animation: floatSlow 12s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.hero-shape-3 {
  width: 300px;
  height: 300px;
  background: var(--color-primary-200);
  top: 40%;
  left: 30%;
  animation: float 8s ease-in-out infinite;
  animation-delay: -2s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary-300);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

/* ---- Floating Elements ---- */
.float-element { animation: float 6s ease-in-out infinite; }
.float-element-slow { animation: floatSlow 8s ease-in-out infinite; }
.float-element-delay { animation-delay: -2s; }
.float-element-delay-2 { animation-delay: -4s; }
.float-element-x { animation: floatX 7s ease-in-out infinite; }

/* ---- Card Hover Effects ---- */

.card-hover-lift {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.card-hover-lift:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
}

.card-hover-glow {
  transition: all 0.4s ease;
}

.card-hover-glow:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.15), 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card-hover-scale {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-hover-scale:hover {
  transform: scale(1.03);
}

/* ---- 3D Tilt Card ---- */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

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

/* ---- Button Effects ---- */

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.7s ease;
}

.btn-shine:hover::before {
  left: 100%;
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ---- Magnetic Button ---- */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Image Effects ---- */

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

.img-overlay {
  position: relative;
  overflow: hidden;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.7) 100%);
  transition: opacity 0.4s ease;
}

.img-overlay:hover::after {
  opacity: 0.9;
}

/* ---- Link Underline Animation ---- */

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-mixed);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-underline:hover::after {
  width: 100%;
}

/* ---- Loading Spinner ---- */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: rotate 0.8s linear infinite;
}

/* ---- Skeleton Loading ---- */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-gray-100) 25%,
    var(--color-gray-200) 50%,
    var(--color-gray-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ---- Counter Animation ---- */

.counter-value {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---- Testimonial Carousel ---- */

.testimonial-slide {
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateX(30px);
}

.testimonial-slide.active {
  opacity: 1;
  position: relative;
  transform: translateX(0);
}

/* ---- Timeline Animation ---- */

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-gray-200);
  transform: translateX(-50%);
}

.timeline-line-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  background: var(--gradient-mixed);
  transform: translateX(-50%) scaleY(0);
  transform-origin: top;
  transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-line-fill.visible {
  transform: translateX(-50%) scaleY(1);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-dot.visible {
  transform: translateX(-50%) scale(1);
}

/* ---- Scroll Indicator ---- */

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-indicator-dot {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-gray-300);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator-dot::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 44%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  animation: scrollDown 1.5s ease-in-out infinite;
}

/* ---- Parallax ---- */

.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* ---- Gradient Border Animation ---- */

.gradient-border-animated {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  z-index: 1;
}

.gradient-border-animated::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-2xl) + 2px);
  background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-primary));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  z-index: -1;
}

/* ---- Text Reveal ---- */

.text-reveal {
  overflow: hidden;
}

.text-reveal span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-reveal.visible span {
  transform: translateY(0);
}

/* ---- Progress Bar Animation ---- */

.progress-bar {
  height: 6px;
  background: var(--color-gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-mixed);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.progress-bar-fill.visible {
  width: var(--progress, 0%);
}

/* ---- Toast Notification ---- */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  box-shadow: var(--shadow-2xl);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 9999;
  border: 1px solid var(--color-gray-200);
}

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

.toast-success { border-left: 4px solid #22c55e; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid var(--color-primary); }

/* ---- Marquee ---- */

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 6rem;
  width: max-content;
  transform: translateX(0);
  will-change: transform;
}

/* ---- Accordion ---- */

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.open {
  max-height: 500px;
  opacity: 1;
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-icon.open {
  transform: rotate(180deg);
}

/* ---- Tab Transitions ---- */

.tab-panel {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: none;
}

.tab-panel.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

/* ---- Navbar Transition ---- */

.navbar-scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

.navbar-scrolled .nav-link {
  color: var(--color-text) !important;
}

.navbar-scrolled .nav-logo-text {
  color: var(--color-primary) !important;
}

/* ---- Mobile Menu Animation ---- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  z-index: 1099;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.mobile-menu-link {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-white);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-menu-link:nth-child(5) { transition-delay: 0.3s; }

/* Hamburger Animation */
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}

.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- Service Card Specific ---- */

.service-card {
  position: relative;
  padding: 2.5rem;
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-gray-200);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: var(--gradient-primary);
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
  border-color: var(--color-primary-200);
}

.service-card:hover::before {
  height: 4px;
}

.service-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--color-primary);
}

.service-card:hover .service-card-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

/* ---- Industry Card ---- */

.industry-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.industry-card:hover img {
  transform: scale(1.1);
}

.industry-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  transition: all 0.4s ease;
}

.industry-card:hover .industry-card-overlay {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.industry-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.industry-card-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease 0.1s;
}

.industry-card:hover .industry-card-desc {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Case Study Card ---- */

.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-bg);
  border-radius: var(--radius-3xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.4s ease;
}

.case-study-card:hover {
  box-shadow: var(--shadow-2xl);
  transform: translateY(-4px);
}

.case-study-image {
  position: relative;
  overflow: hidden;
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-study-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.case-study-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.case-study-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--color-gray-50);
  border-radius: var(--radius-xl);
  margin-top: 1.5rem;
}

.case-study-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.case-study-result-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .case-study-card {
    grid-template-columns: 1fr;
  }
  .case-study-content {
    padding: 2rem;
  }
}

/* ---- Testimonial Card ---- */

.testimonial-card {
  background: var(--color-bg);
  border-radius: var(--radius-3xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--color-gray-100);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: var(--color-primary-100);
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-primary-100);
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* ---- Leadership Card ---- */

.leader-card {
  text-align: center;
  padding: 2rem;
}

.leader-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--color-bg);
  box-shadow: 0 0 0 4px var(--color-primary-200);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.leader-card:hover .leader-avatar {
  box-shadow: 0 0 0 4px var(--color-primary), 0 10px 30px rgba(37, 99, 235, 0.15);
  transform: scale(1.05);
}

.leader-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.leader-role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.leader-bio {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---- Value Card ---- */

.value-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-gray-200);
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.value-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.75rem;
  box-shadow: var(--shadow-glow);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.value-desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---- Stat Counter ---- */

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-mixed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ---- Trust Logos ---- */

.trust-logo {
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.4s ease;
  max-height: 40px;
  width: auto;
}

.trust-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ---- CTA Section ---- */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Contact Info Card ---- */

.contact-info-card {
  background: var(--color-bg);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--color-gray-200);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.contact-info-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info-card:hover .contact-info-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.contact-info-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-info-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ---- Map Placeholder ---- */

.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--color-gray-100);
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 2px dashed var(--color-gray-300);
  color: var(--color-text-muted);
}

.map-placeholder-icon {
  width: 64px;
  height: 64px;
  color: var(--color-gray-400);
}

/* ---- Footer ---- */

.footer-link {
  color: var(--color-gray-400);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}

.footer-link:hover {
  color: var(--color-text-white);
  transform: translateX(4px);
}

/* ---- Three.js Canvas ---- */

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ---- Page Hero ---- */
.page-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  background: linear-gradient(180deg, var(--color-bg-hero) 0%, var(--color-bg-light) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.page-hero-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-pill,
.hero-pill-static {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-pill {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-gray-200);
  color: var(--color-text);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.hero-pill:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.hero-pill svg,
.hero-pill-static svg {
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.hero-pill:hover svg {
  color: #ffffff;
}

.hero-pill-static {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid var(--color-primary-100);
  color: var(--color-primary-800);
}

/* ---- Responsive Adjustments ---- */

@media (max-width: 768px) {
  .animate-left,
  .animate-right {
    transform: translateY(40px);
  }

  .animate-left.visible,
  .animate-right.visible {
    transform: translateY(0);
  }

  .hero-shape {
    filter: blur(60px);
    opacity: 0.2;
  }

  .hero-shape-1 {
    width: 250px;
    height: 250px;
  }

  .hero-shape-2 {
    width: 200px;
    height: 200px;
  }

  .hero-shape-3 {
    display: none;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  .animate,
  .animate-fade,
  .animate-up,
  .animate-down,
  .animate-left,
  .animate-right,
  .animate-zoom,
  .animate-blur {
    opacity: 1;
    transform: none;
    transition: none;
    filter: none;
  }

  .hero-shape,
  .hero-animated-gradient,
  .float-element,
  .float-element-slow,
  .hero-particle {
    animation: none !important;
  }
}
