:root {
  --primary: #0062cc;
  --secondary: #292052;
  --accent: #e7a11b;
  --bg-dark: #1f1137;
  --text-light: #f5f5f5;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

header {
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 10;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--accent);
}

#menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

header nav {
  display: flex;
  gap: 1rem;
}

header nav a {
  color: var(--text-light);
  text-decoration: none;
  position: relative;
}

header nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s;
}

header nav a:hover::after {
  width: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel {
  min-height: 100vh;
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h2 {
  font-size: 2rem;
}

#typewriter {
  font-family: 'VT323', monospace;
  color: var(--accent);
  font-size: 1.8rem;
  margin-top: 1rem;
}

.glitch {
  position: relative;
  color: var(--accent);
  font-size: 3rem;
  animation: glitch 1s infinite;
}

@keyframes glitch {
  0%, 100% { text-shadow: 2px 0 red, -2px 0 blue; }
  20%, 60% { text-shadow: -2px 0 red, 2px 0 blue; }
  40%, 80% { text-shadow: 2px 0 red, -2px 0 blue; }
}

.contact-container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 960px;
  width: 100%;
  flex-wrap: wrap;
}

.contact-info, .contact-form {
  flex: 1 1 300px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(31, 17, 55, 0.8);
  color: var(--text-light);
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--primary);
}

.site-footer {
  padding: 1rem;
  background: rgba(41, 32, 82, 0.9);
  text-align: center;
  font-size: 0.9rem;
}

#slackbot {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  animation: dance 1.5s infinite;
}

#slackbot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes dance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-5deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-5px) rotate(5deg); }
}

#chat-window {
  position: fixed;
  bottom: 4.5rem;
  right: 1rem;
  width: 300px;
  max-height: 400px;
  background: rgba(31, 17, 55, 0.95);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 100;
}

#chat-window.hidden {
  display: none;
}

.chat-header {
  background: var(--secondary);
  color: var(--accent);
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#chat-log {
  flex: 1;
  padding: 0.5rem;
  overflow-y: auto;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--text-light);
}

#chat-input {
  border: none;
  padding: 0.5rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-light);
}

#chat-input:focus {
  outline: 2px solid var(--accent);
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  header nav {
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: center;
    background: rgba(0,0,0,0.8);
    margin-top: 0.5rem;
  }

  header nav.show {
    display: flex;
  }

  header nav a {
    padding: 0.5rem 0;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }
}
