@charset "utf-8";

/* ----------------------------------------
   ROOT VARIABLES
---------------------------------------- */
:root {
  --bg-color: #0D0D0D;
  --text-color: #F5F5F5;
  --accent-color: #3FC;
  --font-family: 'Poppins', 'Segoe UI', sans-serif;
  --footer-text: #666;
}

/* ----------------------------------------
   GLOBAL RESET
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------
   BODY
---------------------------------------- */
body {
  background: var(--bg-color);
  color: var(--accent-color);
  font-family: var(--font-family);
  display: flex;
  flex-direction: column; /* important for footer placement */
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------
   MAIN
---------------------------------------- */
main {
  flex: 1;                     /* take available space */
  display: flex;
  justify-content: center;      /* vertical centering inside main */
  align-items: center;          /* horizontal centering */
  flex-direction: column;
  padding: 1rem;
  box-sizing: border-box;
}

/* ----------------------------------------
   HEADERS
---------------------------------------- */
h2 {
  margin-bottom: 25px;
  font-size: 22px;
  color: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* ----------------------------------------
   CONTAINER (QR box)
---------------------------------------- */
.container {
  text-align: center;
  padding: 40px 50px;
  border-radius: 12px;
  background: #0d0d0d;
  border: 1px solid rgba(0, 255, 204, 0.3);
  box-shadow: 0 0 18px rgba(0, 255, 204, 0.15);
  width: 90%;
  max-width: 420px;
  animation: fadeIn 0.8s ease-out;

  /* Neon glow effect */
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.container:hover {
  box-shadow: 0 0 12px var(--accent-color),
              0 0 20px rgba(0,255,204,0.4),
              0 0 30px rgba(0,255,204,0.3);
  transform: translateY(-2px);
}

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

/* ----------------------------------------
   BACK BUTTON
---------------------------------------- */
.back-button {
  display: inline-block;
  margin: 25px auto;
  padding: 10px 18px;
  font-size: 18px;
  color: var(--accent-color);
  text-decoration: none;
  border: 1px solid rgba(0, 255, 204, 0.4);
  border-radius: 6px;
  transition: all 0.25s ease;
}

.back-button:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.7);
  transform: translateY(-2px);
}

/* ----------------------------------------
   LINKS
---------------------------------------- */
a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
  padding: 12px 0;
  font-size: 19px;
  text-decoration: none;
  color: var(--accent-color);
  border-radius: 6px;
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 255, 204, 0.3);
}

a:hover {
  background: rgba(0, 255, 204, 0.1);
  border-color: rgba(0, 255, 204, 0.6);
  transform: translateY(-2px);
}

/* ----------------------------------------
   ICONS
---------------------------------------- */
.icon {
  width: 22px;
  height: 22px;
  stroke: var(--accent-color);
  fill: none;
  stroke-width: 2;
}

.iconH2 {
  width: 30px;
  height: 30px;
  stroke: var(--accent-color);
  fill: none;
  stroke-width: 2;
}

.iconH1 {
  width: 50px;
  height: 50px;
  stroke: var(--accent-color);
  fill: none;
  stroke-width: 2;
}

/* ----------------------------------------
   QR IMAGE
---------------------------------------- */
.qr-image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------
   FOOTER
---------------------------------------- */
footer {
  flex-shrink: 0;               /* prevents footer from shrinking */
  width: 100%;
  text-align: left;
  font-size: 0.8rem;
  color: var(--footer-text);
  padding: 1rem 0 1rem 0.5rem;
  box-sizing: border-box;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 500px) {
  .container {
    padding: 30px 20px;
    width: 95%;
  }
  h2 {
    font-size: 20px;
  }
  a {
    font-size: 17px;
  }
}