/* =========================
   Design Tokens
========================= */
:root {
  /* Colors */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-elevated: #f9fafc;

  --text-primary: #1a1d2e;
  --text-secondary: #5a6078;
  --text-headline: #4c5fd5;

  --accent: #5b7cff;
  --accent-2: #00c2a8;

  --link: #1a9c87;
  --link-hover: #00a896;

  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 25px rgba(0, 0, 0, 0.08);

  --gradient-main: linear-gradient(135deg, #7c9cff 0%, #00e0c2 100%);
  --gradient-soft: linear-gradient(180deg, rgba(91,124,255,0.05), rgba(0,194,168,0.025));

  /* Typography scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.375rem;
  --font-size-xl: 1.75rem;
  --font-size-xxl: 2.25rem;
}

/* =========================
   Dark Mode
========================= */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220;
    --surface: #181c2f;
    --surface-elevated: #1f243a;

    --text-primary: #e6e9f5;
    --text-secondary: #9aa3c7;
    --text-headline: #F0EAD6;

    --accent: #7c9cff;
    --accent-2: #00e0c2;

    --link: #00c2a8;
    --link-hover: #00e0c2;

    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    --gradient-main: linear-gradient(135deg, #5b7cff 0%, #00c2a8 100%);
    --gradient-soft: linear-gradient(180deg, rgba(124,156,255,0.2), rgba(0,224,194,0.08));
  }

  .experienceItem:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  }
}

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

body {
  background: var(--bg);
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text-primary);
  font-size: var(--font-size-base);
  margin: 0;
}

/* =========================
   Typography
========================= */
h1, h2, h3 {
  line-height: 1.2;
}

p {
  line-height: 1.6;
}

/* Base list reset */
ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

/* List items */
ul > li {
  position: relative;
  padding-left: 1.5rem;
  padding-bottom: 0.5rem;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

/* Custom bullet */
ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;

  width: 6px;
  height: 6px;
  border-radius: 50%;

  background: var(--gradient-main);
  transform: translateY(-50%);
}

/* Headings */
section > h1 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  font-family: "Fraunces", serif;
  letter-spacing: 0.5px;
}

.experienceItem > h2,
.sectionItem > h2 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  font-family: "Fraunces", serif;
  color: var(--accent);
  margin: 0;
}

.experienceItem > h3,
.sectionItem > h3 {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

.postDate {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

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

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* =========================
   Header
========================= */
.topHeader {
  height: 120px;
  text-align: center;
  background: var(--gradient-main);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 2em;
}

.logo {
  display: inline-block;
  background: var(--surface);
  background-image: url(i/vo_site_logo.jpg);
  background-size: cover;
  width: 150px;
  height: 150px;
  margin-top: 30px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: translateY(-4px) scale(1.02);
}

/* =========================
   Layout
========================= */
.wrapper {
  display: grid;
  grid-template-columns: minmax(auto, auto) minmax(320px, 1048px) minmax(auto, auto);
  grid-gap: 1.5rem;
  padding-top: 1.5rem;
}


/* =========================
   Experience Items (emerge effect)
========================= */
.experienceItem {
  position: relative;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 12px;

  background: transparent;
  box-shadow: none;
  border: 1px solid transparent;

  transition:
          transform 0.25s ease,
          box-shadow 0.25s ease,
          background 0.25s ease,
          border-color 0.25s ease;
}

.experienceItem:hover {
  transform: translateY(-3px);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.experienceItem::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: var(--gradient-main);
  opacity: 0;
  filter: blur(20px);

  transition: opacity 0.3s ease;
  z-index: 0;
}

.experienceItem:hover::after {
  opacity: 0.08;
}

.experienceItem > * {
  position: relative;
  z-index: 1;
}

.experienceItem > p {
  position: relative;
  padding-left: 0.75rem;
  padding-bottom: 0;
  margin-bottom: 0;
  letter-spacing: 0.05rem;
  color: var(--text-headline);
}

.experienceItem > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;

  width: 3px;
  height: 0.9em;

  border-radius: 2px;
  background: var(--gradient-main);
}

/* =========================
   Section Items (experienceItem without hover)
========================= */
.sectionItem {
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 12px;
}

.sectionItem > p {
  position: relative;
  padding-left: 0.75rem;
  padding-bottom: 0;
  margin-bottom: 0;
  letter-spacing: 0.05rem;
  color: var(--text-headline);
}

.sectionItem > p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;

  width: 3px;
  height: 0.9em;

  border-radius: 2px;
  background: var(--gradient-main);
}

/* =========================
   Item Grid
========================= */
.itemList {
  display: grid;
  grid-gap: 1.5rem;
}

.itemList > .item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.itemHeader {
  background: var(--gradient-soft);
  padding: 1rem;
}

.itemList > .item > .content {
  padding: 1.5rem;
}

.itemList > .item > .content > h1 {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--text-primary);

  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0 0.25rem;
}

/* =========================
   Footer
========================= */
footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-main);
}

footer > p {
  font-size: var(--font-size-sm);
  margin: 0;
}

a.linkedin img {
  height: 16px;
  vertical-align: middle;
}

/* =========================
   Misc
========================= */
hr {
  border-top: 1px dashed var(--border);
  width: 95%;
}

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

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.social {
  display: grid;
  grid-template-columns: 30px 30px;
  gap: 0.5rem;
}