/* assets/css/custom.css */
/* Premium Ultra-Modern Design for JDK Aerospace */

/* Smooth Scroll override for Lenis compatibility */
html {
  scroll-behavior: auto !important;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Body Padding to accommodate Top Bar */
body {
  padding-top: 40px;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Dynamic Top Bar and Navbar transitions */
#top-bar {
  height: 40px;
}

#main-nav {
  top: 40px;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When scrolled, hide top bar and stick navbar at the absolute top */
body.scrolled #top-bar {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

body.scrolled #main-nav {
  top: 0;
}

/* Mobile menu offsets that align with scrolled states */
#mobile-menu {
  top: 104px;
  transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  #mobile-menu {
    top: 120px;
  }
}

body.scrolled #mobile-menu {
  top: 64px;
}

@media (min-width: 768px) {
  body.scrolled #mobile-menu {
    top: 80px;
  }
}

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

::-webkit-scrollbar-track {
  background: #f0f7ff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e6fff 0%, #0d3ea9 50%, #f59e0b 100%);
  border-radius: 10px;
  border: 3px solid #f0f7ff;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0f50db 0%, #0a1a3e 50%, #d97706 100%);
}

/* Hero Section - Stunning Gradient Background */
.hero-pattern {
  background: 
    radial-gradient(circle at 10% 20%, rgba(30, 111, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(13, 62, 169, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f0f7ff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero-pattern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(30, 111, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: heroPattern 30s linear infinite;
  opacity: 0.5;
}

@keyframes heroPattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(30px, 30px); }
}

/* Premium Button */
.btn-premium {
  background: linear-gradient(135deg, #1e6fff 0%, #0d3ea9 100%);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px -10px rgba(30, 111, 255, 0.5);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s ease;
}

.btn-premium::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #1e6fff, #f59e0b, #1e6fff);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover::after {
  opacity: 1;
  animation: borderGlow 2s linear infinite;
}

.btn-premium:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 25px 70px -15px rgba(30, 111, 255, 0.6);
}

@keyframes borderGlow {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(30deg); }
}

/* Enhanced Card with Glass Morphism & 3D Depth */
.enhanced-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.8));
  border: 1px solid rgba(30, 111, 255, 0.15);
  border-radius: 1.75rem;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 
    0 8px 30px rgba(30, 111, 255, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.enhanced-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e6fff, #f59e0b, #1e6fff);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.enhanced-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(30, 111, 255, 0.3);
  box-shadow: 
    0 35px 80px -20px rgba(30, 111, 255, 0.25),
    0 10px 30px rgba(0, 0, 0, 0.1);
}

.enhanced-card:hover::before {
  transform: scaleX(1);
}

/* Feature Icon Wrapper */
.icon-wrapper {
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.15) 0%, rgba(30, 111, 255, 0.08) 100%);
  border: 1px solid rgba(30, 111, 255, 0.2);
  box-shadow: inset 0 2px 10px rgba(30, 111, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.icon-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e6fff 0%, #0d3ea9 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.enhanced-card:hover .icon-wrapper {
  border-color: transparent;
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 30px rgba(30, 111, 255, 0.4);
}

.enhanced-card:hover .icon-wrapper::after {
  opacity: 1;
}

.enhanced-card:hover .icon-wrapper svg {
  color: white;
  position: relative;
  z-index: 1;
}

.icon-wrapper svg {
  position: relative;
  z-index: 1;
  transition: color 0.4s ease;
}

/* Animated Line Divider */
.animated-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #1e6fff, #f59e0b, #1e6fff, transparent);
  background-size: 200% 100%;
  animation: dividerGlow 3s ease-in-out infinite;
}

@keyframes dividerGlow {
  0%, 100% { background-position: 0% 50%; opacity: 0.6; }
  50% { background-position: 100% 50%; opacity: 1; }
}

/* Floating Animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-25px) rotate(1deg); }
}

.floating {
  animation: float 7s ease-in-out infinite;
}

.floating-delayed {
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #1e6fff 0%, #0f50db 30%, #f59e0b 70%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textGradient 4s ease-in-out infinite;
}

@keyframes textGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Section Background Glow with Animated Orbs */
.section-glow {
  position: relative;
}

.section-glow::before {
  content: '';
  position: absolute;
  top: 30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(30, 111, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.section-glow::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: orbFloat 10s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Image Zoom on Hover */
.img-zoom {
  overflow: hidden;
  border-radius: 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  position: relative;
}

.img-zoom::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.1), rgba(245, 158, 11, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-zoom:hover img {
  transform: scale(1.12);
}

.img-zoom:hover::after {
  opacity: 1;
}

/* Nav Scroll Effect */
#main-nav.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

#main-nav.scrolled > div > div {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 
    0 10px 50px rgba(30, 111, 255, 0.15),
    0 2px 10px rgba(0, 0, 0, 0.05);
  border-color: rgba(30, 111, 255, 0.2);
  backdrop-filter: blur(30px);
}

/* Stat Counter Number */
.stat-number {
  background: linear-gradient(135deg, #1e6fff 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: textGradient 3s ease-in-out infinite;
}

/* Smooth Reveal Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Product Card Hover */
.product-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover {
  box-shadow: 
    0 30px 70px -20px rgba(30, 111, 255, 0.25),
    0 10px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
}

/* Industry Card */
.industry-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.08), rgba(245, 158, 11, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.industry-card:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border-color: rgba(30, 111, 255, 0.3);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 30px 60px -15px rgba(30, 111, 255, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.08);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card > div:first-child {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.industry-card:hover > div:first-child {
  background: linear-gradient(135deg, #1e6fff 0%, #0d3ea9 100%);
  border-color: transparent;
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 15px 40px rgba(30, 111, 255, 0.4);
}

.industry-card:hover > div:first-child svg {
  color: white;
}

/* Pulse Animation */
@keyframes pulse-slow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.7;
  }
}

.pulse-slow {
  animation: pulse-slow 3.5s ease-in-out infinite;
}

/* Premium Badge with Shine Effect */
.premium-badge {
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
  border: 1px solid rgba(30, 111, 255, 0.3);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.premium-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* Glass Panel with Enhanced Effects */
.glass-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 255, 0.88));
  backdrop-filter: blur(25px);
  border: 1px solid rgba(30, 111, 255, 0.18);
  box-shadow: 
    0 10px 40px rgba(30, 111, 255, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.glass-panel:hover::before {
  opacity: 1;
}

/* CTA Button Secondary */
.btn-secondary {
  background: white;
  border: 2px solid rgba(30, 111, 255, 0.35);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(30, 111, 255, 0.08), rgba(245, 158, 11, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  border-color: #1e6fff;
  background: #f0f7ff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px -10px rgba(30, 111, 255, 0.25);
}

/* Hero Visual Decorative Elements */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.6;
  pointer-events: none;
}

/* Unique Premium Header Navigation Styles */
.navbar-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(30, 111, 255, 0.1);
  border-radius: 1.5rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -10px rgba(11, 46, 110, 0.05);
}

.navbar-container:hover {
  box-shadow: 0 20px 40px -10px rgba(30, 111, 255, 0.12);
  border-color: rgba(30, 111, 255, 0.2);
}

/* Scrolled Navbar Container styling */
#main-nav.scrolled .navbar-container {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(30, 111, 255, 0.18);
  box-shadow: 
    0 15px 35px -5px rgba(30, 111, 255, 0.15),
    0 5px 15px -5px rgba(0, 0, 0, 0.05);
  border-radius: 1.25rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.nav-link {
  position: relative;
  font-family: 'Poppins', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #112e6e; /* navy-900 */
  padding: 0.35rem 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 0.84rem;
    padding: 0.4rem 0.7rem;
    gap: 0.25rem;
  }
}

@media (min-width: 1440px) {
  .nav-link {
    font-size: 0.88rem;
    padding: 0.45rem 0.8rem;
    gap: 0.3rem;
  }
}

.nav-link:hover {
  color: #1e6fff; /* primary blue */
  background: rgba(30, 111, 255, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e6fff, #f59e0b);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

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

.nav-link.active {
  color: #1e6fff;
  background: rgba(30, 111, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(30, 111, 255, 0.1);
}

.nav-link.active::after {
  width: 50%;
}

/* Glassmorphism Dropdowns */
.nav-dropdown {
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 111, 255, 0.12);
  box-shadow: 0 15px 35px -5px rgba(11, 46, 110, 0.15);
  border-radius: 1.25rem;
}

/* Fix mobile menu style match */
.mobile-nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #112e6e;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  display: block;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: #1e6fff;
  background: rgba(30, 111, 255, 0.05);
  padding-left: 1.25rem;
}

/* Logo visual scaling inside floating navbar */
.header-logo-img {
  height: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  transform: scale(1.15) !important;
  transform-origin: left center !important;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 768px) {
  .header-logo-img {
    transform: scale(1.2) !important;
  }
}

/* Logo container sizing */
.header-logo-container {
  width: 160px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .header-logo-container {
    width: 200px;
    height: 80px;
  }
}

/* ========================================= */
/* --- NEW ULTRA PREMIUM AESTHETIC UPGRADES --- */
/* ========================================= */

/* 1. HUD Scanner & Grid Overlays */
.hud-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(30, 111, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 111, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.6;
  pointer-events: none;
}

.hud-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(30, 111, 255, 0.8), transparent);
  box-shadow: 0 0 15px rgba(30, 111, 255, 0.6);
  animation: scanVertical 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

@keyframes scanVertical {
  0%, 100% { top: 5%; opacity: 0; }
  10%, 90% { opacity: 1; }
  50% { top: 95%; }
}

.hud-crosshair {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(30, 111, 255, 0.5);
  pointer-events: none;
}
.hud-crosshair.tl { top: 15px; left: 15px; border-right: none; border-bottom: none; }
.hud-crosshair.tr { top: 15px; right: 15px; border-left: none; border-bottom: none; }
.hud-crosshair.bl { bottom: 15px; left: 15px; border-right: none; border-top: none; }
.hud-crosshair.br { bottom: 15px; right: 15px; border-left: none; border-top: none; }

/* 2. Advanced 3D Tilt Wrapper */
.tilt-wrapper {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.tilt-element {
  transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  will-change: transform;
}

/* 3. Immersive Dark Glass Panels (Why Choose Us) */
.dark-glass-panel {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.9));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-glass-panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, rgba(255,255,255,0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.dark-glass-panel:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255,255,255,0.02);
}
.dark-glass-panel:hover::before {
  opacity: 1;
}

/* 4. Glowing Data Readouts */
.data-readout {
  font-family: 'Inter', monospace;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a98ff;
  text-shadow: 0 0 10px rgba(74, 152, 255, 0.4);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background-color: #f59e0b;
  border-radius: 50%;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

/* Premium gradient titles */
.title-gradient-premium {
  background: linear-gradient(135deg, #112e6e 0%, #1e6fff 50%, #0a1a3e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: textGradient 6s ease-in-out infinite;
}

/* Industry card image overlays */
.industry-card-hover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  border-radius: inherit;
}
.industry-card:hover .industry-card-hover-bg {
  opacity: 0.05;
}
.industry-card > * {
  position: relative;
  z-index: 10;
}
