/* =============================================
   Joel Pelletier — Portfolio V5
   Clean Light / Indigo / Bento Grid
   ============================================= */

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

:root {
  --bg:          #ffffff;
  --bg-2:        #f8fafc;
  --bg-card:     #f1f5f9;
  --bg-card-2:   #e8eef6;
  --border:      #e2e8f0;
  --border-2:    #cbd5e1;
  --text:        #0f172a;
  --muted:       #64748b;
  --accent:      #6366f1;
  --accent-2:    #4f46e5;
  --accent-dim:  rgba(99, 102, 241, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.18);
  --green:       #10b981;
  --green-dim:   rgba(16, 185, 129, 0.1);
  --max:         1060px;
  --r:           10px;
  --r-lg:        16px;
  --t:           0.18s ease;
  --font-head:   "Outfit", "Inter", -apple-system, sans-serif;
  --font-body:   "Inter", -apple-system, sans-serif;
  --mono:        "SFMono-Regular", Consolas, monospace;
}

html { scroll-behavior: smooth; }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-2); }

/* =============================================
   NAV
   ============================================= */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  height: 58px;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color var(--t);
}
.nav-logo:hover { color: var(--accent); text-decoration: none; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 11px;
  border-radius: 6px;
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

.nav-resume {
  color: var(--bg) !important;
  background: var(--accent) !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
}
.nav-resume:hover { background: var(--accent-2) !important; }

/* =============================================
   HERO
   ============================================= */

#hero {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #fafaff 0%, #ffffff 55%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 22px;
  padding: 5px 12px 5px 8px;
  background: var(--green-dim);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-g 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-g {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  60%       { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 18px;
}
.hero-name em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-name em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(99,102,241,0));
  border-radius: 2px;
}

.hero-pronouns {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: -12px;
  margin-bottom: 20px;
}

.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.hero-role-pill {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  padding: 4px 12px;
  border-radius: 20px;
}
.hero-role-pill.primary {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: rgba(99, 102, 241, 0.25);
}

.hero-tagline {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.78;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all var(--t);
  border: none;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Hero info panel (right side) */
.hero-panel {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hero-panel-icon {
  width: 34px;
  height: 34px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.hero-panel-icon svg { width: 15px; height: 15px; }

.hero-panel-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1px;
}

.hero-panel-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
}
.hero-panel-value a { color: var(--text); }
.hero-panel-value a:hover { color: var(--accent); text-decoration: none; }

.hero-panel-divider {
  height: 1px;
  background: var(--border);
}

/* =============================================
   SECTION COMMONS
   ============================================= */

.sec-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.sec-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 40px;
  line-height: 1.15;
}

/* =============================================
   ABOUT
   ============================================= */

.about-cols {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  align-items: start;
}

.about-prose p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 16px;
}
.about-prose p:last-child { margin-bottom: 0; }
.about-prose strong { color: var(--text); font-weight: 600; }

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
}

.aside-card-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 6px;
}

.aside-stat {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}

.aside-stat-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.aside-card-body {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.aside-card-body strong { color: var(--text); }

/* =============================================
   SKILLS — BENTO GRID
   ============================================= */

.skills-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.bento-cell {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: border-color var(--t), box-shadow var(--t);
}
.bento-cell:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.07);
}

.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.span-3 { grid-column: span 3; }
.bento-cell.span-4 { grid-column: span 4; }

.bento-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btag {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 5px;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.bento-cell:hover .btag {
  color: var(--text);
  border-color: var(--border-2);
  background: var(--bg-card-2);
}

/* =============================================
   EXPERIENCE — TIMELINE
   ============================================= */

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent) 0%, var(--border) 100%);
  border-radius: 2px;
}

.tl-item {
  position: relative;
  padding-bottom: 44px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-card-2);
  border: 2px solid var(--border-2);
  transition: background var(--t), border-color var(--t);
}

.tl-item:first-child::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.tl-item:hover::before {
  background: var(--accent);
  border-color: var(--accent);
}

.tl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2px;
}

.tl-company {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.tl-date {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tl-role {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.tl-desc {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
}

.tl-bullets {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tl-bullets li {
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.55;
}
.tl-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.tl-bullets li strong { color: var(--text); font-weight: 600; }

/* Education */
.edu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  margin-top: 40px;
}

.edu-school {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.edu-degree { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

.edu-year {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* =============================================
   PROJECTS
   ============================================= */

.proj-section-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.proj-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.proj-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 40px;
}
.proj-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.proj-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--t);
}
.proj-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.08);
  transform: translateY(-2px);
}

.proj-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.proj-card-title {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.proj-card-period {
  font-size: 0.67rem;
  font-family: var(--mono);
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

.proj-card-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.proj-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ptag {
  font-size: 0.67rem;
  font-family: var(--mono);
  padding: 2px 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
}

.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--accent);
  transition: opacity var(--t);
  text-decoration: none !important;
  margin-top: 2px;
}
.proj-link:hover { opacity: 0.7; }
.proj-links-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   CONTACT
   ============================================= */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.contact-left h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.1;
}
.contact-left h2 span { color: var(--accent); }

.contact-left p {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.contact-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all var(--t);
}
.contact-primary-btn:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.contact-primary-btn svg { width: 16px; height: 16px; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  text-decoration: none !important;
  transition: all var(--t);
  color: var(--text);
}
.contact-link-row:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: var(--accent-dim);
  color: var(--accent);
  transform: translateX(4px);
}

.contact-link-icon {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: background var(--t);
}
.contact-link-icon svg { width: 15px; height: 15px; }
.contact-link-row:hover .contact-link-icon { background: var(--accent); color: #fff; border-color: var(--accent); }

.contact-link-text {
  display: flex;
  flex-direction: column;
}
.contact-link-label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1px;
}
.contact-link-row:hover .contact-link-label { color: var(--accent); opacity: 0.7; }
.contact-link-value {
  font-size: 0.85rem;
  font-weight: 500;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-text { font-size: 0.75rem; color: var(--muted); }
.footer-text a { color: var(--muted); }
.footer-text a:hover { color: var(--accent); }

/* =============================================
   FADE IN
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 860px) {
  section { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { display: none; }

  .about-cols { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { flex-direction: row; }

  .skills-bento { grid-template-columns: repeat(3, 1fr); }
  .bento-cell.span-2 { grid-column: span 1; }
  .bento-cell.span-3 { grid-column: span 3; }
  .bento-cell.span-4 { grid-column: span 3; }

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

  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }

  .nav-links a:not(.nav-resume) { display: none; }
}

@media (max-width: 580px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .skills-bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.span-3 { grid-column: span 2; }
  .proj-grid-3, .proj-grid-2 { grid-template-columns: 1fr; }
  .about-aside { flex-direction: column; }
  .footer-inner { justify-content: center; text-align: center; }
}

.hero-photo {
  margin-bottom: 1rem;
}
.headshot {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
