/* ===== Leopard Robotics 36672 — Consolidated Site Styles ===== */

/* Base HTML Background */
html {
  background-color: #040406;
  scroll-behavior: smooth;
}

body { 
  background-color: transparent !important; /* Transparent to let background canvas shine through */
  color: var(--ink); 
  font-family: 'Inter', sans-serif; 
  padding-top: 64px !important; /* Resolves sticky header overlap globally */
}

:root {
  --bg: #040406; 
  --panel-solid: #17181b;
  --ink: #f2f1ec;
  --gold: #f2a61c;
  --gold-soft: #ffce6b;
  --slate: #9a9d9f;
  --line: #2b2d31;
}

.font-display { font-family: 'Rajdhani', sans-serif; }
.font-mono { font-family: 'Space Mono', monospace; }

/* Subtle leopard rosette background texture */
.rosettes {
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(242,166,28,0.10) 0 3px, transparent 4px),
    radial-gradient(circle at 60% 15%, rgba(242,166,28,0.08) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 55%, rgba(242,166,28,0.09) 0 3px, transparent 4px),
    radial-gradient(circle at 35% 70%, rgba(242,166,28,0.07) 0 3px, transparent 4px),
    radial-gradient(circle at 10% 85%, rgba(242,166,28,0.08) 0 4px, transparent 5px),
    radial-gradient(circle at 90% 90%, rgba(242,166,28,0.06) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 45%, rgba(242,166,28,0.05) 0 3px, transparent 4px);
  background-size: 340px 340px;
}

/* Circuit-trace dividers */
.trace { display: flex; align-items: center; gap: 0; width: 100%; }
.trace .seg { flex: 1; height: 1px; background: var(--line); }
.trace .node { width: 6px; height: 6px; border-radius: 9999px; background: var(--gold); flex-shrink: 0; }

/* Scouting-sheet style card framing */
.spec-card { position: relative; border: 1px solid var(--line); background: var(--panel-solid); }
.spec-card::before, .spec-card::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--gold); border-style: solid; border-width: 0;
}
.spec-card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.spec-card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

.tag {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate);
}

/* Sticky Header Navigation */
.site-header { 
  position: fixed; 
  top: 0; 
  left: 0;
  width: 100%;
  z-index: 100; 
  background-color: rgba(4, 4, 6, 0.95); 
  backdrop-filter: blur(12px); 
  border-bottom: 1px solid var(--line); 
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  color: var(--slate);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color .2s ease, color .2s ease, transform .2s ease, background .2s ease;
}

.site-footer-social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(242, 166, 28, 0.12);
  transform: translateY(-1px);
}

.site-footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--gold); transition: width .2s ease; }
.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; }

/* Sponsorship tier cards */
.tier-card { border: 1px solid var(--line); background: var(--panel-solid); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.6); border-color: #3a3d42; }
.tier-featured { border-color: var(--gold); border-width: 2px; }

/* Contact Forms */
.contact-form { display: grid; gap: 1.5rem; }
.honeypot { display: none !important; }

.contact-link-card {
  text-decoration: none;
  color: inherit;
}

.contact-link-card:hover {
  transform: translateY(-1px);
}

.contact-icon {
  width: 0.95rem;
  height: 0.95rem;
  min-width: 0.95rem;
  flex-shrink: 0;
}

.contact-link-card .contact-text {
  display: inline-flex;
  flex-direction: column;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.55rem; }
.form-label {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.75rem; color: var(--slate);
}

.form-input,
.form-textarea {
  width: 100%; border: 1px solid var(--line); background: var(--panel-solid);
  color: var(--ink); padding: 1rem 1.1rem; border-radius: 0.5rem;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  box-sizing: border-box; font: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder { color: #7d8184; }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242,166,28,0.08);
}

.form-textarea { min-height: 200px; resize: vertical; }
.form-help { margin-top: 0.15rem; font-size: 0.85rem; color: var(--slate); }

.form-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}

.form-status { color: var(--slate); font-size: 0.95rem; line-height: 1.7; margin: 0; }

.form-submit {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: #151515; border: none; border-radius: 0.65rem;
  padding: 0.95rem 1.6rem; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  transition: background .2s ease, transform .2s ease;
}
.form-submit:hover { background: var(--gold-soft); transform: translateY(-1px); }

/* scrolling peeking leopards */
.peek-zone { position: relative; overflow: visible; }
.leopard-peek {
  position: absolute; 
  width: 210px; /* Sized up to 180px on desktop for larger, highly visible presentation */
  z-index: 10; 
  pointer-events: none;
  opacity: 0; 
  transform: translateY(36px) scale(.8) rotate(var(--tilt,0deg));
  transition: opacity .55s cubic-bezier(.34,1.56,.64,1), transform .55s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.5));
}
.leopard-peek img { width: 100%; display: block; }
.leopard-peek.is-visible { opacity: 1; transform: translateY(0) scale(1) rotate(var(--tilt,0deg)); }

.leopard-peek--r { right: -10px; top: -40px; --tilt: 6deg; }

/* Removed scaleX(-1) to ensure stand-alone assets do not horizontal mirror-flip text */
.leopard-peek--l { left: -10px; top: -40px; --tilt: -8deg; transform: translateY(36px) scale(.8) rotate(var(--tilt)); }
.leopard-peek--l.is-visible { transform: translateY(0) scale(1) rotate(var(--tilt)); }

/* Global background canvas configuration */
#global-techno-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1 !important; /* Strictly behind all page layout modules */
  pointer-events: none;
}

/* Glowing background grid behind elements */
.bg-radial-grid {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
}

/* Force middle section to occupy exactly the full viewport screen height */
#middle-hologram-section {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  padding-top: 80px !important; /* Safely offsets screen center underneath the fixed header */
}

/* 
   Anti-Collapse Canvas & Parent Height Protection.
   A full-body leopard reads better in a landscape box than a tall portrait one,
   so this is wider/shorter than earlier revisions.
*/
.reveal-hologram {
  width: 100% !important;
  max-width: 720px !important;
  aspect-ratio: 4 / 3 !important;
  max-height: 580px !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#hologram-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Fluid Massive Motto text overrides */
.massive-motto {
  font-size: 3.5rem !important;
  line-height: 0.95 !important;
  letter-spacing: -0.02em !important;
}
@media (min-width: 640px) {
  .massive-motto { font-size: 4.5rem !important; }
}
@media (min-width: 768px) {
  .massive-motto { font-size: 5.8rem !important; }
}
@media (min-width: 1024px) {
  .massive-motto { font-size: 7.2rem !important; }
}

/* 
   CYBER-OVERLAY SCHEMATIC FILTER
   1. contrast(3.5) and brightness(0.65) aggressively flatten gray checkers down to solid black
   2. invert(1) flips black to transparent in screen mode and shifts green into high-tech gold
*/
.cyber-jungle-asset {
  filter: contrast(3.5) brightness(0.65) invert(1) sepia(1) saturate(8) hue-rotate(340deg) drop-shadow(0 0 10px rgba(242, 166, 28, 0.4));
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Applies a unified holographic blueprint aura to the leopard asset */
.hologram-leopard {
  filter: sepia(1) saturate(1.8) hue-rotate(5deg) brightness(0.9) drop-shadow(0 0 20px rgba(242, 166, 28, 0.22));
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* Motto Scroll Reveal transitions */
.reveal-text {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Leopard Hologram Scroll entrance transition */
.reveal-hologram {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-hologram.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Interactive Tech Sway Keyframes for background foliage */
@keyframes jungleSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

@keyframes vineSway {
  0%, 100% { transform: rotate(-2deg) translateX(0); }
  50% { transform: rotate(2deg) translateX(3px); }
}

.sway-leaves {
  animation: jungleSway 9s ease-in-out infinite;
}

.sway-vine {
  animation: vineSway 11s ease-in-out infinite;
}

.delay-75 {
  animation-delay: 1.5s;
}

/* Hologram rotating pedestal support grid */
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.animate-spin-slow {
  animation: spinSlow 24s linear infinite;
}

/* Horizontal scanline laser sweeps */
@keyframes verticalScan {
  0% { top: 0%; opacity: 0; }
  10%, 90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.hologram-scan-bar {
  animation: verticalScan 4.5s linear infinite;
}

/* ===== Explicit footer fallbacks (ensure consistent layout even if Tailwind utilities are missing) ===== */
.site-footer { background: var(--panel-solid); color: var(--slate); }
.site-footer .site-footer-inner {
  max-width: 1152px; /* matches Tailwind max-w-6xl */
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.site-footer .footer-brand img {
  width: 40px; height: 40px; object-fit: contain; display: inline-block;
  border-radius: 9999px;
}
.site-footer .footer-explore,
.site-footer .footer-connect {
  padding-top: 0.25rem;
}
.site-footer .footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem; margin-top: 1rem; font-size: 0.875rem; display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap;
}

.sponsor-tactical-card {
  position: relative;
  border: 1px solid rgba(242, 166, 28, 0.18);
  background: linear-gradient(135deg, rgba(12, 12, 18, 0.95), rgba(8, 8, 12, 0.9));
  box-shadow: inset 0 0 24px rgba(255, 176, 0, 0.03);
}

/* High-tech motto flicker animation */
.motto-flicker {
  animation: hologramFlicker 6s infinite;
}

@keyframes hologramFlicker {
  0%, 19.99%, 22%, 62.99%, 64%, 64.99%, 70%, 100% {
    opacity: 1;
    filter: hue-rotate(0deg);
    text-shadow: 0 0 10px rgba(255, 176, 0, 0.2);
  }
  20%, 21.99%, 63%, 63.99%, 65%, 69.99% {
    opacity: 0.85;
    filter: hue-rotate(15deg);
    text-shadow: 0 0 2px rgba(255, 176, 0, 0.1);
  }
}

/* ==========================================================
   MEDIA QUERIES & RESPONSIVENESS OVERRIDES
   ========================================================== */

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) { 
  .leopard-peek { width: 140px; } /* Proportional larger mobile peeker width of 120px */
}

@media (max-width: 640px) {
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .leopard-peek { opacity: 1; transform: none !important; }
  .tier-card:hover { transform: none; }
}

/* ==========================================================
   MINI CYBER-LEOPARD SPRITE ANIMATION SCHEMATICS
   ========================================================== */

/* Consolidated character wrapper: Positions relative to elements and scales cleanly */
#mini-leopard-wrapper {
  width: 96px !important;   /* Restored back to the original square boundary box */
  height: 96px !important;  /* Restored back to the original square boundary box */
  position: absolute !important;
  pointer-events: none !important;
  z-index: 150 !important;  /* Stand over everything on top */
  display: flex !important;
  align-items: flex-end !important;   /* Forces the feet of ALL sprites to align to the bottom */
  justify-content: center !important;  /* Centers them horizontally */
  transform-origin: bottom center !important;
  transform: translate(-50%, -100%);
}

/* Sharp Rendering: Disables anti-aliasing to keep pixel art completely razor-sharp on high DPI displays */
#mini-leopard-sprite {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  image-rendering: pixelated !important;
  image-rendering: crisp-edges !important;
}

/* ==========================================================
   NEON HERO TYPOGRAPHY & DYNAMIC EFFECTS
   ========================================================== */

/* Extremely massive responsive hero typography: Uses view-width scale capping out at 7.5rem */
.massive-hero-title {
  font-size: clamp(3rem, 7.8vw, 7.5rem) !important;
  line-height: 0.82 !important;
  letter-spacing: -0.03em !important;
}

/* Vertically stretches words to look sleek and tall */
.hero-stretch-y {
  transform: scaleY(1.15) !important;
  transform-origin: bottom left;
  display: inline-block;
}

/* Bright gold cybernetic neon text pulsator */
.neon-text-gold {
  color: var(--gold) !important;
  animation: gold-glow-pulse 4s ease-in-out infinite alternate;
}

/* Bright white backing neon text pulsator */
.neon-text-white {
  color: #ffffff !important;
  animation: white-glow-pulse 5s ease-in-out infinite alternate;
}

@keyframes gold-glow-pulse {
  0% {
    text-shadow: 
      0 0 4px rgba(242, 166, 28, 0.3),
      0 0 12px rgba(242, 166, 28, 0.15),
      0 0 25px rgba(242, 166, 28, 0.06);
  }
  100% {
    text-shadow: 
      0 0 8px rgba(242, 166, 28, 0.55),
      0 0 22px rgba(242, 166, 28, 0.35),
      0 0 45px rgba(242, 166, 28, 0.18);
  }
}

@keyframes white-glow-pulse {
  0% {
    text-shadow: 
      0 0 3px rgba(255, 255, 255, 0.15),
      0 0 8px rgba(255, 255, 255, 0.05);
  }
  100% {
    text-shadow: 
      0 0 6px rgba(255, 255, 255, 0.35),
      0 0 15px rgba(255, 255, 255, 0.15);
  }
}