/* ============================================================
   Scott Burch — Design Portfolio
   style.css
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg:           #F7F4F0;
  --text:         #1A1A1A;
  --text-muted:   #8A8078;
  --accent:       #C4703A;
  --border:       #E5E0D8;
  --overlay:      rgba(18, 15, 12, 0.89);
  --nav-h:        72px;
  --gap:          2px;
  --pad:          48px;
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Base --- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  transition: color 0.2s;
}
.site-logo:hover { color: var(--accent); }
.site-logo span { color: var(--text-muted); font-weight: 300; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--text); }

/* ============================================================
   INTRO
   ============================================================ */
.site-intro {
  padding: 40px var(--pad) 0;
}
.site-intro p {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
}

/* ============================================================
   FILTERS
   ============================================================ */
.filters {
  padding: 32px var(--pad) 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-btn {
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 15px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  border-radius: 2px;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.filter-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ============================================================
   PORTFOLIO GRID
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: 0 var(--pad) 96px;
}

/* --- Grid Item --- */
.grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--border);
}
.grid-item.featured { grid-column: span 2; }
.grid-item.placeholder { background: var(--border); }

/* Image */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.grid-item:hover img { transform: scale(1.04); }

/* SVG thumbnails (illustration) */
.grid-item img[src$=".svg"] {
  object-fit: contain;
  background: #f0ede8;
  padding: 20px;
}

/* Placeholder gradient for items without screenshots */
.grid-item .img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.grid-item:hover .img-placeholder { transform: scale(1.04); }
.placeholder-outlook  { background: linear-gradient(135deg, #1a2a4a 0%, #2d4a7a 50%, #1e3a5f 100%); }
.placeholder-campus   { background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 50%, #1e4a2f 100%); }
.placeholder-print    { background: linear-gradient(135deg, #3a2a1a 0%, #5a3d20 100%); }
.placeholder-photo    { background: linear-gradient(135deg, #2a2a2a 0%, #4a4040 100%); }

/* Overlay */
.grid-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  pointer-events: none;
}
.grid-item:hover .grid-overlay {
  opacity: 1;
  pointer-events: auto;
}

.overlay-cat {
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.overlay-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
}
.overlay-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  pointer-events: auto;
}
.overlay-link:hover { color: #fff; }
.overlay-link::after { content: '↗'; font-size: 13px; }

/* Badges */
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}
.badge-interactive { background: var(--accent); color: #fff; }
.badge-coming      { background: rgba(18,15,12,0.5); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }

/* Filter hide/show */
.grid-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.grid-item.hidden {
  display: none;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 6, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  font-size: 26px;
  line-height: 1;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
  background: none;
  border: none;
  font-family: inherit;
}
.lightbox-close:hover { color: #fff; }

.lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 64px 80px 20px;
  min-height: 0;
  position: relative;
}
.lightbox-img {
  max-height: calc(100vh - 196px);
  max-width: calc(100vw - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}
.lightbox-img.fading { opacity: 0; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: rgba(255,255,255,0.35);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 12px 18px;
  transition: color 0.2s;
  z-index: 10;
  line-height: 1;
}
.lightbox-nav:hover { color: rgba(255,255,255,0.9); }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-nav[hidden] { display: none; }

.lightbox-dots {
  display: flex;
  gap: 7px;
  padding: 8px 0 4px;
  align-items: center;
  min-height: 24px;
}
.lightbox-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.lightbox-dot.active { background: rgba(255,255,255,0.75); }

.lightbox-info {
  width: 100%;
  padding: 16px 80px 28px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 28px;
}
.lightbox-meta { flex: 1; min-width: 0; }
.lightbox-cat {
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.lightbox-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}
.lightbox-view {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 18px;
  border-radius: 2px;
  transition: all 0.2s;
  white-space: nowrap;
}
.lightbox-view:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.lightbox-view[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox-img-wrap { padding: 56px 48px 16px; }
  .lightbox-info { padding: 14px 24px 22px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .lightbox-title { font-size: 16px; }
  .lightbox-nav { font-size: 24px; padding: 8px 12px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-muted);
}
.footer-contact {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-contact:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px var(--pad) 96px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

/* Left col */
.about-sidebar {}

.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 28px;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 4px;
}
.about-title {
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.about-email {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  margin-bottom: 32px;
  transition: opacity 0.2s;
}
.about-email:hover { opacity: 0.7; }

.about-bio {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}

/* Skills */
.about-skills {
  margin-top: 32px;
}
.skills-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-tag {
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 2px;
}

/* Right col — resume */
.about-main {}

.resume-section {
  margin-bottom: 52px;
}
.resume-section-title {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 28px;
}

/* Experience entry */
.exp-entry {
  margin-bottom: 36px;
  padding-left: 0;
}
.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.exp-role {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.exp-dates {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.exp-company {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 12px;
}
.exp-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.exp-bullets li {
  font-size: 14px;
  line-height: 1.7;
  color: #4a4540;
  padding-left: 16px;
  position: relative;
}
.exp-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* Education */
.edu-entry { margin-bottom: 24px; }
.edu-school {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 3px;
}
.edu-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.edu-dates {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-item.featured { grid-column: span 2; }
  .about-wrap { grid-template-columns: 1fr; gap: 48px; max-width: 640px; }
  .about-photo { width: 160px; height: 160px; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --nav-h: 60px; }
  .site-logo { font-size: 18px; }
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding-bottom: 64px;
  }
  .grid-item.featured { grid-column: span 1; }
  .filters { padding: 20px var(--pad) 16px; gap: 6px; }
  .filter-btn { font-size: 10px; padding: 6px 11px; }
  .overlay-title { font-size: 18px; }
  .about-wrap { padding: 48px var(--pad) 64px; }
  .exp-header { flex-direction: column; gap: 2px; }
  .site-footer { flex-direction: column; gap: 8px; text-align: center; }
}
