@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --color-olive: #B5654A;
  /* Terracotta Rust (Formerly Olive) */
  --color-olive-light: #E6C2B0;
  /* Light Clay (Formerly Olive Light) */
  --color-white: #FFFFFF;
  --color-bg: #F3F4F1;
  /* Soft off-white background */
  --color-text-dark: #2C3328;
  --color-text-light: #F3F4F1;

  /* Typography */
  --font-main: 'Manrope', sans-serif;
  --font-serif: 'Manrope', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  /* Account for fixed navbar */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  /* Changed from center to prevent jumping */
  justify-content: center;
  padding: 2rem;
  padding-top: 120px;
  /* Increased top padding to push content down a bit more since we lost vertical centering */
  position: relative;
  overflow-x: hidden;
}

/* Headings Upgrade */
h1,
h2,
h3,
h4,
.page-title,
.hero-name,
.hero-title {
  color: #333333 !important;
  /* Override Olive */
}

/* Apply animation to content wrappers instead of body to avoid fixed pos issues */
.resume-wrapper,
.philosophy-wrapper,
.card-container,
.projects-wrapper {
  /* Page Load Animation */
  animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  /* Start hidden for animation */
  animation-fill-mode: forwards;
}

/* Exit Transition Class */
body.page-exit {
  opacity: 0;
  transform: translateY(-15px);
  /* Slide up slightly on exit */
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: none;
  /* Override load animation */
}

/* Semi-transparent Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: rgba(243, 244, 241, 0.9);
  /* Partly transparent bg */
  backdrop-filter: blur(8px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-brand span {
  font-weight: 300;
  color: var(--color-olive);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu li a {
  text-decoration: none;
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-menu li a:hover {
  color: var(--color-olive);
}

/* Background Animation Elements */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.85;
  /* Increased from 0.6 */
  filter: blur(35px);
  /* Decreased from 60px */
  animation: float 20s infinite ease-in-out;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: #A2C4C9;
  /* Misty Teal Blue */
  top: -100px;
  right: -50px;
  animation-delay: 0s;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: #C8D8A8;
  /* Soft Moss Green */
  bottom: 50px;
  left: -50px;
  animation-delay: -5s;
}

.blob-3 {
  width: 250px;
  height: 250px;
  background: #89A8B2;
  /* Cloudy Slate Blue */
  top: 40%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

.card-container {
  /* Added z-index relative to blobs */
  position: relative;
  z-index: 10;

  width: 100%;
  max-width: 1000px;
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  /* Enhanced Shadow as requested */
  box-shadow: 0 40px 80px -20px rgba(44, 51, 40, 0.4),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  margin: auto;
  /* Vertically center if flex parent has space */
}

@media (min-width: 768px) {
  .card-container {
    flex-direction: row;
    min-height: 600px;
  }
}

/* Left Side - Olive */
.card-left {
  background-color: #F9F9F7;
  /* Light Paper */
  color: var(--color-text-dark);
  /* Dark text */
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Centered content */
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Ensure content sits above the travel map background */
.card-left>*:not(.travel-map) {
  position: relative;
  z-index: 2;
}

.hero-divider {
  background-color: var(--color-olive);
  opacity: 1;
}

/* Social Footer on Left Card */
.social-footer {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
  padding-top: 0;
}

.social-icon {
  color: var(--color-olive);
  font-size: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
  text-decoration: none;
}

/* Travel Map Animation (Global Background) */
.travel-map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.travel-path {
  fill: none;
  stroke: #000;
  stroke-width: 5;
  stroke-dasharray: 20, 15;
  stroke-linecap: round;
  display: none;
}

.draw-anim-1,
.draw-anim-2,
.draw-anim-3,
.draw-anim-4 {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  stroke-width: 15;
  animation-name: drawLine;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.route-group {
  animation-name: fadeRoute;
  animation-duration: 20s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* Staggered Timings */
.draw-anim-1,
.route-1 {
  animation-delay: 0s;
}

.draw-anim-2,
.route-2 {
  animation-delay: 5s;
}

.draw-anim-3,
.route-3 {
  animation-delay: 10s;
}

.draw-anim-4,
.route-4 {
  animation-delay: 15s;
}

.pin-marker {
  fill: #ef4444;
  /* Vibrant Red */
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.pin-text {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  fill: #444;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 1);
  pointer-events: none;
  alignment-baseline: middle;
  /* Vertical center alignment */
}

.map-pin {
  opacity: 0;
  animation: pinReveal 20s infinite linear;
}

@keyframes pinReveal {
  0% {
    opacity: 0;
  }

  1% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 2000;
  }

  60% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes fadeRoute {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  /* Quickly fade in marks at start of new cycle */
  75% {
    opacity: 1;
  }

  90% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Decorative circle removed to clean up focus on headshot */
.card-left::before {
  display: none;
}

.profile-img-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* Ensure image stays circular */
  position: relative;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  /* Slight top focus usually good for headshots */
  display: block;
}

.intro-pre {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.hero-name {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: #2C3328 !important;
}

.hero-divider {
  width: 50px;
  height: 3px;
  background-color: #A04035;
  margin: 1rem 0;
  opacity: 1;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0px;
  /* Reset */
  border: none;
  /* Remove previous border */
  padding: 0;
}

.card-left p {
  opacity: 0.9;
  max-width: 400px;
}

/* Right Side - White */
.card-right {
  background-color: var(--color-white);
  color: var(--color-text-dark);
  padding: 4rem 3rem;
  /* Increased top/bottom padding */
  flex: 1.2;
  /* Give right side slightly more space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  z-index: 2;
}

.content-highlight {
  margin-top: auto;
  margin-bottom: auto;
}

/* Right Side Content Updates */
.intro-hello {
  font-family: var(--font-main);
  /* Sans-serif */
  font-weight: 600;
  /* Reduced from Extra Bold */
  font-size: 5.5rem;
  /* Reduced from 7rem */
  line-height: 1;
  color: #A04035;
  margin-bottom: 0.5rem;
}

.intro-main {
  font-family: var(--font-main);
  /* Ensure sans-serif */
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 2rem;
  color: #3D5A5A;
}

.sub-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-olive);
  margin-bottom: 1rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.action-btn {
  display: inline-block;
  padding: 0.4rem 2.5rem;
  /* Widened horizontal padding */
  background-color: #6B8E96;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.8rem;
  /* Smaller font */
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 2px solid #6B8E96;
  text-align: center;
}

.action-btn.secondary {
  background-color: transparent;
  color: #6B8E96;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background-color: #527178;
  border-color: #527178;
  color: var(--color-white);
}

.bio-paragraph {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 90%;
}

/* Resume / Subpage Styles */
.resume-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 10;
}

.page-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-olive);
  margin-bottom: 2rem;
}

.year-separator {
  text-align: center;
  font-weight: 700;
  color: var(--color-olive);
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  align-self: center;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(85, 107, 47, 0.1);
  margin: 1rem 0;
  transition: opacity 0.6s ease;
  /* Slower Fade */
}

.job-card {
  background-color: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px -5px rgba(44, 51, 40, 0.1);
  /* Softer shadow than main card */
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  /* Slower Opacity */
  border-left: 5px solid var(--color-olive-light);
  opacity: 1;
  /* Ensure default */
}

.job-card.full-time {
  border-left-color: var(--color-olive);
  /* Terracotta */
}

.job-card.seasonal {
  border-left-color: var(--color-olive-light);
  /* Sky Blue */
}

.job-card.education {
  border-left-color: #555;
  /* Navy */
}

.job-card.awards {
  border-left-color: var(--color-olive-light);
  /* Gold */
}

/* Interactive Job Cards Only */
.job-card[data-job-url] {
  cursor: pointer;
}

.job-card[data-job-url]:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(44, 51, 40, 0.15);
}

/* Filter Buttons */
.filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* Added for vertical alignment */
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 2px solid var(--color-olive);
  color: var(--color-olive);
  background: transparent;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.download-cv {
  border-color: #999;
  color: #666;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-btn.download-cv:hover {
  background-color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  color: var(--color-white);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-olive);
  color: var(--color-white);
}

.philosophy-wrapper .page-title {
  margin-bottom: 0.5rem;
}

/* Tab Mode Specific Styles (Booklet Look) */
.filter-container[data-tab-mode="true"] {
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  /* Baseline guide */
  padding-bottom: 0;
  gap: 1rem;
  margin-bottom: 0;
  justify-content: center;
}

.filter-container[data-tab-mode="true"] .filter-btn {
  border: none;
  background: none;
  border-radius: 0;
  padding: 0.5rem 0.5rem;
  font-size: 1.1rem;
  color: #999;
  position: relative;
}

.filter-container[data-tab-mode="true"] .filter-btn:after {
  content: '';
  position: absolute;
  bottom: -2px;
  /* Align with container border */
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-olive);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.filter-container[data-tab-mode="true"] .filter-btn.active {
  background: none;
  color: var(--color-olive);
}

.filter-container[data-tab-mode="true"] .filter-btn.active:after {
  transform: scaleX(1);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.job-company {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-olive);
  font-weight: 400;
  font-style: italic;
}

.job-description {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.job-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.job-tags li {
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Nav Active State */
.nav-menu li a.active {
  color: var(--color-olive);
  font-weight: 700;
  border-bottom: 2px solid var(--color-olive);
}

/* Projects Grid Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.project-card {
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(44, 51, 40, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -10px rgba(44, 51, 40, 0.2);
}

.project-image-container {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-synopsis {
  color: #222;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: var(--font-main);
}

.project-card:hover .project-synopsis {
  transform: translateY(0);
}

.project-info {
  padding: 1.5rem;
  padding-bottom: 5rem;
  /* Space for absolute buttons */
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.project-actions {
  position: absolute;
  bottom: 1.2rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.project-info .action-btn {
  position: static;
  flex: 1;
  padding: 0.5rem 0.2rem;
  font-size: 0.7rem;
  white-space: nowrap;
  letter-spacing: 0.5px;
  background-color: #EF7E64;
  border-color: #EF7E64;
  border-width: 1px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: none;
  /* Less aggressive than uppercase for small size */
  transition: all 0.2s ease;
}

.project-info .action-btn:hover {
  background-color: #D9654C;
  border-color: #D9654C;
  transform: translateY(-1px);
}

.project-info .action-btn.secondary {
  background-color: transparent;
  color: #EF7E64;
  border-width: 1px;
}

.project-info .action-btn.secondary:hover {
  background-color: rgba(239, 126, 100, 0.05);
  color: #D9654C;
  border-color: #D9654C;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.3rem;
}

.project-info span {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

/* Job Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  /* Ensure full viewport width */
  height: 100vh;
  /* Ensure full viewport height */
  background-color: rgba(0, 0, 0, 0.4);
  /* More transparent, standard dim */
  backdrop-filter: blur(4px);
  z-index: 9999;
  /* Ensure it's on top of everything */
  display: flex;
  justify-content: center;
  align-items: center;
  /* This centers it vertically on the screen */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 800px;
  height: 80vh;
  background-color: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  /* Match parent */
}

.modal-iframe,
#modalIframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.close-modal-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.5rem;
  color: var(--color-text-dark);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s, background-color 0.2s;
  z-index: 10;
}

.close-modal-btn:hover {
  transform: scale(1.1);
  background-color: var(--color-bg);
}

.intro-hello.fade-out,
.intro-main.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

.intro-hello,
.intro-main {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Job Modal Styles */
/* ... (keep existing) ... */
.job-card {
  cursor: pointer;
}

/* Philosophy Page Specifics */
.philosophy-wrapper {
  width: 100%;
  max-width: 950px;
  margin: 4rem auto;
  padding: 5rem 4rem;
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

/* Editorial Layout Styles */
.editorial-item {
  display: flex;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease;
  flex-direction: row-reverse;
  /* Sidebar on Right */
}

.editorial-sidebar {
  flex: 0 0 220px;
  /* Fixed width for alignment */
  padding-left: 1rem;
  padding-right: 0;
  position: relative;
  border-left: 1px solid var(--color-olive-light);
  /* Divider on Left */
}

.sticky-header {
  position: sticky;
  top: 150px;
  /* Adjust for navbar */
  text-align: left;
}

.sticky-header h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-olive);
  line-height: 1.2;
  margin-top: 0.5rem;
}

.sticky-header i {
  font-size: 2.5rem;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  display: none;
}

.editorial-content {
  flex: 1;
  padding-right: 1rem;
  padding-left: 0;
  border-left: none;
}

.editorial-content p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
}

/* Sidebar List */
.sidebar-list {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
  display: block;
  text-align: left;
}

.sidebar-list li {
  font-family: var(--font-sans);
  /* Contrast with Serif header */
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: flex-start;
  /* Align left within the block */
  align-items: center;
  gap: 10px;
}

/* Dash for Editorial Sidebar Only */
.editorial-sidebar .sidebar-list li::before {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  background-color: var(--color-olive-light);
  /* Visible dash */
  margin-right: 5px;
}


.sidebar-list li::after {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .editorial-item {
    flex-direction: column;
    padding: 2rem 0;
  }

  .editorial-sidebar {
    flex: auto;
    padding-right: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-olive-light);
    border-left: none;
    padding-left: 0;
  }

  .sticky-header {
    position: static;
    text-align: left;
    display: block;
    /* Stack vertical on mobile */
  }

  .sticky-header i {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
  }

  .sticky-header h2 {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .sidebar-list {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sidebar-list li {
    justify-content: flex-start;
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #555;
    background: #f5f5f5;
    padding: 0.4rem 1rem;
    border-radius: 20px;
  }

  .sidebar-list li::after {
    display: none;
    /* Remove dash on mobile pills */
  }

  .editorial-content {
    padding-left: 0;
    border-left: none;
    padding-right: 0;
  }
}

/* Contact Page Styles */
.contact-container {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  margin-left: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 1rem;
  background-color: var(--color-bg);
  /* Use page background for input contrast against white card */
  color: var(--color-text-dark);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-olive);
  /* Terracotta */
  background-color: var(--color-white);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
  align-self: flex-start;
  cursor: pointer;
  border: none;
  background-color: transparent;
  /* Rely on .action-btn classes */
}

/* Success Message */
.contact-success {
  text-align: center;
  color: var(--color-olive);
  font-weight: 600;
}

.timeline-wrapper {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 2rem auto;
  padding: 1rem 0;
  display: flow-root;
  /* Contains floats */
}

/* Central Vertical Line */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background-color: var(--color-olive-light);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
}

.timeline-item::after {
  content: '';
  display: block;
  clear: both;
}

/* Central Date Bubble */
.timeline-date {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-olive);
  color: var(--color-white);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--color-white);
  /* Separation from line */
}

/* Download Button (Far Right) */
.download-btn {
  background-color: var(--color-olive);
  color: var(--color-white);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(181, 101, 74, 0.2);
}

/* Container for the Job Card */
.timeline-content {
  width: 48%;
  position: relative;
}

.timeline-item.left .timeline-content {
  float: left;
  text-align: left;
}

.timeline-item.left .timeline-content .job-header {
  /* If aligning right, maybe reverse header flex? */
  /* Keeping default L-align text inside card for readability is generally safer unless requested. */
  text-align: left;
}

.timeline-item.right .timeline-content {
  float: right;
}

/* Ensure Job Cards inside timeline behave */
.timeline-content .job-card {
  width: 100%;
  padding: 2rem;
  /* Reduced padding */
  position: relative;
  /* For arrow positioning */
}

/* Timeline Arrows (Connecting Card to Center) */
.timeline-item.left .timeline-content .job-card::after {
  content: '';
  position: absolute;
  top: 15px;
  /* Align with date bubble */
  right: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid var(--color-white);
  filter: drop-shadow(2px 0 1px rgba(0, 0, 0, 0.05));
}

.timeline-item.right .timeline-content .job-card::after {
  content: '';
  position: absolute;
  top: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--color-white);
  filter: drop-shadow(-2px 0 1px rgba(0, 0, 0, 0.05));
}

/* Initial State */
.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: -2rem;
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  box-sizing: border-box;
}

/* Float Structure for Staggered Overlap */
.timeline-item.left {
  float: left;
  clear: left;
  padding-right: 2rem;
  padding-bottom: 2rem;
}

.timeline-item.right {
  float: right;
  clear: right;
  padding-left: 2rem;
  padding-bottom: 2rem;
  margin-top: 4rem;
  /* Defines the offset/stagger */
}

/* Ensure content fills the half-width container */
.timeline-content {
  width: 100%;
}

.timeline-content .job-card {
  width: 100%;
}

/* Year Markers */
.timeline-year-mark {
  width: 100%;
  clear: both;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  z-index: 5;
}

.timeline-year-mark span {
  background: var(--color-bg);
  padding: 0.5rem 1.5rem;
  border: 2px solid #ddd;
  border-radius: 30px;
  font-weight: 700;
  color: #888;
  font-family: var(--font-main);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Date Styling - Inside Card */
.job-date {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Range Bar on Axis */
/* Creates a colored segment on the central line spanning the item height */
.timeline-item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  /* Full height */
  width: 6px;
  background: #ccc;
  /* Fallback */
  z-index: 5;
  border-radius: 3px;
}

/* Left Item -> Bar on Right Edge (Center) */
.timeline-item.left::before {
  right: -3px;
  /* Center 6px width on 0 edge */
}

/* Right Item -> Bar on Left Edge (Center) */
.timeline-item.right::before {
  left: -3px;
}

/* Mobile Fix: Hide Range Bar or Adjust? */
@media (max-width: 768px) {
  .timeline-item::before {
    left: 17px !important;
    /* Align with line left: 20px (width 6px -> centers at 20) */
    right: auto !important;
  }
}

/* Color Coding for Tracks (Text and Range Bar) */
:root {
  --color-seasonal: #6C7A48;
}

/* Full Time */
.timeline-item.full-time .job-date {
  color: var(--color-olive);
}

.timeline-item.full-time::before {
  background: var(--color-olive);
}

.timeline-item.full-time .timeline-content .job-card {
  border-left: 4px solid var(--color-olive);
}

.timeline-item.full-time.left .timeline-content .job-card::after {
  border-left-color: var(--color-white);
}

/* Seasonal */
.timeline-item.seasonal .job-date {
  color: var(--color-seasonal);
}

.timeline-item.seasonal::before {
  background: var(--color-seasonal);
}

.timeline-item.seasonal .timeline-content .job-card {
  border-left: 4px solid var(--color-seasonal);
}

/* Education */
.timeline-item.education .job-date {
  color: #647C90;
}

.timeline-item.education::before {
  background: #647C90;
}

.timeline-item.education .timeline-content .job-card {
  border-left: 4px solid #647C90;
}

/* Awards */
.timeline-item.awards .job-date {
  color: #D4A017;
}

.timeline-item.awards::before {
  background: #D4A017;
}

.timeline-item.awards .timeline-content .job-card {
  border-left: 4px solid #D4A017;
}

/* Mobile Responsive Timeline */
@media (max-width: 768px) {
  .timeline-wrapper::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    float: none;
    clear: both;
    margin-top: 0 !important;
    /* Reset stagger */
    margin-bottom: 2rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding: 0 0 0 3rem;
    /* Indent for line */
    text-align: left;
  }

  /* Reset arrows... (omitted for brevity, assume existing mobile styles handle rest, or need update?) */
  /* The existing mobile styles likely targeted .timeline-content width. I updated .timeline-item width to 100%. */
  .timeline-content {
    width: 100%;
  }
}

/* End of File */

/* Bento Grid Layout (Resume Experience) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  grid-auto-flow: dense;
  padding-bottom: 1rem;
  margin-top: 0.5rem;
}

/* Year Marker for Bento Grid */
.bento-year-marker {
  grid-column: 1 / -1;
  /* Span all columns */
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-olive);
  font-weight: 700;
}

.bento-year-marker::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--color-olive-light);
  opacity: 0.5;
}

/* Base Bento Item */
.bento-item {
  background: var(--color-white);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px -5px rgba(44, 51, 40, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
  height: 100%;
  /* Fill grid cell */
}

/* Interactive Bento Item */
.bento-item[data-job-url] {
  cursor: pointer;
}

.bento-item[data-job-url]:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px -10px rgba(44, 51, 40, 0.15);
  border-color: rgba(0, 0, 0, 0.05);
}

/* Size Variants */
.span-2 {
  grid-column: span 2;
}

.span-row-2 {
  grid-row: span 2;
}

@media (max-width: 900px) {
  .span-2 {
    grid-column: auto;
    /* Reset on smaller screens */
  }
}

/* Typography & Content */
.bento-header {
  margin-bottom: 1rem;
}

.bento-date {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
  opacity: 0.8;
}

.bento-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.3rem;
  color: var(--color-text-dark);
}

.bento-company {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #555;
  font-style: italic;
  font-weight: 400;
}

.bento-description {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  /* Pushes tags down */
}

/* Tag Pills */
.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bento-tag {
  background-color: var(--color-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category Colors (Border Top) */
/* Full Time (Academic Year) - Olive */
.bento-item.full-time {
  border-top: 6px solid var(--color-olive);
  background: linear-gradient(165deg, #ffffff 60%, #F4F7F2 100%);
}

.bento-item.full-time .bento-date {
  color: var(--color-olive);
}

/* Seasonal (Summer Programs) - Seasonal Color */
.bento-item.seasonal {
  border-top: 6px solid var(--color-seasonal);
  background: linear-gradient(165deg, #ffffff 60%, #FAF3EF 100%);
}

.bento-item.seasonal .bento-date {
  color: var(--color-seasonal);
}

/* Education - Navy Blue */
.bento-item.education {
  border-top: 6px solid #647C90;
  background: linear-gradient(165deg, #ffffff 60%, #EFF3F6 100%);
}

.bento-item.education .bento-date {
  color: #647C90;
}

.bento-item.education .bento-icon {
  color: #647C90;
  /* Ensure icon matches */
}

/* Awards - Gold */
.bento-item.awards {
  border-top: 6px solid #D4A017;
  background: linear-gradient(165deg, #ffffff 60%, #FBF8EE 100%);
}

.bento-item.awards .bento-date {
  color: #D4A017;
}

/* Multi-colored Tag Backgrounds & Black Text */
.bento-tag {
  color: var(--color-text-dark);
  /* Black/Dark Grey */
}

/* Dynamic Tag Colors */
.bento-tag:nth-child(1) {
  background-color: var(--tag-1, #FFD8A8);
}

.bento-tag:nth-child(2) {
  background-color: var(--tag-2, #B2F2BB);
}

.bento-tag:nth-child(3) {
  background-color: var(--tag-3, #A5D8FF);
}

.bento-tag:nth-child(4) {
  background-color: var(--tag-4, #FCC2D7);
}

.bento-tag:nth-child(5) {
  background-color: var(--tag-5, #D0BFFF);
}

/* Palette Variations based on Grid Item Position */
/* Pattern 1 */
.bento-item:nth-child(5n+1) {
  --tag-1: #FFD8A8;
  /* Peach */
  --tag-2: #B2F2BB;
  /* Mint */
  --tag-3: #A5D8FF;
  /* Sky */
  --tag-4: #FCC2D7;
  /* Pink */
  --tag-5: #D0BFFF;
  /* Lavender */
}

/* Pattern 2 */
.bento-item:nth-child(5n+2) {
  --tag-1: #FFE066;
  /* Yellow */
  --tag-2: #96F2D7;
  /* Teal */
  --tag-3: #FFC9C9;
  /* Coral */
  --tag-4: #BAC8FF;
  /* Periwinkle */
  --tag-5: #D8F5A2;
  /* Lime */
}

/* Pattern 3 */
.bento-item:nth-child(5n+3) {
  --tag-1: #FFDEEB;
  /* Rose */
  --tag-2: #99E9F2;
  /* Aqua */
  --tag-3: #E5DBFF;
  /* Lilac */
  --tag-4: #FFC078;
  /* Tangerine */
  --tag-5: #C3FAE8;
  /* Foam */
}

/* Pattern 4 */
.bento-item:nth-child(5n+4) {
  --tag-1: #FFBBCC;
  /* Berry */
  --tag-2: #FFD8A8;
  /* Peach (Cycle) */
  --tag-3: #B2F2BB;
  /* Mint */
  --tag-4: #A5D8FF;
  /* Sky */
  --tag-5: #FCC2D7;
  /* Pink */
}

/* Pattern 5 (Mix) */
.bento-item:nth-child(5n+5) {
  --tag-1: #D0BFFF;
  /* Lavender */
  --tag-2: #FFC9C9;
  /* Coral */
  --tag-3: #99E9F2;
  /* Aqua */
  --tag-4: #FFE066;
  /* Yellow */
  --tag-5: #BAC8FF;
  /* Periwinkle */
}

/* Common Hover for all */
.bento-item:hover {
  background: #ffffff;
  /* Let's keep the gradient but maybe shift it? Or just standard hover.
       Standard hover transform is already good.
       Use !important if needed to override base hover if I added one.
    */
}

.bento-item[data-job-url]:hover {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Special Layout for Awards/Marathons (Compact) */
.bento-item.compact {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.bento-item.compact .bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: inherit;
  /* Inherit from specific category color set in inline style or class */
}

.bento-item.compact.awards .bento-icon {
  color: #D4A017;
}

.bento-item.compact.education .bento-icon {
  color: #647C90;
}

.bento-item.compact .bento-title {
  font-size: 1.2rem;
}

.bento-item.compact .bento-company {
  font-size: 1rem;
}

/* Coursework Grid inside Education Card */
.coursework-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  font-size: 0.9rem;
}

.coursework-col strong {
  color: var(--color-olive);
  display: block;
  margin-bottom: 0.3rem;
}

.coursework-col ul {
  list-style: none;
  color: #666;
  padding: 0;
}

.coursework-col ul li {
  margin-bottom: 0.2rem;
}

/* Timeline View (Cleaner List Layout) */
.timeline-container {
  max-width: 900px;
  margin: 0 auto;
}

.timeline-group {
  margin-bottom: 4rem;
}

.timeline-group-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-olive);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-olive-light);
}

.timeline-item {
  display: flex;
  flex-direction: row;
  padding: 2.5rem 0;
  /* Increased padding */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
  align-items: flex-start;
  /* Prevent shrinking/stretching oddities */
  gap: 1rem;
  /* Explicit gap */
}

.timeline-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.timeline-date {
  width: 160px;
  flex-shrink: 0;
  text-align: right;
  padding-right: 25px;
  color: #888;
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 0.2rem;
}

.timeline-content {
  flex: 1;
  padding-left: 25px;
  border-left: 2px solid var(--color-olive-light);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.timeline-company {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--color-olive);
  margin-bottom: 0.8rem;
  font-style: italic;
}

.timeline-desc {
  color: #555;
  line-height: 1.6;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.timeline-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-tag {
  font-size: 0.75rem;
  background-color: #E8E8E8;
  color: #555;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .timeline-item {
    flex-direction: column;
  }

  .timeline-date {
    text-align: left;
    width: 100%;
    margin-bottom: 0.5rem;
    padding-left: 27px;
    color: var(--color-olive);
  }

  .timeline-content {
    padding-left: 20px;
  }
}

/* Document Style Resume (Classic Paper Look) */
.doc-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 4rem 5rem;
  background-color: white;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  /* Sophisticated shadow */
  border-radius: 4px;
  /* Slight roundness like a stack of paper */
  position: relative;
  z-index: 10;
  color: #333;
}

.doc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.doc-name {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--color-olive);
  margin-bottom: 0.5rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.doc-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.doc-contact {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #555;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.doc-contact span i {
  color: var(--color-olive);
  margin-right: 5px;
}

.doc-download-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #f5f5f5;
  color: #555;
  font-size: 0.85rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid #ddd;
}

.doc-download-btn:hover {
  background-color: var(--color-olive);
  color: white;
  border-color: var(--color-olive);
}

.doc-divider {
  border: none;
  height: 1px;
  background-color: #eee;
  margin: 2rem 0;
}

.doc-section {
  margin-bottom: 2.5rem;
}

.doc-heading {
  font-family: var(--font-main);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-olive);
  border-bottom: 2px solid var(--color-olive);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.doc-heading div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.doc-item {
  margin-bottom: 1.8rem;
}

.doc-item:last-child {
  margin-bottom: 0;
}

.doc-item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.doc-role {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
}

.doc-date {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  /* High contrast date */
  text-align: right;
  width: 140px;
  flex-shrink: 0;
}

.doc-company {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-olive);
  /* Accent color */
  font-style: italic;
  font-weight: 500;
}

.doc-location {
  font-size: 0.9rem;
  color: #777;
  font-style: italic;
}

.doc-bullets {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  list-style-type: disc;
}

.doc-bullets li {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.doc-details {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #444;
}

/* Print Optimization */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .navbar,
  .background-blobs,
  .doc-download-btn {
    display: none;
  }

  .doc-wrapper {
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
  }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .doc-wrapper {
    padding: 2rem 1.5rem;
  }

  .doc-item-row {
    flex-direction: column;
  }

  .doc-date {
    text-align: left;
    width: 100%;
    color: #777;
    margin-bottom: 0.2rem;
  }

  .doc-location {
    display: none;
    /* Hide location on small screens to save space if needed, or keep it */
    /* display: block; */
  }
}

/* Modern Two-Column Resume Layout */
.resume-container {
  display: grid;
  grid-template-columns: 360px 1fr;
  max-width: 1100px;
  margin: 2rem auto;
  background-color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  min-height: 1000px;
  position: relative;
  z-index: 10;
  border-radius: 20px;
  /* Rounded Corners for Resume */
  overflow: hidden;
  /* Clip content for rounded corners */
}

/* Sidebar Styles */
.resume-sidebar {
  background-color: #2E525E;
  /* Pine Green / Blue */
  color: white;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sidebar-header {
  margin-bottom: 1rem;
}

.sidebar-name {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white !important;
  /* Force white against global override */
}

.sidebar-title {
  font-family: var(--font-main);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: white !important;
  opacity: 1;
  /* Highlighted */
  font-weight: 300;
}

.sidebar-section {
  position: relative;
}

.sidebar-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
  color: white !important;
}

.resume-sidebar .sidebar-list {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: white !important;
  /* Force white for list text in dark sidebar */
}

.resume-sidebar .sidebar-list li {
  margin-bottom: 0.5rem;
  /* Tighter spacing */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Ensure left justification */
  gap: 0.5rem;
  /* Adjust gap closer */
  opacity: 1 !important;
  /* Full brightness */
  color: white !important;
}

.resume-sidebar .sidebar-list li i {
  width: 25px;
  /* Fixed width for alignment */
  text-align: left;
  /* Left align the icon itself */
  color: white !important;
}

.sidebar-item {
  margin-bottom: 1.2rem;
}

.sidebar-degree {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  opacity: 1 !important;
}

.sidebar-school {
  font-size: 0.9rem;
  opacity: 1 !important;
  margin-bottom: 0.2rem;
}

.sidebar-date {
  font-size: 0.85rem;
  opacity: 1 !important;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.sidebar-detail {
  font-size: 0.85rem;
  opacity: 1 !important;
  line-height: 1.5;
}

.sidebar-skills {
  list-style: none;
  padding: 0;
}

.sidebar-skills li {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.3rem;
  /* Tighter spacing */
  display: inline-block;
  /* Tag style */
  border-radius: 4px;
  font-size: 0.85rem;
}

.sidebar-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.2rem;
  background-color: #EF7E64;
  /* Lighter Orange-Red */
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-btn:hover {
  background-color: #D9654C;
  /* Slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
.resume-main {
  padding: 4rem 3rem;
  background-color: white;
}

.main-section {
  margin-bottom: 3.5rem;
}

.main-heading {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-olive);
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #eee;
}

.main-job {
  margin-bottom: 2rem;
}

.job-top {
  display: flex;
  align-items: center;
  /* Center vertically for icon alignment */
  margin-bottom: 0.3rem;
}

.job-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  flex-grow: 1;
  /* Push everything else to the right */
  margin-right: 1rem;
}

.job-date {
  font-size: 0.95rem;
  color: #888;
  font-weight: 600;
}

.job-company {
  font-size: 1rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.job-bullets {
  padding-left: 1.2rem;
  color: #444;
  line-height: 1.6;
}

.job-bullets li {
  margin-bottom: 0.25rem;
  /* Tighter spacing */
}

/* Responsiveness for Two-Column */
@media (max-width: 850px) {
  .resume-container {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .resume-sidebar {
    padding: 2rem;
    gap: 2rem;
  }

  .sidebar-skills li {
    display: inline-block;
    margin-right: 0.5rem;
  }

  .resume-main {
    padding: 2rem;
  }

  .job-top {
    flex-direction: column;
  }

  .job-date {
    margin-top: 0.2rem;
  }
}

/* Interactive Resume Items */
.clickable-job {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s;
  border-radius: 8px;
  padding: 1rem;
  /* Reduced padding from 1.5rem */
  /* Add padding here so hover effect looks good */
  background: transparent;
  margin: 0 -1rem 0.8rem -1rem;
  /* Reduced negative margin and bottom margin */
  /* Negative margin to offset padding so alignment stays distinct */
  position: relative;
  border: 1px solid transparent;
}

.clickable-job:hover {
  background-color: #fcfcfc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-color: #f0f0f0;
  transform: translateY(-2px);
}

.clickable-job:hover .job-role {
  color: var(--color-olive);
  text-decoration: none;
  /* Removed underline */
}

.job-link-icon {
  display: none;
  /* Icon removed per user request */
}

/* Rounded Corners & Shadow for Interactive Job Items */
.clickable-job {
  margin-bottom: 0.8rem !important;
  /* Reduced from 2rem */
  /* Force margin */
  border-radius: 12px;
  /* Rounded corners */
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  /* Smooth transition */
}

/* Enhanced Hover Effect: Stronger Shadow */
.clickable-job:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  /* Stronger shadow on hover */
  transform: translateY(-2px);
  background-color: #fafafa;
}

/* Compact styling for smaller award items */
.clickable-job.compact {
  margin-bottom: 0.5rem !important;
  /* Even tighter for compact items */
  padding: 0.8rem 1rem;
}

/* Sidebar Clickable Items */
.sidebar-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 1rem;
  margin: -1rem;
  /* Offset padding to maintain alignment */
  margin-bottom: 0.5rem;
  position: relative;
  border: 1px solid transparent;
}

.sidebar-clickable:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.sidebar-link-icon {
  display: none;
  /* Icon removed per user request */
}

/* Lessons Split View Layout */
.lessons-explorer-wrapper {
  display: grid;
  grid-template-columns: 1fr 450px;
  /* Detail pane fixed width */
  gap: 2rem;
  max-width: 1400px;
  margin: 4rem auto;
  padding: 0 2rem;
  height: calc(100vh - 200px);
  /* Fill screen minus nav */
  position: relative;
  z-index: 10;
}

.master-list-container {
  overflow-y: auto;
  padding-right: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-olive-light) transparent;
}

/* Custom scrollbar for premium feel */
.master-list-container::-webkit-scrollbar {
  width: 6px;
}

.master-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.master-list-container::-webkit-scrollbar-thumb {
  background-color: var(--color-olive-light);
  border-radius: 10px;
}

.lessons-intro {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
  line-height: 1.6;
  max-width: 700px;
}

.lesson-detail-pane {
  background: white;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 120px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-placeholder {
  margin: auto;
  text-align: center;
  color: #aaa;
}

.detail-placeholder i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.detail-placeholder p {
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Selected Card Highlight */
.project-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
}

.project-card.active {
  border-color: var(--color-olive);
  background-color: #fff9f7;
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(181, 101, 74, 0.1);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1100px) {
  .lessons-explorer-wrapper {
    grid-template-columns: 1fr 380px;
  }
}

@media (max-width: 950px) {
  .lessons-explorer-wrapper {
    grid-template-columns: 1fr;
    height: auto;
  }

  .lesson-detail-pane {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    z-index: 1000;
    border-radius: 30px 30px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
  }

  .lesson-detail-pane.sidebar-active {
    transform: translateY(0);
  }
}

/* Detail Content Styling */
.detail-header-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.detail-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.detail-meta {
  font-weight: 600;
  color: var(--color-olive);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  display: block;
}

.detail-desc {
  color: #555;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.detail-actions {
  margin-top: auto;
  display: grid;
  gap: 1rem;
}


/* Resume Explorer Split-View Layout */
.resume-explorer-wrapper {
  display: flex;
  width: 95%;
  max-width: 1200px;
  margin: 4rem auto;
  gap: 0;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  padding-bottom: 5rem;
}

.resume-master-layout {
  flex: 1 1 1000px;
  /* Grow and shrink flexibly */
  max-width: 1100px;
  width: 100%;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  margin: 0 auto;
}

/* When detail is active, widen the wrapper and shift master */
.resume-explorer-wrapper.pane-active {
  max-width: 1800px;
  /* Increased to fit full resume + detail */
  width: 98%;
  gap: 2rem;
}

.resume-explorer-wrapper.pane-active .resume-master-layout {
  margin: 0;
  /* Shift to left */
}

.resume-detail-pane {
  flex: 0 0 0;
  width: 0;
  background: white;
  border-radius: 20px;
  box-shadow: -10px 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: calc(100vh - 150px);
  position: sticky;
  top: 120px;
  align-self: flex-start;
  margin-top: 2rem;
  margin-bottom: 2rem;
  /* Align bottom with resume-container */
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  padding-right: 4px;
  /* Space for scrollbar inside rounded corner */
}

.resume-explorer-wrapper.pane-active .resume-detail-pane {
  flex: 0 1 650px;
  /* Wider detail area, allowed to shrink */
  width: 100%;
  opacity: 1;
}

.detail-placeholder {
  width: 100%;
  padding: 2.5rem;
  /* Padding moved here */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  text-align: center;
  box-sizing: border-box;
}

.detail-placeholder i {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}

.detail-content-area {
  width: 100%;
  padding: 2.5rem 0 2.5rem 0;
  /* Vertical padding only, iframe handles horizontal if needed */
  height: 100%;
  position: relative;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.detail-content-area.visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-content-area iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-pane-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1rem;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-pane-btn:hover {
  background: #2E525E;
  color: white;
}

/* Selected State for List Items */
.clickable-job.active,
.sidebar-clickable.active {
  background-color: rgba(46, 82, 94, 0.05);
  box-shadow: inset 0 0 0 2px #2E525E;
}

.sidebar-clickable.active {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Mobile adjustments */
@media (max-width: 1200px) {
  .resume-explorer-wrapper.pane-active {
    flex-direction: column;
    max-width: 1100px;
  }

  .resume-explorer-wrapper.pane-active .resume-master-layout {
    flex: 1;
    width: 100%;
  }

  .resume-explorer-wrapper.pane-active .resume-detail-pane {
    width: 100%;
    height: 80vh;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    border-radius: 30px 30px 0 0;
  }
}

/* Custom Scrollbar for Detail Pane */
/* Custom Scrollbar REMOVED - using default iframe scroll */
.resume-detail-pane {
  overflow-y: hidden !important;
  /* Hide container scroll */
}

.resume-detail-pane::-webkit-scrollbar {
  width: 5px;
  /* Minimalist width */
}

.resume-detail-pane::-webkit-scrollbar-track {
  background: transparent;
  margin: 10px 0;
  /* Add visual spacing */
}

.resume-detail-pane::-webkit-scrollbar-thumb {
  background-color: var(--color-olive-light);
  border-radius: 20px;
  /* Pill shape */
  border: 1px solid white;
  /* Adds air around thumb */
}

/* Ensure content wrapper doesn't trap scroll */
/* Ensure content wrapper doesn't trap scroll */
.detail-content-area {
  overflow: hidden;
  /* Let iframe handle it */
  height: 100%;
}

.detail-content-area iframe {
  height: 100%;
  width: 100%;
  border: none;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #aaa;
}

.interaction-tip {
  position: absolute;
  background-color: transparent;
  color: #2b4b7c;
  /* Fountain Pen Blue */
  padding: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.4s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 500;
  pointer-events: none;
  letter-spacing: -0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.hand-drawn-arrow {
  width: 45px;
  height: auto;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 5px;
}

.interaction-tip i {
  display: none !important;
}

.interaction-tip.visible {
  opacity: 1;
}

.interaction-tip::after {
  display: none;
}

.interaction-tip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 1.5rem;
  border-width: 4px 4px 0;
  border-style: solid;
  border-color: #2E525E transparent transparent transparent;
}

.tip-resume {
  position: absolute;
  top: 650px;
  left: 1100px;
  transform: rotate(-8deg);
}

.tip-resume i {
  margin-right: 0.3rem;
  font-size: .9rem;
}

.tip-philosophy {
  position: absolute;
  top: 250px;
  right: calc(50% - 725px);
  transform: rotate(-8deg);
}

.tip-philosophy i {
  margin-right: 0.3rem;
  font-size: .9rem;
}

.tip-philosophy-sidebar {
  position: absolute;
  top: 125px;
  right: calc(50% - 360px);
  transform: rotate(5deg);
}

.tip-philosophy-sidebar i {
  font-size: .9rem;
  margin-left: 0.3rem;
  margin-right: 0.3rem;
}

.tip-philosophy-content {
  position: absolute;
  top: 550px;
  left: -325px;
  transform: rotate(-5deg);
}

.tip-philosophy-content i {
  margin-left: 0.2rem;
  font-size: .9rem;
}

.tip-lessons-left {
  position: absolute;
  top: 500px;
  left: -350px;
  transform: rotate(-4deg);
}

.tip-lessons-right {
  position: absolute;
  top: 700px;
  right: -375px;
  transform: rotate(5deg);
}

@keyframes scribble-jitter {
  0% {
    transform: rotate(-1deg) translate(0, 0);
  }

  25% {
    transform: rotate(1deg) translate(1px, -1px);
  }

  50% {
    transform: rotate(-0.5deg) translate(-1px, 1px);
  }

  75% {
    transform: rotate(0.8deg) translate(1px, 0.5px);
  }

  100% {
    transform: rotate(-1deg) translate(0, 0);
  }
}

.interaction-tip.visible .hand-drawn-arrow {
  animation: scribble-jitter 4s ease-in-out infinite;
}

/* Job Artifact Slideshow (Inside Resume Detail Panes) */
.job-slideshow {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.job-slideshow h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: #f9f9f9;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.2rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: all 0.3s ease;
}

.dot.active {
  background: #6B8E96;
  /* Misty Teal to match buttons */
  transform: scale(1.3);
}

.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  color: #333;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.slideshow-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.1);
}

.slideshow-btn.prev {
  left: 15px;
}

.slideshow-btn.next {
  right: 15px;
}

@media (max-width: 600px) {
  .slideshow-container {
    aspect-ratio: 4 / 3;
  }
}

/* Skills Contextual Grid (Bento Style) */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.skill-category {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
  border-color: var(--color-olive-light);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 0.8rem;
}

.category-header i {
  font-size: 1.4rem;
  color: var(--color-olive);
  background: rgba(181, 101, 74, 0.08);
  /* Light Terracotta wash */
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.category-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  padding: 0.4rem 0.9rem;
  background: #f5f5f5;
  color: #555;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.skill-pill:hover {
  background: #fff;
  border-color: var(--color-olive-light);
  color: var(--color-olive);
  transform: scale(1.05);
}

/* Responsive adjustments for skills grid */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}