/* Light Mode (Default) */
:root {
  color-scheme: light;
  --bg: #fff;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-soft: rgba(255, 255, 255, 0.8);
  --surface-border: rgba(255, 20, 147, 0.15);
  --text-primary: #333;
  --text-secondary: #555;
  --accent: #ff1493;
  --accent-strong: #ff69b4;
  --accent-muted: rgba(255, 20, 147, 0.2);
  --radius: 24px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.15);
}

/* Dark Mode */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #121212;
  --surface: rgba(34, 34, 34, 0.85);
  --surface-soft: rgba(30, 30, 30, 0.6);
  --surface-border: rgba(255, 20, 147, 0.25);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --accent: #ff1493;
  --accent-strong: #ff69b4;
  --accent-muted: rgba(255, 20, 147, 0.3);
  --radius: 24px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.75);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-strong);
}

.background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at top left,
      rgba(255, 105, 180, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 20, 147, 0.28),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(250, 250, 250, 0.94)
    );
}

:root[data-theme='dark'] .background {
  background: radial-gradient(
      circle at top left,
      rgba(255, 105, 180, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 20, 147, 0.28),
      transparent 45%
    ),
    linear-gradient(135deg, rgba(18, 18, 18, 0.96), rgba(22, 22, 22, 0.94));
}

/* Bees Container */
.bees-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bee {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.4;
  animation: float 15s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  will-change: transform;
}

.bee-1 {
  top: 10%;
  left: 5%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.bee-2 {
  top: 30%;
  right: 10%;
  animation-duration: 20s;
  animation-delay: -3s;
}

.bee-3 {
  bottom: 25%;
  left: 15%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.bee-4 {
  top: 60%;
  right: 20%;
  animation-duration: 22s;
  animation-delay: -9s;
}

.bee-5 {
  bottom: 15%;
  right: 5%;
  animation-duration: 19s;
  animation-delay: -12s;
}

.bee-6 {
  top: 45%;
  left: 25%;
  animation-duration: 17s;
  animation-delay: -15s;
}

/* Larger bees (30% bigger) */
.bee-large {
  font-size: 1.95rem; /* 1.5rem * 1.3 = 1.95rem */
}

.bee-7 {
  top: 20%;
  left: 30%;
  animation-duration: 21s;
  animation-delay: -4s;
}

.bee-8 {
  bottom: 40%;
  right: 30%;
  animation-duration: 23s;
  animation-delay: -7s;
}

.bee-9 {
  top: 70%;
  left: 8%;
  animation-duration: 18s;
  animation-delay: -10s;
}

/* Bees around the hero title */
.bee-name {
  opacity: 0.35;
}

.bee-10 {
  top: 38%;
  left: calc(50% - 150px);
  animation-duration: 14s;
  animation-delay: -2s;
}

.bee-11 {
  top: 38%;
  left: calc(50% + 150px);
  animation-duration: 16s;
  animation-delay: -5s;
}

.bee-12 {
  top: 32%;
  left: calc(50% - 50px);
  animation-duration: 15s;
  animation-delay: -8s;
}

.bee-13 {
  top: 44%;
  left: calc(50% + 50px);
  animation-duration: 17s;
  animation-delay: -11s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -40px) rotate(5deg);
  }
  50% {
    transform: translate(-20px, -60px) rotate(-5deg);
  }
  75% {
    transform: translate(40px, -30px) rotate(3deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

/* Subtle hover effect on bees */
.bee:hover {
  opacity: 0.7;
  transform: scale(1.2);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Dark mode adjustments */
:root[data-theme='dark'] .bee {
  opacity: 0.3;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.1));
}

:root[data-theme='dark'] .bee:hover {
  opacity: 0.5;
}

/* Responsive - fewer bees on mobile */
@media (max-width: 768px) {
  .bee-4,
  .bee-5,
  .bee-6,
  .bee-7,
  .bee-8,
  .bee-9,
  .bee-12 {
    display: none;
  }

  .bee {
    font-size: 1.2rem;
    opacity: 0.3;
  }

  .bee-large {
    font-size: 1.56rem; /* 1.2rem * 1.3 = 1.56rem */
  }

  /* Adjust bees around name for mobile */
  .bee-10 {
    top: 35%;
    left: calc(50% - 100px);
  }

  .bee-11 {
    top: 35%;
    left: calc(50% + 100px);
  }

  .bee-13 {
    top: 40%;
    left: calc(50% + 30px);
  }
}

.site-header {
  padding: 1.5rem 1.75rem 0;
  display: grid;
  gap: 2rem;
}

.top-nav {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  opacity: 0.85;
}

.wordmark-primary {
  color: var(--accent);
  font-weight: 800;
}

.wordmark-secondary {
  color: var(--text-primary);
  font-weight: 700;
}

.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 4.5rem 1.75rem 3rem;
  text-align: center;
  display: grid;
  gap: 1.75rem;
}

.eyebrow {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-title {
  position: relative;
  display: inline-block;
}

.title-gradient {
  background: linear-gradient(
    135deg,
    #ff1493,
    #ff69b4,
    #ff1493,
    #ffb6c1,
    #ff1493
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  font-weight: 800;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(255, 20, 147, 0.3));
  transition: all 0.3s ease;
}

.title-gradient::before {
  content: 'KIERA STAUB';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    135deg,
    #ff1493,
    #ff69b4,
    #ff1493,
    #ffb6c1,
    #ff1493
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    gradientShift 8s ease infinite,
    glow 3s ease-in-out infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes glow {
  0%,
  100% {
    opacity: 0.5;
    filter: blur(8px);
  }
  50% {
    opacity: 0.8;
    filter: blur(12px);
  }
}

.hero-title:hover .title-gradient {
  transform: scale(1.02);
  filter: drop-shadow(0 0 30px rgba(255, 20, 147, 0.5));
  letter-spacing: 0.08em;
}

:root[data-theme='dark'] .title-gradient {
  filter: drop-shadow(0 0 25px rgba(255, 20, 147, 0.5));
}

:root[data-theme='dark'] .hero-title:hover .title-gradient {
  filter: drop-shadow(0 0 40px rgba(255, 105, 180, 0.6));
}

h2 {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.tagline {
  margin: 0 auto;
  max-width: 680px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.primary-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.top-nav .primary-nav {
  flex: 1 1 auto;
  justify-content: center;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-soft);
  color: var(--text-primary);
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: var(--accent);
}

.primary-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.75rem 4rem;
  display: grid;
  gap: 2.25rem;
  flex: 1 0 auto;
  width: 100%;
}

.card {
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card h2 {
  margin: 0 0 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
}

.card p {
  margin: 0 0 1.2rem;
  color: var(--text-secondary);
}

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

.feature-list,
.link-list,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.feature-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background: var(--surface-soft);
  color: var(--text-primary);
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent);
}

.no-underline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.no-underline li {
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 0;
}

.no-underline a {
  position: relative;
  padding-bottom: 2px;
  color: var(--accent);
  display: inline-block;
}

.no-underline a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.no-underline a:hover::after {
  width: 100%;
}

.contact-list li {
  display: grid;
  gap: 0.35rem;
}

.contact-list span {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

footer {
  margin: 0;
  padding: 3rem 1.75rem 4rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--surface-soft);
}

/* Theme Toggle Styles */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface-soft);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px -4px rgba(0, 0, 0, 0.1);
}

.theme-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.3s ease;
  z-index: 2;
}

.theme-option[aria-checked='true'] {
  color: var(--text-primary);
  font-weight: 700;
}

.theme-icon {
  font-size: 1rem;
  line-height: 1;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.theme-option[aria-checked='true'] .theme-icon {
  filter: grayscale(0);
}

.theme-label {
  letter-spacing: 0.03em;
}

.theme-indicator {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: calc(50% - 0.3rem);
  height: calc(100% - 0.6rem);
  background: linear-gradient(
    135deg,
    rgba(255, 20, 147, 0.2),
    rgba(255, 105, 180, 0.2)
  );
  border: 1px solid var(--accent);
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 2px 8px -2px rgba(255, 20, 147, 0.3);
}

/* When dark mode is active, move indicator to the right */
.theme-toggle:has([data-theme-option='dark'][aria-checked='true'])
  .theme-indicator {
  transform: translateX(100%);
}

.theme-option:hover {
  color: var(--text-primary);
}

.theme-option:hover .theme-icon {
  filter: grayscale(0);
}

.theme-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .theme-label {
    display: none;
  }

  .theme-option {
    padding: 0.5rem;
  }

  .theme-icon {
    font-size: 1.1rem;
  }
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text-primary);
  border-color: var(--surface-border);
  background: var(--accent-muted);
}

@media (max-width: 720px) {
  .site-header {
    gap: 1.5rem;
  }

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .top-nav .primary-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .top-nav .theme-toggle {
    align-self: flex-end;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .card {
    padding: 2rem;
  }
}

@media (max-width: 520px) {
  .primary-nav {
    gap: 0.5rem;
  }

  .primary-nav a {
    width: 100%;
  }

  .top-nav .primary-nav {
    justify-content: center;
  }

  .link-list a {
    flex-direction: column;
    align-items: flex-start;
  }
}
