/* TierOne Prime - Custom Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: #0a0a0a;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #CCFF00;
}

/* Text Glow Effect (Neon Lime) */
.text-glow {
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.6),
               0 0 40px rgba(204, 255, 0, 0.4);
}

.text-glow-subtle {
  text-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

/* Clip Path Effects */
.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}

.clip-notch {
  clip-path: polygon(0 0, 100% 0, 100% 70%, 85% 100%, 0 100%);
}

.clip-angled {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10% 100%);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(31, 31, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(204, 255, 0, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(31, 31, 31, 0.8);
  border-color: rgba(204, 255, 0, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(204, 255, 0, 0.15);
}

/* HUD/Data Overlay Effect */
.hud-overlay {
  position: relative;
}

.hud-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(204, 255, 0, 0.03) 50%, transparent 100%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(204, 255, 0, 0.02) 2px,
      rgba(204, 255, 0, 0.02) 4px
    );
  pointer-events: none;
  z-index: 1;
}

/* Grid Pattern Background */
.grid-pattern {
  background-image:
    linear-gradient(rgba(31, 31, 31, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 31, 31, 0.8) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Neon Button */
.btn-neon {
  background: #CCFF00;
  color: #0a0a0a;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 48px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn-neon:hover {
  background: #ffffff;
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.6);
  transform: translateY(-2px);
}

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

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

/* Section Spacing */
.section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* Heading Styles */
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes pulse-glow {
  0%, 100% {
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
  }
  50% {
    text-shadow: 0 0 40px rgba(204, 255, 0, 0.9);
  }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Data/Stats Counter */
.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: #CCFF00;
  line-height: 1;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 2.5rem;
  }
}

/* Divider Line */
.divider-lime {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #CCFF00, transparent);
}

/* Hero Background Overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.3),
    rgba(10, 10, 10, 0.7),
    rgba(10, 10, 10, 0.95)
  );
}

/* Animated Hero Background */
.hero-animated-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(120deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating Particles */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(204, 255, 0, 0.1);
  border-radius: 50%;
  animation: float 20s infinite;
}

.particle::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 255, 0, 0.3) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) translateX(50px) scale(1.5);
    opacity: 0;
  }
}

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

/* Geometric Lines */
.hero-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.15;
}

.hero-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #CCFF00, transparent);
  height: 1px;
  width: 100%;
  animation: lineMove 8s linear infinite;
}

@keyframes lineMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Tactical Badge */
.tactical-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid #CCFF00;
  color: #CCFF00;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
  transition: all 0.3s ease;
}

.tactical-badge:hover {
  background: rgba(204, 255, 0, 0.2);
  transform: scale(1.05);
}

/* Scroll Reveal Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fade-in-scale {
  animation: fadeInScale 0.6s ease-out;
}

/* Staggered animation delays for grid items */
.grid > *:nth-child(1) {
  animation-delay: 0.1s;
}

.grid > *:nth-child(2) {
  animation-delay: 0.2s;
}

.grid > *:nth-child(3) {
  animation-delay: 0.3s;
}

/* Enhanced hover for icons */
.lucide {
  transition: all 0.3s ease;
}

.lucide:hover {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(204, 255, 0, 0.6));
}

/* Smooth transitions for all elements */
* {
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Input Focus Effects */
input[type="email"] {
  transition: all 0.3s ease;
}

input[type="email"]:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.2);
}

/* Mobile improvements */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.75rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  .section {
    padding: 40px 0;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .btn-neon {
    padding: 12px 32px;
    font-size: 1rem;
  }

  .glass-card {
    padding: 1.5rem !important;
  }

  .grid {
    gap: 1rem !important;
  }

  p {
    font-size: 0.95rem;
  }

  /* Better spacing on mobile */
  .max-w-4xl, .max-w-3xl, .max-w-2xl {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Hide Scrollbar for Horizontal Carousel */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

/* Smooth scroll behavior */
.scrollbar-hide {
  scroll-behavior: smooth;
}
