/* ================================================
   PetSangam Landing Page — SaaS Modern Styles
   Clean, white background, teal & charcoal tokens,
   no extra color accents or emoji animations.
   ================================================ */

html {
  scroll-behavior: smooth;
}

/* ==========================================
   SCROLL-TRIGGERED ANIMATIONS
   ========================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Staggered delays */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
.delay-6 { transition-delay: 480ms; }

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ==========================================
   NAVBAR
   White sticky navbar with subtle border
   ========================================== */
#navbar {
  transition: background-color 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.navbar-scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

.navbar-scrolled .nav-logo-text {
  color: #0F172A !important;
}

.navbar-scrolled .nav-link {
  color: #475569 !important;
}

.navbar-scrolled .nav-scrolled-text {
  color: #000000 !important;
}

.navbar-scrolled .nav-link {
  color: #475569 !important;
}

.navbar-scrolled .nav-link:hover {
  color: #F28B30 !important;
}

/* Nav links styling on white header */
.nav-link {
  color: #475569;
}

.nav-link:hover {
  color: #F28B30;
}

/* ==========================================
   FAQ ACCORDION
   ========================================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-top: 0;
}

.faq-icon {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================
   MOBILE MENU
   ========================================== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  max-height: 400px;
}

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.toast {
  animation: fade-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   BUTTON SHIMMER / GLOW EFFECT
   ========================================== */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -200%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 4s ease-in-out infinite;
}

/* ==========================================
   SAAS CARD STYLING & GLASSMORPHISM
   ========================================== */
.saas-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-card:hover {
  border-color: rgba(242, 139, 48, 0.4);
  box-shadow: 0 16px 30px -8px rgba(242, 139, 48, 0.08), 0 8px 12px -4px rgba(15, 23, 42, 0.04);
  transform: translateY(-3px);
}

.saas-glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.saas-glass-card:hover {
  border-color: rgba(242, 139, 48, 0.35);
  box-shadow: 0 20px 35px -10px rgba(242, 139, 48, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  transform: translateY(-3px);
}

/* ==========================================
   GLOBAL PAGE GRADIENTS & TEXT ACCENTS
   ========================================== */
body {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 12%, #F8FAFC 28%, #FFFFFF 45%, #FFFDF9 65%, #F8FAFC 85%, #FFFFFF 100%);
  background-attachment: fixed;
}

/* Gradient Section Dividers */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(242, 139, 48, 0.25) 50%, transparent 100%);
}

/* Gradient Card Top Border Highlight */
.saas-gradient-border {
  position: relative;
}

.saas-gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 139, 48, 0.5), transparent);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.saas-gradient-border:hover::before {
  opacity: 1;
}

/* ==========================================
   SOFT AMBIENT BACKGROUND GRADIENTS
   ========================================== */
.ambient-glow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(95px);
  opacity: 0.8;
  z-index: 0;
}

.ambient-glow-orange {
  background: radial-gradient(circle, rgba(242, 139, 48, 0.18) 0%, rgba(242, 139, 48, 0) 70%);
}

.ambient-glow-teal {
  background: radial-gradient(circle, rgba(20, 184, 166, 0.16) 0%, rgba(20, 184, 166, 0) 70%);
}

.ambient-glow-indigo {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 70%);
}

.ambient-glow-warm {
  background: radial-gradient(circle, rgba(254, 243, 231, 0.9) 0%, rgba(254, 243, 231, 0) 70%);
}

/* Hero SaaS Dot Matrix Grid Overlay */
.hero-grid-pattern {
  background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}

/* Floating animation for SaaS preview mockup */
@keyframes float-subtle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: float-subtle 6s ease-in-out infinite;
}

/* Highlight badge pulse */
.pulse-dot {
  box-shadow: 0 0 0 0 rgba(242, 139, 48, 0.5);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 139, 48, 0.5);
  }
  70%, 100% {
    box-shadow: 0 0 0 8px rgba(242, 139, 48, 0);
  }
}

/* ==========================================
   CUSTOM SELECT DROPDOWN ARROW & OPTIONS
   ========================================== */
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

select:hover {
  border-color: #F28B30 !important;
  color: #000000 !important;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F28B30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

select option {
  background-color: #FFFFFF;
  color: #000000;
  padding: 12px;
}

select option:hover,
select option:focus,
select option:active,
select option:checked {
  background-color: #FEF3E7 !important;
  color: #000000 !important;
}

.role-option:hover {
  background-color: #FEF3E7 !important;
  color: #000000 !important;
}

/* ==========================================
   CTA POPUP MODAL
   ========================================== */
@keyframes popup-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popup-card-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.cta-popup-backdrop-animate {
  animation: popup-backdrop-in 0.25s ease-out both;
}

.cta-popup-card {
  animation: popup-card-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

/* Closing states */
#cta-popup.popup-closing .cta-popup-backdrop-animate {
  animation: popup-backdrop-in 0.2s ease-in reverse both;
}

#cta-popup.popup-closing .cta-popup-card {
  animation: popup-card-in 0.2s ease-in reverse both;
}

/* ==========================================
   FLOATING BADGE ANIMATIONS
   ========================================== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

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

.animate-float-reverse {
  animation: float-reverse 4.5s ease-in-out infinite;
}


