/* ==========================
   Language Switcher
========================== */
/* Language Switcher in Nav */
#lang-switch-container {
  display: flex;
  align-items: left;
}

#lang-switch-btn {
  background: linear-gradient(90deg, #5c9f22 0%, #305312 100%);
  border: none;
  border-radius: 20px;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(252,87,94,0.10);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  outline: none;
  display: flex;
  align-items: center;
  height: 2em;
}

#lang-switch-btn:hover {
  background: linear-gradient(90deg, #305312 0%, #5c9f22 100%);
  box-shadow: 0 4px 16px 0 rgba(252,87,94,0.18);
  transform: translateY(-2px) scale(1.04);
}
#lang-switch-btn:focus {
  background: linear-gradient(90deg, #5c9f22 0%, #305312 100%);
  box-shadow: 0 4px 16px 0 rgba(252,87,94,0.18);
  /* No transform on focus to prevent sticky scaling */
}

/* ==========================
   Color & Typography Variables
========================== */
:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #777777;
  --border: #eeeeee;
  --link: #1800f3a6; /* for LinkedIn-style links */
  --font-heading: 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

/* ==========================
   Global Reset & Box Sizing
========================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 300; /* light for body text and paragraphs */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

main {
  max-width: 1080px;
  padding: 4rem 1.5rem;
  margin: 0 auto;
}

section {
  margin-bottom: 4rem;
}

/* ==========================
   Navigation
========================== */
nav {
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

nav a {
  margin-right: 1.5rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid transparent;
  font-weight: 500;
}

nav a:hover {
  border-color: var(--text);
}

/* ==========================
   Headings
========================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600; /* bold headings */
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

/* ==========================
   Projects
========================== */
.project {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.project:last-child {
  border-bottom: 1px solid var(--border);
}

.muted {
  color: var(--muted);
}

/* ==========================
   Lists
========================== */
ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

li {
  font-weight: 300; /* light like body text */
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ==========================
   Paragraphs
========================== */
p {
  font-weight: 300;
}

/* ==========================
   Links
========================== */
a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================
   Images
========================== */
.portrait {
  width: 372px;
  height: 372px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  display: block;
}

.post-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
  display: none;
}

article a {
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

article a:hover {
  border-color: var(--text);
}

/* ==========================
   Intro Section
========================== */
.intro {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.intro-text h1 {
  margin: 0;
}

.intro-text h2 {
  margin: 0.25rem 0 0;
  font-weight: 400; /* slightly lighter than heading */
  color: var(--muted);
}

/* Responsive intro */
@media (max-width: 720px) {
  .intro {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================
   Social Icons
========================== */
.social-icons a {
  display: inline-block;
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

.social-icons a img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================
   HEADER
========================== */
.header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-right: 1.5rem;
}