* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #101010;
  --surface: #171717;
  --surface-raised: #202020;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f2;
  --muted: #a9a9a9;
  --accent: #edb049;
  --accent-line: rgba(237, 176, 73, 0.48);
  /* Portfolio divider controls: edit these values to restyle the section break. */
  --portfolio-divider-color: var(--accent);
  --portfolio-divider-thickness: 2px;
  --portfolio-divider-spacing: 24px;
}

html::-webkit-scrollbar {
  display: none;
}

html {
  -ms-overflow-style: none;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  -webkit-user-select: none;
  user-select: none;
}

.main-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.top-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 32px 20px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.navigation-buttons {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
}

.nav-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-button.active,
.nav-button:hover,
.nav-button:focus-visible {
  background: var(--surface);
  border-color: var(--line);
  color: var(--accent);
  outline: none;
}

.nav-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(237, 176, 73, 0.24);
}

.bottom-container {
  flex: 1;
  width: 100%;
  padding: 16px;
  background: var(--surface);
}

.client-websites-section {
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
}

.client-websites-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}

.client-websites-heading h2 {
  color: var(--text);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
}

.client-websites-heading p {
  max-width: 620px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.portfolio-section-divider {
  width: 100%;
  height: var(--portfolio-divider-thickness);
  margin: var(--portfolio-divider-spacing) 0 16px;
  border: 0;
  background: var(--portfolio-divider-color);
  box-shadow: 0 0 10px var(--accent-line);
}

.portfolio-works-section {
  width: 100%;
}

.portfolio-empty {
  width: min(720px, 100%);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text);
  text-align: center;
}

.portfolio-empty h1 {
  font-size: 24px;
  font-weight: 600;
}

.portfolio-empty p {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.portfolio-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .top-container {
    gap: 10px;
    padding: 18px 14px 0;
  }

  .navigation-buttons {
    width: 100%;
  }

  .nav-button {
    min-width: 86px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .bottom-container {
    padding: 12px;
  }

  .client-websites-section {
    padding: 4px 0 0;
  }

  .client-websites-heading {
    display: block;
    margin-bottom: 12px;
  }

  .client-websites-heading h2 {
    font-size: 20px;
  }

  .client-websites-heading p {
    margin-top: 5px;
    font-size: 12px;
    text-align: left;
  }

  .portfolio-section-divider {
    margin-top: 18px;
  }

  .portfolio-empty {
    min-height: 260px;
    padding: 30px 14px;
  }

  .portfolio-empty h1 {
    font-size: 20px;
  }

  .portfolio-empty p {
    font-size: 14px;
  }
}

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