@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
}

body.blurred :where(:not(#contact-modal, #tech-detail-modal, #professional-capability-modal, #continuous-support-modal, #erp-system-modal, #ai-platform-modal, #video-retrieval-modal, #custom-dev-modal, #aicoffi-erp-modal, #aicoffi-tpv-modal, #aicoffi-app-modal, #contact-modal *, #tech-detail-modal *, #professional-capability-modal *, #continuous-support-modal *, #erp-system-modal *, #ai-platform-modal *, #video-retrieval-modal *, #custom-dev-modal *, #aicoffi-erp-modal *, #aicoffi-tpv-modal *, #aicoffi-app-modal *)) {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

.product-card, .feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card:hover, .feature-card:hover {
  box-shadow: 0 10px 20px rgba(0, 229, 255, 0.5);
  transform: scale(1.05);
}

.product-card::before, .feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.3), transparent);
  transition: 0.5s;
}

.product-card:hover::before, .feature-card:hover::before {
  left: 100%;
}

header video {
  filter: brightness(0.6);
}

header .bg-gradient-to-r {
  background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 20%, transparent 50%), 
              linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 15%, rgba(0, 0, 100, 0.9) 40%, rgba(0, 0, 60, 0.9) 100%);
  animation: sciFiLinearGradient 8s ease-in-out infinite;
}

a {
  transition: background-color 0.3s ease, color 0.3s ease;
}

section {
  scroll-margin-top: 80px;
}

#language-switcher {
  transition: background-color 0.3s ease;
}

#language-switcher:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes sciFiLinearGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ledBorder {
  0% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.6); }
  50% { box-shadow: 0 0 15px rgba(0, 229, 255, 1), 0 0 30px rgba(0, 229, 255, 0.8); }
  100% { box-shadow: 0 0 10px rgba(0, 229, 255, 0.8), 0 0 20px rgba(0, 229, 255, 0.6); }
}

@keyframes modalScale {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes modalShrink {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(0); opacity: 0; }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.plan-card {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

#company h2, #products h2, #products2 h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

#contact-modal, #tech-detail-modal, #professional-capability-modal, #continuous-support-modal, #erp-system-modal, #ai-platform-modal, #video-retrieval-modal, #custom-dev-modal, #aicoffi-erp-modal, #aicoffi-tpv-modal, #aicoffi-app-modal {
  transition: opacity 0.3s ease;
  z-index: 100;
}

.modal-content {
  border: 2px solid rgba(0, 229, 255, 0.8);
  animation: ledBorder 1.5s infinite;
  backdrop-filter: blur(10px);
}

.modal-content.open {
  animation: modalScale 0.5s ease-out forwards, ledBorder 1.5s infinite;
}

.modal-content.closing {
  animation: modalShrink 0.5s ease-out forwards, ledBorder 1.5s infinite;
}

#contact-modal ul li {
  margin-bottom: 0.5rem;
}

#contact-modal ul li::before {
  content: '•';
  color: rgba(0, 229, 255, 1);
  margin-right: 0.5rem;
}

.font-orbitron {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
}

#contact-modal.hidden, #tech-detail-modal.hidden, #professional-capability-modal.hidden, #continuous-support-modal.hidden, #erp-system-modal.hidden, #ai-platform-modal.hidden, #video-retrieval-modal.hidden, #custom-dev-modal.hidden, #aicoffi-erp-modal.hidden, #aicoffi-tpv-modal.hidden, #aicoffi-app-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

#contact-modal:not(.hidden), #tech-detail-modal:not(.hidden), #professional-capability-modal:not(.hidden), #continuous-support-modal:not(.hidden), #erp-system-modal:not(.hidden), #ai-platform-modal:not(.hidden), #video-retrieval-modal:not(.hidden), #custom-dev-modal:not(.hidden), #aicoffi-erp-modal:not(.hidden), #aicoffi-tpv-modal:not(.hidden), #aicoffi-app-modal:not(.hidden) {
  opacity: 1;
}

@media (max-width: 768px) {
  header {
    min-height: 70vh;
    padding: 1rem;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
    max-width: 90%;
  }

  header .bg-gradient-to-r {
    background: radial-gradient(ellipse at top left, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 20%, transparent 50%), 
                linear-gradient(135deg, rgba(0, 71, 171, 0.9), rgba(128, 0, 255, 0.9), rgba(0, 229, 255, 0.6));
    animation: sciFiLinearGradient 8s ease-in-out infinite;
  }

  nav .max-w-7xl {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav .flex {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  nav a, nav select {
    margin: 0.5rem 0;
    font-size: 1rem;
  }

  .product-card, .feature-card {
    transform: none;
  }

  .product-card:hover, .feature-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 10px rgba(0, 229, 255, 0.3);
  }

  section {
    padding: 2rem 1rem;
    scroll-margin-top: 60px;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section p {
    font-size: 1rem;
  }

  #company .grid, #products .grid, #products2 .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .modal-content {
    width: 90%;
    padding: 1.5rem;
  }

  .modal-content h2, .modal-content h3 {
    font-size: 1.5rem;
  }

  .modal-content ul, .modal-content p {
    font-size: 1rem;
  }

  footer {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 0.9rem;
  }

  header button {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .product-card h3, .feature-card h3 {
    font-size: 1.2rem;
  }

  .product-card p, .feature-card p {
    font-size: 0.9rem;
  }

  .modal-content h2, .modal-content h3 {
    font-size: 1.3rem;
  }

  .modal-content ul, .modal-content p {
    font-size: 0.9rem;
  }
}