/* ============================================
   AVANZI SECURITY — Custom Styles
   Supplements Tailwind CDN on all pages
   ============================================ */

/* Scanlines overlay */
.scanlines {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.08) 100%);
  background-size: 100% 4px;
  pointer-events: none;
}

/* Noise overlay */
.noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* Glitch hover */
.glitch-hover:hover {
  animation: glitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: #ff003c;
}

@keyframes glitch {
  0% {
    transform: translate(0)
  }

  20% {
    transform: translate(-2px, 2px)
  }

  40% {
    transform: translate(-2px, -2px)
  }

  60% {
    transform: translate(2px, 2px)
  }

  80% {
    transform: translate(2px, -2px)
  }

  100% {
    transform: translate(0)
  }
}

/* Redacted text */
.redacted {
  background-color: #e0e0e0;
  color: #e0e0e0;
  transition: all 0.3s ease;
  padding: 0 4px;
}

.redacted:hover {
  background-color: transparent;
  color: #ff003c;
}

/* Red line expand */
.line-expand {
  transition: width 0.5s ease;
}

.group:hover .line-expand {
  width: 100% !important;
}

/* Nav dropdown */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
}

.nav-parent:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Selection */
::selection {
  background: #ff003c;
  color: #fff;
}

/* ============================================
   NEW ADVANCED EFFECTS
   ============================================ */

/* Animated gradient border — wraps an element in a shifting accent border */
.gradient-border {
  position: relative;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, #ff003c, transparent 40%, transparent 60%, #00ff41);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.5s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Glass card effect */
.glass-card {
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: rgba(10, 10, 10, 0.85) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 30px rgba(255,0,60,0.5) !important;
}

.solid-red-hover:hover {
  background-color: #ff003c !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(255, 0, 60, 0.4), 0 0 30px rgba(255, 255, 255, 0.2) !important;
}
.solid-red-hover:hover * {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}
.solid-red-hover:hover .bg-accent\/10,
.solid-red-hover:hover .bg-white\/5,
.solid-red-hover:hover .bg-\[\#ff4d6d\]\/10,
.solid-red-hover:hover .bg-yellow-500\/10,
.solid-red-hover:hover .bg-\[\#111\] {
  background-color: rgba(255, 255, 255, 0.15) !important;
}


/* Staggered fade-in for children (apply to parent) */
.stagger-in>* {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-in>*:nth-child(1) {
  animation-delay: 0.0s;
}

.stagger-in>*:nth-child(2) {
  animation-delay: 0.1s;
}

.stagger-in>*:nth-child(3) {
  animation-delay: 0.2s;
}

.stagger-in>*:nth-child(4) {
  animation-delay: 0.3s;
}

.stagger-in>*:nth-child(5) {
  animation-delay: 0.4s;
}

.stagger-in>*:nth-child(6) {
  animation-delay: 0.5s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover with scale + glow */
.card-hover {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 0, 60, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 0, 60, 0.08);
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #ff003c 0%, #ff4d6d 50%, #ff003c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dot grid background */
.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* Pulse ring — for status indicators */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
  opacity: 0;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Section divider gradient */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.3) 20%, rgba(255, 0, 60, 0.3) 80%, transparent);
}

/* Corner brackets decorative — for images/cards */
.corner-brackets {
  position: relative;
}

.corner-brackets::before,
.corner-brackets::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 0, 60, 0.5);
  transition: all 0.5s ease;
}

.corner-brackets::before {
  top: -6px;
  left: -6px;
  border-right: none;
  border-bottom: none;
}

.corner-brackets::after {
  bottom: -6px;
  right: -6px;
  border-left: none;
  border-top: none;
}

.corner-brackets:hover::before,
.corner-brackets:hover::after {
  width: 32px;
  height: 32px;
  border-color: #ff003c;
}

/* Typewriter cursor */
.cursor-blink::after {
  content: '_';
  animation: blink 1s steps(1) infinite;
  color: #ff003c;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Smooth scroll-reveal (use with IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Custom Slim Theme Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #030303; 
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 0, 60, 0.4); 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 0, 60, 0.8); 
}


/* Global Typography Mobile Overflow Safeguard */
h1, h2, h3, h4, p {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}
