/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #f9e406;
  --color-bg-light: #f8f8f5;
  --color-bg-dark: #23210f;
  --color-bauhaus-yellow: #F2D900;
  --color-bauhaus-red: #E12120;
  --color-bauhaus-blue: #005DAA;
  --color-text-light: #000000;
  --color-text-dark: #f8f8f5;
  --color-text-subtle-light: #555555;
  --color-text-subtle-dark: #a0a0a0;
  --color-border-light: #e0e0e0;
  --color-border-dark: #444444;
  --color-gray-200: #e5e7eb;
  --color-gray-700: #374151;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

.dark body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
}

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

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

ul {
  margin: 0;
  padding: 0;
}

/* ===== MATERIAL SYMBOLS ===== */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ===== DETAILS/SUMMARY ===== */
details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::before {
  content: '+';
  font-weight: 700;
  margin-right: 0.5rem;
}

details[open] > summary::before {
  content: '\2212';
}

/* ===== SLIDER ===== */
.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--bar, #005DAA) 0%,
    var(--bar, #005DAA) var(--val, 50%),
    #d1d5db var(--val, 50%),
    #d1d5db 100%
  );
  outline: none;
  border-radius: 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 0;
  background: #000;
  cursor: pointer;
}

.dark .slider::-webkit-slider-thumb {
  background: #f8f8f5;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 0;
  background: #000;
  cursor: pointer;
}

.dark .slider::-moz-range-thumb {
  background: #f8f8f5;
}

/* ===== SCREEN-READER ONLY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===== LAYOUT: PAGE WRAPPER ===== */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* ===== DECOR SHAPES ===== */
.decor-container {
  position: absolute;
  right: 0;
  top: 0;
  z-index: -10;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.decor-blue {
  position: absolute;
  right: -20vw;
  top: -10vh;
  height: 50vh;
  width: 50vw;
  background-color: var(--color-bauhaus-blue);
  mix-blend-mode: multiply;
  opacity: 0.8;
  transform: rotate(12deg);
}

.dark .decor-blue {
  mix-blend-mode: lighten;
}

.decor-red {
  position: absolute;
  right: -5vw;
  top: 30vh;
  height: 30vh;
  width: 30vw;
  background-color: var(--color-bauhaus-red);
  mix-blend-mode: multiply;
  opacity: 0.8;
  transform: rotate(-6deg);
}

.dark .decor-red {
  mix-blend-mode: lighten;
}

.decor-dark {
  position: absolute;
  right: 10vw;
  top: -25vh;
  height: 60vh;
  width: 60vh;
  background-color: var(--color-text-light);
  mix-blend-mode: multiply;
  opacity: 0.1;
  transform: rotate(45deg);
}

.dark .decor-dark {
  background-color: rgba(248, 248, 245, 0.5);
  mix-blend-mode: lighten;
}

/* ===== INNER CONTAINER ===== */
.inner-container {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  min-height: 100vh;
  max-width: 72rem;
  flex-direction: column;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .inner-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .inner-container {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.lang-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-subtle-light);
}

.dark .lang-nav {
  color: var(--color-text-subtle-dark);
}

.lang-nav a:hover {
  color: var(--color-bauhaus-blue);
}

.dark .lang-nav a:hover {
  color: var(--color-bauhaus-yellow);
}

/* ===== MAIN ===== */
.site-main {
  display: flex;
  width: 100%;
  flex-direction: column;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .hero-section {
    margin-bottom: 4rem;
  }
}

.hero-flex {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 2rem;
}

@media (min-width: 640px) {
  .hero-flex {
    flex-direction: row;
    gap: 3rem;
  }
}

.hero-text {
  min-width: 18rem;
}

.hero-text > * + * {
  margin-top: 0.75rem;
}

.hero-name {
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 4.5rem;
    line-height: 1;
  }
}

.hero-job {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .hero-job {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.hero-meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-subtle-light);
}

.dark .hero-meta {
  color: var(--color-text-subtle-dark);
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-meta a:hover {
  color: var(--color-bauhaus-blue);
}

.dark .hero-meta a:hover {
  color: var(--color-bauhaus-yellow);
}

.hero-description {
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  line-height: 1.625;
  color: var(--color-text-subtle-light);
}

.dark .hero-description {
  color: var(--color-text-subtle-dark);
}

.hero-photo-wrapper {
  position: relative;
}

.hero-photo-bg {
  position: absolute;
  bottom: -0.5rem;
  right: -0.5rem;
  height: 100%;
  width: 100%;
  background-color: var(--color-bauhaus-yellow);
}

.hero-photo {
  position: relative;
  z-index: 10;
  height: 8rem;
  width: 8rem;
  object-fit: cover;
}

@media (min-width: 640px) {
  .hero-photo {
    height: 10rem;
    width: 10rem;
  }
}

/* ===== CONTENT GRID ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.main-column {
  /* md:col-span-2 handled by grid-template-columns */
}

/* ===== SECTION HEADINGS ===== */
.section-heading-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.section-heading-bar {
  position: absolute;
  left: -1rem;
  height: 100%;
  width: 0.375rem;
}

.section-heading-bar--yellow {
  background-color: var(--color-bauhaus-yellow);
}

.section-heading-bar--red {
  background-color: var(--color-bauhaus-red);
}

.section-heading-bar--blue {
  background-color: var(--color-bauhaus-blue);
}

.section-heading {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  margin-bottom: 4rem;
}

.skills-list {
  border-left: 1px solid var(--color-border-light);
  padding-left: 2rem;
}

.dark .skills-list {
  border-left-color: var(--color-border-dark);
}

.skills-list > * + * {
  margin-top: 1rem;
}

.skill-details {
  color: var(--color-text-light);
}

.dark .skill-details {
  color: var(--color-text-dark);
}

.skill-summary {
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.skill-items {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-subtle-light);
  list-style-type: disc;
  list-style-position: inside;
}

.dark .skill-items {
  color: var(--color-text-subtle-dark);
}

.skill-items > li + li {
  margin-top: 0.25rem;
}

.skill-items--relaxed > li + li {
  margin-top: 0.5rem;
}

/* ===== EXPERIENCE SECTION ===== */
.experience-section {
  margin-bottom: 4rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 1px solid var(--color-border-light);
  padding-left: 2rem;
}

.dark .experience-list {
  border-left-color: var(--color-border-dark);
}

.exp-summary {
  cursor: pointer;
}

.exp-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.exp-meta {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-subtle-light);
}

.dark .exp-meta {
  color: var(--color-text-subtle-dark);
}

.exp-description {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
}

/* ===== EDUCATION SECTION ===== */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-left: 1px solid var(--color-border-light);
  padding-left: 2rem;
}

.dark .education-list {
  border-left-color: var(--color-border-dark);
}

.edu-item {
  display: flex;
  flex-direction: column;
}

.edu-title {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.edu-certs {
  margin-top: 0.25rem;
  list-style-type: disc;
  list-style-position: inside;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-subtle-light);
}

.dark .edu-certs {
  color: var(--color-text-subtle-dark);
}

.edu-certs > li + li {
  margin-top: 0.25rem;
}

.edu-period {
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-subtle-light);
}

.dark .edu-period {
  color: var(--color-text-subtle-dark);
}

.edu-meta {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-text-subtle-light);
}

.dark .edu-meta {
  color: var(--color-text-subtle-dark);
}

/* ===== SIDEBAR ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .sidebar {
    position: sticky;
    top: 2.5rem;
    align-self: start;
  }
}

.sidebar-heading {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

/* ===== TAGS ===== */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border-radius: 0;
  background-color: var(--color-gray-200);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.dark .tag {
  background-color: var(--color-gray-700);
  color: var(--color-text-dark);
}

/* ===== LANGUAGE SLIDERS ===== */
.languages-list > * + * {
  margin-top: 1rem;
}

.lang-slider-header {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.lang-slider-value {
  font-weight: 500;
}

/* ===== INTERESTS ===== */
.interests-list > * + * {
  margin-top: 0.75rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.interest-icon {
  color: var(--color-text-subtle-light);
}

.dark .interest-icon {
  color: var(--color-text-subtle-dark);
}

.interest-label {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
}

.footer-inner {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--color-text-subtle-light);
}

.dark .footer-inner {
  color: var(--color-text-subtle-dark);
}

@media (min-width: 640px) {
  .footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

.footer-heart {
  color: #E12120;
}

/* ===== ICON SIZES ===== */
.icon-sm {
  height: 1.25rem;
  width: 1.25rem;
}

/* ===== 404 ERROR PAGE ===== */
.error-wrapper {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  flex-direction: column;
  overflow: hidden;
}

.error-decor-blue {
  position: absolute;
  top: 0;
  right: 0;
  width: 33.333%;
  height: 50%;
  background-color: var(--color-bauhaus-blue);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.dark .error-decor-blue {
  mix-blend-mode: lighten;
}

.error-decor-red {
  position: absolute;
  top: 25%;
  right: 25%;
  width: 12rem;
  height: 12rem;
  background-color: var(--color-bauhaus-red);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

.dark .error-decor-red {
  mix-blend-mode: lighten;
}

.error-decor-yellow {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 25%;
  background-color: var(--color-bauhaus-yellow);
}

.error-content {
  position: relative;
  display: flex;
  height: 100%;
  flex-grow: 1;
  flex-direction: column;
  padding-left: 1rem;
  padding-right: 1rem;
  z-index: 10;
}

@media (min-width: 640px) {
  .error-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .error-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.error-center {
  display: flex;
  height: 100%;
  flex: 1;
  align-items: center;
  justify-content: center;
}

.error-card {
  display: flex;
  width: 100%;
  max-width: 32rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .error-card {
    align-items: flex-start;
    text-align: left;
  }
}

.error-title {
  color: var(--color-text-light);
  letter-spacing: -0.05em;
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dark .error-title {
  color: var(--color-text-dark);
}

@media (min-width: 768px) {
  .error-title {
    font-size: 160px;
  }
}

.error-heading-group {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.error-heading {
  color: var(--color-text-light);
  letter-spacing: -0.015em;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.dark .error-heading {
  color: var(--color-text-dark);
}

@media (min-width: 768px) {
  .error-heading {
    font-size: 40px;
  }
}

.error-description {
  color: var(--color-text-subtle-light);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.dark .error-description {
  color: var(--color-text-subtle-dark);
}

@media (min-width: 768px) {
  .error-description {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

.error-button-wrapper {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-start;
}

.error-button {
  display: flex;
  min-width: 84px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0;
  height: 3rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background-color: var(--color-text-light);
  color: var(--color-bg-light);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  transition: transform 200ms;
  border: none;
  text-decoration: none;
}

.dark .error-button {
  background-color: var(--color-text-dark);
  color: var(--color-bg-dark);
}

.error-button:hover {
  transform: scale(1.05);
}

.error-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}