/* Custom CSS Variables and Styles */
:root {
  --font-inter: 'Inter', sans-serif;
  --font-poppins: 'Poppins', sans-serif;
  
  /* Light mode colors */
  --background: 255 255 255;
  --foreground: 10 10 10;
  --card: 255 255 255;
  --card-foreground: 10 10 10;
  --popover: 255 255 255;
  --popover-foreground: 10 10 10;
  --primary: 23 23 23;
  --primary-foreground: 250 250 250;
  --secondary: 245 245 245;
  --secondary-foreground: 23 23 23;
  --muted: 245 245 245;
  --muted-foreground: 115 115 115;
  --accent: 245 245 245;
  --accent-foreground: 23 23 23;
  --destructive: 239 68 68;
  --destructive-foreground: 250 250 250;
  --border: 229 229 229;
  --input: 229 229 229;
  --ring: 59 130 246;
  --radius: 0.5rem;
}

.dark {
  --background: 10 10 10;
  --foreground: 250 250 250;
  --card: 10 10 10;
  --card-foreground: 250 250 250;
  --popover: 10 10 10;
  --popover-foreground: 250 250 250;
  --primary: 250 250 250;
  --primary-foreground: 23 23 23;
  --secondary: 38 38 38;
  --secondary-foreground: 250 250 250;
  --muted: 38 38 38;
  --muted-foreground: 163 163 163;
  --accent: 38 38 38;
  --accent-foreground: 250 250 250;
  --destructive: 220 38 38;
  --destructive-foreground: 250 250 250;
  --border: 38 38 38;
  --input: 38 38 38;
  --ring: 147 197 253;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-inter);
  line-height: 1.6;
  color: rgb(var(--foreground));
  background-color: rgb(var(--background));
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(var(--muted));
}

::-webkit-scrollbar-thumb {
  background: rgb(var(--primary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary), 0.8);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Animation classes */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translateX(0);
}

.hero-content {
  transition: opacity 1s ease, transform 1s ease;
}

.hero-content.animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Parallax effect */
.parallax-bg {
  animation: float 6s ease-in-out infinite;
}

/* Tech cards hover effect */
.tech-card {
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-10px);
}

/* Stat cards animation */
.stat-card {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card.animate {
  opacity: 1;
  transform: scale(1);
}

/* Efficiency bar animation */
.efficiency-bar {
  width: 0%;
  transition: width 1s ease;
}



/* Timeline animations */
.timeline-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even) {
  transform: translateX(50px);
}

.timeline-item:nth-child(even).animate {
  transform: translateX(0);
}

/* Testimonial transitions */
.testimonial-content {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.testimonial-content.active {
  opacity: 1;
  transform: translateX(0);
}

/* News and team cards */
.news-card, .team-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover, .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark mode specific styles */
.dark .news-card:hover, .dark .team-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Form styles */
input, textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h1 span:last-child {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.125rem;
  }
}

/* Utility classes */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Loading animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Custom badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
}

.badge-default {
  background-color: #ef4444;
  color: white;
}

.badge-secondary {
  background-color: rgb(var(--secondary));
  color: rgb(var(--secondary-foreground));
}

/* Card styles */
.card {
  border-radius: 0.5rem;
  border: 1px solid rgb(var(--border));
  background-color: rgb(var(--card));
  color: rgb(var(--card-foreground));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Navigation active state */
.nav-link.active {
  color: #ef4444 !important;
}

/* Responsive text sizes */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  html {
    font-size: 16px;
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a, a:visited {
    text-decoration: underline;
  }

  .no-print {
    display: none !important;
  }
}

/* Efecto Parallax de estrellas */
/* Fondo animado de estrellas */
#stars {
  background: url('https://raw.githubusercontent.com/marcbruederlin/particles.js/master/demo/img/stars.png') repeat;
  opacity: 0.5;
  animation: moveStars 100s linear infinite;
}
#stars2 {
  background: url('https://raw.githubusercontent.com/marcbruederlin/particles.js/master/demo/img/stars.png') repeat;
  opacity: 0.3;
  animation: moveStars2 200s linear infinite;
}
#stars3 {
  background: url('https://raw.githubusercontent.com/marcbruederlin/particles.js/master/demo/img/stars.png') repeat;
  opacity: 0.2;
  animation: moveStars3 300s linear infinite;
}

#stars, #stars2, #stars3 {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: 1;
  pointer-events: none;
}
.bg-gradient-to-br {
  z-index: 0 !important;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
}
.parallax-bg {
  z-index: 0;
}

.parallax-bg,
.bg-gradient-to-br {
  z-index: 0 !important;
}

.dron-animation-container,
.hero-content {
  z-index: 2;
  position: relative;
}

@keyframes moveStars {
  from {background-position: 0 0;}
  to {background-position: 10000px 10000px;}
}
@keyframes moveStars2 {
  from {background-position: 0 0;}
  to {background-position: -10000px 5000px;}
}
@keyframes moveStars3 {
  from {background-position: 0 0;}
  to {background-position: 5000px -10000px;}
}
