/* SAM AI Technologies - Custom Styles & Print Styles */
:root {
  --primary-navy: #0B192C;
  --secondary-navy: #0F172A;
  --accent-orange: #FF6B00;
  --accent-orange-hover: #E05E00;
  --accent-cyan: #38BDF8;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Cyber Grid */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.cyber-grid-dark {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

/* Glowing Circles & Portal Effect */
.neon-glow-cyan {
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.35), inset 0 0 30px rgba(56, 189, 248, 0.2);
}

.neon-glow-orange {
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.3);
}

/* Rotating Ring */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

.animate-spin-reverse {
  animation: reverseSpin 25s linear infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 4s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B192C;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

/* =====================================================================
   DTI Benchmark: Floating Tech Stack Tool Cards & Bobbing Drift Keyframes
   ===================================================================== */
.h2-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.h2-float {
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(11, 25, 44, 0.08), 0 0 0 1px rgba(11, 25, 44, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.h2-float:hover {
  transform: scale(1.18) translateY(-6px) !important;
  box-shadow: 0 20px 35px -8px rgba(11, 25, 44, 0.16), 0 0 0 2px rgba(255, 107, 0, 0.3);
  z-index: 25;
}

.h2-float img, .h2-float i {
  transition: transform 0.3s ease;
}
.h2-float:hover img, .h2-float:hover i {
  transform: scale(1.1);
}

.h2-float-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #0B192C;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Distinct Drift Animations with Varied Speeds and Trajectories */
@keyframes hfdrift-a {
  0%   { transform: translateY(0px) rotate(-1.5deg); }
  100% { transform: translateY(-24px) rotate(2deg); }
}

@keyframes hfdrift-b {
  0%   { transform: translateY(0px) rotate(1.5deg); }
  100% { transform: translateY(-20px) rotate(-2deg); }
}

@keyframes hfdrift-c {
  0%   { transform: translateY(-8px) rotate(0.5deg); }
  100% { transform: translateY(18px) rotate(-1.5deg); }
}

.h2-float.anim-a { animation: hfdrift-a 5.5s ease-in-out infinite alternate; }
.h2-float.anim-b { animation: hfdrift-b 6.5s ease-in-out 0.8s infinite alternate; }
.h2-float.anim-c { animation: hfdrift-c 5s ease-in-out 1.4s infinite alternate; }

/* Hide some floating badges on mobile/tablet to keep hero uncluttered */
@media (max-width: 1024px) {
  .h2-float { width: 50px; height: 50px; border-radius: 14px; }
  .h2-float-badge { display: none; }
  .h2-float.hide-mobile { display: none !important; }
}

/* =====================================================================
   Infinite Marquee Ticker (Smooth, Seamless, Never Stacking)
   ===================================================================== */
@keyframes h2marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.h2-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.h2-marquee-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  animation: h2marquee 26s linear infinite;
  will-change: transform;
}

.h2-marquee-wrap:hover .h2-marquee-track {
  animation-play-state: paused;
}

/* Legacy alias fallback */
.animate-marquee {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  animation: h2marquee 26s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* =====================================================================
   DTI "What will you get at SAM AI" - Tool Icon Crossfade Carousel
   ===================================================================== */
.why-icon-carousel {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
}

.why-icon-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(11, 25, 44, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.why-icon-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* =====================================================================
   DTI-Benchmark Auto-Looping Feature Cards ("Learn Skills That Make You Unstoppable")
   ===================================================================== */
.mc-card-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 4px 20px -2px rgba(11, 25, 44, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.mc-card-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -8px rgba(11, 25, 44, 0.12);
  border-color: #CBD5E1;
}

.mc-stage-dark {
  background: #0B192C;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1E293B;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

/* Card 1: Toolchain Auto-Credit Pill */
.mc-toolbar-wrap {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mc-save-btn {
  transition: all 0.25s ease;
}
.mc-save-btn.saving {
  background: #10B981 !important;
  transform: scale(0.95);
}
.mc-credit-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.mc-credit-pill.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

/* Card 2: Batch Quick Enroll Loop */
.mc-batch-row {
  transition: all 0.3s ease;
}
.mc-batch-row.active {
  background: rgba(255, 107, 0, 0.15) !important;
  border-color: #FF6B00 !important;
}
.mc-batch-check {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mc-batch-check.checked {
  background: #10B981 !important;
  border-color: #10B981 !important;
  color: #FFF !important;
  transform: scale(1.1);
}

/* Card 3: Placement Reply & Sent Toast Loop */
.mc-reply-wrap {
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mc-sent-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  padding: 8px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.mc-sent-badge.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Card 4: Terminal Typing Cursor & Line Reveal */
.mc-code-line {
  transition: opacity 0.3s ease;
}
.mc-cursor {
  display: inline-block;
  width: 6px;
  height: 13px;
  background: #38BDF8;
  margin-left: 2px;
  animation: cursorBlink 0.9s infinite;
  vertical-align: middle;
}

/* Card 5: Circular Milestone Arc & Progress Count */
.mc-arc-svg {
  transform: rotate(-90deg);
}
.mc-arc-path {
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Card 6: QR Scan Laser Animation */
@keyframes qrLaserScan {
  0% { top: 4px; opacity: 0.9; }
  50% { top: 88%; opacity: 1; }
  100% { top: 4px; opacity: 0.9; }
}
.qr-scanner-laser {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22C55E, #10B981, transparent);
  box-shadow: 0 0 10px #22C55E;
  animation: qrLaserScan 2.2s ease-in-out infinite;
}

/* =====================================================================
   Mobbin-Style Interactive Cards: Terminal, Sheet & Notification
   ===================================================================== */
@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #38BDF8;
  vertical-align: middle;
  animation: cursorBlink 1s infinite;
}

@keyframes pulseCheck {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.animate-pop {
  animation: pulseCheck 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Review Masonry Column Break */
.masonry-col {
  break-inside: avoid;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6B00;
}

/* Certificate Guilloche & Print Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .print-page {
    page-break-after: always;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

/* Smartphone Live Stream & Chat Simulation Keyframes */
@keyframes slideUpFadeIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sim-chat-msg {
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.program-card {
  animation: fadeInCard 0.35s ease forwards;
}
