/* style.css */

/* Custom Variables and Resets handled mostly by Tailwind */
:root {
  --brand-color: #0062E6;
  --brand-light: #4facfe;
  --accent-color: #f97316;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-color);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Navbar active state */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--brand-color);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(to right, var(--brand-light), var(--brand-color));
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px 0 rgba(0, 98, 230, 0.39);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 98, 230, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* Background Patterns */
.background-pattern {
  background-image: radial-gradient(var(--brand-light) 2px, transparent 2px);
  background-size: 30px 30px;
}

/* Animation Classes (used by JS IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal within an active parent */
.reveal-stagger {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

/* Mesh Gradient Background */
@keyframes mesh-pulse {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-45%, -55%) rotate(180deg) scale(1.1); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.mesh-gradient {
  background: radial-gradient(circle at 30% 30%, var(--brand-light) 0%, transparent 50%),
              radial-gradient(circle at 70% 70%, var(--brand-color) 0%, transparent 50%),
              radial-gradient(circle at 50% 50%, #60a5fa 0%, transparent 50%);
  filter: blur(60px);
  animation: mesh-pulse 20s linear infinite alternate;
}

/* Premium Form Focus */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px rgba(0, 98, 230, 0.1), 0 4px 12px rgba(0, 98, 230, 0.08);
  transform: translateY(-1px);
}

/* Custom form transition */
input, select, textarea {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Floating Text Animation */
@keyframes float-text {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

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

/* Gradient Flow Animation */
@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-gradient-flow {
  background-size: 200% auto;
  animation: gradient-flow 6s linear infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-shimmer {
  animation: shimmer 1.5s ease-in-out infinite;
}

/* Subtitle Typing Cursor */
#typing-text::after {
  content: '|';
  animation: blink 0.8s infinite;
  margin-left: 2px;
  color: var(--brand-color);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Interactive Blob Styles */
.interactive-blob {
  transition: transform 0.2s ease-out;
  will-change: transform;
}

/* Delay modifiers for sequential animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Sticky Navbar Transition */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar-scrolled .h-20 {
  height: 4rem; /* Shrinks the navbar slightly */
}

/* Marquee Animation for Testimonials */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  gap: 2rem;
}

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

.testimonial-card {
  width: 350px;
  flex-shrink: 0;
  white-space: normal;
}
