/* color palette — set these as variables so only have to change them once */
:root {
  --cream:  #EAE1CB;
  --pink:   #D18E97;
  --gold:   #D2A432;
  --rust:   #BC5727;
  --brown:  #5B3B14;
  --olive:  #7A8C4E;
  --bg:     #E4D9BF;
  --white:  #FAF7F0;
  --black:  #111111;
}

/* basic reset so browser defaults don't mess things up */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('images/Cursor.png') 10 15, auto !important;
}

/* browsers override the cursor on interactive elements, so I have to be explicit */
a, button, input, textarea, select, label,
a:hover, button:hover, input:hover, textarea:hover, select:hover, label:hover,
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  cursor: url('images/Cursor.png') 10 15, auto !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  font-family: 'Lora', serif;
  color: var(--brown);
  overflow-x: hidden;
}

/* .px applies the pixel font (pf-pixelscript from Adobe Fonts) */
.px {
  font-family: "pf-pixelscript", 'Lora', serif;
  font-weight: 400;
  font-style: normal;
}


/* --- PAGE SYSTEM ---
   only the .active section shows at a time — JS swaps the class on nav click */
.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- NAVIGATION --- */
header {
  position: sticky;
  top: 0;
  z-index: 500;
}

nav {
  background-color: var(--rust);
  padding: 0 50px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 64px;
  border-bottom: 3px solid var(--brown);
  box-shadow: 0 6px 0 var(--brown);
}

.nav-logo {
  font-size: 30px;
  color: var(--cream);
  margin-right: auto; /* pushes nav links to the right */
  text-shadow: 3px 3px 0 var(--brown);
  transition: color 0.2s;
  padding: 10px 0;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
}

nav a {
  font-size: 21px;
  color: var(--cream);
  text-decoration: none;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 4px solid transparent;
  transition: all 0.2s;
  height: 64px;
}

nav a:hover,
nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background-color: rgba(0, 0, 0, 0.1);
}


/* --- TICKER ---
   the inner div is 3x as wide as the visible area,
   so sliding by 1/3 (33.333%) makes it loop perfectly */
.ticker {
  background-color: var(--brown);
  border-bottom: 3px solid var(--gold);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: flex;
  width: max-content;
  animation: slideLeft 25s linear infinite;
  will-change: transform;
}

.ticker-inner span {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  padding: 0 20px;
}

.ticker-inner span.gold {
  color: var(--gold);
  padding: 0 10px;
}

@keyframes slideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}


/* --- BUTTONS --- */
.btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 36px;
  border: 3px solid var(--brown);
  display: inline-block;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  text-align: center;
}

.btn-rust  { background-color: var(--rust); color: var(--cream); box-shadow: 5px 5px 0 var(--brown); }
.btn-ghost { background-color: transparent; color: var(--brown); box-shadow: 5px 5px 0 var(--brown); }
.btn-gold  { background-color: var(--gold); color: var(--brown); box-shadow: 5px 5px 0 var(--brown); }

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--brown);
}


/* --- HOME PAGE --- */

.hero {
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 7vw, 100px) clamp(32px, 4vw, 56px);
  background: linear-gradient(160deg, var(--cream) 0%, var(--bg) 60%, #d4c9a8 100%);
}

.hero-title {
  font-size: clamp(36px, 7vw, 104px);
  line-height: 1.05;
  color: var(--pink);
  margin-bottom: clamp(20px, 3vw, 36px);
  text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
  text-align: center;
}

/* role pills — stair-stepped layout, hidden until JS types them in */
.roles {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 1.2vw, 16px);
  margin-bottom: clamp(24px, 3vw, 44px);
}

.role-pill {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(13px, 1.6vw, 19px);
  letter-spacing: 0.1em;
  color: var(--cream);
  background-color: var(--olive);
  padding: clamp(7px, 1vw, 12px) clamp(20px, 4vw, 52px);
  border: 2px solid var(--brown);
  display: inline-block;
  opacity: 0; /* starts invisible, JS sets to 1 when typing begins */
  transition: opacity 0.15s ease;
}

/* each pill is offset to create a staircase effect */
.role-pill:nth-child(1) { margin-left: 4%; }
.role-pill:nth-child(2) { margin-left: 18%; }
.role-pill:nth-child(3) { margin-left: 34%; }

/* two-column layout: bio left, photo right */
.hero-split {
  display: grid;
  grid-template-columns: 1fr clamp(180px, 24vw, 340px);
  gap: clamp(20px, 4vw, 64px);
  align-items: flex-start;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 26px);
}

.hero-text h2 {
  font-family: 'Lora', serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--black);
}

.hero-text p {
  font-family: 'Lora', serif;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--black);
}

.hero-buttons {
  display: flex;
  gap: clamp(10px, 1.5vw, 20px);
  flex-wrap: wrap;
}

/* span used to highlight my majors in the about me paragraph */
.highlight-text {
  color: var(--rust);
  font-weight: 600;
}

/* blinking cursor that shows during the typing animation */
.type-cursor {
  display: inline-block;
  color: var(--cream);
  animation: blink 0.6s step-end infinite;
  margin-left: 1px;
}

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

/* floating stars — used as decorative spacers between sections */
.floating-stars {
  position: relative;
  height: clamp(60px, 8vw, 90px);
  width: 100%;
}

/* each star uses CSS custom properties for size/color/delay set inline */
.fstar {
  position: absolute;
  font-size: var(--size, 30px);
  color: var(--color, var(--gold));
  animation: floatStar 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
}

@keyframes floatStar {
  0%   { transform: translateY(-50%) scale(1);   opacity: 0.7; }
  50%  { transform: translateY(-70%) scale(1.2); opacity: 1;   }
  100% { transform: translateY(-50%) scale(1);   opacity: 0.7; }
}

/* toolkit — a vertical list of skills I use */
.toolkit-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brown);
  opacity: 0.6;
  margin-bottom: 14px;
}

.toolkit-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.tk-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brown);
  background-color: rgba(91,59,20,0.08);
  border: 1.5px solid rgba(91,59,20,0.25);
  padding: 10px 18px;
  display: block;
}

/* behance block — sits below the toolkit */
.behance-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* this overrides the .hero-text p rule for the behance label */
.hero-text .behance-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  opacity: 0.6;
  line-height: 1;
}

.behance-btn {
  align-self: flex-start;
}

/* photo strip */
.photobooth-wrap {
  position: relative;
  padding: clamp(20px, 3vw, 48px) clamp(24px, 4vw, 56px) clamp(12px, 2vw, 24px) 10px;
  display: flex;
  justify-content: center;
}

.photobooth-strip {
  width: clamp(140px, 20vw, 300px);
  height: auto;
  display: block;
  border: 6px solid var(--black);
  transform: rotate(4deg);
  transform-origin: top center;
}

/* stats bar at the bottom of the home page */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--white);
  border-top: 4px solid var(--brown);
  border-bottom: 4px solid var(--brown);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(18px, 2.5vw, 32px) clamp(16px, 3vw, 52px);
  border-right: 2px solid var(--brown);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Lora', serif;
  font-size: clamp(28px, 4vw, 52px);
  color: var(--rust);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: clamp(9px, 0.9vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brown);
}


/* --- WORK PAGE --- */
.work-splash {
  background-color: var(--black);
  padding: 80px 64px;
  border-bottom: 5px solid var(--rust);
  color: var(--white);
}

.work-splash h1 {
  font-size: clamp(50px, 9vw, 110px);
  margin-bottom: 15px;
}

.work-splash p {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.work-section {
  padding: 60px 64px;
}

/* auto-fit means the grid adds columns as space allows */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.wcard {
  background-color: var(--white);
  border: 3px solid var(--brown);
  box-shadow: 6px 6px 0 var(--brown);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wcard:hover {
  transform: translate(-4px, -4px);
  box-shadow: 10px 10px 0 var(--brown);
}

/* .wi is the image area — background images are set per card with .wc1/.wc2/.wc3 */
.wi {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: #d8cbb5;
  background-size: cover;
  background-position: center;
}

.wc1 { background-image: url('images/work-concessions.png'); }
.wc2 { background-image: url('images/work-hudl.png'); }
.wc3 { background-image: url('images/work-5objects.png'); }

.wb { padding: 20px; }

.wtag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--cream);
  background-color: var(--olive);
  padding: 4px 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.wb h3  { font-size: 22px; margin-bottom: 8px; }
.wb p   { font-size: 16px; line-height: 1.6; }
.wb .yr { font-family: 'Share Tech Mono', monospace; font-size: 11px; opacity: 0.5; display: block; margin-top: 15px; }


/* --- RESUME PAGE --- */
.resume-dl {
  background-color: var(--brown);
  padding: 15px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--gold);
}

.resume-dl span {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cream);
  font-size: 12px;
}

.resume-header {
  background-color: var(--pink);
  padding: 60px 64px;
  border-bottom: 5px solid var(--brown);
}

.resume-header h1 { font-size: clamp(40px, 7vw, 82px); color: var(--brown); }
.resume-sub {
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  color: var(--brown);
  letter-spacing: 0.15em;
}

/* two columns: left is wider for experience, right is narrower for education/skills */
.resume-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding: 60px 64px;
  background-color: var(--white);
  gap: 40px;
}

.rtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 2px solid var(--rust);
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.rentry  { margin-bottom: 35px; }
.rename  { font-size: 18px; margin-bottom: 5px; }
.remeta  { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--rust); margin-bottom: 10px; }
.rebullets { padding-left: 20px; line-height: 1.8; font-size: 16px; }

/* strengths footer — dark bar at the bottom of the resume */
.resume-strengths {
  background-color: var(--brown);
  color: var(--cream);
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 18px 64px;
  border-top: 3px solid var(--gold);
}


/* --- CONTACT PAGE --- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 100px);
}

.contact-left {
  background-color: var(--rust);
  padding: 80px 64px;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-left h1 { font-size: clamp(40px, 5.5vw, 76px); margin-bottom: 25px; line-height: 1.1; }
.contact-left p  { font-size: 16px; line-height: 1.6; margin-bottom: 40px; }

.clinks { display: flex; flex-direction: column; gap: 15px; }

.clink {
  font-family: 'Share Tech Mono', monospace;
  color: var(--cream);
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.2s;
}

.clink:hover {
  background-color: rgba(0,0,0,0.1);
  border-color: var(--gold);
}

.contact-right {
  background-color: var(--white);
  padding: 80px 64px;
  border-left: 4px solid var(--brown);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-right h2 { font-size: 42px; margin-bottom: 30px; }

.fgroup { margin-bottom: 25px; }

.flabel {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--brown);
  display: block;
  margin-bottom: 8px;
}

.finput, .ftextarea {
  width: 100%;
  font-family: 'Lora', serif;
  font-size: 16px;
  padding: 15px;
  border: 2px solid var(--brown);
  background-color: var(--bg);
  transition: all 0.2s;
}

.finput:focus, .ftextarea:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 4px 4px 0 var(--rust);
}

.ftextarea { height: 150px; resize: vertical; }


/* --- FOOTER --- */
footer {
  background-color: var(--brown);
  border-top: 4px solid var(--gold);
  padding: 25px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.f-name { font-size: 24px; color: var(--cream); }
.f-copy { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--cream); opacity: 0.6; }


/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--rust); border: 2px solid var(--brown); }


/* --- MEDIA QUERIES ---

/* tablet — collapse grids, fix nav */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .role-pill:nth-child(1) { margin-left: 0; }
  .role-pill:nth-child(2) { margin-left: 10%; }
  .role-pill:nth-child(3) { margin-left: 22%; }

  .resume-body, .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-right {
    border-left: none;
    border-top: 4px solid var(--brown);
  }

  /* on small screens the logo stacks above the links */
  nav { padding: 10px 20px; justify-content: center; }
  .nav-logo { margin-right: 0; text-align: center; width: 100%; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 2px; height: auto; }
  nav a {
    padding: 6px 10px;
    font-size: 14px;
    height: auto;
    white-space: nowrap; /* keeps "About Me" on one line */
    border-bottom: 3px solid transparent; /* match base border-bottom size so active state doesn't shift layout */
  }
  nav a.active { background-color: rgba(0,0,0,0.15); }
}

/* phone — stack hero, shrink padding */
@media (max-width: 728px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .photobooth-wrap {
    order: -1; /* move the photo above the text on small screens */
  }

  .role-pill:nth-child(1) { margin-left: 0; }
  .role-pill:nth-child(2) { margin-left: 8%; }
  .role-pill:nth-child(3) { margin-left: 18%; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  /* fix the borders when stats go from 4 columns to 2 */
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 2px solid var(--brown); }
  .stat:nth-child(4) { border-top: 2px solid var(--brown); }

  nav, .work-splash, .resume-dl, .resume-header, .resume-body,
  .contact-left, .contact-right, footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-section { padding: 40px 20px; }

  .work-section, .resume-body, .contact-left, .contact-right {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .floating-stars { display: none; }
}
