/* Even spacing for work samples tab buttons */
.work-samples-tabs-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
/* Desktop navigation styles */
.main-nav ul.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li {
  display: inline-block;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #f2e9e4;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -4px;
}
.main-nav a:hover {
  color: #f2e9e4;
}
.main-nav a:hover::after {
  width: 100%;
}
/* Hamburger menu hidden by default, shown only on mobile */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  margin-left: 1.2rem;
  margin-right: 0;
  z-index: 1001;
}

@media (max-width: 800px) {
  .nav-hamburger {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 0.5rem;
    transform: translateY(-50%);
    color: #fff;
  }
  .main-nav > ul.nav-links {
    display: none !important;
  }
  .main-nav ul.nav-links li {
    margin: 0.7em 0;
    min-width: unset;
  }
  .main-nav ul.nav-links a {
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3em 0.5em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }
  header .site-title {
    font-size: 1.4rem;
  }
  .main-nav ul.nav-links a:hover {
    background: #4a4e69;
    color: #f2e9e4;
  }
}
.automation-card li {
  margin-bottom: 0.2em;
}
.automation-card a {
  color: #22223b;
  text-decoration: underline;
}
.automation-card b {
  color: #22223b;
  font-weight: bold;
}
.automation-card i {
  color: #4a4e69;
}
.automation-code-block {
  background: #23272e;
  color: #f7f7fa;
  border-radius: 8px;
  padding: 1em;
  font-size: 0.98em;
  overflow-x: auto;
  margin-top: 1em;
  margin-bottom: 0.5em;
}
.automation-card-body {
  margin-top: 0.5em;
}
/* Mobile nav overlay styles */
@media (max-width: 800px) {
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    max-width: 320px;
    height: 100vh;
    background: #22223b;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.2rem 1.2rem 1.2rem;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    transform: translateX(-100%);
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
  }
  .nav-overlay.open {
    transform: translateX(0);
    box-shadow: 2px 0 16px rgba(0,0,0,0.18);
    pointer-events: auto;
    opacity: 1;
  }
  .main-nav ul.nav-links {
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    position: static;
    padding: 0;
    min-width: unset;
    gap: 0;
  }
  .main-nav ul.nav-links li {
    margin: 0.7em 0;
    min-width: unset;
  }
  .main-nav ul.nav-links a {
    color: #fff;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    padding: 0.3em 0.5em;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }
  .main-nav ul.nav-links a:hover {
    background: #4a4e69;
    color: #f2e9e4;
  }
  /* Overlay background when open */
  .nav-overlay-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(34,34,59,0.4);
    z-index: 1999;
    cursor: pointer;
  }
  .nav-overlay-bg.open {
    display: block !important;
  }
}
section, main, [id] {
  scroll-margin-top: 130px;
}
/* Work Samples Tab Navigation - 2x2 grid */
.work-samples-tabs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  width: 100%;
}

/* Force long strings to wrap in all table cells and block elements */
td, th, p, li, span, div {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

@media (max-width: 700px) {
/* Mobile font size and font family for site title */
.site-title {
    font-size: 1.8rem !important;
    font-family: 'Inter', Arial, sans-serif !important;
    margin-left: 2.5rem;
    width: calc(100% - 2.5rem);
    display: block;
    text-align: center;
}
}
.work-samples-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: 50%;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #4a4e69;
  font-size: 1.05em;
  font-weight: 600;
  padding: 0.7em 0;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  outline: none;
  text-align: center;
}
.work-samples-tab.active {
  border-bottom: 3px solid #4a4e69;
  color: #22223b;
  background: #f7f7fa;
}
.work-samples-tab:focus {
  outline: 2px solid #0078d4;
}
.work-samples-tab-content {
  margin-top: 0.5rem;
}
.work-samples-panel {
  display: none;
}
.work-samples-panel.active {
  display: block;
}
.ticket-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75em 0 0.5em 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(74,78,105,0.08);
}
/* Show More/Less Button - clean, blue, no border/background, pointer cursor, block centered */
.show-more-link {
  color: #0078d4; /* Use the main blue from elsewhere on the page */
  font-weight: 600;
  font-size: 1.05em;
  cursor: pointer;
  display: block;
  margin: 1.2em auto 0;
  text-align: center;
  user-select: text;
  border: none;
  background: none;
  box-shadow: none;
  outline: none;
  padding: 0.3em 1em;
  border-radius: 8px;
  transition: color 0.2s;
}
/* Show More/Less Button - clean, blue, no border/background, pointer cursor */
.show-more-link {
  color: #0078d4; /* Use the main blue from elsewhere on the page */
  font-weight: 600;
  font-size: 1.05em;
  cursor: pointer;
  text-align: center;
  margin-top: 0.5rem;
  user-select: text;
  border: none;
  background: none;
  box-shadow: none;
  outline: none;
  padding: 0.3em 1em;
  border-radius: 8px;
  display: inline-block;
  transition: color 0.2s;
}
.show-more-link:hover, .show-more-link:focus {
  color: #005a9e;
  outline: none;
}
.ticket-card h2 {
  margin-top: 0;
  color: #4a4e69;
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.ticket-card h3 {
  margin-bottom: 0.4em;
}
.ticket-card p, .ticket-card br {
  margin: 0.2em 0 0.4em 0;
}
.ticket-card li {
  margin-left: 1.2em;
  margin-bottom: 0.2em;
}
.ticket-card a {
  color: #22223b;
  text-decoration: underline;
}
.ticket-card b {
  color: #22223b;
  font-weight: bold;
}
.ticket-card i {
  color: #4a4e69;
}

/* Work Sample Ticket Cards */
.work-sample-tickets {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ticket-card {
  background: #f7f7fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(74, 78, 105, 0.08);
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
  font-size: 1rem;
  color: #22223b;
}
.ticket-card h2 {
  margin-top: 0;
  color: #4a4e69;
  font-size: 1.2rem;
}
.ticket-card li {
  margin-left: 1.2em;
}
  /* Holistic mobile modal centering and sizing */
  .modal-overlay {
    align-items: center !important;
    justify-content: center !important;
  }
  .modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    padding: 2rem 2rem 1.5rem 2rem;
    width: 100%;
    max-width: 400px;
    pointer-events: auto;
    position: relative;
    text-align: left;
    margin: 0 auto;
  }
  @media (max-width: 700px) {
  .modal-content {
    width: 95vw;
    max-width: 95vw;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    border-radius: 12px;
  }
}
.ticket-card b {
  color: #22223b;
  font-weight: bold;
}
.ticket-card i {
  color: #4a4e69;
}
.show-more-btn {
  background: #4a4e69;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  align-self: flex-start;
  transition: background 0.2s;
}
.show-more-btn:hover {
  background: #22223b;
}
.resume-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.resume-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 1.5rem 1.2rem;
  text-decoration: none;
  color: #22223b;
  /* width removed to allow grid to control card width */
  transition: box-shadow 0.2s, transform 0.2s;
}
.resume-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-4px) scale(1.04);
  color: #4a4e69;
}
.resume-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  color: #4a4e69;
  transition: color 0.2s;
}
.resume-card:hover .resume-icon {
  color: #22223b;
}

/* Contact Cards - mimic resume card style */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s;
}
.contact-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0077b6;
}

/* Contact Modal Styles - unified for all screen sizes */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34, 34, 59, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: auto;
}
  .modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    padding: 2rem 2rem 1.5rem 2rem;
    width: 100%;
    max-width: 400px;
    pointer-events: auto;
    position: relative;
    text-align: left;
    margin: 0 auto;
  }
  @media (max-width: 700px) {
  .modal-content {
    width: 95vw;
    max-width: 95vw;
    padding: 1.2rem 0.7rem 1rem 0.7rem;
    border-radius: 12px;
  }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #4a4e69;
  cursor: pointer;
}
.modal-content h3 {
  margin-top: 0;
  color: #4a4e69;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
#contact-form label {
  font-weight: 500;
  color: #22223b;
}
#contact-form input,
#contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 1rem;
  font-family: inherit;
  margin-top: 0.2rem;
}
#contact-form textarea {
  resize: vertical;
}
.modal-submit {
  background: #4a4e69;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s;
}
.modal-submit:hover {
  background: #22223b;
}

@media (max-width: 700px) {
  .resume-cards {
    grid-template-columns: 1fr;
  }
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-card {
    min-width: 0;
    max-width: 100%;
    padding: 1.5rem 1rem;
  }
}
/* Carousel wrapper for chevrons */
.carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.carousel-btn {
  background: #4a4e69;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}
.carousel-btn:hover {
  background: #22223b;
}
/* Carousel styles for endorsements */
.carousel {
  position: relative;
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}
.carousel-quote {
  display: none;
  background: #f2e9e4;
  border-left: 4px solid #4a4e69;
  padding: 2rem 1rem 1rem 1rem;
  margin: 0;
  border-radius: 8px;
  font-style: italic;
  font-size: 1.15rem;
  color: #22223b;
  height: 300px; /* Increased height to fit longest quote */
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.carousel-quote.active {
  display: block;
}
.carousel-author {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: #4a4e69;
  font-style: normal;
}
/* Carousel chevron buttons */
/* Carousel dot navigation */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d1d1;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: #4a4e69;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #f7f8fa;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.75;
}

header {
  background: linear-gradient(90deg, #22223b 0%, #4a4e69 100%);
  color: #fff;
  padding: 2rem 0 1rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .site-title {
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

main, section {
  max-width: 700px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  padding: 2rem;
}

h2 {
  color: #4a4e69;
  margin-top: 0;
}

section#resume ul li a {
  color: #4a4e69;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.2s;
}

section#resume ul li a:hover {
  color: #22223b;
}

blockquote {
  background: #f2e9e4;
  border-left: 4px solid #4a4e69;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  font-style: italic;
}

footer {
  text-align: center;
  color: #888;
  padding: 2rem 0 1rem 0;
  font-size: 0.95rem;
  border-top: 1px solid #ddd;
}

@media (max-width: 800px) {
  .main-nav > ul.nav-links {
    display: none !important;
  }
  }

/* Contact Cards - mimic resume card style */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}
.contact-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #222;
  transition: box-shadow 0.2s;
}
.contact-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0077b6;
}

@media (max-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
  nav {
    gap: 1rem;
  }
  header h1 {
    font-size: 2rem;
  }
/* Typography & Layout */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f7fa;
  color: #333;
  line-height: 1.75;
}

header, footer {
  background-color: #ffffff;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

h1 {
  font-size: 2rem;
  margin: 0;
  color: #222;
}

nav {
  margin-top: 0.5rem;
}

nav a {
  margin: 0 12px;
  color: #0078d4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #005a9e;
}

/* Section Styling */
section {
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  background-color: #ffffff;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

h2 {
  color: #005a9e;
  margin-top: 0;
}

/* Lists and Quotes */

ul {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.8rem;
}

blockquote {
  background-color: #f0f4f8;
  border-left: 4px solid #0078d4;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
}

blockquote footer {
  font-size: 0.9rem;
  color: #555;
}

/* Contact Links */
section#contact ul {
  list-style: none;
  padding: 0;
}

section#contact li {
  margin-bottom: 0.5rem !important;
}

/* Footer */
footer {
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #ddd;
}

.ticket-collapsed {
  max-height: 7em;
  overflow: hidden;
  position: relative;
  opacity: 0.7;
}
.ticket-fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5em;
  background: linear-gradient(to bottom, rgba(247,247,250,0), #f7f7fa 90%);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
}
/* Hide carousel chevrons on mobile and unify with nav tabs breakpoint */
@media (max-width: 800px) {
  .carousel-btn {
    display: none !important;
  }
  .carousel-wrapper {
    gap: 0;
  }
}
@media (max-width: 700px) {
  .carousel-quote {
    height: 430px !important;
    min-height: 320px;
    max-height: 430px;
    overflow-y: auto;
  }
}

/* Mobile font size and font family for site title */
@media (max-width: 700px) {
header {
    text-align: center;
}
.site-title {
    font-size: 1.5rem !important;
    font-family: 'Inter', Arial, sans-serif !important;
    margin: 0 auto;
    width: auto;
    display: block;
    text-align: center;
}
}