/* ----------------------------------
   RESET & GLOBAL
----------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #FCF9F4;
  font-family: 'Inter', sans-serif;
  color: #1E2A2E;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ----------------------------------
   TYPOGRAPHY
----------------------------------- */
h1, h2, h3, .quote {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.section-title {
  font-size: 2.4rem;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
  color: #C9A96E;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 70px;
  height: 2px;
  background: #C9A96E;
  border-radius: 2px;
}

/* ----------------------------------
   BUTTONS
----------------------------------- */
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid #C9A96E;
  padding: 0.85rem 2rem;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: #1E2A2E;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.btn:hover {
  background: #C9A96E;
  color: white;
  border-color: #C9A96E;
}

.btn:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 2px;
}

/* ----------------------------------
   HERO SECTION
----------------------------------- */
.hero {
  padding: 4rem 2rem 3rem;
  background: #FCF9F4;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero h1 {
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.hero h1 span {
  color: #C9A96E;
  font-weight: 700;
}

.hero > div > p {
  font-size: 1.35rem;
  max-width: 550px;
  color: #2c3e40;
  margin-bottom: 0;
  line-height: 1.5;
}

.hero-card {
  background: white;
  border-radius: 28px;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  padding: 1.8rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  border: 1px solid #ece4d8;
  align-self: center;
}

.hero-card:hover {
  box-shadow: 0 25px 40px -15px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.image-box {
  border-radius: 24px;
  overflow: hidden;
  background: #E9DFD1;
}

.image-box .portfolio-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  transform: scale(1);
  will-change: transform;
}

.hero-card:hover .image-box .portfolio-img {
  transform: scale(1.05);
  filter: brightness(1.02) contrast(1.02);
}

.hero-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1rem 0 0.6rem;
  letter-spacing: -0.01em;
  color: #1E2A2E;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.hero-card:hover h3 {
  color: #C9A96E;
}

.hero-card p {
  font-size: 0.9rem;
  font-weight: 400;
  color: #4a5b5e;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.hero-card:hover p {
  color: #5a6e72;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 1.5rem;
}

.stat h2 {
  font-size: 1.8rem;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: #C9A96E;
  margin-bottom: 0.2rem;
  transition: transform 0.2s ease;
  display: inline-block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat:hover h2 {
  transform: scale(1.05);
}

.stat p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.stat:hover p {
  color: #C9A96E;
}

/* ----------------------------------
   ABOUT SECTION
----------------------------------- */
#about {
  padding: 5rem 0;
  background: #FFFFFF;
}

.about {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.image-box-portrait {
  flex: 1;
  min-width: 240px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}

.image-box-portrait:hover {
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.image-box-portrait .portfolio-img {
  object-fit: cover;
  object-position: center 115%;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
  transform: scale(1.3);
  will-change: transform;
}

.image-box-portrait:hover .portfolio-img {
  transform: scale(1.37);
  filter: brightness(1.02);
}

.about > div:last-child {
  flex: 2;
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #2A3B3F;
  transition: color 0.3s ease;
}

.about:hover p {
  color: #3a4b4f;
}

.quote {
  font-size: 1.5rem;
  font-style: italic;
  color: #C9A96E;
  border-left: 3px solid #C9A96E;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  line-height: 1.3;
  transition: border-left-color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.about:hover .quote {
  border-left-color: #b8925a;
}

/* ----------------------------------
   CONVERSATIONS SECTION
----------------------------------- */
#conversations {
  padding: 5rem 0;
  background: #FCF9F4;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  width: 340px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid #EFE6DB;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 30px -12px rgba(0, 0, 0, 0.12);
  border-color: #DCC9AC;
}

.card:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 2px;
  transform: translateY(-2px);
}

.card-img-box {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #F5F0E8;
  position: relative;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.4s ease, filter 0.3s ease;
  transform: scale(1);
  will-change: transform;
}

/* Card 1: Selwin Hart */
.card:nth-child(1) .card-img-box img {
  object-position: center 25%;
}

/* Card 2: Alexander McDonald */
.card:nth-child(2) .card-img-box img {
  object-position: center 30%;
}

/* Card 3: Elizabeth Mrema */
.card:nth-child(3) .card-img-box img {
  object-position: center 20%;
}

/* Card 4: Musonda Mumba */
.card:nth-child(4) .card-img-box img {
  object-position: center 40%;
}

/* Card 5: Rose Mwebaza - very slight zoom out */
.card:nth-child(5) .card-img-box img {
  object-position: center 15%;
}

/* Card 6: Dr. Éliane Ubalijoro */
.card:nth-child(6) .card-img-box img {
  object-position: center 40%;
}

.card:hover .card-img-box img {
  transform: scale(1.05);
  filter: brightness(1.03) contrast(1.02);
}

.card-body {
  padding: 1.3rem 1.2rem 1.6rem;
}

.card-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  transition: color 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.card:hover .card-body h3 {
  color: #C9A96E;
  text-shadow: 0 1px 3px rgba(201, 169, 110, 0.25);
}

.role {
  font-size: 0.8rem;
  color: #7A6B53;
  margin-top: 0.3rem;
  letter-spacing: 0.2px;
  transition: color 0.3s ease;
}

.card:hover .role {
  color: #5a4e3a;
}

/* ----------------------------------
   FOOTER
----------------------------------- */
.footer {
  background: #1E2A2E;
  color: #E9DFD1;
  padding: 3rem 0 3rem;
  text-align: center;
}

.footer h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #FCF9F4;
  transition: color 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer:hover h2 {
  color: #C9A96E;
}

.footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.footer p:hover {
  opacity: 1;
  color: #C9A96E;
}

/* ----------------------------------
   CUSTOM VIDEO MODAL - COMPLETE WITH FLEXBOX FIX
----------------------------------- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #0f1213;
  width: 90%;
  max-width: 1200px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  /* FIX: Use viewport-relative max-height */
  max-height: 90vh;
}

.video-modal.active .modal-container {
  transform: scale(1);
}

/* Fullscreen native styles */
.modal-container:fullscreen,
.modal-container:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: black;
}

/* FIXED: Video wrapper - uses flex to fill available space */
.video-wrapper {
  width: 100%;
  background: black;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* FIX: Let flex determine height, no fixed min-height */
  flex: 1;
  min-height: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  overflow: hidden;
}

.video-modal.video-fullscreen .video-wrapper {
  height: auto;
  flex: 1;
}

.video-wrapper:hover {
  opacity: 0.97;
}

/* Blurred background */
.video-wrapper::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: var(--poster-url, none);
  background-size: cover;
  background-position: center;
  filter: blur(30px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.05);
  transition: opacity 0.3s ease;
}

.video-wrapper:hover::before {
  opacity: 0.6;
}

/* Play indicator */
.video-wrapper .play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.6);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  font-family: monospace;
  backdrop-filter: blur(4px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

.video-wrapper:hover .play-indicator {
  opacity: 1;
  visibility: visible;
}

.video-wrapper.playing .play-indicator {
  opacity: 0;
  visibility: hidden;
}

/* YouTube-style momentary indicator */
.video-wrapper .momentary-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.6);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
  font-family: monospace;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.video-wrapper .momentary-indicator.show {
  opacity: 1;
  visibility: visible;
  animation: momentaryPulse 0.6s ease-out forwards;
}

.video-wrapper .momentary-indicator.pause {
  font-size: 56px;
}

@keyframes momentaryPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    visibility: hidden;
  }
}

/* Prevent hover indicator during momentary cooldown */
.video-wrapper.cooldown .play-indicator {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: none !important;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .video-wrapper .momentary-indicator {
    width: 70px;
    height: 70px;
    font-size: 44px;
  }
  .video-wrapper .momentary-indicator.pause {
    font-size: 38px;
  }
  @keyframes momentaryPulse {
    0% { transform: translate(-50%, -50%) scale(0.9); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
  }
}

@media (max-width: 480px) {
  .video-wrapper .momentary-indicator {
    width: 55px;
    height: 55px;
    font-size: 34px;
  }
  .video-wrapper .momentary-indicator.pause {
    font-size: 30px;
  }
}

/* FIXED: Video element - fills wrapper without gaps */
.video-track-target {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: transparent;
  outline: none;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* FIXED: Orientation handling - no fixed max-height */
.video-track-target[data-orientation="landscape"] {
  width: 100%;
  height: auto;
}

.video-track-target[data-orientation="portrait"] {
  width: auto;
  height: 100%;
}

/* Fullscreen video sizing */
.video-modal.video-fullscreen .video-track-target {
  max-height: calc(100vh - 70px);
  max-width: 100%;
}

.video-modal.video-fullscreen .video-track-target[data-orientation="landscape"] {
  width: 100%;
  height: auto;
}

.video-modal.video-fullscreen .video-track-target[data-orientation="portrait"] {
  height: calc(100vh - 70px);
  width: auto;
}

/* Controls wrapper - fixed height, never changes */
.custom-controls-wrapper {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 10;
  /* FIX: Fixed height that doesn't change */
  flex-shrink: 0;
}

/* ----------------------------------
   TIMELINE SLIDER - CLEAN & MINIMAL (No Thumb)
----------------------------------- */

/* Timeline wrapper for expanded hover zone */
.timeline-wrapper {
  position: relative;
  width: 100%;
  padding: 8px 0;
  margin: -8px 0;
  cursor: pointer;
}

.timeline-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: height 0.2s ease;
  --played: 0%;
  --buffered: 0%;
}

/* Bar height on hover - easier to click */
.timeline-wrapper:hover .timeline-slider {
  height: 5px;
}

/* ============================================
   WEBKIT (Chrome, Safari, Edge)
   ============================================ */

/* Completely hide the thumb - no circle at all */
.timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  opacity: 0;
}

/* Track styling */
.timeline-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

.timeline-wrapper:hover .timeline-slider::-webkit-slider-runnable-track {
  height: 5px;
}

/* ============================================
   FIREFOX
   ============================================ */

/* Hide Firefox thumb */
.timeline-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  opacity: 0;
}

/* Firefox track */
.timeline-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.timeline-wrapper:hover .timeline-slider::-moz-range-track {
  height: 5px;
}

/* Remove Firefox's native progress bar to prevent conflicts */
.timeline-slider::-moz-range-progress {
  height: 0;
  background: transparent;
}

/* ============================================
   PROGRESS BAR GRADIENT - Beautiful gold progress
   ============================================ */

/* Progress bar gradient for WebKit */
.timeline-slider {
  background: linear-gradient(to right, 
    #C9A96E 0%, 
    #C9A96E var(--played, 0%),
    rgba(255,255,255,0.2) var(--played, 0%),
    rgba(255,255,255,0.2) var(--buffered, 0%),
    rgba(255,255,255,0.1) var(--buffered, 0%));
}

.timeline-slider:focus {
  outline: none;
}

/* Fullscreen wrapper style */
.video-modal.video-fullscreen .timeline-wrapper {
  padding: 8px 0;
  margin: -8px 0;
}

/* Control buttons */
.controls-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.left-controls-cluster,
.right-controls-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #FCF9F4;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background-color: rgba(201, 169, 110, 0.2);
  color: #C9A96E;
  transform: scale(1.05);
}

.player-btn:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 2px;
}

.player-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
  fill: currentColor;
  stroke: currentColor;
}

.icon-media-replay {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
  display: block;
}

.hidden-icon {
  display: none !important;
}

.time-readout {
  font-family: 'Inter', monospace;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 32px;
  letter-spacing: 0.3px;
  color: #e0e0e0;
  font-weight: 500;
}

/* ----------------------------------
   SETTINGS MENU
----------------------------------- */
.settings-container {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-menu {
  position: absolute;
  bottom: 45px;
  right: 0;
  background: rgba(20, 24, 26, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 220px;
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 100;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.settings-menu.active {
  display: flex;
}

.settings-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.settings-panel.hidden {
  display: none;
}

.settings-row, .settings-option, .settings-back {
  background: transparent;
  border: none;
  color: #E9DFD1;
  padding: 12px 16px;
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.settings-row:hover, .settings-option:hover, .settings-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-back {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #C9A96E;
  font-weight: 600;
}

.settings-value {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.settings-option.active {
  color: #C9A96E;
  font-weight: 600;
}

.settings-option.active::after {
  content: '✓';
  font-weight: bold;
  margin-left: 8px;
}

/* Fullscreen settings menu fix */
.video-modal.video-fullscreen .settings-menu {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 10000;
}

/* Responsive modal */
@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    border-radius: 16px;
  }
  .controls-buttons-row {
    gap: 8px;
  }
  .player-btn {
    width: 28px;
    height: 28px;
  }
  .time-readout {
    font-size: 0.7rem;
  }
  .video-track-target {
    max-height: 60vh;
  }
  .video-track-target[data-orientation="portrait"] {
    max-height: 60vh;
  }
  .video-wrapper .play-indicator {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }
  /* Mobile thumb removal */
  .timeline-slider::-webkit-slider-thumb,
  .timeline-slider::-moz-range-thumb {
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
  }
}

@media (max-width: 480px) {
  .modal-container {
    width: 100%;
    border-radius: 12px;
  }
  .custom-controls-wrapper {
    padding: 10px 12px;
  }
  .video-track-target {
    max-height: 55vh;
  }
  .video-track-target[data-orientation="portrait"] {
    max-height: 55vh;
  }
  .video-wrapper .play-indicator {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  /* Mobile thumb removal */
  .timeline-slider::-webkit-slider-thumb,
  .timeline-slider::-moz-range-thumb {
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
  }
}

/* ----------------------------------
   RESUME / PROFESSIONAL BACKGROUND SECTION
----------------------------------- */
.resume-section {
  padding: 5rem 0;
  background: #FFFFFF;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

/* Resume Sidebar */
.resume-sidebar {
  position: sticky;
  top: 2rem;
}

.resume-card {
  background: #FCF9F4;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid #EFE6DB;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
}

.resume-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #C9A96E;
}

.resume-card p {
  color: #4a5b5e;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  background: #C9A96E;
  color: white;
  border: none;
}

.resume-btn:hover {
  background: #b8925a;
  color: white;
}

.resume-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: white;
  stroke-width: 2;
}

/* Stats inside resume card */
.resume-stats {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EFE6DB;
}

.resume-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.resume-stat-label {
  font-size: 0.85rem;
  color: #7A6B53;
}

.resume-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #C9A96E;
}

/* Resume Content */
.resume-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.resume-block {
  background: #FCF9F4;
  border-radius: 24px;
  padding: 1.8rem;
  border: 1px solid #EFE6DB;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-block:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.08);
}

.resume-block h3 {
  font-size: 1.3rem;
  color: #C9A96E;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 3px solid #C9A96E;
  padding-left: 1rem;
}

.resume-item {
  margin-bottom: 1.5rem;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.resume-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E2A2E;
}

.resume-item-date {
  font-size: 0.8rem;
  color: #C9A96E;
  font-weight: 500;
}

.resume-item-subtitle {
  font-size: 0.9rem;
  color: #7A6B53;
  margin-bottom: 0.75rem;
}

.resume-item-list {
  list-style: none;
  padding-left: 0;
}

.resume-item-list li {
  font-size: 0.9rem;
  color: #4a5b5e;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  position: relative;
}

.resume-item-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #C9A96E;
  font-size: 0.8rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.skill-tag {
  background: white;
  border: 1px solid #EFE6DB;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  color: #4a5b5e;
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: #C9A96E;
  color: white;
  border-color: #C9A96E;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 880px) {
  .resume-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .resume-sidebar {
    position: static;
  }
  
  .resume-block h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 500px) {
  .resume-section {
    padding: 3rem 0;
  }
  
  .resume-block, .resume-card {
    padding: 1.2rem;
  }
  
  .resume-item-header {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .skill-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
  }
}

/* ----------------------------------
   RESPONSIVE DESIGN (Site)
----------------------------------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
  .hero > div > p { font-size: 1.2rem; }
}

@media (max-width: 880px) {
  .hero { padding: 3rem 1.5rem; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
  .hero h1 { font-size: 3.5rem; }
  .hero > div > p { font-size: 1.1rem; }
  .btn { font-size: 0.9rem; padding: 0.7rem 1.6rem; }
  .container { padding: 0 1.5rem; }
  .about { flex-direction: column; }
  .section-title { font-size: 2rem; }
  .card { width: 320px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 2.8rem; }
  .hero > div > p { font-size: 1rem; }
  .btn { font-size: 0.85rem; padding: 0.6rem 1.4rem; }
  .section-title { font-size: 1.8rem; }
  .quote { font-size: 1.3rem; }
  .stats { gap: 0.8rem; }
  .stat h2 { font-size: 1.4rem; }
  .hero-card { padding: 1.2rem; }
  .card { width: 100%; max-width: 320px; }
}