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

:root {
  --matrix-green: #00ff00;
  --matrix-dark-green: #008f00;
  --matrix-red: #ff0000;
  --matrix-blue: #0080ff;
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
}

body {
  font-family: "Courier New", monospace;
  background-color: var(--bg-black);
  color: var(--matrix-green);
  overflow-x: hidden;
  position: relative;
}

/* Scanline Effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(transparent 50%, rgba(0, 255, 0, 0.03) 50%);
  background-size: 100% 4px;
  animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 10px;
  }
}

/* Particle Background */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: var(--matrix-green);
  width: 2px;
  height: 2px;
  opacity: 0.5;
  animation: float 20s infinite linear;
  box-shadow: 0 0 10px var(--matrix-green);
}

@keyframes float {
  from {
    transform: translateY(100vh) translateX(0);
  }
  to {
    transform: translateY(-10vh) translateX(100px);
  }
}

/* Header Styles */
.matrix-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--matrix-green);
  z-index: 1000;
  padding: 1rem 2rem;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--matrix-green);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 3px;
  text-shadow: 0 0 20px var(--matrix-green);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.nav-link {
  color: var(--matrix-green);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--bg-black);
  border-color: var(--matrix-green);
  background: var(--matrix-green);
  text-shadow: none;
}

.nav-link.active {
  border-color: var(--matrix-green);
  box-shadow: 0 0 15px var(--matrix-green);
}

/* Special styling for Buy Now button */
.nav-link.stripe-link {
  background: rgba(0, 255, 0, 0.1);
  border-color: var(--matrix-green);
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.nav-link.stripe-link:hover {
  box-shadow: 0 0 20px var(--matrix-green);
}

/* Product Showcase */
.product-showcase {
  margin-top: 80px;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
}

.showcase-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 50px var(--matrix-green));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 50px var(--matrix-green));
  }
  50% {
    filter: drop-shadow(0 0 80px var(--matrix-green));
  }
}

.showcase-text {
  text-align: left;
}

/* Glitch Effect */
.glitch {
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  position: relative;
  text-shadow: 0 0 20px var(--matrix-green);
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--matrix-red);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--matrix-blue);
  z-index: -2;
}

@keyframes glitch {
  0%,
  100% {
    text-shadow: 0 0 20px var(--matrix-green);
  }
  20% {
    text-shadow: 3px 0 20px var(--matrix-red);
  }
  40% {
    text-shadow: -3px 0 20px var(--matrix-blue);
  }
}

@keyframes glitch-1 {
  0%,
  100% {
    clip: rect(44px, 450px, 56px, 0);
  }
  20% {
    clip: rect(12px, 450px, 85px, 0);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    clip: rect(14px, 450px, 75px, 0);
  }
  20% {
    clip: rect(78px, 450px, 100px, 0);
  }
}

.terminal-text {
  font-size: 1.2rem;
  margin: 2rem 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--matrix-green);
  animation: typewriter 3s steps(30) 1s forwards, blink 0.5s step-end infinite alternate 3.5s;
  max-width: fit-content;
}

@keyframes typewriter {
  0% {
    width: 0;
    opacity: 0.8;
  }
  1% {
    opacity: 0.8;
  }
  100% {
    width: 100%;
    opacity: 0.8;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Buy Button */
.buy-button {
  background: transparent;
  border: 2px solid var(--matrix-green);
  color: var(--matrix-green);
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.buy-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--matrix-green);
  transform: translate(-50%, -50%);
  transition: all 0.5s ease;
  z-index: -1;
}

.buy-button:hover {
  color: var(--bg-black);
  text-shadow: none;
  box-shadow: 0 0 30px var(--matrix-green), inset 0 0 30px rgba(0, 255, 0, 0.3);
}

.buy-button:hover::before {
  width: 120%;
  height: 120%;
}

.button-glow {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--matrix-green),
    transparent,
    var(--matrix-green)
  );
  z-index: -1;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.buy-button:hover .button-glow {
  opacity: 1;
}

/* Section Divider */
.section-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  z-index: 3;
}

/* Pill Choice Section */
.pill-choice {
  padding: 6rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-black) 0%, var(--bg-dark) 100%);
}

.pill-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 3rem;
}

.pill-hand {
  flex: 1;
  position: relative;
}

.pill-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  transition: all 0.3s ease;
}

.pill-hand.left .pill-image {
  filter: drop-shadow(0 0 30px var(--matrix-red));
}

.pill-hand.right .pill-image {
  filter: drop-shadow(0 0 30px var(--matrix-blue));
}

.pill-hand:hover .pill-image {
  transform: scale(1.05) rotate(2deg);
}

.choice-text {
  flex: 2;
  text-align: center;
  padding: 0 2rem;
}

.matrix-text {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.red-text {
  color: var(--matrix-red);
  text-shadow: 0 0 20px var(--matrix-red);
}

.blue-text {
  color: var(--matrix-blue);
  text-shadow: 0 0 20px var(--matrix-blue);
}

.subtext {
  font-size: 1.1rem;
  opacity: 0.8;
}

/* Features Section */
.features {
  padding: 6rem 2rem;
  background: var(--bg-dark);
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 30px var(--matrix-green);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.feature-card {
  background: rgba(0, 255, 0, 0.05);
  border: 2px solid var(--matrix-green);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0, 255, 0, 0.1));
  transition: top 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 0, 0.3);
}

.feature-card:hover::before {
  top: 0;
}

.feature-icon {
  width: 120px;
  height: 60px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px var(--matrix-green));
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.feature-card p {
  opacity: 0.8;
  line-height: 1.6;
}

/* Documentation Section */
.documentation {
  padding: 6rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
}

.falling-pills {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.falling-pill {
  position: absolute;
  width: 20px;
  height: 30px;
  border-radius: 50%;
  animation: fall linear infinite;
}

.falling-pill.red {
  background: var(--matrix-red);
  box-shadow: 0 0 10px var(--matrix-red);
}

.falling-pill.blue {
  background: var(--matrix-blue);
  box-shadow: 0 0 10px var(--matrix-blue);
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

.docs-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.docs-description {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  opacity: 0.8;
}

.docs-button {
  display: inline-block;
  background: transparent;
  border: 3px solid var(--matrix-green);
  color: var(--matrix-green);
  padding: 1.5rem 4rem;
  font-size: 1.5rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.docs-button span {
  position: relative;
  z-index: 2;
}

.button-matrix-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--matrix-green);
  transition: left 0.3s ease;
  z-index: 1;
}

.docs-button:hover {
  color: var(--bg-black);
  box-shadow: 0 0 50px var(--matrix-green);
}

.docs-button:hover .button-matrix-bg {
  left: 0;
}

/* Terminal Section */
.terminal-section {
  padding: 6rem 2rem;
  background: var(--bg-dark);
}

.terminal {
  background: #0a0a0a;
  border: 2px solid var(--matrix-green);
  border-radius: 8px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(0, 255, 0, 0.3);
}

.terminal-header {
  background: var(--matrix-dark-green);
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-title {
  color: var(--bg-black);
  font-weight: bold;
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.control.minimize {
  background: #ffbd2e;
}

.control.maximize {
  background: #27c93f;
}

.control.close {
  background: #ff5f56;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 400px;
  font-family: "Courier New", monospace;
}

#terminal-output {
  margin-bottom: 1rem;
}

.terminal-line {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--matrix-green);
  margin-right: 0.5rem;
}

.terminal-input {
  background: transparent;
  border: none;
  color: var(--matrix-green);
  font-family: inherit;
  font-size: inherit;
  flex: 1;
  outline: none;
}

.terminal-input::placeholder {
  color: var(--matrix-dark-green);
  opacity: 0.5;
}

/* Footer */
.matrix-footer {
  background: var(--bg-black);
  border-top: 2px solid var(--matrix-green);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-nav a {
  color: var(--matrix-green);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  opacity: 1;
  text-shadow: 0 0 10px var(--matrix-green);
}

.footer-logo {
  margin-bottom: 1rem;
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 70px;
    right: -100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 2rem;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .showcase-content {
    flex-direction: column;
    text-align: center;
  }

  .glitch {
    font-size: 2.5rem;
  }

  .pill-container {
    flex-direction: column;
  }

  .matrix-text {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .terminal {
    font-size: 0.9rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* Additional Contact Page Styles */
.contact-section {
  padding: 8rem 2rem 6rem;
  min-height: calc(100vh - 150px);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 255, 0, 0.05);
  border: 2px solid var(--matrix-green);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--matrix-green);
  animation: scan 2s linear infinite;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid var(--matrix-green);
  color: var(--matrix-green);
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  background: rgba(0, 255, 0, 0.15);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  width: 100%;
  background: transparent;
  border: 2px solid var(--matrix-green);
  color: var(--matrix-green);
  padding: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--matrix-green);
  transition: left 0.3s ease;
  z-index: -1;
}

.submit-button:hover {
  color: var(--bg-black);
}

.submit-button:hover::before {
  left: 0;
}

/* Cookies Popup Styles */
.cookies-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  border: 2px solid var(--matrix-green);
  box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
  max-width: 400px;
  width: 90%;
  padding: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s ease;
  backdrop-filter: blur(10px);
  border-radius: 8px;
  overflow: hidden;
}

.cookies-popup.show {
  opacity: 1;
  transform: translateY(0);
}

.cookies-content {
  padding: 1.5rem;
  position: relative;
}

.cookies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--matrix-green);
}

.cookies-title {
  color: var(--matrix-green);
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 0 0 10px var(--matrix-green);
}

.cookies-icon {
  font-size: 1.5rem;
  filter: grayscale(100%) hue-rotate(90deg);
  animation: pulse 2s infinite;
}

.cookies-text {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cookies-text p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: rgba(0, 255, 0, 0.9);
}

.cookies-text p:last-child {
  margin-bottom: 0;
}

.highlight-green {
  color: var(--matrix-green);
  font-weight: bold;
  text-shadow: 0 0 5px var(--matrix-green);
}

.highlight-blue {
  color: var(--matrix-blue);
  font-weight: bold;
  text-shadow: 0 0 5px var(--matrix-blue);
}

.highlight-red {
  color: var(--matrix-red);
  font-weight: bold;
  text-shadow: 0 0 5px var(--matrix-red);
}

.cookies-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.matrix-button {
  background: transparent;
  border: 1px solid var(--matrix-green);
  color: var(--matrix-green);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 120px;
  font-family: inherit;
}

.matrix-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--matrix-green);
  transition: left 0.3s ease;
  z-index: -1;
}

.matrix-button:hover {
  color: var(--bg-black);
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.matrix-button:hover::before {
  left: 0;
}

.matrix-button.primary {
  border-color: var(--matrix-green);
  color: var(--matrix-green);
}

.matrix-button.primary::before {
  background: var(--matrix-green);
}

.matrix-button.secondary {
  border-color: var(--matrix-blue);
  color: var(--matrix-blue);
}

.matrix-button.secondary::before {
  background: var(--matrix-blue);
}

.matrix-button.secondary:hover {
  color: var(--bg-black);
  box-shadow: 0 0 15px rgba(0, 128, 255, 0.5);
}

/* Responsive design for cookies popup */
@media (max-width: 768px) {
  .cookies-popup {
    bottom: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    width: auto;
  }
  
  .cookies-buttons {
    flex-direction: column;
  }
  
  .matrix-button {
    min-width: auto;
  }
}

/* Animation for the cookie icon */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Privacy and Terms Page Styles */
.content-section {
  padding: 8rem 2rem 6rem;
  min-height: calc(100vh - 150px);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(0, 255, 0, 0.05);
  border: 1px solid var(--matrix-green);
  padding: 3rem;
}

.content-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--matrix-green);
}

.content-container h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--matrix-green);
  text-transform: uppercase;
}

.content-container p,
.content-container li {
  line-height: 1.8;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.content-container ul {
  list-style: none;
  padding-left: 1rem;
}

.content-container li::before {
  content: "> ";
  color: var(--matrix-green);
  font-weight: bold;
}
