/* Arlen Johnson's Website Theme */
@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');
/* Variables */
:root {
  --bg-dark: #0a192f;
  --bg-light: #112240;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --accent: #64ffda;
  --accent-dim: #64ffda40;
  --toast-info-color: #2056cc;
  --toast-warn-color: #926303;
  --toast-success-color: #0f7033;
  --toast-error-color: #bb2020;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  background: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header and Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 78px;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-dark);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid var(--accent-dim);
}
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  font-family: monospace;
}
.logo a {
  text-decoration: none;
  color: var(--accent);
}
#mobile-menu-toggle {
  background: none;
  border: none;
  padding: 1rem;
  margin-right: -1rem;
}
#mobile-menu-toggle span {
  width: 1.4rem;
  border-top: 1px solid var(--text-primary);
  display: block;
  margin: 6px 0;
}
#mobile-menu-toggle[aria-expanded="false"] + #top-nav-list {
  display: none;
}
#top-nav-list {
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  position: absolute;
  right: 0;
  padding: 1rem;
  background-color: var(--bg-light);
  width: 100%;
  text-align: center;
  font-size: 1.4rem;
  top: 5rem;
  border-bottom: 1px solid var(--accent-dim);
}
#top-nav-list  a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
  font-family: monospace;
  display: block;
  padding: 0.5rem;
}
#top-nav-list a:hover {
  color: var(--accent);
}
main {
  margin-top: 90px; /* Offset fixed header */
}

/* FRONT PAGE */
#home {
  scroll-margin-top: 100px;
}
.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 0 3rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content {
  max-width: 800px;
}
.greeting {
  color: var(--accent);
  font-family: monospace;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.greeting::before {
  content: '> ';
}
h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.1;
}
h1.section-title {
  padding-top: 1rem;
}
.tagline {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: normal;
}
.bio {
  max-width: 600px;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}
.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: monospace;
  font-size: 1rem;
  transition: all 0.3s;
  position: relative;
}
.cta-button:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* Quick Stats */
.stats {
  display: flex;
  gap: 3rem;
  margin-top: 4rem;
  flex-wrap: wrap;
}
.stat {
  text-align: left;
}
.stat-number {
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 700;
  font-family: monospace;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sections */
.section {
  padding: 6rem 3rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-title::before {
  content: '//';
  color: var(--accent);
  font-family: monospace;
}

/* About Section */
.bio p {
  margin-bottom: 1.5rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.skill-category {
  background: var(--bg-light);
  padding: 2rem;
  border: 1px solid var(--accent-dim);
  transition: transform 0.3s;
}
.skill-category:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.skill-category h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.skill-list {
  list-style: none;
}
.skill-list li {
  padding: 1rem 0 0.5rem 0.75rem;
  text-indent: -0.75rem;
  color: var(--text-secondary);
}
.skill-list li::before {
  content: '▹ ';
  color: var(--accent);
}

/* Featured Projects */
.projects-grid {
  display: grid;
  gap: 3rem;
}
.project-card {
  background: var(--bg-light);
  padding: 2.5rem;
  border: 1px solid var(--accent-dim);
  transition: all 0.3s;
}
a.project-card {
  display: block;
  text-decoration: none;
}
a.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
a.project-card p {
  color: var(--text-secondary);
}
.project-meta {
  color: var(--accent);
  font-family: monospace;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.project-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.project-description {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.project-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.tag {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
}

/* CV */
#cvBlock,
#cvBlock a {
  color: var(--text-primary);
}
#cvBlock h2,
#cvBlock h3 {
  color: var(--accent);
  font-weight: normal;
}
#cvBlock ul {
  margin: 0 0 2rem 1rem;
  list-style: none;
  max-width: 800px;
}
#cvBlock li {
  margin: 1rem;
  padding: 0;
}
#cvBlock h3 {
  margin-left: -1rem;
}

/* Blog */
#blog-index {
  max-width: 74ch;
}
#blog-index,
#blog article {
  font-size: 1.2rem;
  max-width: 74ch;
  margin: auto;
}
#blog-index h1,
#blog article h1 {
  font-size: 2.6rem;
}
#blog-listing {
  list-style: none;
  margin: 2rem 0;
}
#blog-listing li {
  margin-bottom: 1.4rem;
}
#blog-listing li a {
  display: block;
  font-size: 1.2rem;
}
#blog article p {
  margin-bottom: 1.4rem;
}
#blog article img {
  min-width: 100%;
  height: auto;
}
#blog article ul,
#blog article ol {
  margin: 0 0 2rem 2rem;
}
#blog strong {
  color: var(--text-primary);
}
.left-arrow {
  font-family: system-ui, sans-serif;
  font-size: 1.2rem;
}

/* Contact */
#contact {
  margin-bottom: 3rem;
}
#contact .section-title {
  margin-bottom: 1rem;
}
#contact p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
/* General */
a {
  color: var(--accent);
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
}
figcaption {
  font-style: italic;
  font-size: 0.9rem;
  text-align: center;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Fun */
#dice-container {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 120px;
  height: auto;
  z-index: 1000;
  padding-bottom: 0.5rem;
  background-color: var(--bg-dark);
}
#dice-container-inner {
  opacity: 0.7;
}
#attribute-container label {
  color: var(--text-primary);
}
#dice-container-inner:hover,
#dice-container-inner:active,
#dice-container-inner:focus,
#dice-container-inner:focus-within {
  opacity: 1;
}
#dice-container:focus,
#dice-container:focus-within {
  opacity: 1;
  outline: 1px dashed var(--accent);
  outline-offset: 4px;
}
#dice {
  cursor: pointer;
  display: flex;
  background: none;
  border: none;
}
#ones-die {
  transition: transform 0.5s ease-out;
}
#tens-die {
  transition: transform 0.6s ease-out;
  position: relative;
  right: -6px;
}
#attribute-container {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  align-items: center;
}
#attribute {
  width: 2em;
  height: 1.25rem;
  padding: 0 2px;
  text-align: center;
}
.die svg {
  width: 100%;
  height: 100%;
}
.p-toast-message-content {
  padding-bottom: 1.2rem !important;
}
.p-toast.p-toast-top-right {
  right: 0 !important;
  max-width: 100vw;
}
/* Improve color contrast for toasts */
.p-toast-message-info {
  color: var(--toast-info-color) !important;
}
.p-toast-message-warn {
  color: var(--toast-warn-color) !important;
}
.p-toast-message-success {
  color: var(--toast-success-color) !important;
}
.p-toast-message-error {
  color: var(--toast-error-color) !important;
}
