*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keeps anchor-link jumps (nav links, "View my projects") from landing
     flush against the sticky header - this reserves breathing room above
     whatever section scrolls into view. */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-text-light);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 90px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-family: var(--font-main);
  font-weight: 400;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
  background-color: var(--color-accent-dark);
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-text-light);
  height: clamp(38px, 3.6vw, 46px);
  padding-inline: clamp(18px, 2.2vw, 28px);
  line-height: 1;
  font-size: clamp(16px, 1.56vw, 20px);
}

.btn--secondary {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  height: clamp(36px, 3.4vw, 44px);
  padding-inline: clamp(16px, 2vw, 26px);
  line-height: 1;
  font-size: clamp(15px, 1.4vw, 18px);
}

.btn--secondary:hover {
  color: var(--color-text-light);
}

/* Nav links: color shift on hover/focus, no underline */
.nav-link {
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

/* Logo: no hover/focus styling at all - stays exactly as-is */
.logo-link {
  display: inline-block;
}
