html {
  scroll-behavior: smooth;
}

body {
  background-color: rgba(209, 190, 159, 0.25);
  color: var(--primary-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
  font-family: "Roboto", "Verdana", sans-serif;
}

button {
  border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Slab";
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.414rem;
}

h3 {
  font-size: 1.155rem;
}

h4 {
  font-size: 1rem;
}

h5 {
  font-size: 0.894rem;
}

h6 {
  font-size: 0.816rem;
}

ul:not(.navigation ul):not(.footer-links ul) {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

a:link:not(.cta),
a:visited:not(.cta) {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bolder;
}
a:hover:not(.cta),
a:active:not(.cta) {
  color: var(--primary-green);
}

.bold {
  font-weight: 700;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  width: 50px;
  margin-right: 2rem;
}

.navigation {
  background: rgba(246, 239, 232, 0.65);
  border-bottom: 1px solid var(--accent-1a);
  height: 120px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  backdrop-filter: blur(30px);
}

.desktop-nav {
  background-color: white;
  display: none;
  position: absolute;
  top: 120px; /* Below navbar, adjust if nav height changes */
  left: 0;
  width: 100%;
  padding: 1rem;
  z-index: 999;
  border-bottom: 1px solid var(--alert-1a);
}
.desktop-nav.open {
  display: block;
}
.desktop-nav ul {
  list-style: none;
  padding: 0;
  font-size: 1.25rem;
  line-height: 2;
}
.desktop-nav a:link,
.desktop-nav a:visited,
.desktop-nav a:hover,
.desktop-nav a:active {
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--primary-text);
  font-weight: bolder;
}
.desktop-nav a:hover,
.desktop-nav a:active {
  color: var(--primary-blue);
}

.active {
  border-bottom: 2px solid var(--primary-blue);
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 40px;
}

.hamburger-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary-blue);
  margin: 10px 0;
  transition: all 0.3s ease;
}

/* Hamburger animation (X when open) */
.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(11px, 11px);
}

.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.body-offset {
  padding-top: 120px;
}

.section-wrap {
  padding: 0 1rem;
  margin: 0 0 3rem 0;
}

.icon-container {
  position: sticky;
  top: 136px;
  align-self: flex-start;
  z-index: 100;
  width: 45px;
  height: auto;
  margin-right: 1rem;
  margin-bottom: 1rem;
}
.label {
  margin-top: 0.75rem;
  font-size: 1rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}

.tools {
  flex-wrap: wrap;
}
.chit {
  padding: 0.25rem 1rem;
  border-radius: 999px;
  margin-right: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1px;
}

.card {
  border: 1px solid var(--accent-1a);
  border-radius: var(--border-radius);
  background-color: white;
  display: flex;
  flex-direction: column;
}

.card-image {
  border-radius: var(--card-inner-radius);
  overflow: hidden;
  margin: 1rem;
  height: 200px;
}

.card-descript {
  padding: 1rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  flex: 1; /* Ensures it fills the available space */
}

.cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  margin-top: auto; /* Pushes the CTA to the bottom */
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  align-self: flex-end;
}
.cta.disable {
  padding: 0.5rem 1rem;
}
.cta img {
  width: 25px;
  margin-left: 0.5rem;
}

.decorator {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.section-space {
  margin-bottom: 3rem;
}

.alert {
  color: var(--alert-1a);
  font-weight: 700;
}

.required {
  color: var(--alert-1a);
  font-size: 0.9rem;
  font-weight: 500;
}

.to-top {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background-color: var(--primary-green);
  width: 50px;
  height: 50px;
  padding: 1rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.footer {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-size: 1rem;
  padding: 2rem;
}

.logo-rev {
  min-width: 50px;
  width: 50px;
}

.footer-wrap {
  max-width: 100%;
  display: flex;
  align-items: center;
}
.footer-links {
  margin-left: 2rem;
  display: flex;
  width: 100%;
  flex-grow: 1;
}
.footer-links ul {
  padding: 0;
}
.footer-links li {
  list-style: none;
  margin: 0;
  padding-right: 2rem;
}

.footer-links a:link,
.footer-links a:visited,
.footer-links a:hover,
.footer-links a:active {
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: bolder;
}

.legal {
  font-size: 0.9rem;
}

.frame {
  border-radius: var(--border-radius);
  overflow: hidden;
  width: fit-content;
  margin: 1rem auto 2rem;
}

.download {
  margin-top: 0;
  align-self: flex-start;
}
.download img {
  width: 25px;
  transform: rotate(90deg);
  margin-left: 0.5rem;
}

.resume-header {
  display: flex;
  flex-direction: column-reverse;
}

.decorator img {
  height: 1.25rem;
}

@media (min-width: 900px) {
  .hamburger {
    display: none;
  }

  .desktop-nav {
    background-color: unset;
    display: flex;
    position: relative;
    top: unset; /* Below navbar, adjust if nav height changes */
    left: 0;
    width: 100%;
    padding: unset;
    z-index: unset;
    border-bottom: none;
  }

  .desktop-nav ul {
    display: flex;
    line-height: 1;
  }

  .desktop-nav li {
    margin-right: 2rem;
  }

  .body-offset {
    padding-top: 120px;
  }

  .section-wrap {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0;
  }

  .card-image {
    height: 300px;
  }

  .cta {
    box-shadow: none;
    transition: box-shadow 0.3s;
    cursor: pointer;
    transition-duration: 200ms;
    transition-property: background-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }

  .cta.disable {
    cursor: default;
    transition: none;
    transition-duration: unset;
    transition-property: none;
    transition-timing-function: unset;
  }
  .cta.disable:hover {
    background-color: var(--secondary-text);
    box-shadow: none;
  }

  .cta:hover {
    background-color: var(--primary-blue);
    box-shadow: 2px 2px 8px var(--primary-text);
  }

  .horizontal {
    flex-direction: row;
  }
  .horizontal .card-image {
    width: 540px;
  }

  .horizontal .card-descript {
    padding: 2rem 2rem 2rem 1rem;
  }

  .logo-rev {
    width: 50px;
  }
  .footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
  }
  .footer-links {
    margin-left: 2rem;
  }
  .footer-links ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
  }

  .frame {
    margin: 0 0 2rem 0;
  }

  .resume-header {
    display: flex;
    flex-direction: row;
  }

  .download {
    margin-top: 0;
    align-self: center;
    margin-left: 1rem;
  }
}

/* Accessibility: Focus styles */
.scroll-link:focus,
.hamburger:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Disable smooth scrolling when users have prefers-reduced-motion enabled */
@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
