/* ========================================================================
       1. CSS VARIABLES & RESET (PURE VANILLA CSS — NO TAILWIND)
    ======================================================================== */
:root {
  --bg-page: #f3f1ec;
  --card-bg: #ffffff;
  --card-border: #e7e3dc;
  --subcard-bg: #f8f7f4;
  --subcard-border: #e7e3dc;
  --text-main: #18181b;
  --text-muted: #52525b;
  --text-subtle: #71717a;
  --accent: #ea580c;
  --accent-light: #f97316;
  --accent-bright: #fb923c;
  --accent-dark: #c2410c;
  --nav-bg: rgba(255, 255, 255, 0.96);
  --nav-border: #e7e3dc;
  --hero-bg: #ffffff;
  --shadow-card: 0 4px 18px rgba(36, 31, 25, 0.06);
}

body.dark-mode {
  --bg-page: #0f172a;
  --card-bg: #1e293b;
  --card-border: #334155;
  --subcard-bg: #273449;
  --subcard-border: #475569;
  --text-main: #f4f4f5;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;
  --nav-bg: rgba(30, 41, 59, 0.94);
  --nav-border: #475569;
  --hero-bg: #172033;
  --shadow-card: 0 8px 24px rgba(2, 6, 23, 0.24);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  padding: 6.5rem 1rem 2.5rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
  overflow-x: hidden;
}

@media (min-width: 640px) {
  body {
    padding: 7rem 1.5rem 3rem;
  }
}

@keyframes terbitBody {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.font-mono {
  font-family: "JetBrains Mono", monospace;
}

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

.accent-bright {
  color: var(--accent-bright);
}

/* ========================================================================
       2. FIXED FLOATING PILL NAVBAR
    ======================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: 94%;
  max-width: 56rem;
}

.navbar-pill {
  width: 100%;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: var(--nav-bg);
  border: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 3px 12px rgba(36, 31, 25, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .navbar-pill {
    padding: 0.625rem 1.5rem;
  }
}

.brand-logo {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
}

.brand-logo span.dot {
  color: var(--accent);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

.nav-links a.active {
  border-bottom: 2px solid var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-circle-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid var(--subcard-border);
  background: var(--card-bg);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-circle-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-hire-nav {
  display: none;
  padding: 0.42rem 1rem;
  border-radius: 0.4rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: none;
  transition: all 0.2s ease;
}

.btn-hire-nav:hover {
  background: var(--accent-dark);
}

@media (min-width: 640px) {
  .btn-hire-nav {
    display: inline-flex;
  }
}

.mobile-menu-btn {
  display: inline-flex;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-dropdown {
  display: none;
  margin-top: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--subcard-border);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.mobile-dropdown.open {
  display: flex;
}

@media (min-width: 768px) {
  .mobile-dropdown.open {
    display: none;
  }
}

/* ========================================================================
       3. MAIN BENTO CONTAINER & HERO CARD
    ======================================================================== */
.main-container {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: terbitBody 0.8s ease-out forwards;
}

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease;
}

@media (min-width: 640px) {
  .bento-card {
    border-radius: 1rem;
  }
}

.hero-section {
  background: var(--hero-bg);
  overflow: hidden;
  padding: 2.25rem 1.5rem;
}

@media (min-width: 640px) {
  .hero-section {
    padding: 3.25rem 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 3.75rem 4rem;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 2rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.social-tile {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  font-size: 0.7rem;
  font-weight: 700;
}

.social-tile:hover {
  transform: scale(1.08);
}

.brand-icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.ui-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.tile-ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}
.tile-tt {
  background: #18181b;
}
.tile-gh {
  background: #27272a;
}
.tile-yt {
  background: #dc2626;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-role {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .hero-role {
    font-size: 1rem;
  }
}

.hero-bio {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 36rem;
}

@media (min-width: 640px) {
  .hero-bio {
    font-size: 0.9375rem;
  }
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  padding-top: 0.4rem;
}

.btn-primary-pill {
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.2s ease;
}

.btn-primary-pill:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline-pill {
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  border: 1px solid var(--subcard-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-portrait-col {
  display: flex;
  justify-content: center;
}

.portrait-wrapper {
  position: relative;
  width: 16rem;
}

@media (min-width: 640px) {
  .portrait-wrapper {
    width: 18.5rem;
  }
}

.portrait-glow {
  display: none;
}

.portrait-frame {
  position: relative;
  z-index: 1;
  border-radius: 0.75rem;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.portrait-img-box {
  aspect-ratio: 4 / 4.5;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e4e4e7;
}

.portrait-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ========================================================================
       4. ABOUT ME
    ======================================================================== */
.about-section-wrap {
  display: grid;
}

.bento-inner-pad {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .bento-inner-pad {
    padding: 2rem;
  }
}

.about-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-heading-md {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .section-heading-md {
    font-size: 1.85rem;
  }
}

.tab-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.btn-tab-standalone {
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--subcard-border);
  background: var(--subcard-bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tab-standalone:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-tab-standalone.active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 640px) {
  .about-profile-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.about-photo-wrap {
  position: relative;
  max-width: 11.5rem;
  margin: 0 auto;
  width: 100%;
}

.about-photo-bg {
  display: none;
}

.about-photo-wrap img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 0;
  box-shadow: none;
  display: block;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-summary-box {
  padding: 1rem;
  border-radius: 1rem;
  background: var(--subcard-bg);
  border: 1px solid var(--subcard-border);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent);
}

@media (min-width: 640px) {
  .stat-val {
    font-size: 1.25rem;
  }
}

.stat-lbl {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.btn-action-orange {
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  border: none;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
  transition: all 0.2s ease;
  width: fit-content;
}

.btn-action-orange:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* Timeline view inside About Me */
.timeline-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .timeline-scroll {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.timeline-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--subcard-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.timeline-group-title .ui-icon {
  color: var(--text-subtle);
}

.timeline-item {
  position: relative;
  padding: 0.1rem 0 1.1rem 1rem;
  border-left: 1px solid var(--subcard-border);
  margin-left: 0.2rem;
}

.timeline-item::before {
  position: absolute;
  top: 0.2rem;
  left: -0.26rem;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--card-bg);
  content: "";
}

.timeline-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
}

.timeline-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;
}

.timeline-badge {
  color: var(--text-subtle);
  font-size: 0.85rem;
  font-weight: 400;
  white-space: nowrap;
}

.timeline-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.15rem;
}

.timeline-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ========================================================================
       5. MY PROJECTS & KARYA (BLENDED ON #071B2B BACKGROUND)
    ======================================================================== */
.projects-section {
  padding: 1rem 0.25rem;
}

.projects-header {
  margin: 0 0 1.75rem;
}

.projects-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.projects-title .accent-bright {
  color: var(--accent);
}

@media (min-width: 640px) {
  .projects-title {
    font-size: 2.25rem;
  }
}

.projects-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--accent);
}

.filter-pill.active {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: none;
}

.filter-count {
  padding: 0.08rem 0.42rem;
  border-radius: 0.2rem;
  font-size: 0.65rem;
  background: rgba(0, 0, 0, 0.08);
}

.filter-pill.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(36, 31, 25, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(36, 31, 25, 0.1);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #e4e4e7;
  overflow: hidden;
  cursor: pointer;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-cat-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.25rem 0.65rem;
  border-radius: 0.35rem;
  background: rgba(24, 24, 27, 0.88);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-year-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.18rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: #18181b;
  font-size: 0.65rem;
  font-weight: 700;
}

.project-body {
  padding: 1.25rem 1.25rem 0.75rem;
}

.project-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  cursor: pointer;
  transition: color 0.2s ease;
}

.project-title:hover {
  color: var(--accent);
}

.project-desc {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tags {
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.project-actions {
  padding: 0.5rem 1.25rem 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.btn-card-detail {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--subcard-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-card-detail:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-card-visit {
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-card-visit:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* ========================================================================
       6. FOOTER AND LOCATION MAP
    ======================================================================== */
.footer-inner {
  padding: 2rem 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    padding: 2.5rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--subcard-border);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
    gap: 2rem;
  }
}

.footer-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .footer-info-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1fr);
  }
}

.footer-map-frame {
  width: 100%;
  height: 13rem;
  border: 1px solid var(--subcard-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--subcard-bg);
}

@media (min-width: 768px) {
  .footer-map-frame {
    height: 100%;
    min-height: 14rem;
  }
}

.footer-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-desc {
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 22rem;
  margin-top: 0.65rem;
}

.footer-email {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.footer-email:hover {
  color: var(--accent);
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.75rem;
}

.footer-social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.footer-social-btn:hover {
  transform: scale(1.07);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ========================================================================
       7. MODALS (WORK LIGHTBOX, CV PREVIEW)
    ======================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--card-bg);
  color: var(--text-main);
  border: 1px solid var(--subcard-border);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 48rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--subcard-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 5;
}

.modal-work-image-wrap {
  display: flex;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.modal-work-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain;
}

.modal-close-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--text-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.modal-close-btn:hover {
  background: rgba(234, 88, 12, 0.12);
  color: var(--accent);
}
