@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Libre+Baskerville:wght@400;700&family=Work+Sans:wght@400;500;600&display=swap');


.content-wrapper {
  padding: 30px;
  border-radius: 12px;
  width: 80%;
}

.main {
  flex: 70%;
  padding: 20px;
  border-radius: 4px;
}

.main p {
  color: white;
  background: inherit;
  font-size: calc(0.9em + 0.6vw);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-family: "Montserrat", sans-serif;
}


.main h1 {
  font-family: "Montserrat", sans-serif;
  font-size: calc(1.5em + 2vw);
  margin-left: 0;
  line-height: 1.6;
  text-align: justify;
  color: #587fa7;
}

.main a {
  color: white;
  background: inherit;
}

.main t {
  color: white;
  background: inherit;
}

li {
  margin-bottom: 3px;  
}

.main h2 {
  font-family: "Montserrat", sans-serif;
  font-size: calc(1em + 0.9vw);
  margin-left: 0;
  line-height: 1.6;
  text-align: justify;
  color: #626174;
}

.main h3 {
  font-size: calc(0.8em + 0.7vw);
  margin-left: 0;
  line-height: 1.6;
  text-align: justify;
  color: #587fa7;
}

.main li {
  font-size: calc(0.9em + 0.5vw);
  margin-left: 0;
  line-height: 1.6;
  color: white;
}

.main li p {
  font-size: 0.8em; 
  margin: 0; 
}

footer {
  padding: 20px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
  color: var(--home-text);
  font-size: calc(0.4em + 0.4vw);
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
}

.fa-github {
  font-size: calc(2.5em + 1.4vw);
  background-color: rgba(0, 0, 0, 0);
}

.fa-linkedin {
  font-size: calc(2.5em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}

.fa-envelope {
  font-size: calc(2.5em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}

.fa-file {
  font-size: calc(1.8em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}

.fa-address-card {
  font-size: calc(2.5em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}

.fa-file-text {
  font-size: calc(0.9em + 0.6vw);
  background-color: rgba(0, 0, 0, 0);
}

main {
  padding: 20px;
}

.content {
  width: 90%;
  margin: 0 auto;
  padding: 20px;
  overflow-x: auto;
  max-width: 100%;
}
.menu-bar {
  overflow: hidden;
}

.icon-dropdown {
  position: fixed;
  top: 30px;
  left: 30px;
  padding: 8px 12px;
  background-color: rgba(0, 0, 0, 0);
}

.icon-dropdown i {
  cursor: pointer;
  color: white;
  font-size: calc(2em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}

.dropdown-content {
  display: none;
  top: 10px;
  left: 12px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 999;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #2c3e50;
  border: 1px solid #34495e;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: "Montserrat", sans-serif;
}

.dropdown-content a {
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: calc(0.8em + 0.8vw);
  transition: background-color 0.2s ease;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 12px 20px;
}

.dropdown-content a:hover {
  background-color: #ecf0f1; /* Darker background on hover */
  color: #34495e; /* Keep text color consistent */
}

.show {
  display: block;
  animation: slideIn 0.3s ease-out;
}

figcaption {
  color: #ecf0f1;
  font-size: 0.8em;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
} 

a {
  text-decoration: none;
  padding: 0;
  border-radius: 0;
}

a * {
  text-decoration: none;
}

/* Hover state */
a:hover,
a:hover * {
  background-color: transparent;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}

nav {
  overflow: hidden;
  text-align: center;
  background-color: rgba(0, 0, 0, 0);
}

nav a {
  display: inline-block;
  color: white;
  background: inherit;
  padding: 20px 30px;
  text-decoration: none;
  font-size: calc(0.5em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}

.menu-bar a {
  text-decoration: none;
  color: white;
}

main h1,
main .h1 {
  display: block;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: #2d3177;
  letter-spacing: 0.01em;
  font-weight: 700;
  font-style: normal;
  font-size: 1.5em;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
.header {
  padding: 60px;
  text-align: center;
  background-image: url("/src/par.jpg");
  color: white;
}

.header h1 {
  font-size: calc(2.5em + 1vw);
  background-color: rgba(0, 0, 0, 0);
}
.content-section {
  background: rgb(154, 154, 154);
  padding: 20px;
  margin: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.content-section {
  background: rgb(154, 154, 154);
}

.section-title {
  font-size: 1.5em;
  color: #333;
  background: rgb(154, 154, 154);
  margin-bottom: 15px;
  text-align: center;
}

.divider {
  width: 6em;
  height: 0.5em;
  background: #333;
  margin-bottom: 20px;
  background: rgb(192, 192, 192);
}

.image {
  float: right;
  width: 30%;
  background: inherit;
}

.image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  background: inherit;
}

.image figcaption {
  font-size: 0.8em;
  text-align: center;
  background: inherit;
  font-family: "Montserrat", sans-serif;
}

.stack-wrapper {
  display: flex;
  flex-direction: row;
}

.stack-wrapper-light {
  display: flex;
  flex-direction: row;
  background: rgb(176, 176, 176);
}

.text-content {
  font-size: calc(0.45em + 0.45vw);
  width: 68%;
  flex: 2;
  margin-left: auto;
  margin-right: auto;
}

.text-content-light {
  width: 68%;
  flex: 2;
  margin-left: auto;
  margin-right: auto;
  background: rgb(255, 255, 255);
}

.text-content p {
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 768px) {
  .stack-wrapper {
    flex-direction: column;
  }
  .stack-wrapper-light {
    flex-direction: column;
    background: rgb(154, 154, 154);
  }
  .text-content-light {
    width: 100%;
    flex: 2;
    margin-left: auto;
    margin-right: auto;
    background: rgb(154, 154, 154);
  }
  .text-content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }
  .image {
    order: 2;
    float: none;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 80%;
  }
  .main {
    padding: 0px;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.1s ease-in forwards;
}

.fade-out {
  animation: fadeOut 0.1s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.icon-container,
.cv-icon { /* Add cv-icon here */
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  vertical-align: top;
  margin: 0 15px;
  text-decoration: none !important;
}

/* Icon text with grey box */
.icon-text {
  display: block !important;
  white-space: nowrap;
  font-size: calc(0.5em + 0.3vw);
  color: rgb(186, 186, 186);
  margin-top: 0.8em;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  width: max-content;
  text-align: center;
  transform: translateY(-2px); /* Fine-tune vertical position */
}

/* Ensure icons themselves are properly aligned */
.fa-github,
.fa-linkedin,
.fa-envelope,
.fa-address-card {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  position: fixed;
  left: 30px;
  top: 30px;
  z-index: 1001;
  background: var(--home-accent);
  border: 1px solid var(--home-accent);
  color: #fffdf6;
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.6rem;
  box-shadow: 0 10px 22px rgba(179, 11, 11, 0.18);
}

.sidebar-toggle:hover {
  background: var(--home-accent-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(179, 11, 11, 0.22);
}

/* Left Sidebar Implementation */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 240px;
  padding: 40px 20px;
  background: #fdf9f1;
  color: #151515;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  border-right: 1px solid rgba(15, 15, 15, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sidebar.active {
  transform: translateX(0);
}

/* Navigation Items */
.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 15px;
  justify-content: center; /* Center items vertically */
}

.sidebar-nav-item {
  position: relative;
  padding: 15px 20px;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  letter-spacing: 0.8px;
  color: #151515;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 6px;
  margin: 8px 0;
}

/* Hover Effects */
.sidebar-nav-item:hover {
  background: rgba(0, 0, 0, 0.04);
  transform: translateX(8px);
}

/* Active State */
.sidebar-nav-item.active {
  background: rgba(179, 11, 11, 0.08) !important;
  color: var(--home-accent);
  font-weight: 600;
  border-left: 3px solid var(--home-accent);
}

/* Gradient Line Effect */
.sidebar-nav-item::after {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transition: all 0.3s ease;
}

.sidebar-nav-item:hover::after {
  height: 60%;
}

/* Main Content Adjustment */
.main-content {
  margin-left: 240px;
  transition: margin 0.3s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 220px;
    padding: 80px 15px 20px;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .sidebar-nav-item {
    padding: 12px 15px;
    font-size: 1rem;
  }
  
  .sidebar-toggle {
    left: 15px;
    top: 15px;
    padding: 12px 18px;
  }
}

/* --- Home page layout --- */
:root {
  --home-bg: #f7f2e8;
  --home-surface: #fffdf6;
  --home-border: rgba(15, 15, 15, 0.18);
  --home-text: #151515;
  --home-muted: #4f4f4f;
  --home-accent: #b30b0b;
  --home-accent-2: #8c0707;
  --home-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  --home-title: #2f2f5d;
}

.home-body {
  position: relative;
  min-height: 100vh;
  padding: 60px 28px 40px;
  background: linear-gradient(180deg, #f7f2e8 0%, #fdfaf2 60%, #f7f2e8 100%);
  color: var(--home-text);
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.home-body::before {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.home-body a,
.home-body a * {
  color: inherit;
}

.home-body a:hover,
.home-body a:hover * {
  background-color: transparent;
}

.home-body a:not(.button):hover,
.home-body a:not(.button):hover * {
  color: var(--home-accent);
}

.home-shell {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
  justify-content: center;
  min-height: calc(100vh - 200px);
  z-index: 1;
}

.feature-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
  padding: 10px 6px 0;
}

.hero-text {
  position: relative;
  padding-left: 22px;
  border-left: 3px solid var(--home-accent);
}

.hero-title {
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.1;
  margin: 6px 0 14px;
  font-family: 'Playfair Display', 'Libre Baskerville', serif;
  letter-spacing: -0.01em;
  color: var(--home-title);
}

.legal-name {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--home-title);
  margin: -6px 0 12px;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--home-accent);
  margin-bottom: 8px;
  font-family: 'Work Sans', sans-serif;
}

.lede {
  color: var(--home-muted);
  font-size: 1.02rem;
  margin-bottom: 10px;
  font-family: 'Work Sans', sans-serif;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 16px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  color: var(--home-text);
  font-size: 0.9rem;
  font-family: 'Work Sans', sans-serif;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 8px;
}

.button {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid #0f0f0f;
  color: #0f0f0f;
  background: transparent;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Work Sans', sans-serif;
}

.button.primary {
  background: transparent;
  color: var(--home-accent);
  border-color: var(--home-accent);
  box-shadow: none;
}

.button.secondary {
  border-color: #0f0f0f;
  background: transparent;
}

.button.tertiary {
  color: var(--home-accent);
  border-color: transparent;
  padding-left: 6px;
  padding-right: 6px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  color: #0f0f0f;
}

.button.primary:hover {
  box-shadow: 0 10px 18px rgba(179, 11, 11, 0.16);
  background: rgba(179, 11, 11, 0.08);
}

.button.tertiary:hover {
  color: var(--home-accent-2);
}

.byline {
  margin-top: 8px;
  color: var(--home-muted);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
}

.hero-aside .text-link {
  font-weight: 500;
}

.hero-aside {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 6px;
}

.ribbon {
  display: inline-block;
  padding: 6px 12px;
  background: #111;
  color: #f9f6ed;
  font-family: 'Work Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  width: fit-content;
}

.meta-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--home-accent);
  margin-bottom: 6px;
  font-family: 'Work Sans', sans-serif;
}

.signal-title {
  font-size: 1.05rem;
  margin: 4px 0;
  color: var(--home-title);
  font-family: 'Playfair Display', serif;
}

.signal-meta {
  font-size: 0.9rem;
  color: var(--home-muted);
  margin: 0;
  font-family: 'Work Sans', sans-serif;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.contact-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--home-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.contact-link:hover {
  border-bottom-color: var(--home-accent);
  color: var(--home-accent);
}

.contact-link i {
  color: currentColor;
  font-size: 1rem;
}

.hero-meta-list {
  list-style: none;
  padding: 8px 0 0;
  margin: 6px 0 0;
  display: grid;
  gap: 6px;
}

.hero-meta-list li {
  font-family: 'Work Sans', sans-serif;
  color: var(--home-muted);
  line-height: 1.5;
}

.hero-meta-list strong {
  color: var(--home-text);
  font-family: 'Playfair Display', serif;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 10px;
}

.signal-item {
  border-left: 2px solid var(--home-border);
  padding-left: 10px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--home-accent);
  margin: 0;
  font-family: 'Work Sans', sans-serif;
}

.text-link {
  color: var(--home-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-family: 'Work Sans', sans-serif;
}

.text-link:hover {
  color: var(--home-accent-2);
  text-decoration: underline;
}

.roles {
  border-top: 1px solid var(--home-border);
  padding-top: 16px;
}

.roles-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 10px;
}

.roles-list li {
  font-family: 'Work Sans', sans-serif;
  color: var(--home-muted);
  border-left: 2px solid var(--home-border);
  padding-left: 10px;
  line-height: 1.5;
}

.roles-list strong {
  color: var(--home-text);
  font-family: 'Playfair Display', serif;
}

/* --- Shared inner pages --- */
.page-body {
  background: linear-gradient(180deg, #f7f2e8 0%, #fdfaf2 60%, #f7f2e8 100%);
  color: var(--home-text);
  font-family: 'Libre Baskerville', 'Times New Roman', serif;
  line-height: 1.6;
  min-height: 100vh;
  padding: 80px 24px 120px;
  font-size: 17px;
}

.page-body a {
  color: var(--home-text);
  text-decoration: none;
}

.page-body a:hover {
  color: var(--home-accent);
  text-decoration: underline;
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.page-header {
  padding-left: 0;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0 0 6px;
  color: var(--home-title);
}

.page-lede {
  color: var(--home-muted);
  font-family: 'Work Sans', sans-serif;
  font-size: 1.02rem;
  margin: 0;
}

.page-card {
  border: 1px solid var(--home-border);
  background: var(--home-surface);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: var(--home-shadow);
}

.page-card h2,
.page-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--home-title);
  margin-top: 0;
}

.page-card p,
.page-card li {
  font-family: 'Work Sans', sans-serif;
  color: var(--home-muted);
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-list li {
  position: relative;
  padding-left: 6px;
}

.paper-item {
  display: grid;
  gap: 1px;
  padding: 0;
  margin: 0;
}

.paper-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--home-border);
}

.paper-link {
  color: var(--home-text);
  text-decoration: none;
}

.paper-link:hover {
  color: var(--home-title);
  border-bottom: none;
  text-decoration: underline;
}

.paper-title {
  font-family: 'Playfair Display', serif;
  color: var(--home-title);
  font-size: 1.02rem;
  margin-left: 0px;
}

.paper-meta {
  font-family: 'Work Sans', sans-serif;
  color: var(--home-muted);
  font-size: 0.95rem;
  /* display: block; */
  margin-left: 3px;
}

.projects-card .page-list {
  gap: 8px;
}

.projects-card .page-list li {
  position: static;
  padding-left: 0;
  border: none;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--home-muted);
}
.embed-frame {
  width: 100%;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  box-shadow: var(--home-shadow);
  background: var(--home-surface);
}

.embed-center {
  display: flex;
  justify-content: center;
}

.trail-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

@media (max-width: 960px) {
  .home-body {
    padding: 40px 20px 80px;
  }

  .feature-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .button {
    width: 100%;
    justify-content: center;
  }

  .page-body {
    padding: 64px 18px 80px;
    font-size: 18px;
  }

  .page-card {
    padding: 16px;
  }
}
