:root {
  --bg-color: #0d0d0d;
  --bg-color-secondary: #1c1c1c;
  --text-color: #e0ffe0;
  --accent-color: #4ceea7;
  --card-bg: rgba(255, 255, 255, 0.07);
  --hover-bg: rgba(255, 255, 255, 0.15);
}

html.light {
  --bg-color: #ffffff;
  --bg-color-secondary: #f5f5f5;
  --text-color: #222222;
  --accent-color: #007acc;
  --card-bg: rgba(0, 0, 0, 0.05);
  --hover-bg: rgba(0, 0, 0, 0.1);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body,
html {
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(
    135deg,
    var(--bg-color) 0%,
    var(--bg-color-secondary) 100%
  );
  color: var(--text-color);
  overflow-x: hidden;
  overflow-y: auto;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

header.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tagline {
  font-size: 1.25rem;
  margin-top: 0;
  max-width: 600px;
}

.cta-button {
  margin-top: 1.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: var(--accent-color);
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}

.cta-button:hover {
  background: var(--hover-bg);
  color: var(--text-color);
}

@keyframes hueShift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--accent-color), #ff77ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hueShift 10s linear infinite;
}

.toy-icon {
  display: block;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
}

.webtoy-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.webtoy-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.webtoy-card:hover {
  background: var(--hover-bg);
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 255, 170, 0.3);
}

.webtoy-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.webtoy-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.webtoy-card a {
  color: inherit;
  text-decoration: none;
}

.webtoy-card a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.theme-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--hover-bg);
  border-radius: 4px;
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--hover-bg);
}

.cursor,
.cursor-follower {
  pointer-events: none;
  position: fixed;
  border-radius: 50%;
  z-index: 9999;
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-color);
  transition: all 0.1s ease;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 170, 0.2);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .webtoy-container {
    grid-template-columns: 1fr;
  }
}
