/* ═══════════════════════════════════════════════
   Brady Smith — Portfolio
   Editorial · Light · Fixed Sidebar
═══════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --sidebar-bg: #f5f7f9;
  --panel: #fafbfc;
  --text: #1d1d1f;
  --text-soft: #4a4a4f;
  --text-muted: #9a9ea6;
  --accent: #3f8f66;
  --accent-deep: #2b6b4a;
  --accent-soft: rgba(47, 107, 74, 0.11);
  --border: #e9ebee;
  --border-soft: #f0f2f4;
  --radius: 10px;
  --sidebar-w: 300px;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  z-index: 90;
  overflow-y: auto;
}
.sidebar-inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem 2rem;
}
.sidebar-top { display: flex; flex-direction: column; align-items: center; }
.avatar {
  width: 132px; height: 132px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--bg);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  margin-bottom: 1.4rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-name {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.side-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.6;
}
.side-role span { color: var(--accent-deep); font-weight: 600; }

.side-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 2.5rem 0;
  width: 100%;
}
.side-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  padding: 0.6rem 0;
  position: relative;
  transition: color 0.2s;
}
.side-nav a:hover, .side-nav a.active { color: var(--accent-deep); }
.side-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: 0.35rem;
  width: 22px; height: 2px;
  background: var(--accent);
}
.side-resume {
  margin-top: 1rem;
  border: 1px solid var(--border) !important;
  border-radius: 40px;
  padding: 0.6rem 1.5rem !important;
  background: var(--bg);
  color: var(--text) !important;
  transition: all 0.2s;
}
.side-resume:hover {
  border-color: var(--accent) !important;
  color: var(--accent-deep) !important;
}
.side-resume::after { display: none !important; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.side-socials { display: flex; gap: 0.8rem; }
.side-socials a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.side-socials a:hover { color: var(--accent-deep); border-color: var(--accent); transform: translateY(-2px); }
.side-copy { font-size: 0.72rem; color: var(--text-muted); }

/* ── MOBILE BAR (hidden on desktop) ── */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.3rem;
}
.mobile-logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
}
.mobile-logo span { color: var(--accent-deep); }
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── MAIN CONTENT ── */
.content {
  margin-left: var(--sidebar-w);
  width: calc(100% - var(--sidebar-w));
}
section {
  padding: 6rem 5rem;
  border-bottom: 1px solid var(--border-soft);
  max-width: 1000px;
}

/* Section headers */
.section-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-deep);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text);
}
.section-sub {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── HOME / HERO ── */
#home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 5rem;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  border-radius: 40px;
  margin-bottom: 2rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.8rem;
  color: var(--text);
}
.hero-title em { font-style: italic; color: var(--accent-deep); font-weight: 800; }
.hero-tagline {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 540px;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-soft); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 40px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 3.5rem;
}
.about-bio p { color: var(--text-soft); margin-bottom: 1.15rem; font-size: 1rem; }
.about-bio strong { color: var(--text); font-weight: 600; }
.about-subheading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1.3rem;
}
.skills-section { display: flex; flex-direction: column; gap: 1.4rem; }
.skill-group h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
  font-weight: 600;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 6px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.tags span:hover { border-color: var(--accent); color: var(--accent-deep); }

.about-sidebar { display: flex; flex-direction: column; gap: 1.3rem; }
.sidebar-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.sidebar-block-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.now-list { display: flex; flex-direction: column; gap: 1rem; }
.now-item { display: flex; align-items: center; gap: 0.9rem; font-size: 0.92rem; color: var(--text-soft); }
.now-item i { color: var(--accent); width: 18px; text-align: center; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interest-tags span {
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 40px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
}

/* ── EXPERIENCE ── */
#experience { background: var(--panel); }
.timeline { display: flex; flex-direction: column; gap: 1.2rem; }
.timeline-item { display: flex; gap: 1.4rem; }
.timeline-left { display: flex; flex-direction: column; align-items: center; padding-top: 0.3rem; }
.timeline-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1rem;
}
.timeline-line { width: 1px; flex: 1; background: var(--border); margin-top: 0.5rem; }
.timeline-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  transition: all 0.25s;
}
.timeline-card:hover { border-color: var(--accent); box-shadow: 0 6px 22px rgba(0,0,0,0.05); transform: translateY(-2px); }
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.timeline-title-row { display: flex; align-items: center; gap: 0.9rem; }
.company-logo { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.company-logo-placeholder {
  width: 44px; height: 44px;
  border-radius: 8px;
  display: none;
  align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.timeline-card h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; }
.timeline-company { color: var(--accent-deep); font-size: 0.9rem; font-weight: 500; }
.timeline-date { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; padding-top: 0.3rem; }
.timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.timeline-bullets li { position: relative; padding-left: 1.3rem; color: var(--text-soft); font-size: 0.94rem; }
.timeline-bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ── EDUCATION ── */
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.edu-main {
  grid-column: 1 / -1;
  display: flex; gap: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  align-items: flex-start;
}
.edu-logo img, .edu-logo .company-logo-placeholder { width: 64px; height: 64px; border-radius: 10px; }
.edu-details h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.edu-degree { color: var(--accent-deep); font-size: 1rem; margin-top: 0.2rem; font-weight: 500; }
.edu-dates { font-size: 0.82rem; color: var(--text-muted); margin: 0.4rem 0 1.1rem; }
.edu-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 6px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8rem;
}
.edu-highlights { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.edu-highlight-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: all 0.2s;
}
.edu-highlight-card:hover { border-color: var(--accent); box-shadow: 0 6px 22px rgba(0,0,0,0.05); }
.highlight-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1rem;
}
.edu-highlight-card strong { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.98rem; }
.edu-highlight-card span { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }
.cert-section { grid-column: 1 / -1; margin-top: 0.5rem; }
.cert-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-top: 0.8rem;
}
.cert-card i { color: var(--accent-deep); font-size: 1.4rem; }
.cert-card strong { display: block; font-weight: 600; }
.cert-card span { color: var(--text-muted); font-size: 0.85rem; }

/* ── PROJECTS ── */
#projects { background: var(--panel); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.25s;
}
.project-card:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.07); transform: translateY(-4px); }
.project-imgs { position: relative; height: 185px; background: var(--panel); overflow: hidden; }
.project-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.project-img.active { opacity: 1; }
.img-dots { position: absolute; bottom: 0.8rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.4rem; z-index: 2; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; transition: background 0.2s; }
.dot.active { background: var(--accent); }
.placeholder-img {
  height: 185px;
  background: linear-gradient(135deg, var(--accent-soft), var(--panel));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.project-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.project-number {
  font-size: 0.72rem; font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.project-status {
  display: inline-block;
  margin-left: 0.5rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 20px;
  padding: 0.1rem 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.project-body h3 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.project-problem { color: var(--text-soft); font-size: 0.92rem; flex: 1; line-height: 1.6; }
.project-problem strong { color: var(--text); }
.project-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.project-tools span {
  background: var(--panel);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
}
.project-links { display: flex; gap: 0.7rem; padding-top: 0.4rem; }
.btn-small {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 500;
  padding: 0.5rem 0.95rem;
  border-radius: 40px;
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s;
}
.btn-small:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn-demo { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.btn-demo:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-intro { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.contact-item:hover { padding-left: 0.5rem; }
.contact-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 1.05rem;
}
.contact-item-text small {
  display: block;
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.contact-item-text span { font-size: 0.95rem; }
.contact-cta {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.8rem 2rem;
  text-align: center;
}
.contact-cta h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-cta p { color: var(--text-soft); margin-bottom: 1.8rem; line-height: 1.6; }

/* ── Fade-in on scroll ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1050px) {
  section, #home { padding: 5rem 3rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .edu-highlights { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .mobile-bar { display: flex; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    top: 62px;
    width: 260px;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
  .sidebar-inner { padding-top: 2rem; }
  .content { margin-left: 0; width: 100%; padding-top: 62px; }
  .education-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section, #home { padding: 3.5rem 1.5rem; }
}
