/* ===== DARK FOREST GREEN THEME ===== */
html {
  --forest-dark: #0D1F17;
  --forest-medium: #1B4332;
  --forest-light: #2D6A4F;
  --forest-accent: #52B788;
  --dark-grey: #1A1A1A;
  --medium-grey: #2A2A2A;
  --light-grey: #3A3A3A;
  --cream: #E8E6E3;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.5);

  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--forest-dark);
}

/* ===== Typography ===== */
body {
  font-family: 'Georgia', 'Garamond', serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--cream);
  background: var(--forest-dark);
  margin: 0;
  padding: 0 0 4em;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(82, 183, 136, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(27, 67, 50, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

* {
  box-sizing: border-box;
}

main,
body > header,
body > nav {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest-accent);
  margin-top: 2em;
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-top: 0.5em;
  background: linear-gradient(135deg, var(--forest-accent) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  padding-bottom: 0.5em;
  text-align: center;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--forest-accent) 100%);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

h3 {
  font-size: 1.5rem;
  color: var(--forest-accent);
}

/* ===== Hide Theme Selector ===== */
.color-scheme {
  display: none !important;
}

/* ===== Navigation ===== */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2em 0;
  margin-bottom: 3em;
  gap: 0.5em;
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--medium-grey) 0%, var(--forest-medium) 100%);
  border-radius: 50px;
  box-shadow: 0 8px 30px var(--shadow), inset 0 1px 0 rgba(82, 183, 136, 0.1);
  margin-top: 2em;
  border: 1px solid rgba(82, 183, 136, 0.2);
}

nav ul {
  display: contents;
}

nav li {
  display: contents;
}

nav a {
  padding: 0.75em 1.75em;
  text-decoration: none;
  color: var(--cream);
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--forest-accent), var(--gold));
  transition: left 0.3s ease;
  z-index: -1;
}

nav a:hover::before {
  left: 0;
}

nav a:hover {
  color: var(--dark-grey);
  transform: translateY(-2px);
}

nav a.current {
  background: linear-gradient(135deg, var(--forest-accent), var(--forest-light));
  color: var(--dark-grey);
  box-shadow: 0 0 20px rgba(82, 183, 136, 0.4);
}

nav a.external {
  border: 1.5px solid rgba(82, 183, 136, 0.5);
  background: transparent;
  color: var(--forest-accent);
}

nav a.external::after {
  content: '\2197';
  margin-left: 0.35em;
  font-size: 0.8em;
  opacity: 0.7;
}

nav a.external::before {
  background: linear-gradient(90deg, var(--forest-accent), var(--gold));
}

nav a.external:hover {
  color: var(--dark-grey);
  border-color: transparent;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4em 2em;
  margin-bottom: 4em;
  background: linear-gradient(135deg, var(--medium-grey) 0%, var(--forest-medium) 100%);
  border-radius: 30px;
  box-shadow: 0 10px 40px var(--shadow), inset 0 1px 0 rgba(82, 183, 136, 0.1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(82, 183, 136, 0.2);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(82, 183, 136, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 70ch;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.tagline {
  font-size: 1.3rem;
  color: var(--forest-accent);
  margin: 1em 0;
  font-style: italic;
  font-family: Georgia, serif;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5em;
  border: 6px solid var(--gold);
  box-shadow: 0 8px 30px var(--shadow), 0 0 40px rgba(212, 175, 55, 0.3);
}


/* ===== Sections ===== */
section {
  margin-bottom: 5em;
  padding: 3em;
  background: linear-gradient(135deg, var(--medium-grey) 0%, var(--forest-medium) 100%);
  border-radius: 30px;
  box-shadow: 0 10px 40px var(--shadow), inset 0 1px 0 rgba(82, 183, 136, 0.1);
  position: relative;
  border: 1px solid rgba(82, 183, 136, 0.2);
}

.about,
.latest-projects,
.github-section {
  padding: 3em;
}

/* ===== Project Cards ===== */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
  gap: 2em;
  margin-top: 2em;
  justify-content: center;
}

.projects article {
  background: linear-gradient(135deg, var(--light-grey) 0%, var(--forest-dark) 100%);
  border: 3px solid var(--forest-accent);
  border-radius: 20px;
  padding: 2em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.projects article::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--forest-accent), var(--gold));
  transition: left 0.4s ease;
  z-index: 0;
}

.projects article:hover::before {
  left: 0;
}

.projects article:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px var(--shadow), 0 0 40px rgba(82, 183, 136, 0.3);
  border-color: var(--gold);
}

.projects article:hover h2,
.projects article:hover p {
  color: var(--dark-grey);
  position: relative;
  z-index: 1;
}

.projects article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1em;
  border: 2px solid var(--forest-accent);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.projects article:hover img {
  transform: scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.projects article h2 {
  font-size: 1.5rem;
  margin: 0.5em 0;
  color: var(--forest-accent);
  transition: color 0.3s ease;
}

.projects article h2::after {
  display: none;
}

.projects article p {
  margin: 0.5em 0;
  line-height: 1.6;
  color: var(--cream);
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

/* ===== GitHub Stats ===== */
.github-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5em;
  margin: 2em 0;
}

.github-stats > div {
  background: linear-gradient(135deg, var(--forest-medium) 0%, var(--forest-light) 100%);
  border: 2px solid var(--forest-accent);
  border-radius: 20px;
  padding: 2em;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.github-stats > div::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  transition: transform 0.5s ease;
}

.github-stats > div:hover::before {
  transform: translate(-25%, -25%);
}

.github-stats > div:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(82, 183, 136, 0.3);
  border-color: var(--gold);
}

.github-stats dt {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: 'Helvetica Neue', sans-serif;
}

.github-stats dd {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  color: var(--white);
  font-family: 'Helvetica Neue', sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ===== Forms ===== */
form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5em;
  max-width: 600px;
  margin: 2em auto;
}

label {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-items: center;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 600;
  color: var(--forest-accent);
}

input,
textarea {
  border: 2px solid var(--forest-accent);
  border-radius: 12px;
  padding: 0.75em 1em;
  font-family: Georgia, serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--light-grey);
  color: var(--cream);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--medium-grey);
  box-shadow: 0 4px 12px var(--shadow), 0 0 20px rgba(82, 183, 136, 0.2);
  transform: translateY(-2px);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--forest-accent) 0%, var(--gold) 100%);
  color: var(--dark-grey);
  border: none;
  border-radius: 50px;
  padding: 1em 2.5em;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Helvetica Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px var(--shadow), 0 0 30px rgba(82, 183, 136, 0.3);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(82, 183, 136, 0.5);
  background: linear-gradient(135deg, var(--gold) 0%, var(--forest-accent) 100%);
}

button:active {
  transform: translateY(-1px);
}

/* ===== Resume Styles ===== */
.resume {
  line-height: 1.7;
  max-width: 900px;
  margin: 3em auto;
  padding: 3em;
  background: linear-gradient(135deg, var(--medium-grey) 0%, var(--forest-medium) 100%);
  border-radius: 30px;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid rgba(82, 183, 136, 0.2);
}

.resume h2 {
  font-size: 2rem;
  color: var(--forest-accent);
  padding-bottom: 0.5em;
}

.resume h3 {
  font-size: 1.4rem;
  color: var(--forest-accent);
  margin: 1em 0 0.5em 0;
}

.resume p,
.resume ul {
  margin: 1em 0;
  color: var(--cream);
}

.resume ul {
  list-style-type: none;
  padding-left: 0;
}

.resume li {
  margin-bottom: 0.75em;
  padding-left: 2em;
  position: relative;
}

.resume li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: bold;
}

.resume time {
  font-style: italic;
  color: var(--forest-accent);
  font-weight: 600;
}

.resume strong {
  font-weight: bold;
  color: var(--forest-accent);
}

.resume section {
  margin-bottom: 2.5em;
}

.resume article {
  margin-bottom: 2em;
  padding: 1.5em;
  background: var(--light-grey);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ===== Projects Page Specific ===== */
.project-image {
  width: 100%;
  height: auto;
}

#projects-pie-plot {
  max-width: 20em;
  margin-block: 2em;
  overflow: visible;
}

.container {
  display: flex;
  align-items: center;
  gap: 2em;
  justify-content: center;
  padding: 2em;
  flex-wrap: wrap;
}

svg {
  max-width: 100%;
  height: auto;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding: 2em;
  background: var(--light-grey);
  border: 3px solid var(--forest-accent);
  border-radius: 20px;
  box-shadow: 0 6px 20px var(--shadow);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.5em 1em;
  background: var(--medium-grey);
  border-radius: 25px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.legend-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
  border-color: var(--forest-accent);
}

.legend-item .swatch {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  background-color: var(--color);
  border-radius: 50%;
  border: 2px solid var(--forest-accent);
}

.searchBar {
  width: 100%;
  padding: 1em 1.5em;
  font-size: 1.1rem;
  border: 3px solid var(--forest-accent);
  border-radius: 50px;
  box-shadow: 0 4px 12px var(--shadow);
  margin: 2em 0;
  background: var(--light-grey);
  color: var(--cream);
  transition: all 0.3s ease;
  font-family: Georgia, serif;
}

.searchBar:focus {
  outline: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(82, 183, 136, 0.3);
  transform: translateY(-2px);
  border-color: var(--gold);
}

.searchBar::placeholder {
  color: rgba(232, 230, 227, 0.5);
}

.selected {
  --color: var(--gold) !important;
}

.selected path {
  fill: var(--gold);
  stroke: var(--forest-accent);
  stroke-width: 2;
}

.legend-item.selected {
  background: var(--forest-accent);
  color: var(--dark-grey);
  border-color: var(--gold);
}

.legend-item.selected .swatch {
  border-color: var(--gold);
}

/* ===== Loading & Error States ===== */
.error {
  color: #FF6B6B;
  background: rgba(255, 107, 107, 0.1);
  border: 2px solid #FF6B6B;
  border-radius: 12px;
  padding: 1.5em;
  margin: 1em 0;
  font-weight: 600;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  main,
  body > header,
  body > nav {
    padding-inline: 1em;
  }

  nav {
    flex-direction: column;
    border-radius: 20px;
    padding: 1em;
  }

  nav a {
    width: 100%;
    text-align: center;
  }

  .projects {
    grid-template-columns: 1fr;
  }

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

  section,
  .hero {
    padding: 2em 1.5em;
  }

  h1 {
    font-size: 2.5rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  animation: fadeIn 0.6s ease-out;
}

/* ===== Links ===== */
a {
  color: var(--forest-accent);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.mb-large {
  margin-bottom: 3em;
}

.mt-large {
  margin-top: 3em;
}

/* ===== BENTO BOX HOMEPAGE ===== */
.home .bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 1.25em;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1.5em 4em;
}

.bento-box {
  background: linear-gradient(145deg, var(--medium-grey) 0%, var(--forest-medium) 100%);
  border-radius: 24px;
  padding: 1.5em;
  border: 1px solid rgba(82, 183, 136, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.bento-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 30px rgba(82, 183, 136, 0.15);
  border-color: rgba(82, 183, 136, 0.4);
}

.bento-box h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin: 0 0 0.75em 0;
  text-align: left;
}

.bento-box h2::after {
  display: none;
}

/* Hero Box - Large */
.bento-hero {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-medium) 50%, var(--forest-light) 100%);
  position: relative;
}

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

.bento-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin: 0;
  text-align: left;
}

.bento-hero .tagline {
  font-size: 1.2rem;
  color: var(--forest-accent);
  margin: 0.5em 0 0.25em;
  font-style: normal;
  font-weight: 600;
}

.bento-hero .subtitle {
  color: var(--cream);
  opacity: 0.7;
  font-size: 0.95rem;
  margin: 0;
}

.hero-decoration {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: var(--forest-accent);
  top: -50px;
  right: -50px;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: var(--gold);
  bottom: 20px;
  right: 30%;
  animation-delay: -2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: var(--forest-accent);
  bottom: -20px;
  left: 20%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Photo Box */
.bento-photo {
  grid-column: span 1;
  grid-row: span 1;
  padding: 0;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--light-grey), var(--forest-dark));
}

.bento-photo .profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  margin: 0;
  border: none;
}

.photo-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0.5;
  text-align: center;
  gap: 0.5em;
}

.photo-placeholder small {
  font-size: 0.75rem;
  color: var(--forest-accent);
}

/* About Box */
.bento-about {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--cream);
}

/* Links Box */
.bento-links {
  grid-column: span 1;
  grid-row: span 1;
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4em;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 0.85em;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(82, 183, 136, 0.15);
}

.link-item:hover {
  background: var(--forest-accent);
  color: var(--dark-grey);
  transform: scale(1.05);
  text-decoration: none;
  border-color: var(--forest-accent);
}

.link-glyph {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--forest-accent), var(--gold));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dark-grey);
  box-shadow: 0 2px 8px rgba(82, 183, 136, 0.3);
}

.link-glyph svg {
  width: 18px;
  height: 18px;
}

.link-item:hover .link-glyph {
  background: linear-gradient(135deg, var(--gold), var(--forest-accent));
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.4);
}

/* Tech Stack Box */
.bento-tech {
  grid-column: span 2;
  grid-row: span 1;
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.tech-tag {
  padding: 0.4em 0.9em;
  background: rgba(82, 183, 136, 0.15);
  border: 1px solid rgba(82, 183, 136, 0.3);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--forest-accent);
  transition: all 0.3s ease;
}

.tech-tag.large {
  font-size: 0.95rem;
  padding: 0.5em 1.1em;
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
  color: var(--gold);
}

.tech-tag:hover {
  background: var(--forest-accent);
  color: var(--dark-grey);
  transform: scale(1.05);
}

/* GitHub Stats Box */
.bento-github {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-github .github-stats {
  display: flex;
  justify-content: space-around;
  margin: 0;
  gap: 1em;
}

.bento-github .github-stats > div {
  background: transparent;
  border: none;
  padding: 0.5em;
  box-shadow: none;
  text-align: center;
}

.bento-github .github-stats > div:hover {
  transform: none;
  box-shadow: none;
}

.bento-github .github-stats dt {
  font-size: 0.7rem;
  margin-bottom: 0.25em;
}

.bento-github .github-stats dd {
  font-size: 1.75rem;
}

/* Project Boxes */
.bento-project {
  grid-column: span 1;
  grid-row: span 1;
  min-height: 180px;
  padding: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.bento-project-featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 300px;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 31, 23, 0.95) 0%, rgba(13, 31, 23, 0.3) 50%, transparent 100%);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5em;
  transition: all 0.3s ease;
}

.bento-project:hover .project-overlay {
  background: linear-gradient(to top, rgba(13, 31, 23, 0.98) 0%, rgba(13, 31, 23, 0.6) 100%);
}

.project-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5em;
}

.project-title {
  font-size: 1.1rem;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}

.bento-project-featured .project-title {
  font-size: 1.5rem;
}

/* CTA Box */
.bento-cta {
  grid-column: span 1;
  grid-row: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--forest-accent) 0%, var(--gold) 100%);
  cursor: pointer;
}

.bento-cta:hover {
  transform: translateY(-4px) scale(1.02);
}

.cta-link {
  display: flex;
  align-items: center;
  gap: 0.75em;
  color: var(--dark-grey);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.cta-link:hover {
  color: var(--dark-grey);
  text-decoration: none;
}

.cta-link .arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.bento-cta:hover .arrow {
  transform: translateX(5px);
}

/* Quote Box */
.bento-quote {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--medium-grey) 100%);
}

.bento-quote blockquote {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--cream);
  line-height: 1.6;
}

.bento-quote cite {
  display: block;
  margin-top: 0.75em;
  font-size: 0.85rem;
  color: var(--forest-accent);
  font-style: normal;
}

/* Status Box */
.bento-status {
  grid-column: span 1;
  grid-row: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  background: linear-gradient(135deg, var(--forest-dark), var(--forest-medium));
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 10px #4ade80;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.bento-status span {
  font-size: 0.9rem;
  color: var(--cream);
  font-weight: 500;
}

/* Bento Grid Responsive */
@media (max-width: 900px) {
  .home .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-photo {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 200px;
  }

  .bento-about {
    grid-column: span 1;
  }
}

@media (max-width: 600px) {
  .home .bento-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .bento-photo,
  .bento-about,
  .bento-links {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-photo {
    min-height: 250px;
  }

}


/* ===== BENTO BOX RESUME PAGE ===== */
.resume-page .resume-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(100px, auto);
  gap: 1.25em;
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1.5em 4em;
}

/* Resume Header */
.resume-header {
  grid-column: span 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-medium) 100%);
}

.resume-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: left;
}

.resume-subtitle {
  color: var(--forest-accent);
  margin: 0.25em 0 0;
  font-size: 1.1rem;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  background: linear-gradient(135deg, var(--forest-accent), var(--gold));
  color: var(--dark-grey);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(82, 183, 136, 0.4);
  color: var(--dark-grey);
  text-decoration: none;
}

.download-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* Resume Links */
.resume-links {
  grid-column: span 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
}

.resume-link-item {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.resume-link-item:hover {
  background: var(--forest-accent);
  transform: scale(1.1);
}

.resume-link-item .link-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  background: transparent;
  color: var(--cream);
}

.resume-link-item:hover .link-icon {
  color: var(--dark-grey);
  background: transparent;
}

/* Education */
.resume-education {
  grid-column: span 2;
}

.resume-education h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--white);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25em;
}

.edu-date {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.edu-degree {
  margin: 0.25em 0;
  color: var(--forest-accent);
  font-weight: 600;
}

.edu-location {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Coursework */
.resume-coursework {
  grid-column: span 2;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.course-tag {
  padding: 0.35em 0.75em;
  background: rgba(82, 183, 136, 0.1);
  border: 1px solid rgba(82, 183, 136, 0.25);
  border-radius: 15px;
  font-size: 0.75rem;
  color: var(--cream);
}

/* Skills boxes */
.resume-skills {
  grid-column: span 1;
}

.resume-frameworks {
  grid-column: span 2;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.skill-item {
  padding: 0.3em 0.7em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--cream);
  transition: all 0.2s ease;
}

.skill-item.primary {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold);
  font-weight: 600;
}

.skill-item:hover {
  background: var(--forest-accent);
  color: var(--dark-grey);
  transform: scale(1.05);
}

/* Experience Header */
.resume-exp-header {
  grid-column: span 4;
  display: flex;
  align-items: center;
  gap: 1.5em;
  padding: 1em 1.5em;
}

.resume-exp-header h2 {
  margin: 0;
}

.exp-timeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold);
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--forest-accent), transparent);
}

/* Experience boxes */
.resume-experience {
  grid-column: span 2;
  position: relative;
}

.resume-experience.exp-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--forest-medium) 0%, var(--forest-light) 100%);
  border: 2px solid var(--gold);
}

.exp-badge-bottom {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1em;
  padding-top: 0.75em;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.exp-badge {
  padding: 0.3em 0.8em;
  background: var(--gold);
  color: var(--dark-grey);
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 20px;
}

@keyframes spin3d {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.spinning-trophy {
  animation: spin3d 3s linear infinite;
  transform-style: preserve-3d;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.25em;
  flex-wrap: wrap;
  gap: 0.5em;
}

.resume-experience h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
}

.exp-date {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}

.exp-company {
  margin: 0;
  color: var(--forest-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.exp-subtitle {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.exp-bullets {
  margin: 0.75em 0 0;
  padding-left: 1.25em;
  font-size: 0.85rem;
  line-height: 1.5;
}

.exp-bullets li {
  margin-bottom: 0.4em;
  color: var(--cream);
}

.exp-bullets li::marker {
  color: var(--gold);
}

/* Highlights */
.resume-highlights {
  grid-column: span 2;
  grid-row: span 1;
}

.highlight-items {
  display: flex;
  justify-content: space-around;
  gap: 1em;
}

.highlight-item {
  text-align: center;
}

.highlight-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--gold);
  font-family: 'Helvetica Neue', sans-serif;
}

.highlight-label {
  font-size: 0.75rem;
  color: var(--cream);
  opacity: 0.8;
}

/* Resume CTA */
.resume-cta {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--forest-accent) 0%, var(--gold) 100%);
  cursor: pointer;
}

.resume-cta:hover {
  transform: translateY(-4px) scale(1.02);
}

.resume-cta .cta-link {
  color: var(--dark-grey);
}

.resume-cta .cta-link:hover {
  color: var(--dark-grey);
  text-decoration: none;
}

/* Resume Responsive */
@media (max-width: 900px) {
  .resume-page .resume-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-header {
    grid-column: span 2;
    flex-direction: column;
    text-align: center;
    gap: 1em;
  }

  .resume-header h1 {
    text-align: center;
  }

  .resume-links {
    grid-column: span 2;
  }

  .resume-education,
  .resume-coursework {
    grid-column: span 2;
  }

  .resume-skills,
  .resume-frameworks,
  .resume-tools {
    grid-column: span 2;
  }

  .resume-exp-header {
    grid-column: span 2;
  }

  .resume-experience,
  .resume-experience.exp-featured {
    grid-column: span 2;
  }

  .resume-highlights,
  .resume-cta {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .resume-page .resume-bento-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }

  .resume-header,
  .resume-links,
  .resume-education,
  .resume-coursework,
  .resume-skills,
  .resume-frameworks,
  .resume-tools,
  .resume-exp-header,
  .resume-experience,
  .resume-experience.exp-featured,
  .resume-highlights,
  .resume-cta {
    grid-column: span 1;
  }

  .highlight-items {
    flex-direction: column;
    gap: 1.5em;
  }

  .exp-header {
    flex-direction: column;
  }
}
