/* ========================================
   PREVENT WHITE FLASH / FOUC FIX
   ======================================== */
html, body {
  background-color: #030303 !important;
  color: #fff;
}
/* Ensure body is never white during load/scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #030303;
  z-index: -1;
}
/* Fallback: if JS is slow, show reveals after 1s */
@keyframes forceReveal { to { opacity: 1; transform: none; } }
.reveal:not(.active) {
  animation: forceReveal 0.01s forwards;
  animation-delay: 1s;
}
/* ========================================
   McAndroids Graphics - Custom Styles
   File: css/styles.css
   ======================================== */

/* Font Families */
.font-heading {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Selection */
::selection {
  background-color: #d9ff00;
  color: #000;
}

/* Grid Background Pattern */
.grid-bg {
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center top;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Neon Text Effect */
.text-neon {
  color: #d9ff00;
  text-shadow: 0 0 10px rgba(217, 255, 0, 0.5), 0 0 20px rgba(217, 255, 0, 0.3), 0 0 40px rgba(217, 255, 0, 0.1);
}

/* Glow Button */
.btn-glow {
  box-shadow: 0 0 20px rgba(217, 255, 0, 0.15), 0 0 40px rgba(217, 255, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.btn-glow:hover {
  box-shadow: 0 0 30px rgba(217, 255, 0, 0.3), 0 0 60px rgba(217, 255, 0, 0.1);
  transform: translateY(-2px);
}

/* Hover Glow Effect */
.hover-glow:hover {
  box-shadow: 0 0 25px rgba(217, 255, 0, 0.12), 0 0 50px rgba(217, 255, 0, 0.06);
  border-color: rgba(217, 255, 0, 0.3);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Floating Animations for Hero Collage */
@keyframes float-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes float-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-0.3deg); }
}
@keyframes float-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(0.2deg); }
}

.anim-float-1 {
  animation: float-1 6s ease-in-out infinite;
}
.anim-float-2 {
  animation: float-2 7s ease-in-out infinite;
}
.anim-float-3 {
  animation: float-3 5s ease-in-out infinite;
}

/* Smooth Image Hover */
.glass img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.glass:hover img {
  opacity: 1;
  transform: scale(1.02);
}

/* Table Hover Row */
table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Form Input Focus */
input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(217, 255, 0, 0.2);
}

/* Mobile Menu Transitions */
#mobile-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#mobile-menu.translate-x-full {
  opacity: 0;
  pointer-events: none;
}

/* Navbar Scroll State */
#navbar.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Responsive Typography Fixes */
@media (max-width: 768px) {
  .text-5xl { font-size: 2.5rem; line-height: 1; }
  .text-7xl { font-size: 3.5rem; line-height: 0.95; }
  .text-8xl { font-size: 4rem; line-height: 0.9; }
}

/* Print Media Query for Guidelines */
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: #fff; border: 1px solid #ccc; }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #d9ff00;
}

/* Focus Visible for Keyboard Navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #d9ff00;
  outline-offset: 2px;
}

/* Utility: Hide Scrollbar but Allow Scroll */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}