@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:ital,wght@0,400;0,700;1,400;1,700&family=Press+Start+2P&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Rubik+Glitch&family=Rubik+Microbe&display=swap');

:root {
  --bg: #0a0a0a;
  --fg: #e0e0e0;
  --pink: #ff00ff;
  --cyan: #00ffff;
  --yellow: #ffff00;
  --green: #39ff14;
  --red: #ff3333;
  --orange: #ff6600;
  --purple: #9d00ff;
  --capy: #8B6914;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Mono', monospace;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 0, 0.05) 0%, transparent 50%);
  animation: bgShift 20s linear infinite;
}

@keyframes bgShift {
  0%, 100% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  25% { background-position: 50% 0%, 100% 50%, 0% 100%; }
  50% { background-position: 100% 0%, 50% 50%, 50% 0%; }
  75% { background-position: 0% 50%, 0% 100%, 100% 50%; }
}

/* MARQUEE MADNESS */
.top-marquee {
  background: var(--pink);
  color: var(--bg);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 8px 0;
  letter-spacing: 2px;
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.logo {
  font-family: 'Rubik Glitch', cursive;
  font-size: clamp(3rem, 10vw, 7rem);
  color: var(--yellow);
  text-shadow:
    3px 3px 0 var(--pink),
    -3px -3px 0 var(--cyan),
    6px 6px 0 rgba(0,0,0,0.5);
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05) rotate(-1deg); }
}

.tagline {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #ccc;
}

.tagline .spin {
  display: inline-block;
  animation: spin 3s linear infinite;
}
.tagline .bounce {
  display: inline-block;
  animation: bounce 1s ease-in-out infinite;
}
.tagline .blink {
  animation: blink 1s step-end infinite;
  color: var(--red);
}
.capy-highlight {
  background: var(--yellow);
  color: var(--bg);
  padding: 2px 8px;
  font-weight: bold;
}

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: 0; } }

/* GLITCH EFFECT */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--pink);
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip: rect(0, 900px, 0, 0);
}
.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--cyan);
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip: rect(0, 900px, 0, 0);
}
@keyframes glitch-1 {
  0% { clip: rect(20px, 9999px, 76px, 0); }
  20% { clip: rect(12px, 9999px, 54px, 0); }
  40% { clip: rect(85px, 9999px, 32px, 0); }
  60% { clip: rect(44px, 9999px, 98px, 0); }
  80% { clip: rect(67px, 9999px, 15px, 0); }
  100% { clip: rect(33px, 9999px, 71px, 0); }
}
@keyframes glitch-2 {
  0% { clip: rect(45px, 9999px, 22px, 0); }
  20% { clip: rect(78px, 9999px, 11px, 0); }
  40% { clip: rect(15px, 9999px, 88px, 0); }
  60% { clip: rect(53px, 9999px, 37px, 0); }
  80% { clip: rect(91px, 9999px, 44px, 0); }
  100% { clip: rect(28px, 9999px, 63px, 0); }
}

/* NAV */
.chaos-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border-top: 3px solid var(--pink);
  border-bottom: 3px solid var(--cyan);
  background: rgba(255,255,255,0.03);
}

.chaos-nav a {
  color: var(--fg);
  text-decoration: none;
  padding: 8px 16px;
  border: 2px solid #333;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}
.chaos-nav a:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--bg);
  transform: rotate(-2deg) scale(1.1);
}

.chaos-btn {
  background: var(--pink);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.1s;
  text-transform: uppercase;
}
.chaos-btn:hover {
  background: var(--yellow);
  transform: scale(1.2) rotate(3deg);
  box-shadow: 0 0 30px var(--yellow);
}
.chaos-btn:active {
  transform: scale(0.9) rotate(-5deg);
}

.big-btn {
  font-size: 14px;
  padding: 16px 32px;
}

/* SECTIONS */
.section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 2px dashed #333;
}

.section-title {
  font-family: 'Rubik Microbe', cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  margin-bottom: 30px;
  color: var(--cyan);
}

.section-title.tilted { transform: rotate(-2deg); }
.section-title.upside-down { transform: rotate(180deg); display: inline-block; }
.section-title.shake { animation: shake 0.5s ease-in-out infinite; }
.section-title.spin-slow { animation: spin 10s linear infinite; display: inline-block; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  75% { transform: translateX(5px) rotate(1deg); }
}

/* ABOUT */
.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.ascii-art {
  font-size: 14px;
  line-height: 1.2;
  color: var(--capy);
  background: #111;
  padding: 20px;
  border: 2px solid var(--capy);
  white-space: pre;
  font-family: 'Space Mono', monospace;
}

.about-text {
  flex: 1;
  min-width: 280px;
}
.about-text p {
  margin-bottom: 15px;
}

.rainbow-text {
  background: linear-gradient(90deg, red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s linear infinite;
}

@keyframes rainbow { 100% { background-position: -200% 0; } }

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: #111;
  border: 2px solid #333;
  padding: 24px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.service-card:nth-child(odd) { border-color: var(--pink); }
.service-card:nth-child(even) { border-color: var(--cyan); }
.service-card:nth-child(3n) { transform: rotate(1deg); }
.service-card:nth-child(4n) { transform: rotate(-1deg); }

.service-card:hover {
  transform: scale(1.05) rotate(0deg) !important;
  border-color: var(--yellow);
  box-shadow:
    5px 5px 0 var(--pink),
    -5px -5px 0 var(--cyan);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(var(--pink), var(--cyan), var(--yellow), var(--pink));
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}
.service-card:hover::before {
  opacity: 0.1;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }

.service-card h3 {
  font-family: 'Comic Neue', cursive;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--yellow);
}
.service-card p {
  font-size: 0.9rem;
  margin-bottom: 15px;
  color: #aaa;
}
.price {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--green);
  display: block;
}

/* TESTIMONIALS */
.testimonial-carousel {
  position: relative;
  min-height: 150px;
}

.testimonial {
  display: none;
  padding: 30px;
  background: #111;
  border-left: 4px solid var(--yellow);
  margin-bottom: 10px;
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: 10px;
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
}
.testimonial blockquote::before { content: '"'; color: var(--yellow); font-size: 2rem; }
.testimonial blockquote::after { content: '"'; color: var(--yellow); font-size: 2rem; }

.testimonial cite {
  color: #888;
  font-size: 0.85rem;
}

/* CONTACT */
.contact-intro {
  margin-bottom: 30px;
  color: #aaa;
}

.contact-form {
  display: grid;
  gap: 20px;
  max-width: 600px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
  color: var(--cyan);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  background: #111;
  border: 2px solid #333;
  color: var(--fg);
  padding: 12px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

.checkbox-group {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
  flex-shrink: 0;
  margin-top: 2px;
}

#budget-display {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--green);
}
#budget-message {
  font-size: 0.85rem;
  color: #888;
}

.form-response {
  margin-top: 20px;
  padding: 20px;
  border: 2px solid var(--green);
  background: rgba(57, 255, 20, 0.05);
  font-family: 'Comic Neue', cursive;
  font-weight: 700;
}

.form-response.hidden { display: none; }

.form-response.error {
  border-color: var(--pink);
  background: rgba(255, 0, 255, 0.05);
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  background: #050505;
  border-top: 3px solid var(--pink);
}

.site-footer marquee {
  margin-bottom: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.8rem;
  color: var(--yellow);
}

.footer-content p {
  margin-bottom: 5px;
  font-size: 0.8rem;
  color: #666;
}
.tiny {
  font-size: 0.65rem;
  color: #444;
}

/* CHAOS OVERLAY */
.chaos-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 9999;
}
.chaos-particle {
  position: absolute;
  font-size: 2rem;
  animation: fall linear forwards;
}
@keyframes fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-content { flex-direction: column; align-items: center; }
  .ascii-art { font-size: 10px; }
  .chaos-nav a { font-size: 0.85rem; padding: 6px 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 15px; }
}

@media (max-width: 400px) {
  .logo { font-size: 2.5rem; }
  .tagline { font-size: 0.95rem; }
  .section-title { font-size: 1.5rem; }
}
