/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@400;500;700;900&display=swap');

:root {
  /* Default Dark Mode */
  --bg-main: #050510;
  --bg-panel: rgba(20, 20, 35, 0.7);
  --neon-cyan: #00f3ff;
  --neon-purple: #bc13fe;
  --neon-pink: #ff0055;
  --text-main: #e0e0e0;
  --text-muted: #a0a0b0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --navbar-bg: rgba(5, 5, 16, 0.8);
  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
  --bg-main: #f0f2f5;
  --bg-panel: rgba(255, 255, 255, 0.7);
  --neon-cyan: #007bb5;
  /* Darker cyan for light mode contrast */
  --neon-purple: #7a00a8;
  /* Darker purple */
  --neon-pink: #d60045;
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --glass-border: rgba(0, 0, 0, 0.1);
  --navbar-bg: rgba(255, 255, 255, 0.8);
}

html,
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  height: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  padding-top: 75px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Ensure the main content container grows to push footer down */
body>.container {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 8px var(--neon-purple);
}

.customer-logo-grid {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  white-space: nowrap;
}

.logo-track {
  display: flex;
  width: calc(250px * 10);
  animation: scroll 40s linear infinite;
  gap: 3rem;
  align-items: center;
}

.logo-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-250px * 5));
  }
}

/* RTL Support for scrolling direction */
[dir="rtl"] .logo-track {
  animation: scroll-rtl 40s linear infinite;
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(250px * 5));
  }
}

.customer-logo-item {
  flex: 0 0 200px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*filter: grayscale(1) opacity(0.6);*/
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  border: 1px solid transparent;
}

.customer-logo-item:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1) rotate(2deg);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.customer-logo-item i {
  font-size: 2.5rem;
  color: var(--text-muted);
}

.customer-logo-item:hover i {
  color: var(--neon-cyan);
}

/* Statistics Section */
.stats-section {
  padding: 4rem 0;
  background: rgba(var(--background-rgb), 0.5);
}

.stat-item {
  text-align: center;
  padding: 2rem;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.stat-icon {
  font-size: 2rem;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .stats-section {
    padding: 2rem 0;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Product Icons Styling */
.product-icon-box {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
}

.product-icon-box i {
  font-size: 3rem;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 10px currentColor);
}

.glass-card:hover .product-icon-box {
  background: rgba(var(--neon-cyan-rgb, 0, 243, 255), 0.1);
  border-color: var(--neon-cyan);
  transform: scale(1.1) perspective(500px) rotateY(10deg);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
}

.glass-card:hover .product-icon-box i {
  transform: scale(1.2);
  filter: drop-shadow(0 0 20px currentColor);
}

.border-purple .product-icon-box {
  border-color: rgba(188, 19, 254, 0.3);
}

.border-purple:hover .product-icon-box {
  background: rgba(188, 19, 254, 0.1);
  border-color: var(--neon-purple);
  box-shadow: 0 0 20px rgba(188, 19, 254, 0.2);
}

/* RTL adjustment for stats */
[dir="rtl"] .stat-label {
  letter-spacing: 0;
}

/* Navbar Customization */
.navbar {
  background: var(--navbar-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 243, 255, 0.1);
  transition: background-color 0.3s ease;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--neon-purple);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.3);
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.6), 0 0 15px rgba(188, 19, 254, 0.4);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Footer */
.footer {
  background: #02020a;
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 100%;
  padding: 1rem 0;
  margin-top: auto;
  /* Double insurance for flexbox */
}

.form-control {
  color: var(--text-main);
}

.form-control:focus {
  color: var(--text-main);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.25);
}

/* Utilities */
.text-cyan {
  color: var(--neon-cyan);
}

.text-purple {
  color: var(--neon-purple);
}

.glow-text {
  /*text-shadow: 0 0 10px currentColor;*/
  text-shadow: 0 0 10px #f8f9fa;
}

.glass-card {
  background: var(--bg-panel);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px -10px rgba(188, 19, 254, 0.2);
  border-color: var(--neon-purple);
}

.home-bg {
  background: linear-gradient(rgba(5, 5, 16, 0.85), rgba(5, 5, 16, 0.95)), url('/images/home_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px var(--neon-cyan);
  }

  50% {
    box-shadow: 0 0 20px var(--neon-cyan), 0 0 10px var(--neon-purple);
  }

  100% {
    box-shadow: 0 0 5px var(--neon-cyan);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 3s infinite;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.icon-3d {
  width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px var(--neon-purple));
}