/*!
 * Resume Theme - Brian J. Malone
 * Built on Bootstrap 5.2.3 (minimal subset) + custom styles
 */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --primary: #2a6df4;
  --primary-dark: #1e56c7;
  --text-dark: #343a40;
  --text-body: #212529;
  --text-muted: #6c757d;
  --white: #fff;
  --border-color: #dee2e6;
  --font-body: "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Saira Extra Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-body);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: calc(1.725rem + 5.7vw); }
h2 { font-size: calc(1.475rem + 2.7vw); }
h3 { font-size: calc(1.325rem + 0.9vw); }

@media (min-width: 1200px) {
  h1 { font-size: 6rem; }
  h2 { font-size: 3.5rem; }
  h3 { font-size: 2rem; }
}

p { margin-top: 0; margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: underline; }
a:hover { color: var(--primary-dark); }

b, strong { font-weight: bolder; }

hr {
  margin: 1rem 0;
  color: inherit;
  border: 0;
  border-top: 1px solid;
  opacity: 0.25;
}

@media (min-width: 992px) {
  hr { margin-left: 17rem; }
}

ol, ul { padding-left: 2rem; }
ol, ul, dl { margin-top: 0; margin-bottom: 1rem; }
dt { font-weight: 700; }

.lead { font-size: 1.25rem; font-weight: 300; }

img { vertical-align: middle; }
.img-fluid { max-width: 100%; height: auto; }

/* ===== Bootstrap Utilities (only what we use) ===== */
.container-fluid { width: 100%; padding-right: 0.75rem; padding-left: 0.75rem; margin: auto; }
.p-0 { padding: 0 !important; }
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.d-flex { display: flex !important; }
.d-block { display: block !important; }
.d-none { display: none !important; }

.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.justify-content-between { justify-content: space-between !important; }

@media (min-width: 768px) {
  .flex-md-row { flex-direction: row !important; }
}

@media (min-width: 992px) {
  .d-lg-none { display: none !important; }
  .d-lg-block { display: block !important; }
}

@media (max-width: 991.98px) {
  .d-lg-block { display: none !important; }
  .d-lg-none { display: block !important; }
}

/* ===== Color Classes ===== */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* ===== Navbar / Sidebar ===== */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar-dark { color: rgba(255,255,255,0.55); }
.navbar-dark .navbar-brand { color: var(--white); }
.navbar-dark .nav-link { color: rgba(255,255,255,0.55); }
.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus { color: var(--white); }
.navbar-dark .navbar-toggler { color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.1); }
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand { padding-top: 0.3125rem; padding-bottom: 0.3125rem; margin-right: 1rem; font-size: 1.25rem; text-decoration: none; white-space: nowrap; }
.navbar-toggler { padding: 0.25rem 0.75rem; font-size: 1.25rem; line-height: 1; background-color: transparent; border-radius: 0.375rem; }
.navbar-toggler:focus { outline-color: rgba(255,255,255,0.4); box-shadow: none; }
.navbar-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; background-repeat: no-repeat; background-position: center; background-size: 100%; }

.navbar-collapse { flex-basis: 100%; flex-grow: 1; align-items: center; }
.collapse:not(.show) { display: none; }

.navbar-nav { display: flex; flex-direction: column; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav-link { display: block; padding: 0.5rem 1rem; text-decoration: none; }
.nav-item { display: block; }

.fixed-top { position: fixed; top: 0; right: 0; left: 0; z-index: 1030; }

#sideNav { padding-left: 1rem; padding-right: 1rem; }
#sideNav .navbar-nav .nav-item .nav-link {
  font-weight: 800;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .navbar-expand-lg { flex-wrap: nowrap; justify-content: flex-start; }
  .navbar-expand-lg .navbar-nav { flex-direction: row; }
  .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; }
  .navbar-expand-lg .navbar-toggler { display: none; }

  #sideNav {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 17rem;
    height: 100vh;
  }
  #sideNav .navbar-brand {
    display: flex;
    margin: auto auto 0;
    padding: 0.5rem;
  }
  #sideNav .navbar-brand .img-profile {
    max-width: 10rem;
    max-height: 10rem;
    border: 0.5rem solid rgba(255, 255, 255, 0.2);
  }
  #sideNav .navbar-collapse {
    display: flex;
    align-items: flex-start;
    flex-grow: 0;
    width: 100%;
    margin-bottom: auto;
  }
  #sideNav .navbar-collapse .navbar-nav {
    flex-direction: column;
    width: 100%;
  }
  #sideNav .navbar-collapse .navbar-nav .nav-item { display: block; }
  #sideNav .navbar-collapse .navbar-nav .nav-item .nav-link { display: block; }
}

.rounded-circle { border-radius: 50% !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }

/* ===== Resume Sections ===== */
section.resume-section {
  display: flex;
  align-items: center;
  padding: 5rem 1rem;
  max-width: 75rem;
}
section.resume-section .resume-section-content {
  width: 100%;
}

@media (min-width: 768px) {
  section.resume-section { min-height: 100vh; }
}
@media (min-width: 992px) {
  section.resume-section { padding-left: 3rem; padding-right: 3rem; margin-left: 17rem; }
}

/* ===== Subheading ===== */
.subheading {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 500;
  font-size: 1.5rem;
}

/* ===== Social Icons ===== */
.social-icons .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  width: 3.5rem;
  background-color: #495057;
  color: var(--white);
  border-radius: 100%;
  font-size: 1.5rem;
  margin-right: 1.5rem;
  text-decoration: none;
}
.social-icons .social-icon:last-child { margin-right: 0; }
.social-icons .social-icon:hover { background-color: var(--primary); }

/* ===== Font Awesome List ===== */
.fa-ul {
  list-style-type: none;
  margin-left: 2.5em;
  padding-left: 0;
}
.fa-ul > li { position: relative; }
.fa-li {
  left: -2em;
  position: absolute;
  text-align: center;
  width: 2em;
  line-height: inherit;
}

/* ===== Key Expertise 3-Column Grid ===== */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem 2rem;
  list-style: disc;
  padding-left: 1.25rem;
}

@media (max-width: 767px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ===== Skills Section Spacing ===== */
.skills-spacer { margin-bottom: 1.5rem; }

/* ===== Clean Bullet Style ===== */
.fa-ul .fa-li .fa-circle {
  font-size: 0.5rem;
  vertical-align: middle;
}
