/* ============================================================
   DealOk Enterprise Design System & Micro-Interactions
   Includes Phosphor Icons, Morphing Menu, and Tactile Buttons
   ============================================================ */

/* Smooth scrolling and base rendering */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  overflow-x: clip;
}

/* Rock-solid sticky navbar across all browsers */
#navbar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
}

/* Ticker marquee animation */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: inline-flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

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

/* Refined Keyframes */
@keyframes springFadeIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-spring {
  animation: springFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================================
   CLEAN CIRCLE MENU BUTTON
   100% Circle, No Stroke, Icon colored in Brand Blue
   ============================================================ */
.menu-toggle-btn {
  width: 44px;
  height: 44px;
  border-radius: 9999px !important; /* Pure Circle */
  border: none !important;           /* NO STROKE */
  outline: none !important;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-btn:hover {
  background-color: rgba(2, 86, 180, 0.08); /* Subtle soft tint on hover */
}

.menu-toggle-btn:active {
  background-color: rgba(2, 86, 180, 0.15);
}

/* Icon specific styling - Brand Blue Color */
.menu-toggle-btn i {
  font-size: 26px;
  color: #0256B4; /* Brand Blue */
  display: inline-block;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.menu-toggle-btn.is-active i {
  color: #002D62; /* Navy when active */
  transform: rotate(90deg);
}

/* ============================================================
   NAVBAR LINKS: SLEEK UNDERLINE HOVER ANIMATION
   ============================================================ */
.nav-link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-top: 6px;
  padding-bottom: 6px;
  color: #475569; /* slate-600 */
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link-underline:hover {
  color: #002D62; /* brand-navy */
}

.nav-link-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: #002D62; /* brand-navy */
  border-radius: 9999px;
  transition: width 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link-underline.nav-link-live {
  color: #059669;
}

.nav-link-underline.nav-link-live:hover {
  color: #047857;
}

.nav-link-underline.nav-link-live::after {
  background-color: #059669;
}

/* ============================================================
   CLEAN BUTTONS (Zero cheap jumping/scaling animations)
   ============================================================ */
.btn-tactile {
  transition: background-color 0.15s ease, border-color 0.15s ease;
  transform: none !important;
}

.btn-tactile:hover,
.btn-tactile:active {
  transform: none !important;
}

/* Smooth tab switches */
.role-tab {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-tab.active {
  background-color: white !important;
  color: #002D62 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.sim-btn {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sim-btn.active {
  background-color: #0256B4 !important;
  color: white !important;
  border-color: #0256B4 !important;
  box-shadow: 0 0 16px rgba(2, 86, 180, 0.35);
}

/* ============================================================
   MOBILE HEADER ACCORDION ROLLDOWN (Slides from Header)
   Absolute positioning: NEVER pushes website content down!
   Smooth physical unroll down on open, retract up on close.
   ============================================================ */
.mobile-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 20px 35px -10px rgba(0, 45, 98, 0.12);
  will-change: grid-template-rows;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
}

.mobile-menu-dropdown.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-content {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-dropdown.is-open .mobile-menu-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: color 0.15s ease, padding-left 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item:last-of-type {
  border-bottom: none;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: #0256B4;
}

.mobile-nav-item i {
  color: #94a3b8;
  font-size: 0.875rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.mobile-nav-item:hover i {
  color: #0256B4;
  transform: translateX(3px);
}

/* ============================================================
   HERO SHOWCASE TRIO ROTATIONS
   Rock-solid rotation styling: Center straight, sides tapered
   ============================================================ */
.trio-card-left {
  transform: rotate(-8deg) !important;
  transform-origin: bottom right !important;
}

.trio-card-center {
  transform: rotate(0deg) !important;
}

.trio-card-right {
  transform: rotate(8deg) !important;
  transform-origin: bottom left !important;
}

/* Custom modern scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ============================================================
   SMOOTH CONNECTED WORKFLOW STEP TO RIGHT CONTAINER
   Organic scooped fillet corners, no stroke, seamless connection
   ============================================================ */
@media (min-width: 1024px) {
  .workflow-step {
    position: relative;
    transition: background-color 0.25s ease, color 0.2s ease;
  }

  .workflow-step.active {
    background-color: #f1f5f9 !important; /* matches bg-slate-100 */
    border-top-left-radius: 1.5rem !important;
    border-bottom-left-radius: 1.5rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    z-index: 20 !important;
  }
  
  .workflow-step.active::before {
    content: '';
    position: absolute;
    top: -20px;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-bottom-right-radius: 20px;
    box-shadow: 6px 6px 0 6px #f1f5f9;
    pointer-events: none;
    z-index: 20;
  }

  .workflow-step.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: 0;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-top-right-radius: 20px;
    box-shadow: 6px -6px 0 6px #f1f5f9;
    pointer-events: none;
    z-index: 20;
  }

  .workflow-step:first-child.active::before {
    display: none !important;
  }

  .workflow-step:last-child.active::after {
    display: none !important;
  }
}

/* ============================================================
   STAKEHOLDER FEATHER MASK (VYAPAR STYLE)
   Blends background green screen image seamlessly into white
   ============================================================ */
.feather-mask-right {
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 15%, black 45%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.25) 15%, black 45%);
}

/* ============================================================
   FLOATING STICKY BOTTOM BAR (VYAPAR STYLE)
   Smooth bottom slide-in when leaving Hero, disappears on Footer
   ============================================================ */
#floating-bottom-bar {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease, visibility 0.38s ease;
  will-change: transform, opacity;
}

#floating-bottom-bar.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#floating-bottom-bar.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#floating-cta-btn {
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: none !important;
}

/* ============================================================
   CONTAINER-FREE FAQ ACCORDION (SMOOTH 60FPS CSS GRID ANIMATION)
   Zero cards/boxes, clean dividers, buttery smooth open/close
   ============================================================ */
.faq-item {
  border-bottom: 1px solid #e2e8f0;
  transition: border-color 0.25s ease;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 0;
  text-align: left;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 640px) {
  .faq-trigger {
    padding: 1.6rem 0;
  }
}

.faq-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0f172a;
  transition: color 0.2s ease;
  padding-right: 1.25rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .faq-title {
    font-size: 1.2rem;
  }
}

.faq-trigger:hover .faq-title {
  color: #0256B4;
}

.faq-icon-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

@media (min-width: 640px) {
  .faq-icon-badge {
    width: 2.5rem;
    height: 2.5rem;
  }
}

.faq-trigger:hover .faq-icon-badge {
  background-color: #e0f2fe;
  color: #0256B4;
}

.faq-icon {
  font-size: 1.1rem;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Open State for Item */
.faq-item.is-open .faq-title {
  color: #002D62;
}

.faq-item.is-open .faq-icon-badge {
  background-color: #002D62;
  color: #ffffff;
}

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

/* Buttery-Smooth CSS Grid Expand / Collapse */
.faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: grid-template-rows;
}

.faq-item.is-open .faq-collapse {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.faq-item.is-open .faq-content-inner {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) 0.05s, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   GREEN SCREEN PARALLAX SHOWCASE (FULL BLEED, ROUNDED BOTTOM)
   ============================================================ */
#parallax-green-image {
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.18);
  transition: transform 0.08s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}
