/* Custom stylesheet layered on top of scott-dubois.webflow.css.
   Handles pure-CSS entrance animations (previously done by Webflow's JS runtime),
   modernized section backgrounds, and small hover polish on cards + buttons. */

/* ---------- Modernized backgrounds ---------- */
/* The original theme used a flat pale mint (#effffd) on the hero, subpage
   headers, and footer. Replace it with a soft diagonal blue-to-green wash. */
.hero-wrap,
.header-wrapper,
.footer {
  background-color: #eaf4fb; /* solid fallback for old browsers */
  background-image: linear-gradient(135deg, #e4f1fc 0%, #e9f7f0 55%, #e7f6ec 100%);
}

/* Slightly rounded corners on the blue header + footer panels. */
.hero-wrap,
.header-wrapper,
.footer {
  border-radius: 5px;
}

/* The footer sat flush to the bottom edge; add a bottom margin matching the
   24px sides so its rounded corners have room to show. */
.footer {
  margin-bottom: 24px;
}

/* Buttons: clean rounded solid — drop the retro offset outline ring so the
   button reads as a single soft rectangle (hover elevation added below). */
.button,
.button-border {
  border-radius: 5px;
}
.button {
  box-shadow: none;
}
.button-border {
  box-shadow: none;
  transform: none;
}

/* ---------- Smooth scrolling + scroll cue ---------- */
/* Animate in-page anchor jumps (e.g. "work" and "view my work" → #Portfolio). */
html {
  scroll-behavior: smooth;
}

/* Bouncing down-chevron scroll cue, replacing the old vertical "scroll" text. */
.scroll-indicator {
  position: absolute;
  right: 0;
  bottom: 80px;
  display: inline-block;
  padding: 10px 12px;
  line-height: 0;
}
.scroll-chevron {
  display: block;
  width: 20px;
  height: 20px;
  border-right: 2px solid #1a1a1a;
  border-bottom: 2px solid #1a1a1a;
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(10px) rotate(45deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-chevron {
    animation: none;
  }
}

/* ---------- Résumé layout (About page) ---------- */
/* Compact the tall subpage header for the résumé's name + contact block. */
.resume-hero {
  padding-top: 90px;
  /* Room for the .screen-image hero (top: -300px) to overlap below the
     contact line + résumé button instead of covering them. */
  padding-bottom: 300px;
}
.resume {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 20px;
  font-family: Lato, sans-serif;
  color: #21303f;
}
.resume-contact {
  margin-top: 10px;
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 17px;
  color: #21303f;
}
.resume-contact a {
  color: inherit;
}
.resume-actions {
  margin-top: 26px;
}
.resume-section {
  margin-top: 46px;
}
.resume-section__title {
  margin: 0 0 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(33, 48, 63, 0.15);
  font-family: bigmoore, serif;
  font-size: 30px;
  font-weight: 400;
}
.resume p {
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 12px;
}
.resume-job {
  margin-bottom: 30px;
}
.resume-job__title {
  margin: 0;
  font-family: Muli, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.resume-job__title a {
  color: inherit;
}
.resume-job__meta {
  margin: 3px 0 12px;
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #6a7683;
}
.resume ul {
  margin: 0;
  padding-left: 20px;
}
.resume li {
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 5px;
}
.resume-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 44px;
}
@media (max-width: 767px) {
  .resume-skills {
    grid-template-columns: 1fr;
  }
}
.resume-skill__cat {
  margin: 0 0 10px;
  font-family: Muli, sans-serif;
  font-size: 16px;
  font-weight: 700;
}
.resume-edu__school {
  margin: 0;
  font-family: Muli, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

/* ---------- Photography gallery (unlisted /photography page) ---------- */
/* Masonry via CSS multi-column so portrait + landscape frames pack naturally. */
.photo-gallery {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 10px;
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 900px) {
  .photo-gallery {
    column-count: 2;
  }
}
@media (max-width: 560px) {
  .photo-gallery {
    column-count: 1;
  }
}
.photo-gallery img {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  break-inside: avoid;
}
.photo-intro {
  max-width: 720px;
  margin: 0 auto 34px;
  padding: 0 24px;
  text-align: center;
}
/* Region sections, mirroring the grouped layout on faunatravel.com/portfolio:
   a serif heading + one muted intro line, then that region's frames. */
.photo-section {
  max-width: 1120px;
  margin: 54px auto 20px;
  padding: 0 24px;
}
.photo-section__title {
  margin: 0 0 8px;
  font-family: bigmoore, serif;
  font-size: 30px;
  font-weight: 400;
  color: #21303f;
}
.photo-section__intro {
  max-width: 640px;
  margin: 0;
  font-family: Lato, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: #4a5866;
}

/* ---------- Article thumbnail cards ---------- */
/* Used for the Texas Highways stories on the Travel Content page. */
.article-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 12px 0;
}
@media (max-width: 767px) {
  .article-cards {
    grid-template-columns: 1fr;
  }
}
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.article-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition:
    transform 300ms ease,
    box-shadow 300ms ease;
}
.article-card:hover .article-card__thumb {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}
.article-card__title {
  margin: 14px 0 4px;
  font-family: Muli, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
}
.article-card__date {
  font-family: Muli, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #8a8a8a;
}

/* ---------- Entrance animations ---------- */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes highlightGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* Homepage hero: staggered fade + slide up. */
.hero .headline-wrap,
.hero .hero-paragraph,
.hero .button-wrapper {
  opacity: 0;
  animation: fadeInUp 700ms cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}
.hero .headline-wrap {
  animation-delay: 0ms;
}
.hero .hero-paragraph {
  animation-delay: 250ms;
}
.hero .button-wrapper {
  animation-delay: 450ms;
}

/* Yellow highlight bars behind hero words: scale in from the left.
   animation-fill-mode: both keeps the element at scaleX(0) during the delay,
   otherwise it flashes at full width before the animation starts.
   Softened to 85% opacity (15% transparent) from the original solid #ffe872. */
.highlight {
  background-color: rgba(255, 232, 114, 0.85);
  transform-origin: left center;
  animation: highlightGrow 550ms ease-out both;
}

/* Top nav links use regular weight (body yellow-links stay bold). */
.navbar .nav-link {
  font-weight: 400;
}

/* Yellow highlighter underline on nav + inline links, also at 85% opacity. */
.yellow-link,
.nav-link.yellow-link,
.yellow-link.test {
  box-shadow: inset 0 -10px 0 0 rgba(255, 232, 114, 0.85);
}
.yellow-link:hover {
  box-shadow: inset 0 -22px 0 0 rgba(255, 232, 114, 0.85);
}
.yellow-link.test:hover {
  box-shadow: inset 0 -28px 0 0 rgba(255, 232, 114, 0.85);
}
.hero .highlight-box:nth-of-type(1) .highlight {
  animation-delay: 550ms;
}
.hero .highlight-box:nth-of-type(2) .highlight {
  animation-delay: 750ms;
}
.hero .highlight-box:nth-of-type(3) .highlight {
  animation-delay: 950ms;
}

/* Subpage header text + hero image: soft fade in on load. */
.top-container {
  opacity: 0;
  animation: fadeInUp 700ms cubic-bezier(0.2, 0.9, 0.3, 1) 100ms forwards;
}
.screen-image {
  opacity: 0;
  animation: fadeInUp 900ms cubic-bezier(0.2, 0.9, 0.3, 1) 300ms forwards;
}

/* Respect users who prefer reduced motion — skip everything, render final state. */
@media (prefers-reduced-motion: reduce) {
  .hero .headline-wrap,
  .hero .hero-paragraph,
  .hero .button-wrapper,
  .top-container,
  .screen-image,
  .highlight {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- Hover polish ---------- */

.button,
.mockup-column,
.mockup-arrow,
.mockup-hover-text,
.nav-link {
  transition:
    transform 200ms ease,
    color 200ms ease,
    opacity 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}

/* Hover: transition the button to the brand yellow, text flips dark. No movement.
   To revert to the neutral soft-shadow treatment, swap the three color lines for:
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); */
.button:hover {
  background-color: #ffe872;
  border-color: #ffe872;
  color: #1a1a1a;
}

/* Slide the "See this project" text and arrow on card hover. */
.mockup-hover-text {
  opacity: 0;
  transform: translateX(-8px);
}
.mockup-arrow {
  transform: translateX(-32px);
}
.mockup-column:hover .mockup-hover-text {
  opacity: 1;
  transform: translateX(0);
}
.mockup-column:hover .mockup-arrow {
  transform: translateX(0);
}

/* Subtle lift on the mockup thumbnail itself. */
.mockup-img {
  transition: transform 300ms ease;
}
.mockup-column:hover .mockup-img {
  transform: translateY(-4px);
}

/* Hide the dot-pattern flourish; let the thumbnails stand on their own. */
.dots {
  display: none;
}

/* Hover overlay: regular-weight label, and a right-caret chevron (matching the
   scroll cue) in place of the forward-arrow image. */
.mockup-hover-text {
  font-weight: 400;
}
.mockup-arrow {
  display: none;
}
.mockup-arrow-wrapper {
  overflow: visible;
}
.mockup-arrow-wrapper::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #b7b4b9;
  border-right: 2px solid #b7b4b9;
  opacity: 0;
  transform: translateX(-8px) rotate(45deg);
  transition:
    transform 200ms ease,
    opacity 200ms ease;
}
.mockup-column:hover .mockup-arrow-wrapper::after {
  opacity: 1;
  transform: translateX(0) rotate(45deg);
}

/* ---------- Uniform photo treatment ---------- */
/* Consistent rounding + soft shadow across all loose content photos, so every
   image on the site matches. (.image-8 is intentionally excluded — those sit
   inside the .ipad device frames, which have their own styling. Line-drawing
   illustrations and icons are untouched.) The Texas Highways article thumbnails
   (.article-card__thumb) already use these exact values. */
.mockup-img,
.screen-image,
.image-4,
.image-7,
.image-9,
.image-10,
.image-11,
.image-12,
.image-13,
.image-14 {
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
