/* Custom CSS Styles */


/*	DGR: I commented out the import below because I load Google Fonts in the main style sheet.

/* Base font families setup (Tailwind handles classes, but we define specifics here)
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

*/

body {
  margin: 0;
  font-family: 'Jura', sans-serif;
  background-color: #030911;
  color: #fff;
  overflow-x: hidden;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

.text-brand-cyan {
  color: #4A808E;
}

.bg-brand-cyan {
  background-color: #4A808E;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}
.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Typewriter animation */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #4A808E; }
}

.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: .15em solid #4A808E;
  margin: 0 auto;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

/* Menu classes */
#menu-overlay.active {
  transform: translateX(0);
}
#menu-backdrop.active {
  display: block;
  opacity: 1;
}

.page-section {
  display: none;
}
.page-section.active {
  display: flex;
}

/* Parallax Elements */
.parallax-layer {
	
/*
	DAN SAYS (ON 6/8/2026): I'm commenting these out for now.
	
  position: absolute;
  top: 0;
  left: 0;
  
  */
  
  transition: transform 0.1s ease-out; /* Smooth tick */
}

/* Glitch & Scanline Effects */
.bg-scanlines {
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.15));
  background-size: 100% 4px;
}

.custom-glitch-bg {
  background-color: #02060d;
  background-image: repeating-linear-gradient(0deg, #03080f, #03080f 2px, transparent 2px, transparent 4px);
  position: relative;
  animation: glitchBackground 10s infinite;
}
.custom-glitch-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 100px rgba(0,0,0,1);
  pointer-events: none;
  z-index: 5;
}

@keyframes glitchBackground {
  0% { background-position: 0 0; }
  2% { background-position: -2px 0; }
  4% { background-position: 2px 0; }
  6% { background-position: 0 0; }
  100% { background-position: 0 0; }
}

/* Utilities */
.shadow-cyan {
  box-shadow: 0 0 15px rgba(74,128,142,0.15);
}

@keyframes hauntedGlitch {
  0% { opacity: calc(var(--glitch-intensity) * 1.1); transform: translate(0, 0); }
  15% { opacity: calc(var(--glitch-intensity) * 0.7); transform: translate(-3px, 2px); }
  30% { opacity: calc(var(--glitch-intensity) * 1.2); transform: translate(2px, -4px); }
  45% { opacity: calc(var(--glitch-intensity) * 0.8); transform: translate(-2px, 3px); }
  60% { opacity: calc(var(--glitch-intensity) * 0.5); transform: translate(4px, -2px); }
  65% { opacity: calc(var(--glitch-intensity) * 1.1); transform: translate(-2px, 2px); }
  80% { opacity: calc(var(--glitch-intensity) * 0.9); transform: translate(-3px, 0); }
  100% { opacity: calc(var(--glitch-intensity) * 1.1); transform: translate(0, 0); }
}

@keyframes skullRise {
  from {
    transform: translateY(calc(500px + var(--scroll-y, 0px)));
    opacity: 0;
  }
  to {
    transform: translateY(calc(0px + var(--scroll-y, 0px)));
    opacity: 1;
  }
}

/* Glitch Background implementation */
.glitch-bg-container {
  overflow: hidden;
  position: absolute;
  inset: 0;
  animation: hauntedGlitch 5s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --glitch-intensity: 0.8;
}

.glitch-layer-1, .glitch-layer-2 {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, #010610, #010610 2px, transparent 2px, transparent 4px),
              linear-gradient(to bottom, #010610, #03080f);
  background-size: 100% 4px, 100% 100%;
}

.glitch-layer-1 {
  transform: translateX(-2px);
  opacity: var(--glitch-intensity);
  animation: glitch-anim-1 2s infinite steps(10) alternate-reverse, hauntedGlitch 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glitch-layer-2 {
  transform: translateX(2px);
  opacity: var(--glitch-intensity);
  animation: glitch-anim-2 3s infinite steps(10) alternate-reverse, hauntedGlitch 4.3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse;
}

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 50% 0); }
}

@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(80% 0 5% 0); }
  40% { clip-path: inset(30% 0 20% 0); }
  60% { clip-path: inset(70% 0 15% 0); }
  80% { clip-path: inset(50% 0 30% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

.glitch-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(74, 128, 142, 0.5);
  opacity: 0;
  animation: glitch-line-anim 4s infinite linear;
}

.glitch-line:nth-child(4) {
  animation-duration: 5s;
  animation-delay: 1.5s;
}

@keyframes glitch-line-anim {
  0%, 15%, 100% { opacity: 0; transform: translateY(0); }
  10% { opacity: 1; transform: translateY(100vh); }
}

.glitch-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: noise-move 0.2s infinite;
}

@keyframes noise-move {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0); }
  70% { transform: translate(0, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

.glitch-scanlines {
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.3) 2px,
    rgba(0, 0, 0, 0.3) 4px
  );
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.font-share {
  font-family: 'JetBrains Mono', monospace;
}

@keyframes sequenceFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInOpacityOnly {
  0% { opacity: 0; }
  100% { opacity: 0.6; }
}

.seq-canvas {
  animation: fadeInOpacityOnly 2s ease-in forwards;
  animation-delay: 6.5s;
  opacity: 0;
}

@media (min-width: 1024px) {
  .seq-canvas {
    animation-delay: 2s;
  }
}

/* Hide scrollbar globally 
::-webkit-scrollbar {
  display: none;
}
* {
  -ms-overflow-style: none; /* IE and Edge
  scrollbar-width: none; /* Firefox
}
*/

.seq-1 { animation: sequenceFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 0.5s; opacity: 0; }
.seq-3 { animation: sequenceFadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 5s; opacity: 0; }
.seq-4 { animation: sequenceFadeIn 3s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: 5.5s; opacity: 0; }
.hover\:shadow-cyan-lg:hover {
  box-shadow: 0 0 25px rgba(74,128,142,0.3);
}

/* Mobile Denver responsive image (visible only on mobile) */
.mobile-denver {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  height: 16vh; /* responsive to viewport height */
  max-height: 220px;
  min-height: 120px;
}

@media (min-width: 640px) {
  .mobile-denver {
    height: 22vh;
    max-height: 260px;
  }
}

@media (min-width: 768px) {
  .mobile-denver {
    height: 28vh;
    max-height: 320px;
  }
}

@media (min-width: 1024px) {
  .mobile-denver {
    display: none; /* desktop uses separate parallax layers */
  }
}

/* Screen transition effect */
@keyframes glitch-transition {
  0% { transform: translate(0) scale(1) skew(0); opacity: 1; filter: none; }
  10% { transform: translate(-5px, 2px) scale(0.98) skew(2deg); opacity: 0.8; filter: hue-rotate(90deg) drop-shadow(4px 0 0 red) drop-shadow(-4px 0 0 blue); }
  20% { transform: translate(5px, -2px) scale(1.02) skew(-2deg); opacity: 0.9; filter: hue-rotate(-90deg); }
  35% { transform: translate(-2px, 0) scale(0.99) skew(1deg); opacity: 1; filter: sepia(100%) hue-rotate(180deg); }
  50% { transform: translate(0, 0) scale(1) skew(0); opacity: 1; filter: none; }
  60% { transform: translate(2px, 2px) scale(1.01) skew(-1deg); opacity: 0.9; filter: blur(1px); }
  80% { transform: translate(-1px, -1px) scale(0.99) skew(1deg); opacity: 1; filter: drop-shadow(2px 0 0 #00CBBC); }
  100% { transform: translate(0) scale(1) skew(0); opacity: 1; filter: none; }
}

.glitch-anim-screen {
  animation: glitch-transition 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
