/**
 * SatSri — Premium Animations & Effects
 * Loaded AFTER tailwind.css and custom.css
 */

/* ===== PULSE GLOW ===== */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(245, 166, 35, 0.3); }
}

/* ===== FLOAT ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===== SHIMMER ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== SCROLL CHEVRON ===== */
@keyframes scroll-chevron {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ===== PULSE DOTS (status indicator) ===== */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* ===== MESH BLOB DRIFT ===== */
@keyframes mesh-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -40px) scale(1.08); }
  66% { transform: translate(-40px, 30px) scale(0.95); }
}
@keyframes mesh-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 50px) scale(1.05); }
  66% { transform: translate(60px, -20px) scale(1.1); }
}
@keyframes mesh-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -60px) scale(1.12); }
}

/* ===== ANIMATION CLASSES ===== */
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}
.animate-scroll-chevron { animation: scroll-chevron 1.8s ease-in-out infinite; }
.animate-pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ===== CARD HOVER GLOW ===== */
.card-glow:hover {
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.2), 0 0 60px rgba(139, 92, 246, 0.1);
}

/* ===== NAV: ACTIVE GOLD UNDERLINE ===== */
.nav-link-active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f5a623;
  border-radius: 1px;
}

/* ===== HERO: SCROLL DOWN CHEVRON ===== */
.scroll-chevron {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.scroll-chevron span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #6b688f;
  font-family: 'Space Grotesk', sans-serif;
}
.scroll-chevron svg {
  color: #f5a623;
  opacity: 0.75;
}

/* ===== TRUST: LOGO PLACEHOLDER BLOCKS ===== */
.client-logo-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.12);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
  cursor: default;
}
.client-logo-block:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
}
.client-logo-block .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.client-logo-block .logo-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ===== HOW IT WORKS: DASHED CONNECTOR ===== */
.step-connector {
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    rgba(139, 92, 246, 0.4) 0px,
    rgba(139, 92, 246, 0.4) 8px,
    transparent 8px,
    transparent 16px
  );
}

/* ===== TEAM CARD: GRADIENT BORDER HOVER ===== */
.agent-card-premium {
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.agent-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245,166,35,0.4), rgba(139,92,246,0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.agent-card-premium:hover::before {
  opacity: 1;
}
.agent-card-premium:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), 0 0 20px rgba(139,92,246,0.12);
}

/* ===== TEAM: LINKEDIN ICON ANIMATE ===== */
.linkedin-icon {
  transition: transform 200ms ease, color 200ms ease;
}
a:hover .linkedin-icon {
  transform: scale(1.15);
  color: #f5a623;
}

/* ===== TEAM: STATUS PULSE DOT ===== */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ===== VALUES: ICON RADIAL GLOW ===== */
.value-icon-wrap {
  position: relative;
}
.value-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(245,166,35,0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.value-card:hover .value-icon-wrap::after {
  opacity: 1;
}

/* ===== VALUES: CARD HOVER BACKGROUND ===== */
.value-card {
  background: rgba(22, 20, 46, 0.5);
  transition: background 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}
.value-card:hover {
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ===== ABOUT: ABSTRACT MESH BLOCK ===== */
.about-mesh-block {
  position: relative;
  overflow: hidden;
}
.about-mesh-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(139,92,246,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(245,166,35,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(6,182,212,0.2) 0%, transparent 60%);
  animation: mesh-drift-1 12s ease-in-out infinite;
}
.about-mesh-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(240,239,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.about-mesh-block .mesh-blob-1 {
  position: absolute;
  top: 20%;
  left: 15%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.35) 0%, transparent 70%);
  animation: mesh-drift-2 14s ease-in-out infinite;
}
.about-mesh-block .mesh-blob-2 {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245,166,35,0.25) 0%, transparent 70%);
  animation: mesh-drift-3 10s ease-in-out infinite reverse;
}

/* ===== TECH STACK: GROUPED BADGES ===== */
.tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(139, 92, 246, 0.06);
  color: #a09cc4;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease, color 200ms ease;
}
.tech-badge:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.45);
  transform: scale(1.06);
  color: #f0efff;
}
.tech-group-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6b688f;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  padding-right: 8px;
  border-right: 1px solid rgba(107,104,143,0.3);
  margin-right: 8px;
}
.tech-group-label:last-child {
  border-right: none;
  margin-left: 8px;
  padding-right: 0;
  padding-left: 8px;
}

/* ===== CONTACT CTA: MESH BLOBS ===== */
.cta-section-premium {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 55%);
}

/* ===== FOOTER: 4 COLUMNS ===== */
.footer-social-icon {
  transition: transform 200ms ease, color 200ms ease;
}
.footer-social-icon:hover {
  transform: scale(1.15) translateY(-2px);
  color: #f5a623;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .animate-pulse-glow,
  .animate-float,
  .animate-shimmer,
  .animate-scroll-chevron,
  .animate-pulse-dot {
    animation: none !important;
  }
  .about-mesh-block::before,
  .about-mesh-block .mesh-blob-1,
  .about-mesh-block .mesh-blob-2 {
    animation: none !important;
  }
  .agent-card-premium::before,
  .value-card:hover,
  .tech-badge:hover,
  .client-logo-block:hover,
  .agent-card-premium:hover {
    opacity: 1;
    transform: none;
    box-shadow: none;
  }
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== ROUND 3 POLISH: MICRO-INTERACTIONS ===== */

/* Button press-down effect on click */
.btn-press:active {
  transform: scale(0.97) !important;
  transition: transform 80ms ease-out !important;
}

/* Link slide hover — translate right + color */
.link-slide {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 200ms ease, transform 200ms ease;
}
.link-slide:hover {
  transform: translateX(4px);
  color: #f5a623;
}

/* Footer nav link hover with slide */
.footer-nav-link {
  position: relative;
  transition: color 200ms ease;
}
.footer-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f5a623;
  transition: width 200ms ease;
}
.footer-nav-link:hover {
  color: #f5a623;
}
.footer-nav-link:hover::after {
  width: 100%;
}

/* Card hover shadow — consistent lift effect */
.card-hover-shadow {
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 200ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 200ms ease;
}
.card-hover-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.35);
}

/* Lazy image fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 400ms ease-out;
}
img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Nav desktop link underline slide from left */
.nav-desktop-link {
  position: relative;
}
.nav-desktop-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f5a623;
  border-radius: 1px;
  transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-desktop-link:hover::after,
.nav-desktop-link.nav-link-active::after {
  width: 100%;
}

/* Team page: animated gradient on S logo */
@keyframes s-logo-rotate {
  0%   { --deg: 0deg; }
  100% { --deg: 360deg; }
}
.s-logo-glow {
  position: relative;
  overflow: hidden;
}
.s-logo-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--deg, 0deg),
    #f5a623,
    #8b5cf6,
    #06b6d4,
    #f5a623
  );
  animation: s-logo-rotate 6s linear infinite;
  z-index: -1;
}
.s-logo-glow::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: #16142e;
  z-index: -1;
}
.s-logo-glow-inner {
  position: relative;
  z-index: 1;
  animation: s-logo-rotate 6s linear infinite reverse;
}

/* Hero star field canvas */
#hero-star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Section spacing consistency: use these classes for rhythm */
.section-spacing-sm { padding-top: 4rem; padding-bottom: 4rem; }
.section-spacing-md { padding-top: 6rem; padding-bottom: 6rem; }
.section-spacing-lg { padding-top: 7rem; padding-bottom: 7rem; }
.section-spacing-xl { padding-top: 8rem; padding-bottom: 8rem; }

/* Ensure body text has comfortable line height */
.body-text {
  line-height: 1.7;
  font-size: 1rem;
}

/* Headings: tighter tracking */
.heading-tight {
  letter-spacing: -0.025em;
}

/* Minimum touch target for mobile buttons */
@media (max-width: 640px) {
  .btn-mobile-full {
    width: 100%;
    justify-content: center;
  }
}
