/* ==========================================================================
   Siraj Islam Landing Page - Custom Stylesheet
   Brand Colors:
   - Primary: #4A85F6
   - Deep Navy: #1F2687
   - Sky Tint: #E8F0FE
   - Accent Gold: #D4AF37 (dark: #B8960C, light: #FFF8E1)
   - Primary Gradient: #4A85F6 -> #2563EB
   - Gold Gradient: #D4AF37 -> #F59E0B
   ========================================================================== */

:root {
  --color-primary: #4A85F6;
  --color-primary-hover: #3b74e6;
  --color-deep-navy: #1F2687;
  --color-navy-dark: #121858;
  --color-sky-tint: #E8F0FE;
  --color-sky-tint-light: #F4F8FF;
  --color-accent-gold: #D4AF37;
  --color-gold-dark: #B8960C;
  --color-gold-light: #FFF8E1;
  --gradient-primary: linear-gradient(135deg, #4A85F6 0%, #2563EB 100%);
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F59E0B 100%);
  --gradient-navy: linear-gradient(135deg, #1F2687 0%, #0F144D 100%);
  --shadow-soft: 0 10px 30px -5px rgba(31, 38, 135, 0.08);
  --shadow-glow: 0 0 25px rgba(74, 133, 246, 0.35);
}

/* Reset and Base Overrides */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cabin', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background-color: #FAFCFF;
  overflow-x: hidden;
}

/* Typography Enhancements */
.font-arabic {
  font-family: 'Amiri', serif;
}

/* Custom Gradients */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-gold {
  background: var(--gradient-gold);
}

.bg-gradient-navy {
  background: var(--gradient-navy);
}

.bg-sky-tint {
  background-color: var(--color-sky-tint);
}

.bg-sky-tint-light {
  background-color: var(--color-sky-tint-light);
}

/* Text Colors */
.text-primary-blue {
  color: var(--color-primary);
}

.text-deep-navy {
  color: var(--color-deep-navy);
}

.text-accent-gold {
  color: var(--color-accent-gold);
}

/* Custom Islamic Patterns & Background Textures */
.islamic-pattern-bg {
  background-color: #1F2687;
  background-image: radial-gradient(rgba(212, 175, 55, 0.12) 1px, transparent 1px), radial-gradient(rgba(74, 133, 246, 0.15) 1px, #1F2687 1px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.islamic-pattern-light {
  background-color: #F8FAFD;
  background-image: radial-gradient(rgba(74, 133, 246, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.subtle-geo-pattern {
  position: relative;
}

.subtle-geo-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: repeating-linear-gradient(45deg, #4A85F6 0, #4A85F6 1px, transparent 0, transparent 50%);
  background-size: 16px 16px;
  pointer-events: none;
}

/* ==========================================================================
   ISLAMIC GEOMETRIC PATTERN & DEPTH (Inside How-It-Works Step Cards)
   ========================================================================== */
.how-step-card {
  position: relative;
  background: radial-gradient(circle at 10% 10%, #E8F0FE 0%, #F4F8FF 45%, #FFFFFF 100%);
  border: 1px solid rgba(74, 133, 246, 0.22);
  box-shadow: 0 10px 30px -5px rgba(31, 38, 135, 0.07);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Faint geometric Islamic 8-point star pattern INSIDE the card */
.how-step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l7.07 12.93L50 10l-2.93 12.93L60 30l-12.93 7.07L50 50l-12.93-2.93L30 60l-7.07-12.93L10 50l2.93-12.93L0 30l12.93-7.07L10 10l12.93 2.93z' fill='%231F2687' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 1;
}

/* Hover top accent line */
.how-step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.how-step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(31, 38, 135, 0.14);
  border-color: rgba(74, 133, 246, 0.45);
}

.how-step-card:hover::before {
  opacity: 1;
}

.how-step-card > * {
  position: relative;
  z-index: 2;
}

.how-step-watermark {
  position: absolute;
  right: 1.25rem;
  top: 0.85rem;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(74, 133, 246, 0.08);
  pointer-events: none;
  user-select: none;
  font-family: 'Cabin', sans-serif;
  z-index: 1;
}

/* ==========================================================================
   PINNED SCROLL HERO (Apple / GSAP Style Sequence)
   ========================================================================== */
/* Desktop Pinned Scroll Viewports (>= 1024px) */
@media (min-width: 1024px) {
  .hero-pinned-wrapper {
    position: relative;
    width: 100%;
    min-height: 280vh;
  }

  .hero-pinned-viewport {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    min-height: 540px;
    max-height: 920px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }

  .hero-scroll-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(80px) scale(0.95);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.75s ease;
    will-change: transform, opacity;
  }

  .hero-scroll-slide.is-next {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.95);
  }

  .hero-scroll-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    z-index: 10;
  }

  .hero-scroll-slide.is-prev {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-60px) scale(0.94);
  }

  /* ── Enhanced Staggered Content Animations Inside Hero Slides ── */

  /* Each inner element starts invisible and transforms in via GSAP */
  .hero-scroll-slide .hero-anim-badge,
  .hero-scroll-slide .hero-anim-title,
  .hero-scroll-slide .hero-anim-desc,
  .hero-scroll-slide .hero-anim-ctas,
  .hero-scroll-slide .hero-anim-store-badges,
  .hero-scroll-slide .hero-anim-stats,
  .hero-scroll-slide .hero-anim-extras {
    opacity: 0;
    transform: translateY(32px);
    will-change: transform, opacity;
  }

  .hero-scroll-slide .hero-anim-phone {
    opacity: 0;
    transform: translateY(60px) scale(0.88) perspective(800px) rotateY(-8deg);
    will-change: transform, opacity;
  }

  .hero-scroll-slide .hero-anim-float-badge {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    will-change: transform, opacity;
  }

  /* When slide is active, GSAP drives the actual values — but we keep
     CSS transitions as a soft fallback for non-GSAP environments */
  .hero-scroll-slide.is-active .hero-anim-badge,
  .hero-scroll-slide.is-active .hero-anim-title,
  .hero-scroll-slide.is-active .hero-anim-desc,
  .hero-scroll-slide.is-active .hero-anim-ctas,
  .hero-scroll-slide.is-active .hero-anim-store-badges,
  .hero-scroll-slide.is-active .hero-anim-stats,
  .hero-scroll-slide.is-active .hero-anim-extras,
  .hero-scroll-slide.is-active .hero-anim-phone,
  .hero-scroll-slide.is-active .hero-anim-float-badge {
    /* GSAP overrides these inline; this is the CSS-only fallback */
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Background gradient morph between slides */
  .hero-pinned-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
    z-index: 0;
  }

  .hero-pinned-wrapper[data-active-slide="0"]::before {
    opacity: 1;
    background: radial-gradient(ellipse 80% 60% at 20% 40%, rgba(74,133,246,0.06) 0%, transparent 70%);
  }

  .hero-pinned-wrapper[data-active-slide="1"]::before {
    opacity: 1;
    background: radial-gradient(ellipse 80% 60% at 80% 40%, rgba(212,175,55,0.06) 0%, transparent 70%);
  }

  .hero-pinned-wrapper[data-active-slide="2"]::before {
    opacity: 1;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(31,38,135,0.05) 0%, transparent 70%);
  }

  /* Progress dot active shimmer */
  .hero-scroll-dot.active {
    position: relative;
    overflow: hidden;
  }

  .hero-scroll-dot.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: dot-shimmer 2s ease-in-out infinite;
    border-radius: inherit;
  }

  @keyframes dot-shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
  }

  .preview-pinned-wrapper {
    position: relative;
    width: 100%;
    min-height: 360vh;
  }

  .preview-pinned-viewport {
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    min-height: 600px;
    max-height: 1000px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 0;
  }
}

/* Mobile & Tablet (< 1024px): Natural Smooth Page Scroll & Interactive Touch Tabs */
@media (max-width: 1023px) {
  .hero-pinned-wrapper {
    position: relative;
    width: 100%;
    min-height: auto !important;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .hero-pinned-viewport {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding: 0 !important;
  }

  .hero-scroll-slide {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    display: none !important;
    opacity: 0;
    transform: none !important;
    transition: opacity 0.35s ease;
    padding: 0.5rem 0 1.5rem 0 !important;
  }

  .hero-scroll-slide.is-active {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto;
  }

  .preview-pinned-wrapper {
    position: relative;
    width: 100%;
    min-height: auto !important;
    padding: 3rem 0 !important;
  }

  .preview-pinned-viewport {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding: 0 !important;
  }
}

/* Hero Phone Mockup Responsive Sizing */
.hero-phone-container {
  position: relative;
  max-width: 250px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-frame {
  position: relative;
  width: 100%;
  max-height: min(460px, 54vh);
  aspect-ratio: 9 / 18.5;
  border-radius: 28px;
  overflow: hidden;
  background: #0f172a;
  border: 5px solid #1e293b;
  box-shadow: 0 16px 36px -8px rgba(31, 38, 135, 0.22),
              inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

@media (max-width: 1023px) {
  .hero-phone-container {
    max-width: 200px;
    margin-top: 1rem;
  }
  .hero-phone-frame {
    max-height: 260px;
    border-radius: 20px;
    border-width: 4px;
  }
}

.hero-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.preview-phone-container {
  position: relative;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

@media (min-width: 640px) {
  .preview-phone-container {
    max-width: 350px;
  }
}

@media (min-width: 1024px) {
  .preview-phone-container {
    max-width: 380px;
  }
}

@media (min-width: 1280px) {
  .preview-phone-container {
    max-width: 410px;
  }
}

.preview-phone-frame {
  position: relative;
  width: 100%;
  height: clamp(470px, 64vh, 620px);
  aspect-ratio: 9 / 19.2;
  border-radius: 40px;
  overflow: hidden;
  background: #ffffff;
  border: 9px solid #0f172a;
  box-shadow: 0 25px 60px -12px rgba(31, 38, 135, 0.3),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.15);
}

/* Dynamic Island Pill */
.preview-phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  z-index: 25;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.2);
}

.preview-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  background-color: #ffffff;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  /* Enable 3D transforms for GSAP rotationX */
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* 3D perspective context for phone frame */
.preview-phone-frame {
  perspective: 1200px;
}

/* Enhanced Active Tab Indicator */
.preview-tab-btn {
  position: relative;
  transform-origin: center;
  will-change: transform;
}

.preview-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 15%;
  right: 15%;
  height: 2.5px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: tabIndicatorIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabIndicatorIn {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Feature card containers — smooth transitions */
.preview-phone-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* Slide From Bottom & Smooth Motion Classes (Light & Crisp) */
.preview-screen-enter-up {
  opacity: 0.3 !important;
  transform: translateY(28px) scale(0.98) !important;
}

.preview-screen-active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.preview-screen-exit-up {
  opacity: 0.35 !important;
  transform: translateY(-20px) scale(0.98) !important;
}

.preview-screen-enter-down {
  opacity: 0.3 !important;
  transform: translateY(-28px) scale(0.98) !important;
}

.preview-screen-exit-down {
  opacity: 0.35 !important;
  transform: translateY(20px) scale(0.98) !important;
}

.preview-fade-up {
  animation: previewFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes previewFadeUp {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Scroll progress indicator bar */
.hero-scroll-progress-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(31, 38, 135, 0.1);
  border: 1px solid rgba(74, 133, 246, 0.15);
}

.hero-scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: #cbd5e1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-scroll-dot.active {
  width: 28px;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(74, 133, 246, 0.4);
}

/* Scroll Hint Badge */
.scroll-hint-pill {
  position: absolute;
  bottom: 60px;
  right: 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 133, 246, 0.2);
  border-radius: 9999px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #1F2687;
  box-shadow: 0 4px 15px rgba(31, 38, 135, 0.08);
  animation: bounce-slow 2.5s infinite;
  z-index: 25;
}

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

/* Islamweb-Inspired Feature Cards */
.pillar-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(74, 133, 246, 0.12);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 260px;
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px rgba(31, 38, 135, 0.12);
  border-color: rgba(74, 133, 246, 0.35);
}

.pillar-card:hover::after {
  opacity: 1;
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.08) rotate(2deg);
  background: var(--gradient-primary);
  color: #ffffff;
}

.pillar-icon-box {
  transition: all 0.3s ease;
}

/* Pillar Card Right-Side Faded Illustration */
.pillar-card-illustration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0) 100%);
}

.pillar-card-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0.4) 30%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.pillar-card-illustration img,
.pillar-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.95;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.pillar-card:hover .pillar-card-illustration img,
.pillar-card:hover .pillar-card-img {
  transform: scale(1.08) translateX(-4px);
  opacity: 1;
}

/* Phone Mockup Styling */
.phone-mockup-wrapper {
  position: relative;
  filter: drop-shadow(0 25px 35px rgba(31, 38, 135, 0.18));
}

.phone-mockup-frame {
  border: 10px solid #1e293b;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.15);
}

.phone-notch {
  width: 120px;
  height: 20px;
  background: #1e293b;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 20;
}

/* Glassmorphism Classes */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-card-dark {
  background: rgba(31, 38, 135, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

/* Custom Section & Category Typography Tags (Clean Free Text) */
.badge-gold {
  color: var(--color-gold-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
}

.badge-blue {
  color: var(--color-electric-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: transparent;
  border: none;
}

/* Interactive Button Hover Glow */
.btn-electric {
  background: var(--gradient-primary);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(74, 133, 246, 0.4);
}

.btn-electric:hover {
  background: linear-gradient(135deg, #3b74e6 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(74, 133, 246, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, #E5A824 0%, #D97706 60%, #B45309 100%);
  color: #fff;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
  box-shadow: 0 10px 28px -4px rgba(217, 119, 6, 0.55), 0 0 0 2px rgba(254, 240, 138, 0.3);
  transform: translateY(-2px) scale(1.01);
  color: #fff;
}

.btn-gold:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}

.btn-gold:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #1F2687, 0 0 0 5px #F59E0B;
}

/* Form Styles with Electric Blue & Custom Error Feedback */
.form-input-focus {
  transition: all 0.2s ease-in-out;
  background-color: #FFFFFF !important;
  color: #0F172A !important;
}

.form-input-focus:focus {
  border-color: #4A85F6 !important;
  box-shadow: 0 0 0 3.5px rgba(74, 133, 246, 0.35), 0 4px 14px rgba(74, 133, 246, 0.15) !important;
  outline: none;
}

.form-input-focus.is-invalid {
  border-color: #F43F5E !important;
  box-shadow: 0 0 0 3.5px rgba(244, 63, 94, 0.3) !important;
  background-color: #FFF8F8 !important;
}

/* Custom Interactive Radio Pills */
.beta-radio-pill {
  position: relative;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.beta-radio-pill.active,
.beta-radio-pill:has(input:checked) {
  border-color: #4A85F6 !important;
  background-color: rgba(74, 133, 246, 0.22) !important;
  box-shadow: 0 0 18px rgba(74, 133, 246, 0.32), inset 0 0 0 1px #4A85F6 !important;
  color: #FFFFFF !important;
}

.beta-radio-pill.active .custom-radio-dot,
.beta-radio-pill:has(input:checked) .custom-radio-dot {
  border-color: #4A85F6 !important;
  background-color: #FFFFFF !important;
}

.beta-radio-pill.active .custom-radio-dot > span,
.beta-radio-pill:has(input:checked) .custom-radio-dot > span {
  background-color: #1F2687 !important;
  transform: scale(1);
}

.custom-radio-dot > span {
  transform: scale(0);
  transition: transform 0.2s ease;
}

/* Animations Trigger Defaults */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }
.reveal-delay-500 { transition-delay: 500ms; }

/* Offcanvas Mobile Menu */
.offcanvas {
  background: #1F2687 !important;
  color: #ffffff;
}

.offcanvas .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.offcanvas-nav-link {
  color: #E8F0FE;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  display: block;
  transition: all 0.2s ease;
}

.offcanvas-nav-link:hover, .offcanvas-nav-link.active {
  background: rgba(74, 133, 246, 0.2);
  color: #D4AF37;
}

/* Pulse Glow Animation */
@keyframes subtle-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

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

/* Prayer Time Cards & Widget */
.prayer-time-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid rgba(74, 133, 246, 0.12);
}

.prayer-time-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 133, 246, 0.35);
  box-shadow: 0 12px 24px -6px rgba(31, 38, 135, 0.1);
}

.prayer-time-card.is-active {
  border-color: #2563EB !important;
  background: #EFF6FF !important;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.18) !important;
}

/* Testimonial Cards */
.testimonial-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(74, 133, 246, 0.12);
  background: #ffffff;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -10px rgba(31, 38, 135, 0.12);
  border-color: rgba(74, 133, 246, 0.35);
}

/* FAQ Accordion */
.faq-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(74, 133, 246, 0.12);
}

.faq-item:hover {
  border-color: rgba(74, 133, 246, 0.3);
}

.faq-item.is-open {
  border-color: rgba(74, 133, 246, 0.45) !important;
  box-shadow: 0 12px 28px -8px rgba(31, 38, 135, 0.1) !important;
}

.faq-item.is-open .faq-icon-box {
  transform: rotate(180deg);
  background: #1F2687 !important;
  color: #ffffff !important;
}

/* =========================================================================
   SIRAJ AI SPOTLIGHT & CHAT PLAYGROUND STYLES (Clean White Theme)
   ========================================================================= */
.ai-chat-device-card {
  box-shadow: 0 10px 30px -5px rgba(31, 38, 135, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-chat-device-card:hover {
  box-shadow: 0 16px 36px -8px rgba(31, 38, 135, 0.12);
}

/* Prompt Buttons (Clean & Simple) */
.ai-prompt-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: #FFFFFF;
  color: #475569;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ai-prompt-chip:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.ai-prompt-chip.active {
  background: #EFF6FF;
  border-color: #3B82F6;
  color: #1D4ED8;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

/* Chat Bubbles Animation */
.ai-user-bubble {
  animation: chatBubbleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-response-bubble {
  animation: chatBubbleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chatBubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typing Indicator Animation */
.ai-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: #3B82F6;
  border-radius: 50%;
  animation: aiTypingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

.ai-typing-dot:nth-child(3) {
  animation-delay: 0;
}

@keyframes aiTypingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* AI Feature Boxes */
.ai-feature-box {
  transition: all 0.25s ease;
}

.ai-feature-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(31, 38, 135, 0.08);
}

/* Floating AI Mascot & Speech Bubble */
.floating-agent-mascot {
  animation: floatMascot 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(31, 38, 135, 0.22)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.35s ease;
}

.floating-agent-bubble {
  position: relative;
  animation: floatBubble 4s ease-in-out infinite;
  box-shadow: 0 10px 25px -4px rgba(31, 38, 135, 0.16), 0 4px 6px -2px rgba(31, 38, 135, 0.06);
}

.floating-bubble-tail {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #FFFFFF;
}

@keyframes floatMascot {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.2deg);
  }
}

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

#floating-ai-launcher:hover .floating-agent-mascot {
  transform: translateY(-6px) scale(1.08);
  filter: drop-shadow(0 18px 26px rgba(31, 38, 135, 0.32)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
}

#floating-ai-launcher:hover .floating-agent-bubble {
  transform: translateY(-4px) scale(1.05);
}

/* Prompt Chips */
.ai-prompt-chip {
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ai-prompt-chip:hover {
  background-color: #E2E8F0;
  color: #0F172A;
}

.ai-prompt-chip.active {
  background-color: #2563EB;
  color: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

/* ==========================================================================
   SIRAJ AI POPUP CHAT MODAL & AUDIO WAVE VISUALIZER
   ========================================================================== */

/* Audio Wave Visualizer Animation */
.ai-audio-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}

.ai-audio-wave .wave-bar {
  display: inline-block;
  width: 3px;
  height: 12px;
  background-color: currentColor;
  border-radius: 9999px;
  animation: aiWaveMotion 1.2s ease-in-out infinite alternate;
}

.ai-audio-wave .wave-bar:nth-child(1) { animation-delay: 0.1s; height: 6px; }
.ai-audio-wave .wave-bar:nth-child(2) { animation-delay: 0.3s; height: 14px; }
.ai-audio-wave .wave-bar:nth-child(3) { animation-delay: 0.5s; height: 10px; }
.ai-audio-wave .wave-bar:nth-child(4) { animation-delay: 0.2s; height: 16px; }

@keyframes aiWaveMotion {
  0% {
    transform: scaleY(0.4);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(1.3);
    opacity: 1;
  }
}

/* Modal Default Closed State */
#siraj-ai-chat-modal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#siraj-ai-chat-backdrop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#siraj-ai-chat-window {
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  #siraj-ai-chat-window {
    transform: translateY(20px) scale(0.96);
  }
}

/* Modal Open State */
#siraj-ai-chat-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#siraj-ai-chat-modal.is-open #siraj-ai-chat-backdrop {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#siraj-ai-chat-modal.is-open #siraj-ai-chat-window {
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* Modal Suggestion Chips */
.ai-modal-chip {
  white-space: nowrap;
  user-select: none;
}

/* Chat Message Bubbles */
.ai-msg-bubble-user {
  background: linear-gradient(135deg, #4A85F6 0%, #2563EB 100%);
  color: #FFFFFF;
  border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.25);
}

.ai-msg-bubble-bot {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #1E293B;
  border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
  box-shadow: 0 2px 8px -1px rgba(0, 0, 0, 0.04);
}

/* Bouncing Typing Dots */
.ai-typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #3B82F6;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.ai-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-dot:nth-child(2) { animation-delay: -0.16s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Custom Scrollbar for Chat Thread */
#ai-modal-messages-thread::-webkit-scrollbar {
  width: 5px;
}

#ai-modal-messages-thread::-webkit-scrollbar-track {
  background: transparent;
}

#ai-modal-messages-thread::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}

#ai-modal-messages-thread::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Mobile Screen Bottom-Sheet Adjustments */
@media (max-width: 639px) {
  #siraj-ai-chat-window {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  /* Prevent virtual keyboard overflow on iOS and Android */
  #siraj-ai-chat-modal.is-open {
    overflow: hidden;
  }
}

/* ==========================================================================
   3D INTERACTIVE CARD ANIMATIONS (Beta Invitation Card)
   ========================================================================== */
.card-3d-perspective {
  perspective: 1200px;
  perspective-origin: center center;
}

.beta-3d-card {
  transform-style: preserve-3d;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
  will-change: transform;
  animation: float3d 7s ease-in-out infinite;
}

.beta-3d-card.is-interacting {
  animation: none;
  transition: transform 0.08s ease-out;
}

.card-3d-layer {
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-layer-calligraphy {
  transform: translateZ(35px);
}

.card-layer-title {
  transform: translateZ(45px);
}

.card-layer-text {
  transform: translateZ(25px);
}

.card-layer-pills {
  transform: translateZ(35px);
}

.card-layer-cta {
  transform: translateZ(55px);
}

.card-layer-trust {
  transform: translateZ(20px);
}

.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 70%);
  transition: opacity 0.35s ease;
  z-index: 10;
  mix-blend-mode: overlay;
}

.beta-3d-card:hover .card-glare,
.beta-3d-card.is-interacting .card-glare {
  opacity: 1;
}

@keyframes float3d {
  0%, 100% {
    transform: translateY(0px) rotateX(0deg) rotateY(0deg);
    box-shadow: 0 20px 40px -15px rgba(31, 38, 135, 0.35), 0 0 20px rgba(74, 133, 246, 0.15);
  }
  25% {
    transform: translateY(-6px) rotateX(2.5deg) rotateY(-2deg);
    box-shadow: 0 28px 50px -15px rgba(31, 38, 135, 0.45), 0 0 25px rgba(212, 175, 55, 0.2);
  }
  50% {
    transform: translateY(-10px) rotateX(-2deg) rotateY(2deg);
    box-shadow: 0 32px 55px -15px rgba(31, 38, 135, 0.5), 0 0 30px rgba(74, 133, 246, 0.25);
  }
  75% {
    transform: translateY(-4px) rotateX(1.5deg) rotateY(2.2deg);
    box-shadow: 0 26px 45px -15px rgba(31, 38, 135, 0.4), 0 0 22px rgba(212, 175, 55, 0.15);
  }
}

/* ==========================================================================
   IN-BETWEEN SCREEN LOADING STATE (Preloader & Page Transitions)
   ========================================================================== */
#siraj-page-loader {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

#siraj-page-loader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#siraj-page-loader.is-transitioning {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.loader-halo-ring {
  animation: rotateHalo 6s linear infinite;
}

@keyframes rotateHalo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}




