/* Samiksha Custom Styles */

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

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

@keyframes rotateIn {
  from { opacity: 0; transform: rotate(-8deg) scale(0.9); }
  to { opacity: 1; transform: rotate(0) scale(1); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(30, 64, 175, 0.15); }
  50% { box-shadow: 0 0 40px rgba(30, 64, 175, 0.3); }
}

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

@keyframes draw-line {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes bounce-subtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

/* ===== ANIMATION CLASSES ===== */
.animate-fade-in-up { animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-fade-in { animation: fadeIn 0.7s ease-out forwards; }
.animate-slide-left { animation: slideInLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-slide-right { animation: slideInRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-scale-in { animation: scaleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-rotate-in { animation: rotateIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-bounce-subtle { animation: bounce-subtle 2s ease-in-out infinite; }

/* Staggered delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* Initially hidden for animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ===== PARALLAX ===== */
.parallax-bg {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #1e40af, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-animated {
  background: linear-gradient(90deg, #1e40af, #f59e0b, #1e40af);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* ===== CARD EFFECTS ===== */
.service-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.03), transparent);
  transition: left 0.6s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
}

/* Tilt card effect */
.tilt-card {
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.magnetic-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.magnetic-btn:hover::after {
  opacity: 1;
}

.magnetic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.3);
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
  position: relative;
  overflow: hidden;
}

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

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ===== NAVIGATION ===== */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1e40af;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #1e40af;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-nav-link {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.3s ease;
}

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

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

/* ===== HERO ===== */
.hero-gradient {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #2563eb 100%);
  background-size: 200% 200%;
  animation: slide-bg 12s ease infinite;
}

/* Animated particles */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.15;
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

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

/* ===== PROGRESS BAR / LINE ===== */
.animate-line {
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #f59e0b);
  animation: draw-line 1.5s ease-out forwards;
}

/* ===== FORM EFFECTS ===== */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
  transform: translateY(-1px);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== STICKY HEADER ===== */
.header-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(12px);
}

/* ===== SECTION REVEAL LINE ===== */
.section-line {
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #f59e0b);
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0 auto 2rem;
}

.section-line.visible {
  width: 80px;
}

/* ===== TYPED CURSOR ===== */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: #f59e0b;
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== STAT CARD ===== */
.stat-card {
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ===== SMOOTH IMAGE REVEAL ===== */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.img-reveal.visible {
  clip-path: inset(0 0 0 0);
}

/* ===== FOOTER LINK HOVER ===== */
footer a {
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

footer a:hover {
  transform: translateX(3px);
}
