/* ===== Fonts ===== */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Light.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* ===== Variables ===== */
:root {
  --color-dark: #334650;
  --color-mid: #586375;
  --color-muted: #979BA6;
  --color-border: #E5E7EA;
  --color-accent: #3943B7;
  --color-bg: #dbdfe2;
  --font-body: 14px;
  --font-small: 12px;
  --font-xs: 11px;
}

/* ===== Base ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #242424;
  font-style: normal;
  font-size: var(--font-body);
  font-weight: 400;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  padding: 0;
  font-weight: 500;
  color: var(--color-dark);
}

h1 {
  font-size: 24px;
  line-height: 30px;
}

h3 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

p {
  margin: 0;
  line-height: 26px;
  color: var(--color-dark);
}

/* ===== Section Layout ===== */
.section-summary {
  padding: 40px 0 32px;
}

.section-portfolio {
  padding: 0 0 32px;
}

.section-content {
  padding: 0 0 24px;
}

.site-footer {
  padding: 56px 0 72px;
  text-align: center;
}

.button + .button {
  margin-left: 8px;
}

/* ===== Section Headings ===== */
.section-title {
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ===== Technology Tags ===== */
ul.technologies {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

ul.technologies li {
  position: relative;
  list-style-type: none;
  height: 16px;
}

ul.technologies li::before {
  content: attr(data-text);
  position: absolute;
  top: -22px;
  left: calc(-100% - 8px);
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  text-align: center;
  font-size: var(--font-small);
  display: none;
}

ul.technologies li:hover::before {
  display: block;
}

/* ===== Collapsible ===== */
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
}

.collapsible-header .section-title {
  margin-bottom: 0;
}

.collapse-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-muted);
  transition: transform 0.25s ease;
}

.collapse-arrow.is-open {
  transform: rotate(180deg);
}

.collapsible-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

/* ===== Button ===== */
.button {
  display: inline-block;
  border: 1px solid var(--color-dark);
  border-radius: 4px;
  padding: 8px 20px;
  color: var(--color-dark);
  text-decoration: none;
  font-size: var(--font-small);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}

.button:hover {
  background: var(--color-dark);
  color: #fff;
}

.button-sm {
  padding: 4px 10px;
  font-size: var(--font-xs);
}
