:root {
  --accent: #0f766e;
  --accent-strong: #b45309;
  --bg: #f6f2ea;
  --card: #fffdf8;
  --card-strong: #f1e6d4;
  --text: #17212b;
  --muted: #65717d;
  --border: rgba(23, 33, 43, 0.13);
  --shadow: 0 18px 44px rgba(56, 48, 37, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(246, 242, 234, 0.98)),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

.nav-blur {
  backdrop-filter: blur(16px);
  background: rgba(255, 253, 248, 0.88);
  border-bottom: 1px solid var(--border);
}

.achievement-banner {
  background: linear-gradient(
    90deg,
    rgba(15, 118, 110, 0.12),
    rgba(180, 83, 9, 0.1)
  );
  border-bottom: 1px solid var(--border);
}

.nav-link {
  color: var(--muted) !important;
}
.nav-link:hover {
  color: var(--text) !important;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.5rem;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.16);
}

.hero-title {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.14;
  max-width: 21ch;
}

.subtle {
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: 0;
  position: relative;
}

.cardx {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project .cardx:hover {
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(56, 48, 37, 0.16);
}

.mini {
  background: rgba(255, 253, 248, 0.78);
  box-shadow: none;
}

.divider {
  height: 1px;
  background: var(--border);
}

.pill {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.72);
  color: #243241;
  font-size: 0.92rem;
}

.badge-accent {
  background: rgba(15, 118, 110, 0.11);
  border: 1px solid rgba(15, 118, 110, 0.28);
  color: #0f5f59;
}

.badge-soft {
  background: rgba(23, 33, 43, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
  border: none;
  font-weight: 700;
}
.btn-accent:hover {
  background: #115e59;
  color: #ffffff;
}

.btn-outline-light {
  border-color: rgba(23, 33, 43, 0.2) !important;
  color: var(--text) !important;
  background: rgba(255, 253, 248, 0.72);
}

.btn-outline-light:hover {
  border-color: rgba(15, 118, 110, 0.5) !important;
  color: #0f5f59 !important;
  background: rgba(15, 118, 110, 0.08);
}

.pulse-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  position: relative;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.project-title {
  font-weight: 650;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.project-media,
.project-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #efe7db;
  margin-bottom: 1rem;
}

.project-preview {
  overflow: hidden;
}

.slack-preview {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #f8fafc;
  color: #111827;
  font-size: 0.88rem;
  line-height: 1.45;
  margin: -0.2rem 0 1.1rem;
  padding: 0.9rem;
}

.slack-preview p,
.slack-preview ol {
  margin-bottom: 0.45rem;
}

.slack-preview ol {
  padding-left: 1.25rem;
}

.slack-header {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.slack-header span {
  color: #64748b;
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.slack-avatar {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 7px;
  background: #111827;
  color: #5eead4 !important;
  font-weight: 800;
  margin: 0 !important;
}

.preview-topbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.preview-topbar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #64748b;
}

.preview-topbar span:nth-child(1) {
  background: #ef4444;
}

.preview-topbar span:nth-child(2) {
  background: #f59e0b;
}

.preview-topbar span:nth-child(3) {
  background: #10b981;
}

.preview-body {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.preview-sidebar {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.preview-sidebar span,
.code-line {
  display: block;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
}

.preview-code {
  display: grid;
  gap: 0.7rem;
  align-content: center;
}

.code-line.wide {
  width: 94%;
}

.code-line.medium {
  width: 72%;
}

.code-line.short {
  width: 46%;
}

.code-line.accent-line {
  background: rgba(14, 165, 164, 0.55);
}

.top-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.top-skills span {
  border: 1px solid rgba(15, 118, 110, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #16423f;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 0.5rem 0.8rem;
}

/* Filter UI */
button[data-filter].active {
  background: rgba(15, 118, 110, 0.12) !important;
  border-color: rgba(15, 118, 110, 0.45) !important;
  color: #0f5f59 !important;
}

/* Make navbar toggler icon visible on dark bg */
.navbar-toggler {
  border-color: rgba(23, 33, 43, 0.22) !important;
}
.navbar-toggler-icon {
  filter: none;
}
.focus-list {
  padding-left: 1.1rem;
}

.focus-list li {
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-width: 380px;
  margin-left: auto;
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 34%;
}

.profile-panel,
.profile-stats {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.profile-panel {
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.profile-stats {
  border-top: 1px solid var(--border);
  background: rgba(241, 230, 212, 0.42);
}

.profile-stats div {
  flex: 1;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats span {
  color: var(--muted);
  font-size: 0.86rem;
}

.achievement-highlight {
  border: 1px solid rgba(180, 83, 9, 0.24);
  border-radius: 8px;
  background: rgba(180, 83, 9, 0.08);
  color: var(--text);
  list-style-position: inside;
  margin-left: -1.1rem;
  padding: 0.85rem 1rem;
}

@media (max-width: 768px) {
  .hero-title {
    max-width: none;
  }

  .preview-body {
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
  }
}
