/* ==========================================================================
   PROTRANS & CLEAN — Modern Enhancement Stylesheet
   Designed for Tailwind CSS with High Contrast & WCAG Compliance
   ========================================================================== */

@layer base {
  html {
    scroll-behavior: smooth;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  }

  body {
    background-color: #070d18;
    color: #f1f5f9;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
  }

  /* Focus visible indicator for high accessibility */
  :focus-visible {
    outline: 2px solid #38bdf8 !important;
    outline-offset: 3px !important;
  }
}

/* Skip link for keyboard accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #0284c7;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: 0.5rem;
  z-index: 9999;
  transition: top 0.2s ease-in-out;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #070d18;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid #070d18;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}

/* Glowing Card & Button Accents */
.glow-primary {
  box-shadow: 0 0 35px -5px rgba(2, 132, 199, 0.35);
}

.glow-primary:hover {
  box-shadow: 0 0 45px 0px rgba(56, 189, 248, 0.55);
}

.glow-card {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.08);
}

.glow-card:hover {
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.25), 0 0 1px 1px rgba(56, 189, 248, 0.3);
}

/* Subtle background mesh gradients */
.hero-gradient-mesh {
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 45%),
              linear-gradient(180deg, #070d18 0%, #0b1426 100%);
}

.section-radial {
  background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.12) 0%, transparent 60%),
              #070d18;
}

/* Subtle pulse badge */
@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

.live-indicator {
  animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Accordion animation */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.25s ease-out, padding 0.25s ease-out;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s ease-in, opacity 0.3s ease-in;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* Modal overlay transitions */
.modal-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-in-out;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s ease-in-out;
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

/* Cookie banner transition */
.cookie-banner {
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

/* Print Styles for Legal Modals */
@media print {
  body * {
    visibility: hidden;
  }
  .modal-content, .modal-content * {
    visibility: visible;
  }
  .modal-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: #000000 !important;
    background: #ffffff !important;
  }
}
