/* self-hosted fonts, no external requests */
@font-face {
  font-family: "Manrope";
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/manrope.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/spacegrotesk.woff2") format("woff2");
}

:root {
  --cream: #fff8ee;
  --white: #ffffff;
  --charcoal: #2f2f38;
  --ink-soft: #6b6779;
  --border: #e9e6f5;

  --lavender: #bfa7f7;
  --lilac: #dccbff;
  --mint: #beefe3;
  --aqua: #bfeff5;
  --blush: #f8c7d8;
  --peach: #ffd9c8;
  --butter: #fbe7a5;

  --lavender-ink: #5b3fa0;
  --mint-ink: #1f6e5c;
  --aqua-ink: #1b6b79;
  --blush-ink: #9c3e5c;
  --peach-ink: #a15226;
  --butter-ink: #8a6b12;

  --grad-lav-mint: linear-gradient(135deg, var(--lavender), var(--mint));
  --grad-peach-pink: linear-gradient(135deg, var(--peach), var(--blush));
  --grad-aqua-lav: linear-gradient(135deg, var(--aqua), var(--lavender));
  --grad-butter-cream: linear-gradient(135deg, var(--butter), var(--cream));

  --font-display: "Space Grotesk", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Manrope", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --transition: 0.2s ease;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* dark theme just remaps the same tokens, components don't need to know */
[data-bs-theme="dark"] {
  --cream: #201c2e;
  --white: #2a2438;
  --charcoal: #f3f0fa;
  --ink-soft: #b6afcb;
  --border: #3e3652;

  --lavender: #b79cfa;
  --lilac: #c7adff;
  --mint: #8fe0c9;
  --aqua: #8fdcea;
  --blush: #f2a9c4;
  --peach: #ffc09e;
  --butter: #f3d876;

  --lavender-ink: #e4d9ff;
  --mint-ink: #dffbf1;
  --aqua-ink: #dff8fc;
  --blush-ink: #fce2eb;
  --peach-ink: #ffe7d6;
  --butter-ink: #fcf0c4;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

::selection {
  background: var(--lilac);
  color: var(--lavender-ink);
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender-ink);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head p {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0.6rem 0 0;
}

.content-section {
  padding: 4.5rem 0;
  scroll-margin-top: 5.5rem;
}

/* Nav sits in its own wrapper so it can go sticky without dragging the
   hero content up with it (negative margin gets the spacing back) */
.nav-shell {
  position: sticky;
  top: 1rem;
  z-index: 40;
  padding: 0 1rem;
  margin-bottom: -4rem;
}

.site-nav {
  max-width: 68rem;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background-color: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(47, 47, 56, 0.06);
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
}

.site-nav .navbar-collapse {
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .site-nav {
    border-radius: 999px;
  }

  .site-nav .navbar-collapse {
    margin-top: 0;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--charcoal);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-lav-mint);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #2a1f45;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.site-nav .nav-link {
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: background var(--transition), color var(--transition);
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  background-color: var(--lilac);
  color: var(--lavender-ink);
}

.theme-toggle-btn {
  border: 1px solid var(--border);
  color: var(--charcoal);
  border-radius: 999px;
  background-color: var(--white);
}

.theme-toggle-btn:hover {
  border-color: var(--lavender);
}

@media (min-width: 992px) {
  .site-nav .navbar-nav {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
}

/* buttons */

.btn-gradient {
  background: var(--grad-lav-mint);
  color: #2a1f45;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(191, 167, 247, 0.4);
  color: #2a1f45;
}

.btn-outline-theme {
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--charcoal);
  border-radius: 999px;
  font-weight: 700;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn-outline-theme:hover {
  transform: translateY(-2px);
  border-color: var(--lavender);
  box-shadow: 0 10px 20px rgba(47, 47, 56, 0.06);
  color: var(--charcoal);
}

/* ---- hero ---- */

.hero {
  position: relative;
  padding: 9rem 0 4rem;
  overflow: hidden;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lavender-ink);
  margin-bottom: 1.5rem;
}

.eyebrow-pill .swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-peach-pink);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  margin-bottom: 1.1rem;
}

.hero-underline {
  position: relative;
  white-space: nowrap;
}

.hero-underline svg {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.3em;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-meta strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.hero-meta span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-art {
  position: relative;
  height: 24rem;
}

.hero-blob {
  position: absolute;
  inset: 8% 4%;
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  background: var(--grad-aqua-lav);
  opacity: 0.55;
  animation: blobmove 14s ease-in-out infinite;
}

@keyframes blobmove {
  0%, 100% { border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%; }
  50% { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
}

.hero-browser {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88%;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(47, 47, 56, 0.22);
  overflow: hidden;
}

.hero-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.hero-browser__chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.hero-browser__chrome i:nth-child(1) { background-color: var(--blush); }
.hero-browser__chrome i:nth-child(2) { background-color: var(--butter); }
.hero-browser__chrome i:nth-child(3) { background-color: var(--mint); }

.hero-browser__body {
  padding: 1.1rem 1.1rem 1.3rem;
}

.hero-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 5.5rem;
  margin-bottom: 0.9rem;
}

.hero-bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  display: block;
}

.hero-bars i:nth-child(1) { height: 55%; background-color: var(--lilac); }
.hero-bars i:nth-child(2) { height: 85%; background-color: var(--lavender); }
.hero-bars i:nth-child(3) { height: 40%; background-color: var(--mint); }
.hero-bars i:nth-child(4) { height: 70%; background-color: var(--aqua); }
.hero-bars i:nth-child(5) { height: 30%; background-color: var(--peach); }

.hero-lines span {
  display: block;
  height: 8px;
  border-radius: 5px;
  background-color: var(--border);
  margin-bottom: 0.5rem;
}

.hero-lines span:nth-child(1) { width: 70%; }
.hero-lines span:nth-child(2) { width: 45%; margin-bottom: 0; }

.deco {
  position: absolute;
  z-index: 1;
}

.deco-float {
  animation: floaty 6s ease-in-out infinite;
}

.deco-ring {
  width: 54px;
  height: 54px;
  top: 2%;
  left: 4%;
}

.deco-dot-1 {
  width: 14px;
  height: 14px;
  top: 12%;
  right: 6%;
  background-color: var(--blush);
  border-radius: 50%;
}

.deco-triangle {
  top: 82%;
  left: 0;
}

.deco-squiggle {
  bottom: 6%;
  right: 2%;
}

.deco-dot-2 {
  width: 10px;
  height: 10px;
  bottom: 32%;
  left: -2%;
  background-color: var(--butter);
  border-radius: 50%;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .deco-float {
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .hero-art {
    height: 18rem;
    margin-top: 2rem;
  }
}

/* About bio card. Same card/rounded-circle/badge combo as the Bootstrap
   docs example, just restyled with a thin border instead of a shadow. */
.profile-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--lavender);
  box-shadow: 0 20px 40px -18px rgba(47, 47, 56, 0.16);
}

.profile-card__avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 4px solid var(--lilac);
}

/* feature / highlight cards */
.feature-card {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 20px 40px -18px rgba(47, 47, 56, 0.16);
}

.feature-card__corner {
  position: absolute;
  top: -30%;
  right: -30%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

.feature-card__corner--lav-mint { background: var(--grad-lav-mint); }
.feature-card__corner--peach-pink { background: var(--grad-peach-pink); }
.feature-card__corner--aqua-lav { background: var(--grad-aqua-lav); }

.feature-card__icon--lilac { background-color: var(--lilac); }
.feature-card__icon--peach { background-color: var(--peach); }
.feature-card__icon--aqua { background-color: var(--aqua); }

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Services grid, tiles are illustrated jpgs so the card just frames them */
.service-tile {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-tile:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 20px 40px -18px rgba(47, 47, 56, 0.16);
}

.service-tile img {
  display: block;
  width: 100%;
  height: auto;
}

.service-tile figcaption {
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
}

/* visible on screen readers only, matches Bootstrap's .visually-hidden */
.figcaption-credit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* accordion (Experience) */
.accordion-item {
  background-color: var(--white);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.accordion-button {
  font-family: var(--font-body);
  font-weight: 700;
  background-color: var(--white);
  color: var(--charcoal);
}

.accordion-button:not(.collapsed) {
  background-color: var(--lilac);
  color: var(--lavender-ink);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px var(--lilac);
}

/* Bootstrap's default caret is a dark PNG-style filter; drop it so the
   caret picks up the button's own text color instead */
.accordion-button::after {
  filter: none;
}

.skill-group-label {
  color: var(--ink-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.chip {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: transform var(--transition);
}

.chip:hover {
  transform: translateY(-2px);
}

.chip-lilac { background-color: var(--lilac); color: var(--lavender-ink); }
.chip-mint { background-color: var(--mint); color: var(--mint-ink); }
.chip-aqua { background-color: var(--aqua); color: var(--aqua-ink); }
.chip-blush { background-color: var(--blush); color: var(--blush-ink); }
.chip-peach { background-color: var(--peach); color: var(--peach-ink); }
.chip-butter { background-color: var(--butter); color: var(--butter-ink); }

.project-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--lavender);
  box-shadow: 0 20px 40px -18px rgba(47, 47, 56, 0.16);
}

.project-card img {
  border-bottom: 1px solid var(--border);
}

/* real company logo, shown centered/contained instead of stretched
   edge to edge like the placeholder thumbnails */
.project-thumb-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 400 / 240;
  background-color: var(--cream);
  border-bottom: 1px solid var(--border);
}

.project-thumb-logo img {
  width: auto;
  max-width: 45%;
  max-height: 65%;
  border-bottom: none;
}

.filter-bar .btn {
  border: 1px solid var(--border);
  color: var(--charcoal);
  border-radius: 999px;
  font-weight: 600;
  background-color: var(--white);
}

.filter-bar .btn.active,
.filter-bar .btn:hover {
  background-color: var(--lilac);
  color: var(--lavender-ink);
  border-color: var(--lilac);
}

/* Tableau's own web component handles its internal styling, this is
   just the card frame around it */
.tableau-embed {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow-x: auto;
}

.tableau-embed figcaption {
  color: var(--ink-soft);
}

.contact-form {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form .form-control {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--cream);
  color: var(--charcoal);
}

.contact-form .form-control:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px var(--lilac);
  background-color: var(--white);
}

/* Email/phone warn on their own, no JS: :not(:placeholder-shown) skips
   empty fields, :not(:focus) waits until the user has left the field */
#contactEmail:not(:placeholder-shown):not(:focus):invalid,
#contactPhone:not(:placeholder-shown):not(:focus):invalid {
  border-color: var(--blush-ink);
}

#contactEmail:not(:placeholder-shown):not(:focus):invalid ~ .invalid-feedback,
#contactPhone:not(:placeholder-shown):not(:focus):invalid ~ .invalid-feedback {
  display: block;
}

#contactEmail:not(:placeholder-shown):valid,
#contactPhone:not(:placeholder-shown):valid {
  border-color: var(--mint-ink);
}

.contact-form .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--cream);
  color: var(--charcoal);
}

.contact-form .form-select:focus {
  border-color: var(--lavender);
  box-shadow: 0 0 0 3px var(--lilac);
  background-color: var(--white);
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.contact-form legend {
  float: none;
  width: auto;
}

.contact-form .form-check-input {
  accent-color: var(--lavender);
}

.contact-form .required-tag {
  color: var(--blush-ink);
}

.contact-form .optional-tag,
.contact-form .form-hint {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 0.82rem;
}

.site-footer-inline {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.75rem;
  color: var(--ink-soft);
}

.social-links .btn {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--charcoal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}

.social-links .btn:hover {
  background-color: var(--lilac);
  border-color: var(--lavender);
  color: var(--lavender-ink);
}
