/* Custom styles: career highlights, collapsible bootcamp portfolio, find-me section */

/* ---- Career Highlights ---- */
#highlights {
  background: white;
}

#highlights .section-intro {
  max-width: 700px;
  margin: 15px auto 40px;
  text-align: center;
  color: #777;
  font-style: italic;
}

.highlight-row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.highlight-row > div {
  display: -webkit-flex;
  display: flex;
}

.highlight-card {
  -webkit-flex: 1;
  flex: 1;
  background: #fdfdfd;
  border: 1px solid #eeeeee;
  border-top: 4px solid #F0544F;
  border-radius: 6px;
  padding: 25px 20px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(44, 62, 80, 0.08);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(44, 62, 80, 0.15);
}

.highlight-card h3 {
  margin-top: 0;
  font-size: 1.4em;
  color: #2C3E50;
}

.highlight-card .highlight-icon {
  font-size: 2.2em;
  color: #F0544F;
  margin-bottom: 10px;
}

.highlight-card p {
  text-align: left;
  margin-left: 0;
  color: #444;
}

/* ---- Collapsible bootcamp portfolio ---- */
#portfolio {
  padding: 60px 0;
  background: #f4f6f7;
  text-align: center;
}

#portfolio p {
  text-align: left;
}

#portfolio .portfolio-note {
  text-align: center;
}

.section-toggle {
  display: inline-block;
  background: transparent;
  color: #2C3E50;
  border: 2px solid #2C3E50;
  border-radius: 4px;
  padding: 12px 25px;
  font-size: 1.2em;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.section-toggle:hover,
.section-toggle:focus {
  background: #2C3E50;
  color: white;
  text-decoration: none;
}

.section-toggle .fa-chevron-down {
  transition: transform 0.3s ease-in-out;
  margin-left: 8px;
}

.section-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.portfolio-note {
  color: #777;
  font-style: italic;
  margin-top: 15px;
}

/* ---- Find Me on the Web ---- */
#find-me {
  background: #2C3E50;
  color: white;
  text-align: center;
  padding: 80px 0;
}

#find-me h2 {
  color: white;
}

#find-me .find-me-tagline {
  font-size: 1.3em;
  margin: 20px auto 40px;
}

#find-me .btn-social-lg {
  display: inline-block;
  height: 90px;
  width: 90px;
  border: 3px solid white;
  border-radius: 100%;
  text-align: center;
  font-size: 40px;
  line-height: 84px;
  color: white;
  margin: 0 15px;
  transition: all 0.3s ease-in-out;
}

#find-me .btn-social-lg:hover,
#find-me .btn-social-lg:focus {
  background: #F0544F;
  border-color: #F0544F;
  color: white;
  text-decoration: none;
}

#find-me .social-label {
  display: block;
  margin-top: 12px;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
}

#find-me .social-item {
  display: inline-block;
  margin: 0 20px 30px;
  vertical-align: top;
}

@media (max-width: 500px) {
  #find-me .social-item {
    display: block;
    margin: 0 0 30px;
  }
}

/* ---- Shorter highlight list ---- */
.also-shipped {
  max-width: 800px;
  margin: 20px auto 0;
  text-align: left;
  list-style: none;
  padding-left: 0;
}

.also-shipped li {
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid #eeeeee;
  position: relative;
  color: #444;
}

.also-shipped li:last-child {
  border-bottom: none;
}

.also-shipped li:before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 12px;
  color: #F0544F;
}

.also-shipped-heading {
  text-align: center;
  margin-top: 50px;
  font-size: 1.5em;
  color: #2C3E50;
}

/* ---- Infinitely scrollable tech-stack row ---- */
/* Overrides .split (justify-content + overflow-x:scroll) on this element only.
   The row scrolls horizontally by drag, trackpad, or arrow keys, and JS wraps
   the scroll position so there is never a left or right edge to hit. */
.infiniteRow {
  display: block;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1em;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  cursor: -webkit-grab;
  cursor: grab;
  /* fade the icons out at both edges so they don't hard-clip */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  /* hide the scrollbar - the wrapping makes its thumb meaningless */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.infiniteRow::-webkit-scrollbar {
  display: none;
}

.infiniteRow.is-dragging {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.infiniteRow:focus {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
}

.infiniteRow-track {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  width: -webkit-max-content;
  width: max-content;
}

.infiniteRow-group {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

/* Don't let a drag turn into an image/text selection */
.infiniteRow.is-dragging .infiniteRow-track {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* The tech-stack rows aren't wrapped in a .container, so Bootstrap's -15px
   .row margins push 15px past the viewport. Neutralize them here. */
#about > div > .row {
  margin-left: 0;
  margin-right: 0;
}

/* ---- Hover-revealed scroll arrows (replaces the old top nav) ---- */
/* Invisible until hovered/focused. JS adds .is-available when the direction
   the arrow points still has somewhere to go, and .over-dark when the arrow
   is currently sitting over one of the navy sections. */
.scroll-arrow {
  position: fixed;
  right: 20px;
  z-index: 1050;
  display: none;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 10px;
  background: #2C3E50;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s ease-in-out, background-color 0.25s ease-in-out;
}

.scroll-arrow.is-available {
  display: -webkit-flex;
  display: flex;
}

.scroll-arrow:hover,
.scroll-arrow:focus {
  opacity: 1;
  outline: none;
}

/* Keyboard users get a visible ring; mouse hover doesn't need one. */
.scroll-arrow:focus-visible {
  opacity: 1;
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* Sitting over a navy section - switch to coral so it stays legible. */
.scroll-arrow.over-dark {
  background: #F0544F;
}

.scroll-arrow-up {
  top: 20px;
}

.scroll-arrow-down {
  bottom: 20px;
}

/* Touch devices have no hover, so a hover-only control would be unreachable. */
@media (hover: none) {
  .scroll-arrow.is-available {
    opacity: 1;
  }
}

/* The header's top padding existed to clear the fixed nav, which is gone. */
header .container {
  padding-top: 60px;
}

@media (min-width: 769px) {
  header .container {
    padding-top: 80px;
  }
}
