* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(ellipse at center, #252525 0%, #0a0a0a 100%),
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 2px
    );
  background-color: #0d0d0d;
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* CRT Scan-line effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 1000;
}

/* CRT vignette and glow effect */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0, 180, 180, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
  z-index: 999;
}

.dialog-box {
  border: 3px solid #00b8b8;
  background: #0d2b2b;
  max-width: 650px;
  width: 100%;
  box-shadow: 8px 8px 0 rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
}

.title-bar {
  background: linear-gradient(90deg, #00b8b8, #008888);
  color: #000;
  padding: 6px 8px;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #006666;
}

.title-bar-text {
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-bar-text::before {
  content: "◆";
  font-size: 10px;
}

.close-btn {
  width: 18px;
  height: 18px;
  background: #0d2b2b;
  border: 2px solid #00d4d4;
  color: #00d4d4;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.15s ease;
}

.close-btn:hover {
  background: #00d4d4;
  color: #0d2b2b;
}

.content {
  padding: 50px 40px;
  text-align: center;
}

.logo {
  font-size: 52px;
  font-weight: 600;
  color: #00d4d4;
  margin-bottom: 20px;
  text-shadow: 2px 2px 0 #006666;
  letter-spacing: -1px;
}

.tagline {
  font-size: 14px;
  color: #80e0e0;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
}

.btn {
  background: #00b8b8;
  color: #000;
  border: 2px solid #00d4d4;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.15s ease;
  margin-bottom: 30px;
}

.btn:hover {
  background: #00d4d4;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  transform: translate(-2px, -2px);
}

.btn:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.3);
}

.btn i {
  margin-right: 8px;
}

.divider {
  border: none;
  border-top: 1px dashed #00b8b8;
  margin: 0 0 25px 0;
  opacity: 0.5;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: #0d2b2b;
  border: 2px solid #00b8b8;
  color: #00d4d4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.social-links a:hover {
  background: #00b8b8;
  color: #0d2b2b;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.3);
  transform: translate(-1px, -1px);
}

.social-links i {
  font-size: 16px;
}

/* Terminal cursor blink effect */
.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background: #00d4d4;
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* CRT Power Off Animation */
@keyframes crt-off {
  0% {
    transform: scale(1, 1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1, 0.005);
    filter: brightness(2);
  }
  75% {
    transform: scale(0.1, 0.005);
    filter: brightness(3);
  }
  100% {
    transform: scale(0, 0);
    filter: brightness(0);
  }
}

@keyframes crt-on {
  0% {
    transform: scale(0, 0);
    filter: brightness(0);
  }
  30% {
    transform: scale(0.1, 0.005);
    filter: brightness(3);
  }
  50% {
    transform: scale(1, 0.005);
    filter: brightness(2);
  }
  100% {
    transform: scale(1, 1);
    filter: brightness(1);
  }
}

@keyframes white-flash {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

.crt-off {
  animation: crt-off 1.2s ease-in forwards;
}

.crt-on {
  animation: crt-on 1.2s ease-out forwards;
}

.screen-flash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 2000;
  pointer-events: none;
  animation: white-flash 0.3s ease-out forwards;
}

/* Status bar */
.status-bar {
  background: #0a1f1f;
  border-top: 1px solid #006666;
  padding: 4px 10px;
  font-size: 11px;
  color: #00b8b8;
  display: flex;
  justify-content: space-between;
}

/* Mobile responsive */
@media (max-width: 540px) {
  .dialog-box {
    margin: 10px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
  }

  .content {
    padding: 30px 20px;
  }

  .logo {
    font-size: 32px;
  }

  .tagline {
    font-size: 12px;
    margin-bottom: 25px;
  }

  .btn {
    padding: 8px 18px;
    font-size: 13px;
    margin-bottom: 25px;
  }

  .social-links a {
    width: 32px;
    height: 32px;
  }

  .social-links i {
    font-size: 14px;
  }
}
