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

:root {
  --bg: #050505;
  --fg: #f5f5f5;
  --accent: #6b8f2a;
  --accent-dark: #4f6a1f;
  --border: #111111;
  --muted: #999999;
  --max-width: 1200px;
  --gutter: 1.25rem;
  --shadow-strong: 6px 6px 0 #000000;
}

/* Cross-browser scrollbar styling */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #0b0b0b;
  scroll-behavior: smooth;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: #0b0b0b;
  border: 1px solid var(--border);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  border: 2px solid #0b0b0b;
  border-radius: 10px;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7ba334, var(--accent));
}

*::-webkit-scrollbar-corner {
  background: #0b0b0b;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Space Mono", "DM Mono", Consolas, monospace;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  position: relative;
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.16s ease-out;
}

a:hover::after {
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--gutter);
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

.frame {
  border: 3px solid var(--border);
  background: #0a0a0a;
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.frame--loud {
  background: #0f0f0f;
}

.frame__label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-2px, -100%);
  background: var(--accent);
  color: #050505;
  padding: 0.15rem 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--border);
  box-shadow: 3px 3px 0 #000000;
  white-space: nowrap;
}

.frame__inner {
  padding: 1.25rem 1.5rem 1.75rem;
}

header {
  border-bottom: 3px solid var(--border);
  background: #050505;
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 2px solid var(--accent);
  background: #0a0a0a;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 #000000;
}

.logo span {
  background: var(--accent);
  color: #050505;
  padding: 0.1rem 0.35rem;
  margin-right: 0.25rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav a {
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--border);
  background: #0c0c0c;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out,
    background 90ms;
  box-shadow: 3px 3px 0 #000000;
}

.nav a:hover {
  background: var(--accent);
  color: #050505;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000000;
}

.hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--gutter);
  margin-top: 1.5rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-title {
  font-size: clamp(2.4rem, 3vw + 1rem, 3.5rem);
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 30rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.tag {
  border: 2px solid var(--border);
  padding: 0.15rem 0.5rem;
  background: #0c0c0c;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.hero-stat {
  border: 2px solid var(--border);
  padding: 0.5rem 0.65rem;
  background: #050505;
}

.hero-stat span {
  display: block;
}

.hero-stat span:first-child {
  color: var(--muted);
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
}

.hub-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

@media (max-width: 800px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  display: block;
  color: var(--fg);
  transition: transform 90ms ease-out, box-shadow 90ms ease-out,
    background 90ms ease-out;
}

.hub-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 #000000;
  background: #101010;
}

.hub-card__title {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hub-card__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

section {
  margin-top: 2.5rem;
}

#about,
#experience,
#contact {
  grid-column: 1 / -1;
  scroll-margin-top: 162px;
}

#about .frame__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.5rem;
  align-items: start;
}

.about-intro {
  border-right: 2px solid var(--border);
  padding-right: 1rem;
}

.about-intro .hero-sub {
  max-width: none;
}

@media (max-width: 1000px) {
  #about .frame__inner {
    grid-template-columns: 1fr;
  }

  .about-intro {
    border-right: none;
    border-bottom: 2px solid var(--border);
    padding-right: 0;
    padding-bottom: 1rem;
  }
}

.section-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.section-title strong {
  color: var(--fg);
}

.about-photo {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.75rem;
  width: 100%;          
  max-width: 380px; /* PHOTO MAX WIDTH LOOK AT VARIOUS SCREEN SIZES IF NEEDED*/       
  min-width: 250px;     
  max-height: 650px;
  justify-self: center; 
}

.about-photo__frame img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1000px) {
  .about-photo {
    justify-self: center;
    max-width: 320px; /* PLAY WITH THIS NUMBER for mobile */
  }
}

.about-photo__frame {
  border: 2px solid var(--border);
  background: #050505;
  position: relative;
  overflow: hidden;
}

.about-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  /* background-color: var(--accent);
  mix-blend-mode: lighten; 
  opacity: 0.1;  */
}

/*  Adds a solid green triangle to the bottom right corner */
.about-photo__frame::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  z-index: 11;
  pointer-events: none;
}


.about-photo__tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.3rem 0.5rem;
  border: 2px solid var(--border);
  background: var(--accent);
  color: #050505;
  justify-self: flex-start;
  box-shadow: 3px 3px 0 #000000;
}

.about-copy {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1rem;
  font-size: 0.9rem;
}

.about-copy p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.about-links a {
  padding: 0.3rem 0.8rem;
  border: 2px solid var(--border);
  background: #050505;
  box-shadow: 3px 3px 0 #000000;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out,
    background 90ms;
  display: inline-flex;  
  align-items: center;   
  gap: 0.5em;
              
}

.about-links a img {
  display: inline-block; /* Overrides the global img { display: block; } */
  height: 1.2em; 
  width: 1.2em;
  object-fit: contain; 
  margin: 0;           
}

.about-links a:hover {
  background: var(--accent);
  color: #050505;
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 #000000;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gutter);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid var(--border);
  background: #050505;
  color: var(--fg);
  padding: 0.5rem 0.55rem;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  min-height: 2.3rem;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.contact-submit {
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.4rem;
  border: 2px solid var(--border);
  background: var(--accent);
  color: #050505;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000000;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out;
}

.contact-submit:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #000000;
}

.contact-meta {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-meta strong {
  color: var(--fg);
}

.contact-meta dl {
  margin: 0.8rem 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  font-size: 0.8rem;
}

.contact-meta dt {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-meta dd {
  margin: 0;
}

footer {
  border-top: 3px solid var(--border);
  padding: 0.7rem var(--gutter) 1.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--muted);
}

.pixel-hover {
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
  box-shadow: 4px 4px 0 #000000;
}

.pixel-hover:hover {
  transform: translate(-4px, -4px);
  box-shadow: 7px 7px 0 #000000;
}
.pdf-icon {
  filter: invert(1)
}


/* --- ASCII ART (CONTACT RIGHT SIDE) --- */
.ascii-art {
  font-family: "Space Mono", "DM Mono", Consolas, monospace;
  color: var(--accent); 
  font-size: 0.95rem; 
  line-height: 1.3;
  white-space: pre; 
  
  background: #050505;
  border: 2px solid var(--border);
  padding: 1.5rem;
  margin: 0;
  
  height: 100%; 
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 800px) {
  .desktop-only {
    display: none;
  }
}