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

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* take up remaining space between topbar and footer */
  display: flex;
  flex-direction: column;
}

/* === Global Body Styles === */
body {
  font-family: 'Fira Code', monospace;
  background: #0a0a0a;
  color: #fff;
  overflow-x: hidden;
}

/* === Particle Canvas === */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top, #040409 0%, #050e39 100%);
}

/* === Typography === */
h1 { font-size: 2rem; margin-bottom: 0.5rem; }
h2 { font-size: 1.2rem; color: #9b5de5; margin-bottom: 1.5rem; }

/* === Shared Buttons === */
.cta-btn, .coffee-btn, .hire-btn, .btn-generate, .btn-copy, .btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  font-family: 'Press Start 2P', cursive;
  font-size: 0.7rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
}

.cta-btn { background: #fff; color: #000; }
.cta-btn:hover { background: #00c7cc; transform: scale(1.05); }

.coffee-btn { background: #ffcc00; color: #000; }
.coffee-btn:hover { background: #e6b800; transform: scale(1.05); }

.hire-btn { background: #fff; color: #000; }
.hire-btn:hover { background: #00c7cc; transform: scale(1.05); }

.btn-generate { background: #00c7cc; color: #000; }
.btn-generate:hover { background: #00e4eb; }

.btn-copy { background: #ffcc00; color: #000; }
.btn-copy:hover { background: #ffd633; }

.btn-back { background: #fff; color: #000; }
.btn-back:hover { background: #e6e6e6; }

/* === Shared Button Group === */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
  justify-content: center;
}

/* === Shared Form Inputs === */
input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  font-family: 'Source Code Pro', monospace;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #fff;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  outline: none;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: #9b5de5;
}

label {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.6rem;
  color: #fff;
}

/* === Shared Header/Topbar === */
/* --- HEADER BAR --- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.85);
    border-bottom: 1px solid #222;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topbar-left img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}
.topbar-left span {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    color: #fff;
}
.topbar-right .hire-btn {
    background: #ffffff;
    color: #000;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.1s ease;
}
.topbar-right .hire-btn:hover {
    background: #00c7cc;
    transform: scale(1.05);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  border-top: 1px solid #222;
}
.footer-note {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

/* === Global Container === */
.container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.container.centered {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* === Push content below fixed topbar === */
.has-topbar main {
  padding-top: 80px; /* same as topbar height */
}