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

:root {
  --bg: #0a0a0a;
  --card: #161616;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --accent: #ff6b35;
  --hover: #ff8c61;
  --border: #262626;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8f9fa;
    --card: #ffffff;
    --text: #1a1a1a;
    --muted: #6b7280;
    --border: #e5e7eb;
  }
}

.page {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 4rem;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
  display: inline-block;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.title:hover {
  transform: scale(1.05) rotate(-2deg);
  color: var(--accent);
}

.role {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.role:hover {
  color: var(--accent);
}

.location {
  font-size: 0.95rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.nav-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  position: relative;
  opacity: 0.75;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s;
  transform: translateX(-50%);
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  width: calc(100% - 2rem);
}

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

@media (min-width: 768px) {
  .main {
    grid-template-columns: 1fr 1fr;
  }
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.section:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
  border-color: var(--accent);
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  user-select: none;
  transition: color 0.3s;
}

.section:hover .section-title {
  color: var(--accent);
}

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

.list {
  list-style: none;
}

.list-item {
  margin-bottom: 1.25rem;
  padding-left: 1.8rem;
  position: relative;
  transition: transform 0.2s;
}

.list-item:hover {
  transform: translateX(8px);
}

.list-item::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.1rem;
  transition: transform 0.3s;
  color: var(--accent);
  font-weight: bold;
}

.list-item:hover::before {
  transform: translateX(4px);
}

.link {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.link:hover {
  color: var(--hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.meta-link {
  text-decoration: none;
  display: block;
}

.badge {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: 0.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: all 0.3s;
}

.footer:active {
  transform: scale(0.95);
}

.shake {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.easter-egg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  font-size: 3rem;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 1000;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  background: transparent;
  border: none;
  padding: 0;
}

.easter-egg:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 50%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.easter-egg:hover, .easter-egg:active {
  transform: scale(1.2) rotate(15deg);
}

.falling-item {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  animation: fall 3s linear forwards;
}

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

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  z-index: 2000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
  max-width: 400px;
}

.modal.show {
  transform: translate(-50%, -50%) scale(1);
}

.modal-title {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  background: var(--hover);
}

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

*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .container {
    padding: 2rem 1rem;
  }

  .title {
    font-size: 2rem;
  }

  .section {
    padding: 1.5rem;
  }

  .nav {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .easter-egg {
    bottom: 1rem;
    right: 1rem;
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .easter-egg,
  .falling-item,
  .canvas {
    animation: none;
  }
}
