/*

Template 2097 Pop

https://www.tooplate.com/view/2097-pop

*/

:root {
  --color-bg: #101719;
  --color-surface: #1a2225;
  --color-surface-raised: #202a2d;

  --color-text: #f4f6f7;
  --color-text-muted: #c9d0d3;

  --color-accent: #68b3bc;
  --color-accent-hover: #83c5cc;
  --color-accent-soft: rgba(104, 179, 188, 0.14);
  --color-border: rgba(104, 179, 188, 0.45);
  --color-border-subtle: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-panel: 0 16px 48px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.22);

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  --content-max: 960px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  position: relative;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  max-width: 72ch;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent-hover);
  text-decoration-color: rgba(131, 197, 204, 0.55);
  text-underline-offset: 0.18em;
  transition: color 180ms ease, text-decoration-color 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

a:hover,
a:focus {
  color: #a1d8dd;
  text-decoration-color: currentColor;
}

a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

#logo {
  position: fixed;
  padding-top: var(--space-2);
  padding-left: var(--space-2);
  z-index: 20;
}

#logo img {
  width: 100%;
  max-width: 185px;
}

#tm-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  background-image: url(../img/bg-6.webp);
  background-position: center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  transition: transform 220ms ease;
}

#tm-bg:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
}

#tm-wrap {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}

.tm-main-content {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--space-6) var(--space-3) var(--space-5);
  position: relative;
  overflow-y: auto;
}

.tm-site-header-container {
  width: 100%;
}

.tm-site-header-col {
  display: flex;
  align-items: center;
}

.tm-site-header {
  margin: var(--space-2);
  text-align: right;
  width: 100%;
  color: var(--color-text);
}

.tm-site-header p {
  margin-left: auto;
  color: var(--color-text-muted);
}

.tm-nav ul {
  padding-left: 0;
  display: block;
}

.tm-nav li {
  list-style: none;
  display: inline-block;
  float: left;
  margin: var(--space-2);
}

.tm-nav-link {
  color: var(--color-text);
  background: rgba(16, 23, 25, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 160px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  padding: var(--space-4);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tm-nav-link-opcity {
  background: rgba(32, 42, 45, 0.7);
}

.tm-nav-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--space-2);
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fa-3x {
  font-size: 2.3em;
}

.product {
  background: transparent;
  transition: transform 180ms ease;
}

.product:hover .tm-nav-link,
.product:focus-within .tm-nav-link,
.product.product--focus .tm-nav-link {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.tm-nav-icon,
.tm-nav-ico,
.material-icons.md-48 {
  display: block;
  margin-bottom: calc(var(--space-4) + var(--space-1));
}

.tm-nav-link .tm-nav-icon,
.tm-nav-link .tm-nav-ico {
  color: var(--color-text);
}

.tm-page-title {
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.tm-page-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.content {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.grid__item {
  margin: 0;
  min-width: 0;
}

.product {
  position: relative;
  cursor: pointer;
}

.product__bg {
  width: 100%;
  height: 100%;
  top: 0;
}

.product__bg,
.product__description {
  opacity: 0;
  position: absolute;
}

.product__description {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: none;
}

.tm-fa-close {
  font-size: 1.2rem;
}

.details {
  font-size: 1rem;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 1000;
  display: none;
  position: fixed;
  pointer-events: none;
  padding: var(--space-3);
}

.details > * {
  position: relative;
}

.details--open {
  pointer-events: auto;
}

.details__bg {
  width: min(var(--content-max), calc(100% - 24px));
  max-height: calc(100svh - 24px);
  overflow-y: auto;
  margin: 12px auto;
  left: 0;
  right: 0;
}

.details__bg--down {
  background: rgba(26, 34, 37, 0.96);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
}

.details__bg {
  padding: var(--space-5);
  transform-origin: 0 0;
}

.details__description {
  width: 100%;
  color: var(--color-text);
}

.details__description .row {
  margin-bottom: var(--space-5);
}

.details__description .row:last-child {
  margin-bottom: 0;
}

.details__description p,
.details__description li,
.details__description span {
  color: var(--color-text-muted);
}

.details__description img {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--color-border-subtle);
}

.details__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border-subtle);
  border-radius: 999px;
  background: rgba(16, 23, 25, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text);
  z-index: 1001;
}

.details__close:hover,
.details__close:focus-visible {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-hover);
  color: var(--color-accent-hover);
}

.tm-reverse-sm {
  flex-direction: row;
}

.about-content,
.resume-content,
.portfolio-content,
.contact-content {
  display: grid;
  gap: var(--space-5);
}

.about-content .intro-copy,
.resume-content .intro-copy {
  margin-bottom: 0;
}

.about-content .about-section,
.resume-content .resume-section {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-subtle);
}

.about-content .about-section::after {
  content: "";
  display: block;
  clear: both;
}

.about-profile-photo {
  width: min(48%, 300px) !important;
  float: left;
  margin: 0 var(--space-4) var(--space-3) 0;
  border-radius: 12px;
}

.resume-section p,
.resume-section ul {
  margin-bottom: var(--space-4);
}

.resume-list {
  margin: 0;
  padding-left: 1.2rem;
}

.resume-list li {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}

.tm-headshot-wrap {
  align-self: start;
}

.tm-headshot-wrap img {
  border-radius: 12px;
}

.tm-img-container {
  padding: 0;
}

.tm-img-slider {
  display: grid;
  gap: var(--space-3);
}

.tm-slider-txt-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.tm-slider-txt-link:focus-visible {
  border-radius: var(--radius-md);
}

.project-card {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
}

.project-card h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  color: var(--color-text);
  font-weight: 600;
}

.project-card p {
  margin: 0;
  font-style: italic;
}

.slick-dots li button:before {
  font-size: 16px;
  color: var(--color-text);
  opacity: 0.9;
}

.slick-dots {
  position: absolute;
  bottom: -36px;
  display: block;
  width: 100%;
  padding: 0;
  list-style: none;
  text-align: center;
}

.slick-dots li.slick-active button:before {
  opacity: 1;
  color: var(--color-accent-hover);
}

.contact-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: baseline;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.contact-label {
  color: var(--color-text);
  font-weight: 600;
  min-width: 70px;
}

.contact-form {
  margin-top: var(--space-2);
}

.contact-content .tm-page-title {
  margin-top: 0;
  margin-bottom: var(--space-2);
}

.contact-content p {
  margin-bottom: var(--space-1);
}

.tm-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  margin-top: var(--space-3);
  min-height: 1.6em;
  font-size: 0.95rem;
}

.turnstile-field {
  margin-bottom: var(--space-2);
}

.js-turnstile {
  min-height: 65px;
}

.contact-form-status.is-success {
  color: #9fdcc8;
}

.contact-form-status.is-error {
  color: #f7c0c0;
}

.form-control {
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface-raised);
  color: var(--color-text);
  padding: 0.75rem;
}

.form-control:focus {
  color: var(--color-text);
  background-color: var(--color-surface-raised);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(104, 179, 188, 0.2);
}

.tm-col-email {
  padding-left: 8px;
}

@media (min-width: 768px) {
  .details__description .contact-form > .row:first-child {
    display: flex;
    gap: 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .details__description .contact-form > .row:first-child > .form-group {
    flex: 1 1 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .details__description .contact-form > .row:first-child > .form-group:first-child {
    padding-right: 0;
  }

  .details__description .contact-form > .row:first-child > .tm-col-email {
    padding-left: 0;
  }
}

.tm-btn-submit {
  background-color: var(--color-accent);
}

.tm-btn-gray {
  background-color: var(--color-surface-raised);
  color: var(--color-text);
}

.tm-btn-gray:hover {
  background-color: #2d373a;
  color: var(--color-text);
}

.btn {
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  border-radius: 8px;
}

.btn-primary {
  border-color: transparent;
}

.btn-primary:hover {
  background-color: #7cc0c8;
  border-color: transparent;
}

footer {
  position: absolute;
  bottom: var(--space-4);
  text-align: center;
  left: 0;
  right: 0;
}

.tm-text-highlight {
  color: var(--color-text);
}

.tm-text-highlight:hover {
  color: var(--color-accent-hover);
}

.tm-main-content.tm-footer-relative {
  flex-direction: column;
}

.tm-main-content.tm-footer-relative footer {
  position: relative;
  bottom: 0;
  margin-top: var(--space-5);
}

.tm-copyright-text {
  display: inline;
  color: var(--color-text-muted);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .container {
    max-width: 1080px;
  }

  .details__description .row {
    margin-left: 0;
    margin-right: 0;
  }

  .details__description .col-sm-12,
  .details__description .col-md-6,
  .details__description .col-md-8,
  .details__description .col-md-4,
  .details__description .col-lg-6,
  .details__description .col-lg-8,
  .details__description .col-lg-4,
  .details__description .col-xl-6,
  .details__description .col-xl-8,
  .details__description .col-xl-4 {
    padding-left: 0;
    padding-right: 0;
  }

  .details__description .about-content,
  .details__description .resume-content,
  .details__description .portfolio-content,
  .details__description .contact-content {
    max-width: 72ch;
  }
}

@media (min-width: 767px) and (max-width: 991px) {
  .tm-nav-link {
    min-height: 150px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.68;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.25rem);
  }

  .container {
    max-width: 540px;
  }

  #tm-wrap {
    align-items: flex-start;
  }

  .tm-main-content {
    display: block;
    align-items: flex-start;
    padding-top: calc(var(--space-6) + 36px);
    padding-bottom: var(--space-4);
  }

  .tm-site-header {
    text-align: left;
    margin-top: var(--space-4);
  }

  .tm-site-header p {
    margin-left: 0;
  }

  .content {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .grid {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .tm-col-email {
    padding-left: 15px;
  }

  .tm-reverse-sm {
    flex-direction: column-reverse;
  }

  #logo img {
    width: 65%;
    max-width: 155px;
  }

  .details {
    padding: 12px;
  }

  .details__bg {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: var(--space-4);
  }

  .details__close {
    position: sticky;
    top: var(--space-2);
    right: auto;
    margin-left: auto;
    margin-bottom: var(--space-3);
  }

  .details__description .row {
    margin-bottom: var(--space-4);
  }

  .about-profile-photo {
    width: 100% !important;
    float: none;
    display: block;
    margin: 0 0 var(--space-3) 0;
  }

  .tm-headshot-wrap {
    order: -1;
  }

  footer {
    position: relative;
    bottom: 0;
    margin-top: var(--space-5);
  }
}

@media (max-width: 440px) {
  .grid {
    gap: var(--space-2);
  }

  .tm-nav-link {
    min-height: 140px;
    padding: var(--space-3);
  }

  .fa-3x {
    font-size: 2em;
  }
}

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

  .tm-nav-link {
    min-height: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product:hover .tm-nav-link,
  .product:focus-within .tm-nav-link,
  .product.product--focus .tm-nav-link {
    transform: none;
  }
}
