/* ============================================================
   I BEAN TROLLED — style.css
   Shared styles used across all pages
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --black: #07060a;
  --deep: #0f0d14;
  --purple: #2a1a4e;
  --accent: #8B00FF;
  --gold: #FFE000;
  --pink: #FF69B4;
  --green: #39FF14;
  --text: #e8e0f0;
  --muted: rgba(232,224,240,0.45);
  --t-orange: #FF6200;
  --t-yellow: #FFE000;
  --t-green: #39FF14;
  --t-blue: #00CFFF;
  --t-purple: #8B00FF;
  --t-pink: #FF69B4;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: 'Spectral', Georgia, serif;
  overflow-x: hidden;
}

/* ── STARS ── */
#stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.5); }
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: rgba(7,6,10,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,132,252,0.15);
}
.nav-logo {
  font-family: 'Cinzel Decorative', serif;
  font-size: .8rem; letter-spacing: .2em;
  color: var(--accent); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.three-dots { display: flex; gap: 5px; }
.three-dots span { width: 7px; height: 7px; border-radius: 50%; }
.three-dots span:nth-child(1) { background: var(--t-orange); box-shadow: 0 0 8px var(--t-orange); }
.three-dots span:nth-child(2) { background: var(--t-yellow); box-shadow: 0 0 8px var(--t-yellow); }
.three-dots span:nth-child(3) { background: var(--t-green);  box-shadow: 0 0 8px var(--t-green); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: .65rem; letter-spacing: .15em;
  color: var(--muted); text-decoration: none;
  text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ── HAMBURGER / MOBILE MENU ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: all .3s; display: block;
}
.mobile-menu {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0;
  background: rgba(7,6,10,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,132,252,.2);
  z-index: 99; padding: 20px 24px;
  flex-direction: column; gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Space Mono', monospace;
  font-size: .75rem; letter-spacing: .15em;
  color: var(--muted); text-decoration: none;
  text-transform: uppercase; padding: 14px 0;
  border-bottom: 1px solid rgba(192,132,252,.1);
  display: block;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--accent); }
@media(max-width:600px) {
  .nav-links { display: none; }
  nav { padding: 14px 20px; }
  .hamburger { display: flex; }
}

/* ── SECTIONS ── */
section {
  min-height: 100vh; position: relative; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 100px 24px 60px;
}

/* ── SHARED TYPOGRAPHY ── */
.section-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.2rem,4vw,2rem);
  color: var(--text); text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(192,132,252,.4);
}
.section-sub {
  font-style: italic; color: var(--muted);
  text-align: center; margin-bottom: 48px; font-size: .95rem;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Cinzel Decorative', serif;
  font-size: .72rem; letter-spacing: .15em;
  background: var(--accent); color: var(--black);
  border: none; border-radius: 50px;
  padding: 14px 32px; cursor: pointer; transition: all .3s;
  box-shadow: 0 0 30px rgba(192,132,252,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(192,132,252,.6); }
.btn-outline {
  font-family: 'Cinzel Decorative', serif;
  font-size: .72rem; letter-spacing: .15em;
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(232,224,240,.3);
  border-radius: 50px; padding: 14px 32px;
  cursor: pointer; transition: all .3s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-family: 'Space Mono', monospace;
  font-size: .65rem; letter-spacing: .15em;
  color: var(--muted); text-transform: uppercase;
}
.form-input, .form-textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(192,132,252,.25);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text); font-family: 'Spectral', serif;
  font-size: .95rem; outline: none;
  transition: border-color .2s; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(232,224,240,.25); }
.submit-btn {
  font-family: 'Cinzel Decorative', serif;
  font-size: .72rem; letter-spacing: .15em;
  background: var(--green); color: var(--black);
  border: none; border-radius: 50px;
  padding: 14px 32px; cursor: pointer;
  transition: all .3s; align-self: flex-start;
  box-shadow: 0 0 30px rgba(52,211,153,.3);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(52,211,153,.5); }
.form-success {
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.3);
  border-radius: 12px; padding: 28px;
  text-align: center; display: none;
}
.form-success.visible { display: block; }
.form-success p { color: var(--green); font-style: italic; line-height: 1.9; font-size: 1rem; }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  text-align: center; padding: 40px 24px;
  border-top: 1px solid rgba(192,132,252,.1);
}
.footer-dots { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.footer-dot { width: 8px; height: 8px; border-radius: 50%; opacity: .6; }
footer p { font-family: 'Space Mono', monospace; font-size: .6rem; color: var(--muted); letter-spacing: .1em; }
footer a { color: var(--accent); text-decoration: none; }

/* ── PARTICLES ── */
.particle {
  position: fixed; width: 8px; height: 8px;
  border-radius: 50%; pointer-events: none;
  z-index: 999; animation: burst 1.1s ease-out forwards;
}
@keyframes burst {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(.3); }
}

/* ── TROLL IMAGES ── */
.hero-trolls {
  display: flex; align-items: flex-end;
  justify-content: center; gap: 0;
  width: 100%; max-width: 900px;
}
.hero-center { text-align: center; flex: 1; padding: 0 20px; }
.hero-troll {
  width: 200px; height: auto;
  filter: drop-shadow(0 0 30px rgba(255,255,255,.15));
  animation: float 3s ease-in-out infinite;
}
.hero-troll-left  { animation-delay: 0s; }
.hero-troll-right { animation-delay: 1s; }
@media(max-width:600px) {
  .hero-troll { width: 100px; }
  .hero-trolls { gap: 0; }
}
.troll-icon-img {
  width: 120px; height: auto;
  filter: drop-shadow(0 0 20px rgba(236,72,153,.6));
  animation: float 3s ease-in-out infinite;
  position: relative; z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.code-troll {
  width: 80px; height: auto; margin-bottom: 12px;
  filter: drop-shadow(0 0 10px rgba(255,255,255,.2));
  animation: float 3s ease-in-out infinite;
}
.found-troll {
  width: 120px; height: auto;
  margin: 0 auto 20px; display: block;
  filter: drop-shadow(0 0 20px rgba(52,211,153,.3));
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}
