/* =====================================================
   Steve's Developer Network Stylesheet
   Theme: DevNet Blue Matrix
   Author: Steve Horvath
   ===================================================== */

/* ---------- Basic Reset and Body ---------- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Courier New', monospace;
  color: #fff;
  background: black;
}

/* ---------- Matrix Canvas Background ---------- */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1; /* raise one layer so it can blend visibly under content */
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* not fully opaque */
  pointer-events: none; /* ensures clicks pass through */
}
/* ---------- Title and Typography ---------- */
.title-container {
  position: relative;
  text-align: center;
  margin-top: 10vh;
  z-index: 2;
}

.main-title {
  font-size: 3em;
  color: #00ccff;
  text-shadow: 0 0 10px #00ccff, 0 0 20px #00ccff, 0 0 40px #00ccff;
  animation: neonPulse 3s infinite alternate;
}

.subtitle {
  font-size: 1.2em;
  color: #b0eaff;
  margin-top: -10px;
}

/* ---------- Alien Scene Composition ---------- */
.alien-scene {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 5vh;
}

.alien-row {
  display: flex;
  justify-content: center;
  gap: 3vw;
  margin-bottom: 5vh;
}

.alien {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 10px #00ccff);
  opacity: 0.9;
  transition: transform 0.3s ease;
}

.alien:hover {
  transform: scale(1.1);
}

/* Whiteboard area */
.alien-board {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

/*
.whiteboard {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #00ccff;
  border-radius: 10px;
  padding: 20px;
  width: 280px;
  color: #b0eaff;
  text-align: left;
  box-shadow: 0 0 15px #00ccff55;
}
*/

/* ---------- Buttons ---------- */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  position: fixed;
  bottom: 10vh;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dev-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.2em;
  color: #fff;
  text-decoration: none;
  border: 2px solid #00ccff;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px #00ccff;
}

/* Default Dev’s Enter hover (DevNet Blue) */
.dev-button:hover {
  background: #00ccff;
  color: #000;
  box-shadow: 0 0 25px #00ccff, 0 0 50px #00ccff;
}

/* About button variant */
.about-button {
  border-color: #7afcff;
  box-shadow: 0 0 15px #7afcff;
}

/* About button hover — violet-teal accent */
.about-button:hover {
  background: linear-gradient(90deg, #00ccff, #9966ff);
  color: #000;
  box-shadow: 0 0 25px #9966ff, 0 0 50px #00ccff;
}

/* ---------- Login Scene ---------- */
.login-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  z-index: 2;
  margin-top: 10vh;
}

.login-alien {
  width: 150px;
  height: auto;
  filter: drop-shadow(0 0 10px #00ccff);
}

.login-terminal {
  background: rgba(0, 20, 40, 0.75);
  border: 2px solid #00ccff;
  border-radius: 10px;
  padding: 30px;
  width: 320px;
  box-shadow: 0 0 25px #00ccff66, inset 0 0 15px #00ccff33;
  text-align: center;
  position: relative;
  z-index: 5; /* ensures it stays above the canvas */
  animation: terminalPulse 6s infinite ease-in-out;
}

@keyframes terminalPulse {
  0%, 100% {
    box-shadow: 0 0 25px #00ccff66, inset 0 0 15px #00ccff33;
  }
  50% {
    box-shadow: 0 0 45px #33ddffaa, inset 0 0 25px #33ddff55;
  }
}

.login-terminal input {
  display: block;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #00ccff;
  border-radius: 5px;
  color: #fff;
}

.whiteboard {
  background-color: rgba(10, 20, 30, 0.7);
  border: 2px solid #00ccff;
  border-radius: 8px;
  padding: 15px 25px;
  color: #00ffcc;
  text-shadow: 0 0 8px #00ccff;
  box-shadow: 0 0 25px #00ccff inset;
  animation: boardGlow 6s infinite ease-in-out;
}


/* ---------- LOGIN SCENE FIXES ---------- */

/* Alien background: make it large and always visible */
.login-bg-alien {
  position: fixed;
  bottom: -10px;

  left: 50%;
  transform: translateX(-65%);
  width: 45%;           /* adjust if you need more or less width */
  height: auto;
  z-index: 2;           /* stays above Matrix canvas but below login box */
  opacity: 0.95;
  animation: none;       /* no fading or hiding */
}

/* Keep fade-in elements visible after animation */
.fade-in {
  animation: fadeIn 2s ease-in forwards;
}

/* Make login terminal perfectly centered over the screen area */
.login-terminal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -20%);
  background: rgba(0, 20, 40, 0.85);
  border: 2px solid #00ccff;
  border-radius: 10px;
  padding: 30px;
  width: 245px;
  box-shadow: 0 0 25px #00ccff66, inset 0 0 15px #00ccff33;
  text-align: center;
  z-index: 5;
  animation: terminalPulse 6s infinite ease-in-out;
}

/* Optional: soften pulse for immersive feel */
@keyframes terminalPulse {
  0%, 100% {
    box-shadow: 0 0 25px #00ccff99, inset 0 0 15px #00ccff44;
  }
  50% {
    box-shadow: 0 0 40px #33ddffaa, inset 0 0 25px #33ddff66;
  }
}


/* Subtle holographic shimmer animation */
@keyframes boardGlow {
  0%, 100% {
    box-shadow: 0 0 25px #00ccff inset, 0 0 20px #00ccff55;
    background-color: rgba(10, 20, 30, 0.7);
  }
  50% {
    box-shadow: 0 0 40px #33ddff inset, 0 0 35px #33ddff77;
    background-color: rgba(20, 40, 60, 0.8);
  }
}

.alien-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1em;
  letter-spacing: 4px;
  color: #00ffcc;
  list-style: none;
  padding: 0;
  margin: 0;
  text-shadow: 0 0 6px #00ccff, 0 0 12px #00ffff;
}

.alien-text li {
  display: block;
  opacity: 0.9;
}

/* Base pulse animation for alien glow */
@keyframes alienPulse {
  0% {
    color: #00ffcc;
    text-shadow: 0 0 6px #00ccff, 0 0 12px #00ffff;
    opacity: 0.9;
    transform: scale(1);
  }
  25% {
    color: #33ffff;
    text-shadow: 0 0 12px #33ddff, 0 0 24px #00ffff;
    opacity: 1;
    transform: scale(1.02);
  }
  50% {
    color: #66ffff;
    text-shadow: 0 0 16px #33ddff, 0 0 28px #00ffff;
    opacity: 0.85;
    transform: scale(1);
  }
  75% {
    color: #00ffee;
    text-shadow: 0 0 10px #00ddff, 0 0 20px #00ffff;
    opacity: 1;
    transform: scale(1.03);
  }
  100% {
    color: #00ffcc;
    text-shadow: 0 0 6px #00ccff, 0 0 12px #00ffff;
    opacity: 0.9;
    transform: scale(1);
  }
}

/* Asynchronous flicker: each line has unique timing */
.alien-text li:nth-child(1) {
  animation: alienPulse 3s infinite ease-in-out;
  animation-delay: 0s;
}
.alien-text li:nth-child(2) {
  animation: alienPulse 3.7s infinite ease-in-out;
  animation-delay: 1s;
}
.alien-text li:nth-child(3) {
  animation: alienPulse 4.3s infinite ease-in-out;
  animation-delay: 2s;
}


/* ---------- Footer Watermark ---------- */
.footer-watermark {
  position: fixed;
  bottom: 5px;
  width: 100%;
  text-align: center;
  font-size: 0.8em;
  color: #0088bb;
  opacity: 0.7;
  z-index: 3;
}

/* ---------- Animations ---------- */
@keyframes neonPulse {
  0% { text-shadow: 0 0 10px #00ccff, 0 0 20px #00ccff, 0 0 40px #00ccff; }
  100% { text-shadow: 0 0 20px #33ddff, 0 0 40px #33ddff, 0 0 80px #33ddff; }
}

.fade-in {
  animation: fadeIn 2s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Responsive Design ---------- */
@media (max-width: 768px) {
  .main-title { font-size: 2em; }
  .alien { width: 80px; }
  .whiteboard { width: 220px; }
  .login-terminal { width: 250px; }
}

/* ---------- Fine-tuned About Scene Positioning ---------- */
.about-scene {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 10vh;
  z-index: 2;
  flex-wrap: wrap;
}

/* Fine-tuned Alien Scientist styling */
.about-alien.fine-tuned {
  width: 260px;
  height: auto;
  filter: drop-shadow(0 0 15px #00ccff);
  animation: scientistGlow 5s infinite ease-in-out;
  align-self: flex-start;
  margin-top: 20px;
  margin-left: 4vw;
  transition: transform 0.4s ease;
}

.about-alien.fine-tuned:hover {
  transform: scale(1.05);
}

/* Keep holo display in perfect alignment */
.holo-display {
  background: rgba(0, 60, 80, 0.25);
  border: 2px solid #00ccff;
  border-radius: 10px;
  padding: 25px;
  width: 420px;
  color: #b0eaff;
  text-shadow: 0 0 8px #00ccff99;
  box-shadow: 0 0 25px #00ccff55, inset 0 0 20px #00ccff22;
  animation: holoFlicker 5s infinite ease-in-out alternate;
}

/* Gentle glowing pulse for the scientist */
@keyframes scientistGlow {
  0%, 100% { filter: drop-shadow(0 0 12px #00ccff); opacity: 0.95; }
  50% { filter: drop-shadow(0 0 22px #33ddff); opacity: 1; }
}

/* Responsive layout adjustments */
@media (max-width: 768px) {
  .about-scene {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .about-alien.fine-tuned {
    width: 200px;
    margin-left: 0;
  }
  .holo-display {
    width: 85%;
  }
}

/* ---------- Holographic Flicker Animation ---------- */
@keyframes holoFlicker {
  0%, 100% {
    opacity: 0.95;
    box-shadow: 0 0 25px #00ccff55, inset 0 0 20px #00ccff22;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 40px #33ddffaa, inset 0 0 30px #33ddff44;
  }
}

/* ---------- Responsive for About Page ---------- */
@media (max-width: 768px) {
  .about-scene {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .holo-display { width: 85%; }
}
