/* Catppuccin Macchiato Color Palette */
:root {
  --rosewater: #f4dbd6;
  --flamingo: #f0c6c6;
  --pink: #f5bde6;
  --mauve: #c6a0f6;
  --red: #ed8796;
  --maroon: #ee99a0;
  --peach: #f5a97f;
  --yellow: #eed49f;
  --green: #a6da95;
  --teal: #8bd5ca;
  --sky: #91d7e3;
  --sapphire: #7dc4e4;
  --blue: #8aadf4;
  --lavender: #b7bdf8;
  --text: #cad3f5;
  --subtext1: #b8c0e0;
  --subtext0: #a5adcb;
  --overlay2: #939ab7;
  --overlay1: #8087a2;
  --overlay0: #6e738d;
  --surface2: #5b6078;
  --surface1: #494d64;
  --surface0: #363a4f;
  --base: #24273a;
  --mantle: #1e2030;
  --crust: #181926;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--base);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 6px;
  background: var(--surface0);
  color: var(--text);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--green);
  font-weight: 600;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Section */
.hero {
  background: var(--surface0);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--surface1);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(198, 160, 246, 0.1) 0%, 
    rgba(138, 173, 244, 0.1) 50%, 
    rgba(166, 218, 149, 0.1) 100%);
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 1;
}

.name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.pronouns {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--subtext0);
  opacity: 0.7;
}

.title {
  font-size: 1.25rem;
  color: var(--subtext1);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.at {
  color: var(--mauve);
  font-weight: 600;
}

.company-link {
  color: var(--teal);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.company-link:hover,
.company-link:focus {
  color: var(--sky);
  border-bottom-color: var(--sky);
  outline: none;
}

.company-link:focus {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-item.ruby {
  background: rgba(237, 135, 150, 0.15);
  color: var(--red);
  border: 1px solid rgba(237, 135, 150, 0.3);
}

.tech-item.rust {
  background: rgba(245, 169, 127, 0.15);
  color: var(--peach);
  border: 1px solid rgba(245, 169, 127, 0.3);
}

.tech-item.rails {
  background: rgba(237, 135, 150, 0.15);
  color: var(--red);
  border: 1px solid rgba(237, 135, 150, 0.3);
}

.tech-item.neovim {
  background: rgba(166, 218, 149, 0.15);
  color: var(--green);
  border: 1px solid rgba(166, 218, 149, 0.3);
}

.tech-item.terminal {
  background: rgba(202, 211, 245, 0.15);
  color: var(--text);
  border: 1px solid rgba(202, 211, 245, 0.3);
}

.tech-item.opensource {
  background: rgba(138, 173, 244, 0.15);
  color: var(--blue);
  border: 1px solid rgba(138, 173, 244, 0.3);
}

.tech-item.lgbtqia {
  background: linear-gradient(135deg, 
    rgba(245, 189, 230, 0.15) 0%, 
    rgba(138, 173, 244, 0.15) 50%, 
    rgba(166, 218, 149, 0.15) 100%);
  color: var(--pink);
  border: 1px solid rgba(245, 189, 230, 0.3);
}

.tech-item.cats {
  background: rgba(245, 169, 127, 0.15);
  color: var(--peach);
  border: 1px solid rgba(245, 169, 127, 0.3);
}

.tech-item.coffee {
  background: rgba(238, 153, 160, 0.15);
  color: var(--maroon);
  border: 1px solid rgba(238, 153, 160, 0.3);
}

.tech-item.arch {
  background: rgba(198, 160, 246, 0.15);
  color: var(--mauve);
  border: 1px solid rgba(198, 160, 246, 0.3);
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tech-item:focus {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* Content Sections */
.content {
  flex: 1;
}

.about, .links {
  background: var(--surface0);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--surface1);
}

.about h2, .links h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 1rem;
  font-weight: 600;
}

.about p {
  color: var(--subtext1);
  font-size: 1rem;
  line-height: 1.7;
}

/* Social Links */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface1);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  border: 1px solid var(--surface2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
}

.social-link:hover,
.social-link:focus {
  transform: translateX(8px);
  background: var(--surface2);
  border-color: var(--overlay0);
  outline: none;
}

.social-link:focus {
  outline: 2px solid var(--overlay0);
  outline-offset: 2px;
}

.social-link.github:hover,
.social-link.github:focus {
  border-color: var(--text);
  box-shadow: 0 0 20px rgba(202, 211, 245, 0.2);
}

.social-link.linkedin:hover,
.social-link.linkedin:focus {
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(138, 173, 244, 0.2);
}

.social-link.cocoon:hover,
.social-link.cocoon:focus {
  border-color: var(--teal);
  box-shadow: 0 0 20px rgba(139, 213, 202, 0.2);
}

.social-link.github:focus {
  outline-color: var(--text);
}

.social-link.linkedin:focus {
  outline-color: var(--blue);
}

.social-link.cocoon:focus {
  outline-color: var(--teal);
}

.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-link.github .icon {
  color: var(--text);
}

.social-link.linkedin .icon {
  color: var(--blue);
}

.social-link.cocoon .icon {
  color: var(--teal);
}

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 2rem;
}

.footer-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--overlay1);
  display: flex;
  align-items: center;
}

.prompt {
  color: var(--green);
  font-weight: 600;
}

.path {
  color: var(--blue);
  font-weight: 500;
}

.cursor {
  color: var(--text);
  animation: blink 1.5s infinite;
  margin-left: 4px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Focus management and reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tech-item:hover {
    transform: none;
  }
  
  .social-link:hover,
  .social-link:focus {
    transform: none;
  }
  
  .cursor {
    animation: none;
  }
  
  .skip-link {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .skip-link {
    border-width: 3px;
  }
  
  .company-link:focus,
  .social-link:focus {
    outline-width: 3px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .hero, .about, .links {
    padding: 1.5rem;
  }
  
  .name {
    font-size: 2rem;
  }
  
  .tech-stack {
    gap: 0.5rem;
  }
  
  .tech-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .social-links {
    gap: 0.75rem;
  }
  
  .social-link {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 1.75rem;
  }
  
  .title {
    font-size: 1.1rem;
  }
  
  .tech-stack {
    justify-content: center;
  }
}