/*
   AADARSH ENTERPRISE - 2026 Enterprise Industrial Style
   Tailwind Extension & Custom Micro-Interactions
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Prevent horizontal scroll WITHOUT the classic "overflow-x: hidden on html/body
   breaks position: sticky" bug (setting overflow on only one axis forces the
   browser to treat the other axis as "auto", which disables sticky descendants
   in many browsers). overflow-x: clip has no such side effect. */
html, body {
  overflow-x: clip;
}

:root {
  --brand-navy-dark: #070d1e;
  --brand-navy: #0b152e;
  --brand-navy-light: #162447;
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-slate-bg: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
  background-color: #f8fafc;
  font-size: 15px;
  line-height: 1.6;
}

input, textarea, select {
  
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism Styles */
.glass-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-card-dark {
  background: rgba(11, 21, 46, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

/* Subtitle & Accent Glows */
.ambient-glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

/* Subtle Industrial Dot & Grid Backgrounds */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(14, 165, 233, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

.bg-dot-pattern-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Premium Industrial Interactive Hover Lift Effects */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -12px rgba(2, 132, 199, 0.20), 0 12px 18px -6px rgba(15, 23, 42, 0.08);
}

/* Tactile Micro Button Hover */
.hover-scale {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.hover-scale:hover {
  transform: translateY(-2px) scale(1.02);
}

.hover-scale:active {
  transform: translateY(0px) scale(0.98);
}

/* Gloss Shimmer Light Sweep on Hover */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s ease;
  pointer-events: none;
}

.shimmer-hover:hover::before {
  left: 150%;
}

/* Preloader Hidden Transition */
#preloader {
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 2026 Bespoke Industrial Precision UI Tokens */
.tech-border {
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.tech-border-dark {
  border: 1px solid rgba(51, 65, 85, 0.6);
  position: relative;
}

.tech-bracket {
  position: relative;
}

.tech-bracket::before {
  content: '[';
  color: #0284c7;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-right: 4px;
}

.tech-bracket::after {
  content: ']';
  color: #0284c7;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  margin-left: 4px;
}

/* Diagnostic Drawer Active State */
.diagnostic-drawer {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.diagnostic-drawer[aria-expanded="true"] {
  border-left: 4px solid #0284c7 !important;
  background-color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.1), 0 8px 10px -6px rgba(2, 132, 199, 0.05);
}

.diagnostic-drawer[aria-expanded="true"] .drawer-chevron {
  transform: rotate(180deg);
  color: #0284c7;
}

.diagnostic-drawer[aria-expanded="true"] .drawer-index {
  color: #0284c7;
  font-weight: 700;
}

/* Infinite Marquee Animation for Client Logos */
@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

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

/* Pulse Beacon */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-beacon {
  animation: pulse-ring 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Video Play Button Pulse */
@keyframes play-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
  }
  70% {
    transform: scale(1.06);
    box-shadow: 0 0 0 18px rgba(2, 132, 199, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.video-play-pulse {
  animation: play-pulse 2.2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Hardware Glow effect */
.hardware-glow {
  box-shadow: 0 20px 50px -15px rgba(2, 132, 199, 0.25);
  transition: all 0.4s ease;
}

.hardware-glow:hover {
  box-shadow: 0 25px 60px -10px rgba(2, 132, 199, 0.4);
  transform: translateY(-4px);
}

/* =========================================================================
   SMOOTH SCROLLING & SCROLL-REVEAL ATTENTION ANIMATIONS
   ========================================================================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

/* Smooth reveal animations */
.fade-in-up {
  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);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Card Reveal on Scroll */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Timeline Slide-In (alternating left/right entrance) */
.slide-in-left,
.slide-in-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.slide-in-left {
  transform: translateX(-60px);
}

.slide-in-right {
  transform: translateX(60px);
}

.slide-in-left.is-revealed,
.slide-in-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767px) {
  /* On mobile the timeline stacks to one column — slide up instead of sideways */
  .slide-in-left,
  .slide-in-right {
    transform: translateY(24px);
  }
  .slide-in-left.is-revealed,
  .slide-in-right.is-revealed {
    transform: translateY(0);
  }
}

/* Attention-Grabbing Highlight Pulse When Section Reached */
@keyframes section-pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
    border-color: rgba(2, 132, 199, 0.4);
  }
  50% {
    box-shadow: 0 0 35px 8px rgba(2, 132, 199, 0.35);
    border-color: rgba(6, 182, 212, 0.9);
  }
  100% {
    box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.25);
    border-color: rgba(2, 132, 199, 0.5);
  }
}

.attention-target.section-active {
  animation: section-pulse-glow 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Laser Scanner Beam for Hardware Showcase */
@keyframes laser-sweep {
  0% {
    top: 5%;
    opacity: 0.1;
  }
  15% {
    opacity: 0.95;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    top: 92%;
    opacity: 0.1;
  }
}

.laser-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #06b6d4, #38bdf8, #06b6d4, transparent);
  box-shadow: 0 0 14px 3px rgba(6, 182, 212, 0.75), 0 0 24px 6px rgba(56, 189, 248, 0.45);
  animation: laser-sweep 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 20;
}

/* Floating Badges for Hero Section */
@keyframes float-badge-updown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.animate-float-1 {
  animation: float-badge-updown 4s ease-in-out infinite;
}

.animate-float-2 {
  animation: float-badge-updown 4.8s ease-in-out infinite 0.7s;
}

.animate-float-3 {
  animation: float-badge-updown 5.2s ease-in-out infinite 1.4s;
}

/* Dynamic Text Gradient Shift */
@keyframes text-gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient-text { padding-bottom: 0.15em; 
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 30%, #ffffff 70%, #0284c7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-gradient-flow 4.5s ease infinite;
  padding-bottom: 0.15em; /* Prevents descenders (p, j, g) from being clipped by background-clip */
}

/* High-Tech Animated Radar Sweep Reticle */
@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-radar {
  transform-origin: center;
  animation: radar-spin 12s linear infinite;
}

/* =========================================================================
   HERO ENTRANCE ANIMATION (Page Load Stagger)
   ========================================================================= */
@keyframes hero-slide-up {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0);    }
}

@keyframes hero-fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.hero-anim-1 {
  opacity: 0;
  animation: hero-slide-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}
.hero-anim-2 {
  opacity: 0;
  animation: hero-slide-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero-anim-3 {
  opacity: 0;
  animation: hero-slide-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.hero-anim-4 {
  opacity: 0;
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}
.hero-anim-5 {
  opacity: 0;
  animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}
.hero-anim-6 {
  opacity: 0;
  animation: hero-fade-in 1s ease-out 1.1s forwards;
}

/* =========================================================================
   SMOOTH SLIDER CROSSFADE TRANSITION
   ========================================================================= */
.pm-slide {
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pm-slide.opacity-0 {
  transform: scale(1.02);
}
.pm-slide.opacity-100 {
  transform: scale(1);
}


/* Chatbot Message Animations */
.scale-up-tr {
  animation: scale-up-tr 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.scale-up-tl {
  animation: scale-up-tl 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes scale-up-tr {
  0% { transform: scale(0.5); transform-origin: 100% 100%; opacity: 0; }
  100% { transform: scale(1); transform-origin: 100% 100%; opacity: 1; }
}
@keyframes scale-up-tl {
  0% { transform: scale(0.5); transform-origin: 0% 100%; opacity: 0; }
  100% { transform: scale(1); transform-origin: 0% 100%; opacity: 1; }
}
