/* 
   SpearStreamZ Custom Stylesheet - Enterprise Edition
   Combines Bootstrap 5 overrides with Premium MNC-Level Design Aesthetics
*/

:root {
  /* Color Palette - Updated to Deep Navy + Electric Blue */
  --color-primary: #0056b3;
  --color-dark-blue: #0b192c;
  /* Deep Navy */
  --color-navy-mid: #132743;
  --color-navy-light: #1b375b;
  
  --color-electric: #27c7cb;
  /* --color-electric: #172537; */
  /* Electric Blue Accent */
  --color-teal: #0dcaf0;

  --color-dark: #070e18;
  --color-light: #f4f6f9;
  --color-white: #ffffff;

  /* Typography */
  --font-primary: "Inter", sans-serif;

  /* Animation Timing */
  --trans-speed: 0.3s;
}

body {
  font-family: var(--font-primary);
  color: #495057;
  overflow-x: hidden;
  background-color: var(--color-light);
  /* Off-white for cleaner contrast */
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.heading-font {
  font-family: var(--font-primary);
  letter-spacing: -0.5px;
}

.text-dark-blue {
  color: var(--color-dark-blue) !important;
}

.bg-dark-blue {
  background-color: var(--color-dark-blue) !important;
}

.bg-navy-mid {
  background-color: var(--color-navy-mid) !important;
}

.bg-navy-light {
  background-color: var(--color-navy-light) !important;
}

.text-electric {
  color: #27c7cb !important;
}

.brand-dot {
  margin-left: -0.45em;
}

.bg-electric {
  background-color: var(--color-electric) !important;
}

.border-electric {
  border-color: var(--color-electric) !important;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

/* Base Utility Classes */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 992px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.hover-up {
  transition:
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease;
}

.hover-up:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.hover-up-sm {
  transition: transform 0.2s ease;
}

.hover-up-sm:hover {
  transform: translateY(-2px);
  color: var(--color-electric) !important;
}

/* 
--------------------------------------------------------------
 BUTTONS
-------------------------------------------------------------- 
*/
.btn-electric {
    background-color: #0056b3;
    color: #f8f9fa;
    font-weight: 700;
    border: none;
}

.btn-electric:hover {
  background-color: #33dbff;
  color: var(--color-dark-blue);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* 
--------------------------------------------------------------
 NAVBAR STYLES
-------------------------------------------------------------- 
*/
.transition-navbar {
  transition: all 0.4s ease;
  padding: 1.5rem 0;
  background-color: transparent;
}

/* When scrolled JS class */
.transition-navbar.scrolled {
  background-color: rgba(11, 25, 44, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.transition-navbar .navbar-brand {
  color: var(--color-white);
  font-size: 1.5rem;
}

.transition-navbar .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
  transition: var(--trans-speed) ease;
}

.transition-navbar .nav-link:hover,
.transition-navbar .nav-link.active {
  color: var(--color-white) !important;
}

/* Animated underline for nav links */
.transition-navbar .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  background-color: var(--color-electric);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

.transition-navbar .navbar-toggler {
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.transition-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.nav-btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
}

.transition-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  .transition-navbar .navbar-brand {
    font-size: 1.2rem;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 991.98px) {
  .transition-navbar {
    background-color: rgba(11, 25, 44, 0.98);
    padding: 1rem 0;
  }
}

/* 
--------------------------------------------------------------
 BACKGROUND WORKFLOW LINES (Animated)
-------------------------------------------------------------- 
*/
.workflow-lines-bg {
  background-image:
    linear-gradient(to right, rgba(11, 25, 44, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 25, 44, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
  animation: panLines 60s linear infinite;
}

@keyframes panLines {
  0% {
    transform: translateY(0) translateX(0);
  }

  100% {
    transform: translateY(-50px) translateX(-50px);
  }
}

/* 
--------------------------------------------------------------
 HERO SECTION
-------------------------------------------------------------- 
*/
.hero-section {
  position: relative;
  min-height: 100vh;
  background: url("../assets/images/hero-bg.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,
      rgba(11, 25, 44, 0.95) 0%,
      rgba(19, 39, 67, 0.85) 100%);
  z-index: 0;
}

.hero-mockup-wrapper {
  transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
  overflow: hidden;
}

.hero-mockup-wrapper:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.hero-inline-video {
  position: absolute;
  inset: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: rgba(5, 11, 20, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 2;
}

.hero-inline-video.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-inline-video-player {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 1rem;
  object-fit: contain;
  background: #050b14;
}

.video-play-btn {
  transition: transform 0.35s ease, filter 0.35s ease;
  z-index: 3;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 12px 30px rgba(39, 199, 203, 0.35));
}

.play-icon-pulse {
  position: relative;
  overflow: hidden;
}

.play-icon-pulse::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(39, 199, 203, 0.45);
  border-radius: 50%;
  animation: playPulse 2.2s ease-out infinite;
}

@keyframes playPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.85;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.demo-video-modal .modal-content {
  background:
    radial-gradient(circle at top left, rgba(39, 199, 203, 0.18), transparent 34%),
    linear-gradient(145deg, #091425 0%, #0f2038 52%, #132743 100%);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
}

.demo-video-modal .modal-dialog {
  max-width: min(1380px, calc(100vw - 2rem));
}

.demo-video-modal .modal-body {
  padding: 0;
}

.demo-video-modal .modal-backdrop,
.demo-video-modal.show {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.demo-video-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 0.85rem;
}

.demo-video-frame {
  position: relative;
  height: 100%;
  min-height: 360px;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.demo-video-frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.demo-video-player {
  width: 100%;
  height: auto;
  max-height: 76vh;
  display: block;
  object-fit: contain;
  border-radius: 24px;
  background: #050b14;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.demo-video-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.75rem 1.5rem 1.75rem 0.75rem;
  color: var(--color-white);
}

.demo-video-kicker {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(39, 199, 203, 0.12);
  color: var(--color-electric);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-video-title {
  font-size: clamp(1.45rem, 2.1vw, 2.05rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.demo-video-copy {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.demo-video-feature-list {
  display: grid;
  gap: 0.9rem;
}

.demo-video-feature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.demo-video-feature i {
  color: var(--color-electric);
  font-size: 1.1rem;
}

@media (max-width: 991.98px) {
  .demo-video-modal .modal-dialog {
    max-width: calc(100vw - 1rem);
  }

  .demo-video-panel {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .demo-video-frame {
    min-height: 280px;
  }

  .demo-video-player {
    max-height: 58vh;
  }
}

/* 
--------------------------------------------------------------
 GLASSMORPHISM & CARDS
-------------------------------------------------------------- 
*/
.glassmorphism-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

.glassmorphism-card-dark {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 210, 255, 0.2);
}

.glassmorphism-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.glassmorphism-card-dark:hover {
  border-color: var(--color-electric);
}

.icon-box {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

/* 
--------------------------------------------------------------
 HOW IT WORKS (STEPS)
-------------------------------------------------------------- 
*/
.step-circle {
  width: 80px;
  height: 80px;
  transition: all 0.3s ease;
}

.step-container .col-lg-2:hover .step-circle {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.4) !important;
}

/* 
--------------------------------------------------------------
 FOOTER
-------------------------------------------------------------- 
*/
.btn-social {
  width: 40px;
  height: 40px;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s;
}

.btn-social:hover {
  background-color: var(--color-electric);
  border-color: var(--color-electric);
  color: var(--color-dark-blue);
  transform: translateY(-3px);
}

.text-hover-primary:hover {
  color: var(--color-electric) !important;
}

/* 
--------------------------------------------------------------
 ANIMATIONS / SCROLL REVEAL
-------------------------------------------------------------- 
*/
.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-fade-up.active,
.reveal-fade-left.active,
.reveal-fade-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}

.delay-5 {
  transition-delay: 0.5s;
}

@media (max-width: 768px) {

  .delay-1,
  .delay-2,
  .delay-3,
  .delay-4,
  .delay-5 {
    transition-delay: 0s !important;
  }
}

/* 
--------------------------------------------------------------
 PLAY BUTTON PULSE
-------------------------------------------------------------- 
*/
.play-icon-pulse {
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid var(--color-electric);
  cursor: pointer;
}

.play-icon-pulse::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid var(--color-electric);
  animation: pulse 2s infinite ease-out;
  z-index: -1;
}

.play-icon-pulse:hover {
  transform: scale(1.05);
  background-color: var(--color-electric) !important;
  color: var(--color-dark-blue) !important;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* 
--------------------------------------------------------------
 CONTACT PAGE STYLES
-------------------------------------------------------------- 
*/
.contact-hero-section {
  padding: 180px 0 100px;
  background: var(--color-navy-mid);
  position: relative;
  overflow: hidden;
}

.contact-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  padding: 3rem;
  border-top: 5px solid var(--color-electric);
}

.form-control-custom {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background-color: #fff;
  border-color: var(--color-electric);
  box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(95 206 216 / 32%);
  color: var(--color-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.contact-alert {
  display: none;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
