* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

.app-wrapper {
  width: 100%;
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}

.font-orbitron {
  font-family: 'Verdana', sans-serif;
}

.font-rajdhani {
  font-family: 'Verdana', sans-serif;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.5rem !important;
  }

  .text-xl {
    font-size: 1.125rem !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #C00000, #0A3D91);
  border-radius: 4px;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-red {
  background: rgba(192, 0, 0, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(192, 0, 0, 0.3);
}

.glass-blue {
  background: rgba(10, 61, 145, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(10, 61, 145, 0.3);
}

/* Neon Glow Effects removed */

/* 3D Card Effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
  transform: perspective(1000px) rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* Floating Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  25% {
    transform: translateY(-10px) rotate(2deg);
  }

  50% {
    transform: translateY(-20px) rotate(0deg);
  }

  75% {
    transform: translateY(-10px) rotate(-2deg);
  }
}

@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0px) rotateY(0deg);
  }

  50% {
    transform: translateY(-30px) rotateY(180deg);
  }
}

@media (max-width: 768px) {
  @keyframes float {

    0%,
    100% {
      transform: translateY(0px) rotate(0deg);
    }

    50% {
      transform: translateY(-10px) rotate(0deg);
    }
  }
}

@keyframes rotate-3d {
  0% {
    transform: rotateY(0deg) rotateX(10deg);
  }

  100% {
    transform: rotateY(360deg) rotateX(10deg);
  }
}

@keyframes logo-pulse {

  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
    filter: drop-shadow(0 0 0px rgba(192, 0, 0, 0));
  }

  50% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(192, 0, 0, 0.6));
  }
}

.animate-logo-pulse {
  animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes gear-rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes gear-rotate-reverse {
  0% {
    transform: rotate(360deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes particle-float {

  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translateY(-50px) translateX(20px) scale(1.2);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-100px) translateX(-10px) scale(0.8);
    opacity: 0.8;
  }

  75% {
    transform: translateY(-50px) translateX(-30px) scale(1.1);
    opacity: 0.5;
  }
}

@keyframes scan-line {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

.animate-rotate-3d {
  animation: rotate-3d 20s linear infinite;
}

.animate-gear {
  animation: gear-rotate 10s linear infinite;
}

.animate-gear-reverse {
  animation: gear-rotate-reverse 8s linear infinite;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #C00000, transparent);
  border-radius: 50%;
  animation: particle-float 8s ease-in-out infinite;
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #C00000, #0A3D91, #C00000);
  background-size: 200% 200%;
  animation: border-flow 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  border-radius: inherit;
  pointer-events: none;
}

/* Hero 3D Scene */
.hero-3d-scene {
  perspective: 2000px;
  transform-style: preserve-3d;
}

/* Product Card Flip */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Metallic Texture */
.metallic {
  background: linear-gradient(135deg,
      #1a1a1a 0%,
      #2d2d2d 25%,
      #1a1a1a 50%,
      #2d2d2d 75%,
      #1a1a1a 100%);
  background-size: 400% 400%;
}

/* Industrial Grid Pattern */
.industrial-grid {
  background-image:
    linear-gradient(rgba(192, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Scan Effect */
.scan-effect::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(192, 0, 0, 0.1), transparent);
  animation: scan-line 4s linear infinite;
  pointer-events: none;
}

/* Button Styles */
.btn-primary {
  background: linear-gradient(135deg, #C00000, #8B0000);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff0000, #C00000);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(192, 0, 0, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #0A3D91, #061f4a);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #1454b8, #0A3D91);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(10, 61, 145, 0.4);
}

/* Navigation */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .nav-link::after {
    display: none;
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #C00000, #0A3D91);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Section transitions */
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* World Map Animation */
.map-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 3s ease forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.map-dot {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   LIGHT MODE - Complete Theme Override
   ============================================ */

/* --- Base --- */
body.light-mode {
  background: #f5f7fa !important;
  color: #1a1a2e !important;
}

body.light-mode .app-wrapper {
  background: #f5f7fa;
}

body.light-mode .industrial-grid {
  background-image:
    linear-gradient(rgba(192, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 0, 0, 0.04) 1px, transparent 1px);
}

/* --- Scrollbar --- */
body.light-mode ::-webkit-scrollbar-track {
  background: #f5f7fa;
}

body.light-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #C00000, #0A3D91);
}

/* --- Glass Effects --- */
body.light-mode .glass {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(20px);
}

body.light-mode .glass-red {
  background: rgba(192, 0, 0, 0.05) !important;
  border: 1px solid rgba(192, 0, 0, 0.12) !important;
}

body.light-mode .glass-blue {
  background: rgba(10, 61, 145, 0.05) !important;
  border: 1px solid rgba(10, 61, 145, 0.12) !important;
}

body.light-mode .gradient-border {
  background: linear-gradient(135deg, #ffffff, #f0f0f0) !important;
}

body.light-mode .metallic {
  background: linear-gradient(135deg,
      #f0f0f0 0%, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%, #f0f0f0 100%) !important;
}

/* --- Global Text Color Overrides (Tailwind) --- */
body.light-mode .text-white {
  color: #1a1a2e !important;
}

body.light-mode .text-gray-300 {
  color: #444 !important;
}

body.light-mode .text-gray-400 {
  color: #555 !important;
}

body.light-mode .text-gray-500 {
  color: #666 !important;
}

body.light-mode .text-gray-600 {
  color: #555 !important;
}

/* Colored text (red, blue, green) intentionally not overridden */

/* --- Section Heading Gradients --- */
body.light-mode .bg-gradient-to-r.from-white.to-gray-400 {
  background: linear-gradient(to right, #1a1a2e, #555) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* --- Global Border Overrides --- */
body.light-mode .border-gray-700 {
  border-color: #ccc !important;
}

body.light-mode .border-gray-800 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .border-white\/5,
body.light-mode .border-white\/10,
body.light-mode .border-white\/20 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* --- Global Background Overrides --- */
body.light-mode .bg-\[\\#0a0a0a\],
body.light-mode .bg-black,
body.light-mode .bg-black\/30 {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

body.light-mode .bg-gray-900 {
  background-color: #e8e8ee !important;
}

/* Card dark backgrounds */
body.light-mode .bg-gradient-to-br.from-\[\\#0a0a0a\].to-\[\\#1a1a1a\],
body.light-mode .from-\[\\#0a0a0a\] {
  background: linear-gradient(135deg, #f0f2f5, #e4e7eb) !important;
}

body.light-mode .bg-gradient-to-br.from-gray-900.to-black {
  background: linear-gradient(135deg, #e8e8ee, #dde0e5) !important;
}

/* --- Navbar --- */
body.light-mode #navbar {
  background: rgba(255, 255, 255, 0.8) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode #logoText {
  color: #1a1a2e !important;
}

body.light-mode .nav-link {
  color: #333 !important;
}

body.light-mode .nav-link:hover {
  color: #C00000 !important;
}

body.light-mode .nav-link.active {
  color: #C00000 !important;
}

/* Mobile menu */
body.light-mode #mobileMenu {
  background: rgba(255, 255, 255, 0.97) !important;
}

body.light-mode #mobileMenu a {
  color: #1a1a2e !important;
}

/* Hamburger icon */
body.light-mode button.md\:hidden svg {
  stroke: #1a1a2e;
}

/* --- Hero Section --- */
body.light-mode .hero-video-overlay {
  background: transparent !important;
}

body.light-mode #heroSubheadline {
  color: #444 !important;
}

/* Other pages video overlay */
body.light-mode .video-overlay {
  background: radial-gradient(circle, transparent 20%, rgba(245, 247, 250, 0.7) 100%) !important;
}

body.light-mode #brand-video {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* --- Login Section --- */
body.light-mode #login .bg-gradient-to-br {
  background: linear-gradient(135deg, #f5f7fa, #eef1f5, #f5f7fa) !important;
}

body.light-mode #login h2,
body.light-mode #login label {
  color: #1a1a2e !important;
}

body.light-mode #login .text-gray-400 {
  color: #666 !important;
}

/* --- About Page Map --- */
body.light-mode svg path[fill="#1a1a1a"] {
  fill: #dde0e5 !important;
}

body.light-mode svg g[stroke="#333"] {
  stroke: #bbb !important;
}

body.light-mode svg text[fill="#fff"] {
  fill: #1a1a2e !important;
}

/* --- Products Page --- */
body.light-mode .flip-card-front .bg-gradient-to-br {
  background: linear-gradient(135deg, #f0f2f5, #e4e7eb) !important;
}

body.light-mode .flip-card-back {
  color: #1a1a2e;
}

body.light-mode .flip-card-back h4 {
  color: inherit;
}

/* Product card image area */
body.light-mode .relative.h-48.bg-gradient-to-br {
  background: linear-gradient(135deg, #e8e8ee, #dde0e5) !important;
}

/* Search filter bar */
body.light-mode #searchInput,
body.light-mode #brandFilter,
body.light-mode #categoryFilter {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #ccc !important;
  color: #1a1a2e !important;
}

body.light-mode select option {
  background: #fff;
  color: #1a1a2e;
}

/* --- Form Inputs (all pages) --- */
body.light-mode input,
body.light-mode textarea,
body.light-mode select {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #ccc !important;
  color: #1a1a2e !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
  color: #999 !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus,
body.light-mode select:focus {
  border-color: #C00000 !important;
}

/* --- Footer --- */
body.light-mode footer {
  background: #eef1f5 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode footer h4 {
  color: #1a1a2e !important;
}

body.light-mode footer p,
body.light-mode footer a,
body.light-mode footer li a,
body.light-mode footer span {
  color: #555 !important;
}

body.light-mode footer span.font-orbitron {
  color: #1a1a2e !important;
}

body.light-mode footer a:hover,
body.light-mode footer li a:hover {
  color: #C00000 !important;
}

body.light-mode footer .border-gray-800 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode footer input {
  background: rgba(255, 255, 255, 0.95) !important;
}

/* --- Loading Screen --- */
body.light-mode .loading-screen {
  background: #f5f7fa !important;
}

body.light-mode .loading-screen p {
  color: #666 !important;
}

body.light-mode .loading-screen circle[fill="#0a0a0a"] {
  fill: #f5f7fa;
}

/* --- Toggle Icon --- */
body.light-mode #moonIcon,
body.light-mode #sunIcon {
  color: #1a1a2e !important;
}

/* --- Button Hover --- */
body.light-mode .btn-primary:hover,
body.light-mode .btn-secondary:hover {
  box-shadow: 0 10px 40px rgba(192, 0, 0, 0.2);
}

/* Button text stays white on colored buttons */
body.light-mode .btn-primary,
body.light-mode .btn-secondary {
  color: #fff !important;
}

/* Glow Effects removed */

/* --- WhatsApp Button --- */
body.light-mode .whatsapp-btn svg {
  color: white !important;
}

/* --- Hover states in light mode --- */
body.light-mode .hover\:bg-white\/10:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .hover\:text-white:hover {
  color: #1a1a2e !important;
}

/* --- Misc --- */
body.light-mode .scan-effect::after {
  background: linear-gradient(180deg, transparent, rgba(192, 0, 0, 0.05), transparent);
}

body.light-mode .bg-red-900\/20,
body.light-mode .bg-red-900\/30 {
  background-color: rgba(192, 0, 0, 0.08) !important;
}

body.light-mode .bg-blue-900\/20,
body.light-mode .bg-blue-900\/30 {
  background-color: rgba(10, 61, 145, 0.08) !important;
}

/* Partners section gradient bg */
body.light-mode .bg-gradient-to-b.from-transparent {
  background: transparent !important;
}

body {
  box-sizing: border-box;
}

/* Hero Background Video */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.65) 50%,
      rgba(10, 10, 10, 0.8) 100%);
  pointer-events: none;
}

/* Additional Mobile Utility Classes */
@media (max-width: 768px) {
  .mobile-px {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .mobile-py {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .industrial-grid {
    background-size: 30px 30px;
  }

  .glass {
    backdrop-filter: blur(10px);
  }
}