@charset "UTF-8";

/* ===== GLOBAL ===== */

body {
  margin: 0;
  background: #0A0A0F;
  color: #C0C0C0;
  font-family: "VT323", monospace;
  overflow-x: hidden;

  /* Footer stays at bottom */
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* Global page transition */
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: #00E5FF;
  text-decoration: none;
}

header {
  padding: 1.5rem 8vw;
  border-bottom: 1px solid rgba(0,229,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.2rem;
}

nav {
  margin-top: 0.8rem;
  display: flex;
  gap: 2rem;
  font-size: 1rem;
}

nav a:hover {
  text-shadow: 0 0 8px #00E5FF;
}

footer {
  padding: 2rem 8vw;
  border-top: 1px solid rgba(0,229,255,0.3);
  text-align: center;
  opacity: 0.7;
  margin-top: auto;
}

/* ===== HERO SECTIONS ===== */

.hero {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ===== CRT EFFECT ===== */

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 2px,
    transparent 4px
  );
  z-index: 999;
}

.glow {
  color: #00E5FF;
  text-shadow: 0 0 12px #00E5FF;
}

/* ===== TERMINAL BOX ===== */

.terminal-box {
  width: 80%;
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(255,255,255,0.03);
  text-align: center;
}

input, textarea {
  width: 100%;
  background: #0A0A0F;
  border: 1px solid rgba(0,229,255,0.3);
  color: #C0C0C0;
  padding: 0.8rem;
  margin-top: 1rem;
  font-family: "VT323", monospace;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #00E5FF;
  box-shadow: 0 0 12px #00E5FF;
}

/* ===== BUTTON ===== */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid #00E5FF;
  color: #00E5FF;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: 0.2s;
}

.btn:hover {
  background: #00E5FF;
  color: #0A0A0F;
  box-shadow: 0 0 20px #00E5FF;
}

/* Centered button groups (About page) */
.button-group {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== PROJECT / SIGNAL GRID ===== */

.grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 8vw;
}

/* Center grid */
.projects-grid {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== CARD BASE STYLE ===== */

.card {
  display: block;
  padding: 2rem;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(255,255,255,0.03);
  transition: 0.25s ease;
}

/* ===== GLOBAL CARD HOVER ANIMATION ===== */

.card:hover {
  transform: translateY(-6px);
  border-color: #00E5FF;
  box-shadow: 0 0 25px #00E5FF;
}

/* ===== UNIQUE CARD ANIMATIONS ===== */

/* Lords of the Fallen */
.card:nth-child(1):hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px #ff0000;
}

/* Days Gone */
.card:nth-child(2):hover {
  transform: translateX(6px);
  box-shadow: 0 0 30px #00E5FF;
}

/* DOOM Eternal */
.card:nth-child(3):hover {
  transform: rotate(1deg);
  box-shadow: 0 0 30px #ff6600;
}

/* Project Veil */
.card:nth-child(4):hover {
  filter: blur(1px);
  box-shadow: 0 0 30px #9933ff;
}

/* ===== UNIQUE PAGE TRANSITIONS ===== */

/* Games page */
body.games-page {
  animation: glitchReveal 0.5s ease-out;
}

@keyframes glitchReveal {
  0% { opacity: 0; transform: skewX(10deg); }
  50% { opacity: 0.5; transform: skewX(-10deg); }
  100% { opacity: 1; transform: skewX(0deg); }
}

/* Signals page */
body.signals-page {
  animation: scanFade 0.6s ease-out;
}

@keyframes scanFade {
  0% { opacity: 0; }
  20% { opacity: 0.3; }
  40% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* About page */
body.about-page {
  animation: glowRise 0.6s ease-out;
}

@keyframes glowRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact page */
body.contact-page {
  animation: terminalBoot 0.7s ease-out;
}

@keyframes terminalBoot {
  0% { opacity: 0; }
  30% { opacity: 1; }
  60% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* ===== BOOT SEQUENCE ===== */

.boot-sequence {
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 1000;
}

.crt-flicker {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: flicker 0.6s ease-out forwards;
}

@keyframes flicker {
  0% { opacity: 1; }
  20% { opacity: 0; }
  30% { opacity: 0.6; }
  40% { opacity: 0; }
  60% { opacity: 0.4; }
  100% { opacity: 0; }
}

.vhs-static {
  position: absolute;
  inset: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2P4//8/AwAI/AL+uOCoWQAAAABJRU5ErkJggg==');
  opacity: 0;
  animation: staticFlash 1.2s ease-out forwards;
}

@keyframes staticFlash {
  0% { opacity: 0; }
  20% { opacity: 0.4; }
  40% { opacity: 0.8; }
  60% { opacity: 0.3; }
  100% { opacity: 0; }
}

.sigil-container {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sigil {
  width: 20px;
  height: 20px;
  border: 2px solid #00E5FF;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.1);
  animation: sigilExpand 1.4s ease-out 1s forwards;
  box-shadow: 0 0 20px #00E5FF;
}

@keyframes sigilExpand {
  0% {
    opacity: 0;
    transform: scale(0.1);
  }
  40% {
    opacity: 1;
    transform: scale(1.4);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.terminal-text {
  position: absolute;
  bottom: 10%;
  left: 10%;
  color: #00E5FF;
  font-family: "VT323", monospace;
  font-size: 1.6rem;
  white-space: pre-wrap;
  opacity: 0;
  animation: showText 0s linear 2.4s forwards;
}

@keyframes showText {
  to { opacity: 1; }
}

.hidden-after-boot {
  opacity: 0;
  animation: revealMain 0.6s ease-out 3.4s forwards;
}

@keyframes revealMain {
  to { opacity: 1; }
}
