/* ── 박주은 Portfolio · Notion + Apple + Toss ── */

:root {
  --bg: #ffffff;
  --bg-s: #f7f8fa;
  --t1: #191f28;
  --t2: #4e5968;
  --t3: #8b95a1;
  --bd: #e5e8eb;

  /* Accent: Mint only used for tags/lines/highlights */
  --ac: #12b886;
  --ac-s: #e6f8f1;

  /* Shadows & Radius */
  --sh-sm: 0 4px 20px rgba(0, 0, 0, 0.03);
  --sh-md: 0 12px 40px rgba(0, 0, 0, 0.06);
  --r-card: 24px;
  --r-lg: 32px;

  --nav-h: 64px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── RESET ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html.lenis,
html.lenis-smooth {
  height: auto;
}

.lenis.lenis-smooth body {
  scroll-behavior: auto;
}

.lenis.lenis-prevent {
  overscroll-behavior: contain;
}

.lenis.lenis-blocked {
  overflow: hidden;
}

html {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  overflow-x: hidden;
  font-size: 14.4px;
  /* 16px * 0.9 = 14.4px for 90% desktop zoom scale */
}

/* ── APP BACKGROUND LAYER (Neumorphism / Soft Depth) ── */
.app-background {
  position: fixed;
  inset: 0;
  z-index: -10;
  /* Put behind all content elements */
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 15%, rgba(18, 184, 134, 0.05), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(163, 177, 198, 0.2), transparent 30%),
    #eef2f6;
  /* Neumorphic base color: soft greyish blue */
}

.soft-depth-shape {
  position: absolute;
  border-radius: 80px;
  background: #eef2f6;
  /* Color matches the background for the true neumorphic illusion */
  will-change: transform;
}

/* Convex shape (embossed / popped out) */
.shape-convex {
  box-shadow:
    14px 14px 32px rgba(165, 179, 200, 0.55),
    -14px -14px 32px rgba(255, 255, 255, 0.95);
}

/* Concave shape (debossed / pressed in) */
.shape-concave {
  box-shadow:
    inset 14px 14px 30px rgba(165, 179, 200, 0.6),
    inset -14px -14px 30px rgba(255, 255, 255, 0.95);
}

.shape-1 {
  width: 480px;
  height: 280px;
  top: 140px;
  right: -100px;
  transform: rotate(-12deg);
}

.shape-2 {
  width: 380px;
  height: 240px;
  top: 760px;
  left: -120px;
  transform: rotate(10deg);
}

.shape-3 {
  width: 580px;
  height: 320px;
  bottom: 240px;
  right: -160px;
  transform: rotate(8deg);
}

body {
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden !important;
  /* Prevent background scroll when modal active */
}

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

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

ul {
  list-style: none;
}

/* ── LAYOUT & COMMON ── */
.container {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 108px 0;
  /* scaled down from 120px */
}

.bg-soft {
  background: var(--bg-s);
}

.sec-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 12px;
}

.sec-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.25;
  color: var(--t1);
  margin-bottom: 14px;
}

.sec-desc {
  font-size: 1.05rem;
  color: var(--t2);
  margin-bottom: 48px;
  max-width: 600px;
  word-break: keep-all;
}

/* ── REVEAL EFFECT ── */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Section-based Reveal */
.reveal-section .sec-label,
.reveal-section .sec-title,
.reveal-section .sec-desc,
.reveal-section .reveal-parent {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-section.on .sec-label {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.reveal-section.on .sec-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

.reveal-section.on .sec-desc {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.16s;
}

.reveal-section.on .reveal-parent {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.24s;
}

/* Stagger Reveal for Children */
.reveal-parent.on .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.reveal-child {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal-parent.on .reveal-child:nth-child(1) {
  transition-delay: 0.06s;
}

.reveal-parent.on .reveal-child:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-parent.on .reveal-child:nth-child(3) {
  transition-delay: 0.18s;
}

.reveal-parent.on .reveal-child:nth-child(4) {
  transition-delay: 0.24s;
}

.reveal-parent.on .reveal-child:nth-child(5) {
  transition-delay: 0.30s;
}

.reveal-parent.on .reveal-child:nth-child(6) {
  transition-delay: 0.36s;
}

.reveal-parent.on .reveal-child:nth-child(7) {
  transition-delay: 0.42s;
}

.reveal-parent.on .reveal-child:nth-child(8) {
  transition-delay: 0.48s;
}

/* ── BUTTONS ── */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
  background: var(--t1);
  color: #ffffff;
}

.btn-primary:hover {
  background: #000000;
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--bg-s);
  color: var(--t2);
  border: 1px solid var(--bd);
}

.btn-secondary:hover {
  background: var(--bd);
  color: var(--t1);
  transform: scale(1.02);
}

.btn-ghost {
  background: transparent;
  color: var(--t2);
  border: 1px solid var(--bd);
}

.btn-ghost:hover {
  border-color: var(--t2);
  color: var(--t1);
}

/* ── HEADER ── */
/* ── HEADER (Glassmorphic Pill Navigation) ── */
.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.78) 0%,
      rgba(255, 255, 255, 0.52) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow:
    0 20px 60px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-pill.scrolled {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(255, 255, 255, 0.64) 100%);
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.82);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  padding: 0;
  outline: none;
  z-index: 910;
}

.hamburger-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #4e5968;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.3s ease;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links li {
  display: inline-block;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4e5968;
  padding: 10px 16px;
  border-radius: 999px;
  display: block;
  transition: all 0.25s ease;
}

.nav-links a.active {
  background: rgba(255, 255, 255, 0.72) !important;
  color: #191f28 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.52);
  color: #191f28;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 4px 14px rgba(15, 23, 42, 0.06);
}

/* ── HERO ── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-blur-mint {
  position: absolute;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(18, 184, 134, 0.05) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  top: 10%;
  left: 5%;
  z-index: 1;
  pointer-events: none;
}

.hero-blur-gray {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(165, 179, 200, 0.08) 0%, transparent 70%);
  filter: blur(90px);
  border-radius: 50%;
  bottom: 5%;
  right: 8%;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-shape {
  position: absolute;
  width: 620px;
  height: 380px;
  background: rgba(238, 242, 246, 0.38);
  border-radius: 120px;
  box-shadow:
    14px 14px 40px rgba(165, 179, 200, 0.14),
    -14px -14px 40px rgba(255, 255, 255, 0.75);
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  z-index: 1;
  pointer-events: none;
  opacity: 0.9;
}

.hero-center {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-center h1 {
  font-size: clamp(2.0rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--t1);
  margin-bottom: 24px;
  max-width: 780px;
  word-break: keep-all;
  text-align: center;
}

.hero-center h1 span {
  color: var(--t1);
}

.hero-desc {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--t3);
  line-height: 1.6;
  margin-bottom: 44px;
  max-width: 520px;
  word-break: keep-all;
  text-align: center;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin-bottom: 48px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 232, 235, 0.9);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--t2);
  margin-bottom: 28px;
  display: inline-block;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.gradient-text-flow {
  background: linear-gradient(135deg, #191f28 15%, #127bb8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 800;
}

.hero-main-title {
  font-size: clamp(2.0rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--t1);
  margin-bottom: 40px;
  max-width: 780px;
  word-break: keep-all;
  text-align: center;
}

.hero-footer-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-footer-tags span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--t3);
  letter-spacing: -0.01em;
}

.hero-footer-tags span:nth-child(even) {
  opacity: 0.3;
  font-weight: 400;
}

/* Hero Workflow Line */
.hero-workflow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 232, 235, 0.95);
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hero-workflow:hover {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.wf-step {
  font-size: 0.78rem;
  font-weight: 700;
  color: #4e5968;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.wf-sep {
  font-size: 0.72rem;
  color: #8b95a1;
  line-height: 1;
}

/* ── CURRENT FOCUS ── */
.callout {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--bd);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.callout-bar {
  width: 4px;
  background: var(--ac);
  flex-shrink: 0;
}

.callout-body {
  padding: 36px 40px;
}

.callout-body h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.callout-body ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.callout-body li {
  font-size: 1.05rem;
  color: var(--t2);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  word-break: keep-all;
}

.callout-body li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--ac);
  font-weight: 700;
}

/* ── CARD GRID (Toss Style) ── */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  background: #eef2f6;
  border: none;
  border-radius: var(--r-card);
  padding: 36px;
  box-shadow:
    10px 10px 24px rgba(165, 179, 200, 0.45),
    -10px -10px 24px rgba(255, 255, 255, 0.95);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  box-shadow:
    inset 8px 8px 18px rgba(165, 179, 200, 0.5),
    inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.card:hover {
  transform: scale(0.985);
  box-shadow:
    2px 2px 6px rgba(165, 179, 200, 0.15),
    -2px -2px 6px rgba(255, 255, 255, 0.3);
}

.card:hover::after {
  opacity: 1;
}

.card-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bd);
  margin-bottom: 12px;
  line-height: 1;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  font-size: 0.98rem;
  color: var(--t2);
  line-height: 1.65;
  word-break: keep-all;
}

.card-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--ac);
  font-weight: 600;
  background: var(--ac-s);
  padding: 8px 14px;
  border-radius: 8px;
  line-height: 1.5;
}

.card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ac);
  background: var(--ac-s);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* ── PROJECTS HUB ── */
.project-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card-mini {
  background: #eef2f6;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    10px 10px 24px rgba(165, 179, 200, 0.45),
    -10px -10px 24px rgba(255, 255, 255, 0.95);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  height: 100%;
  z-index: 1;
}

.project-card-mini::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow:
    inset 8px 8px 18px rgba(165, 179, 200, 0.5),
    inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.project-card-mini:hover {
  transform: scale(0.985);
  box-shadow:
    2px 2px 6px rgba(165, 179, 200, 0.15),
    -2px -2px 6px rgba(255, 255, 255, 0.3);
}

.project-card-mini:hover::after {
  opacity: 1;
}

.notion-card-cover {
  height: 84px;
  width: 100%;
  position: relative;
}

.notion-card-body {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.notion-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef2f6;
  border: none;
  box-shadow:
    inset 3px 3px 6px rgba(165, 179, 200, 0.45),
    inset -3px -3px 6px rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -22px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.notion-card-icon-wrap img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
}

.notion-card-icon-wrap.default-icon span {
  font-size: 1.35rem;
  line-height: 1;
}

.notion-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.notion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mini-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #191f28;
  margin: 0;
  transition: color 0.25s ease;
}

.project-card-mini:hover .mini-title {
  color: #1b64da;
}

.notion-open-indicator {
  font-size: 0.7rem;
  color: #8b95a1;
  background: #f2f4f6;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.project-card-mini:hover .notion-open-indicator {
  background: #e8f3ff;
  color: #1b64da;
  transform: translateY(-1px);
}

.mini-desc {
  font-size: 0.88rem;
  color: #4e5968;
  line-height: 1.45;
  margin: 0 0 16px 0;
  min-height: 48px;
  word-break: keep-all;
}

.notion-card-properties {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px dashed #f2f4f6;
  padding-top: 14px;
  margin-bottom: 16px;
}

.notion-prop {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.notion-prop:first-child {
  min-height: 64px;
}

.prop-k {
  color: #8b95a1;
  min-width: 48px;
  font-weight: 500;
}

.prop-v {
  color: #4e5968;
  font-weight: 600;
  flex-grow: 1;
}

.notion-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed #f2f4f6;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-quick-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.card-link-btn {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}

.card-link-primary {
  background: #191f28;
  color: #ffffff;
}

.card-link-primary:hover {
  background: #1b64da;
  transform: translateY(-1px);
}

.card-link-secondary {
  background: transparent;
  color: #4e5968;
  border: 1px solid #e5e8eb;
}

.card-link-secondary:hover {
  background: #f2f4f6;
  border-color: #ccd2d8;
  transform: translateY(-1px);
}

.card-link-sub {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #4e5968 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  font-size: 0.72rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: all 0.22s ease;
}

.card-link-sub:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #191f28 !important;
  transform: translateY(-1px) !important;
}

.view-detail-btn-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  background: #191f28;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 12px;
  transition: background-color 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 12px rgba(25, 31, 40, 0.08);
}

.project-card-mini:hover .view-detail-btn-main {
  background: #1b64da;
  box-shadow: 0 8px 20px rgba(27, 100, 218, 0.2);
}

.view-detail-btn-main .arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card-mini:hover .view-detail-btn-main .arrow {
  transform: translateX(4px);
}

/* Notion Tag Labels */
.prop-v.label-mint {
  color: #12b886;
  background: #e6f8f1;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.prop-v.label-blue {
  color: #1b64da;
  background: #e8f3ff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.prop-v.label-gray {
  color: #4e5968;
  background: #f2f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

#tech .container {
  background: #eef2f6;
  border: none;
  border-radius: 32px;
  padding: 48px;
  box-shadow:
    14px 14px 36px rgba(165, 179, 200, 0.45),
    -14px -14px 36px rgba(255, 255, 255, 0.95);
  max-width: 1120px;
  box-sizing: border-box;
}

/* ── TECH STACK (Filter & Icons Grid) ── */
.tech-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.tech-filter-btn {
  background: #ffffff;
  border: 1px solid #e5e8eb;
  color: #4e5968;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s;
}

.tech-filter-btn:hover {
  border-color: #ccd2d8;
  color: #191f28;
  background: #f9fafb;
  transform: translateX(4px);
}

.tech-filter-btn:active {
  transform: scale(0.95);
}

.tech-filter-btn.active {
  background: #191f28 !important;
  border-color: #191f28 !important;
  color: #ffffff !important;
  transform: translateX(0) !important;
}

.filter-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
  transition: background 0.25s, color 0.25s;
}

.tech-filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.tech-filter-btn:not(.active) .filter-count {
  background: #f2f4f6;
  color: #8b95a1;
}

.tech-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 14px;
  min-height: 200px;
  justify-content: start;
  align-items: start;
}

@keyframes techPopIn {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.tech-item {
  position: relative;
  background: #eef2f6;
  border: none;
  border-radius: 22px;
  padding: 14px 10px;
  width: 116px;
  height: 108px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: default;
  box-shadow:
    8px 8px 18px rgba(165, 179, 200, 0.45),
    -8px -8px 18px rgba(255, 255, 255, 0.95);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.25s ease;
  opacity: 1;
  z-index: 1;
  overflow: hidden;
}

.tech-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow:
    inset 6px 6px 12px rgba(165, 179, 200, 0.5),
    inset -6px -6px 12px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.tech-item:hover {
  transform: scale(0.97);
  box-shadow:
    2px 2px 5px rgba(165, 179, 200, 0.15),
    -2px -2px 5px rgba(255, 255, 255, 0.3);
}

.tech-item:hover::after {
  opacity: 1;
}

.tech-item.hide {
  display: none !important;
  opacity: 0;
}

.tech-logo-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  border-radius: 11px;
  padding: 7px;
  box-sizing: border-box;
  box-shadow:
    inset 3px 3px 6px rgba(165, 179, 200, 0.45),
    inset -3px -3px 6px rgba(255, 255, 255, 0.95);
}

.tech-logo-wrap img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tech-item span {
  font-size: 0.79rem;
  font-weight: 600;
  color: #333d4b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* ── NOTION STYLE ACTIVITY LOG (TIMELINE) ── */
.notion-activity-log {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  box-shadow:
    0 8px 30px rgba(165, 179, 200, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.log-row {
  display: flex;
  align-items: flex-start;
  padding: 26px 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background-color 0.22s ease;
}

.log-row:last-child {
  border-bottom: none;
}

.log-row:hover {
  background-color: rgba(0, 0, 0, 0.012);
}

.log-date {
  width: 150px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #8b95a1;
  flex-shrink: 0;
  padding-top: 4px;
  letter-spacing: -0.01em;
}

.log-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.log-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #191f28;
  letter-spacing: -0.02em;
}

.log-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4e5968;
  background: #f2f4f6;
  padding: 3px 8px;
  border-radius: 6px;
}

.log-desc {
  font-size: 0.92rem;
  color: #4e5968;
  line-height: 1.6;
  margin: 0;
  word-break: keep-all;
}

.log-links {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.log-pill-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #4e5968;
  background: transparent;
  border: 1px solid #e5e8eb;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.log-pill-link:hover {
  background: #f2f4f6;
  border-color: #ccd2d8;
  color: #191f28;
  transform: translateY(-1px);
}

.contact-wrap {
  position: relative;
  background: #eef2f6;
  border: none;
  border-radius: var(--r-lg);
  box-shadow:
    12px 12px 32px rgba(165, 179, 200, 0.45),
    -12px -12px 32px rgba(255, 255, 255, 0.95);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 1;
  overflow: hidden;
}

.contact-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  box-shadow:
    inset 10px 10px 24px rgba(165, 179, 200, 0.5),
    inset -10px -10px 24px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.contact-wrap:hover {
  transform: scale(0.99);
  box-shadow:
    2px 2px 8px rgba(165, 179, 200, 0.15),
    -2px -2px 8px rgba(255, 255, 255, 0.3);
}

.contact-wrap:hover::after {
  opacity: 1;
}

.contact-text {
  padding: 64px;
}

.contact-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.contact-desc {
  font-size: 1.1rem;
  color: var(--t2);
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.ci {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.ci-k {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--t3);
  min-width: 80px;
}

.ci-v {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--t1);
}

.ci-v:hover {
  color: var(--ac);
}

.contact-btns {
  display: flex;
  gap: 12px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--bd);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--t3);
}



/* ── NOTION STYLE MODAL SYSTEM ── */
.notion-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: rgba(15, 15, 15, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.notion-modal-container {
  background: #ffffff;
  width: 90%;
  max-width: 960px;
  height: 85vh;
  border-radius: 28px;
  border: 1px solid #e5e8eb;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.notion-modal-overlay.active .notion-modal-container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.notion-modal-scroll-wrap {
  flex-grow: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Notion Modal Inner Stagger Effect */
.notion-modal-scroll-wrap>* {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.notion-modal-overlay.active .notion-modal-scroll-wrap>*:nth-child(1) {
  transition-delay: 0.08s;
  opacity: 1;
  transform: translateY(0);
}

.notion-modal-overlay.active .notion-modal-scroll-wrap>*:nth-child(2) {
  transition-delay: 0.16s;
  opacity: 1;
  transform: translateY(0);
}

.notion-modal-overlay.active .notion-modal-scroll-wrap>*:nth-child(3) {
  transition-delay: 0.24s;
  opacity: 1;
  transform: translateY(0);
}

.notion-modal-overlay.active .notion-modal-scroll-wrap>*:nth-child(4) {
  transition-delay: 0.32s;
  opacity: 1;
  transform: translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

.dots-close-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4e5968;
  border-radius: 999px;
  border: 1px solid rgba(229, 232, 235, 0.85);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.82) 0%,
      rgba(255, 255, 255, 0.58) 100%);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  outline: none;
  transition:
    background 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dots-close-button:hover {
  color: #191f28;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(255, 255, 255, 0.68) 100%);
  box-shadow:
    0 14px 36px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.dots-close-button:active {
  transform: scale(0.96);
}

.dots-close-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(18, 184, 134, 0.24),
    0 14px 36px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

/* ── Dots Morphing SVG CSS Transition ── */
.dots-close-button svg {
  overflow: visible;
}

.dots-close-button .dot {
  transition:
    opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.25);
}

.dots-close-button .dot-tl {
  transform-origin: 6px 6px;
}

.dots-close-button .dot-tr {
  transform-origin: 16px 6px;
}

.dots-close-button .dot-bl {
  transform-origin: 6px 16px;
}

.dots-close-button .dot-br {
  transform-origin: 16px 16px;
}

.dots-close-button .morph-line {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.25);
}

.dots-close-button .line-1 {
  transform-origin: 6px 6px;
  transform: scale(0);
}

.dots-close-button .line-2 {
  transform-origin: 16px 6px;
  transform: scale(0);
}

/* Active/Hover/Focus morph state */
.dots-close-button:hover .dot,
.dots-close-button:focus .dot,
.dots-close-button:focus-visible .dot {
  opacity: 0;
  transform: scale(0.3);
}

.dots-close-button:hover .morph-line,
.dots-close-button:focus .morph-line,
.dots-close-button:focus-visible .morph-line {
  transform: scale(1);
}

/* Accessibility: prefers-reduced-motion fallback */
@media (prefers-reduced-motion: reduce) {

  .dots-close-button .dot,
  .dots-close-button .morph-line {
    transition: none !important;
  }
}

/* Notion Page Elements */
.notion-header-bg {
  height: 160px;
  background: #f2f4f6;
  width: 100%;
}

.notion-body {
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.notion-emoji {
  font-size: 4.8rem;
  margin-top: -85px;
  margin-bottom: 20px;
  display: inline-block;
  line-height: 1;
  user-select: none;
}

.notion-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #191f28;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.notion-subtitle {
  font-size: 1.15rem;
  color: #4e5968;
  margin-bottom: 28px;
  font-weight: 500;
}

/* 2-Column Table Properties */
.notion-metadata {
  display: table;
  width: 100%;
  margin-bottom: 32px;
}

.meta-row {
  display: table-row;
}

.meta-label {
  display: table-cell;
  color: #8b95a1;
  width: 140px;
  padding: 8px 0;
  font-weight: 500;
  font-size: 0.92rem;
}

.meta-val {
  display: table-cell;
  color: #191f28;
  padding: 8px 0;
  font-weight: 600;
  font-size: 0.92rem;
  vertical-align: middle;
}

.meta-tag-pill {
  display: inline-block;
  background: #f2f4f6;
  color: #4e5968;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 4px;
}

.notion-link-pill {
  display: inline-flex;
  align-items: center;
  background: #f2f4f6;
  border: 1px solid #e5e8eb;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #191f28;
  margin-right: 6px;
  transition: background 0.15s ease;
}

.notion-link-pill:hover {
  background: #e5e8eb;
}

.notion-page-divider {
  height: 1px;
  background: #e5e8eb;
  margin: 16px 0 28px 0;
}

.notion-block {
  margin-bottom: 32px;
}

.notion-block h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #191f28;
  margin-top: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notion-block p {
  font-size: 0.98rem;
  color: #4e5968;
  line-height: 1.7;
  word-break: keep-all;
}

.notion-block strong {
  color: #191f28;
  font-weight: 600;
}

/* Callout Box inside Notion */
.notion-callout-block {
  display: flex;
  gap: 14px;
  background: #f7f8fa;
  border: 1px solid #e5e8eb;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.callout-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.callout-text {
  color: #4e5968;
}

.callout-text strong {
  color: #191f28;
}

/* Notion List */
.notion-bullet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  list-style-type: disc;
  margin-bottom: 24px;
}

.notion-bullet li {
  font-size: 0.98rem;
  color: #4e5968;
  line-height: 1.75;
  padding-left: 4px;
  word-break: keep-all;
}

.notion-bullet li strong {
  color: var(--t1);
}

/* ── RESPONSIVE ── */
@media(max-width:992px) {
  .section {
    padding: 80px 0;
  }

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

  .hero-right {
    order: -1;
  }

  .project-hub-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .project-hub-visual {
    order: -1;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

  .card-grid-2 {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .contact-text {
    padding: 48px 32px;
  }
}

@media(max-width:768px) {
  .site-header {
    top: 16px;
    right: 16px;
    left: auto;
    transform: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.88) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 12px 8px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-8px) scale(0.95);
    transform-origin: top right;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    gap: 4px;
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 10px 16px;
    width: 100%;
    text-align: center;
    border-radius: 12px;
  }

  .nav-links a.active {
    background: rgba(25, 31, 40, 0.06) !important;
    color: #191f28 !important;
    box-shadow: none !important;
  }

  .tech-logo-grid {
    min-height: auto;
    align-items: start;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns a {
    width: 100%;
    text-align: center;
  }



  .flow-steps {
    gap: 4px;
  }

  .fs {
    min-width: 60px;
    font-size: 0.72rem;
    padding: 10px;
  }

  .notion-body {
    padding: 32px 24px 48px;
  }

  .notion-title {
    font-size: 1.8rem;
  }

  .meta-row {
    flex-direction: column;
    gap: 2px;
  }

  .meta-label {
    width: 100%;
  }

  .contact-text {
    padding: 36px 24px;
  }

  .contact-text h2 {
    font-size: 2rem;
  }

  .contact-btns {
    flex-direction: column;
  }

  .contact-btns a,
  .contact-btns button {
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media(max-width:375px) {
  .container {
    padding: 0 16px;
  }

  .sec-title {
    font-size: 1.6rem;
  }
}

/* ── AI-ASSISTED DEVELOPMENT ── */
.ai-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.ai-card {
  position: relative;
  background: #eef2f6;
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow:
    10px 10px 24px rgba(165, 179, 200, 0.45),
    -10px -10px 24px rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.4s ease;
  z-index: 1;
  overflow: hidden;
}

.ai-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  box-shadow:
    inset 8px 8px 18px rgba(165, 179, 200, 0.5),
    inset -8px -8px 18px rgba(255, 255, 255, 0.95);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.ai-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 16px 32px rgba(165, 179, 200, 0.22),
    0 4px 8px rgba(165, 179, 200, 0.1);
  border-color: rgba(18, 184, 134, 0.22);
}

.ai-card:hover::after {
  opacity: 0.5;
}

.ai-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
}

.ai-card-index {
  font-size: 0.95rem;
  font-weight: 800;
  color: #12b886;
  letter-spacing: -0.01em;
}

.ai-card-icon {
  width: 44px;
  height: 44px;
  background: #eef2f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow:
    inset 3px 3px 6px rgba(165, 179, 200, 0.45),
    inset -3px -3px 6px rgba(255, 255, 255, 0.95);
}

.ai-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  word-break: keep-all;
}

.ai-card-desc {
  font-size: 0.92rem;
  color: var(--t2);
  line-height: 1.6;
  margin-bottom: 20px;
  word-break: keep-all;
}

.ai-evidence-row {
  margin-top: auto;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evidence-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4e5968;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.02);
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.ai-card:hover .evidence-pill {
  background: rgba(18, 184, 134, 0.08);
  color: #12b886;
  border-color: rgba(18, 184, 134, 0.1);
}

@media(max-width: 992px) {
  .ai-cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (min-width: 993px) {

  .hero,
  .section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 0;
    box-sizing: border-box;
    scroll-margin-top: 0;
  }

  .section>.container {
    width: 100%;
  }

  /* Tech Stack Sticky Layout */
  #tech .container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 36px;
    align-items: start;
  }

  .tech-left-col {
    position: sticky;
    top: 100px;
    height: fit-content;
  }

  .tech-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .tech-filter-btn {
    width: 100%;
    text-align: left;
    padding: 10px 18px;
  }

}

@media (max-width: 992px) {
  html {
    font-size: 16px;
    /* Restore original scale on tablet and mobile viewports */
  }

  .project-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #tech .container {
    padding: 36px 20px;
    border-radius: 24px;
    box-shadow:
      8px 8px 24px rgba(165, 179, 200, 0.35),
      -8px -8px 24px rgba(255, 255, 255, 0.9);
  }

  .tech-logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 14px;
    justify-content: center;
  }

  .tech-item {
    width: 100%;
    height: 108px;
    border-radius: 20px;
    padding: 12px 8px;
    box-shadow:
      5px 5px 12px rgba(165, 179, 200, 0.35),
      -5px -5px 12px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .tech-item::after {
    border-radius: 20px;
    box-shadow:
      inset 4px 4px 8px rgba(165, 179, 200, 0.4),
      inset -4px -4px 8px rgba(255, 255, 255, 0.9);
  }

  .tech-item:hover {
    box-shadow:
      2px 2px 4px rgba(165, 179, 200, 0.12),
      -2px -2px 4px rgba(255, 255, 255, 0.25);
  }

  .tech-logo-wrap {
    width: 40px;
    height: 40px;
    padding: 6px;
    box-shadow:
      inset 2px 2px 4px rgba(165, 179, 200, 0.35),
      inset -2px -2px 4px rgba(255, 255, 255, 0.9);
  }

  .tech-logo-wrap img {
    width: 22px;
    height: 22px;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── MOBILE RESPONSIVE OPTIMIZATION (768px & under) ── */
@media (max-width: 768px) {
  html {
    font-size: 16px;
    /* Restore original scaling on mobile for readability */
  }

  .pc-only {
    display: none !important;
  }

  .section {
    padding: 72px 0;
  }

  /* Hero Optimization */
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-main-title {
    font-size: clamp(1.5rem, 5.8vw, 2.2rem);
    line-height: 1.35;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    padding: 0 8px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 8px 14px;
    margin-bottom: 16px;
  }

  .hero-footer-tags {
    gap: 8px;
    margin-bottom: 20px;
  }

  .hero-footer-tags span {
    font-size: 0.78rem;
  }

  .hero-workflow {
    margin-top: 16px;
    padding: 8px 14px;
    gap: 6px;
  }

  .wf-step {
    font-size: 0.72rem;
  }

  .wf-sep {
    font-size: 0.68rem;
  }

  /* AI Dev Card Optimization */
  .ai-card {
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow:
      6px 6px 16px rgba(165, 179, 200, 0.35),
      -6px -6px 16px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .ai-card::after {
    border-radius: 20px;
    box-shadow:
      inset 6px 6px 12px rgba(165, 179, 200, 0.4),
      inset -6px -6px 12px rgba(255, 255, 255, 0.9);
  }

  .ai-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 8px 20px rgba(165, 179, 200, 0.2),
      0 2px 4px rgba(165, 179, 200, 0.08);
    border-color: rgba(18, 184, 134, 0.15);
  }

  .ai-card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0;
  }

  .ai-card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
  }

  .ai-card-desc {
    font-size: 0.88rem;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .ai-evidence-row {
    padding-top: 14px;
    gap: 4px;
  }

  .evidence-pill {
    font-size: 0.68rem;
    padding: 4px 8px;
  }

  /* Tech Filter Touch Optimization */
  .tech-left-col {
    margin-bottom: 24px;
  }

  .tech-filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px 8px 12px 8px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
  }

  .tech-filter-bar::-webkit-scrollbar {
    display: none;
    /* Safari & Chrome */
  }

  .tech-filter-btn {
    padding: 10px 18px;
    font-size: 0.82rem;
    flex-shrink: 0;
    min-height: 40px;
    /* Touch target size */
  }

  .tech-filter-btn:hover {
    transform: none;
    /* Prevent hover slide on touch devices */
  }

  /* Projects List Touch Optimization */
  .project-card-mini {
    border-radius: 20px;
    box-shadow:
      6px 6px 16px rgba(165, 179, 200, 0.35),
      -6px -6px 16px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
  }

  .project-card-mini::after {
    border-radius: 20px;
    box-shadow:
      inset 6px 6px 12px rgba(165, 179, 200, 0.4),
      inset -6px -6px 12px rgba(255, 255, 255, 0.9);
  }

  .project-card-mini:hover {
    box-shadow:
      2px 2px 5px rgba(165, 179, 200, 0.12),
      -2px -2px 5px rgba(255, 255, 255, 0.25);
  }

  .notion-card-cover {
    height: 70px;
  }

  .notion-card-body {
    padding: 0 16px 16px 16px;
  }

  .mini-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    min-height: auto;
    margin-bottom: 14px;
    color: #4e5968;
  }

  .notion-card-properties {
    padding-top: 14px;
    margin-bottom: 14px;
    gap: 10px;
  }

  .notion-prop {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .notion-prop:first-child {
    min-height: auto;
  }

  .notion-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
  }

  .card-quick-links {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .card-link-btn {
    padding: 10px 16px;
    /* Larger touch area */
    font-size: 0.8rem;
    flex-grow: 1;
    justify-content: center;
  }

  .view-detail-btn-main {
    height: 42px;
    font-size: 0.82rem;
  }

  .project-card-mini:hover .view-detail-btn-main .arrow {
    transform: none;
  }

  /* Modal Mobile Optimization */
  .notion-modal-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
  }

  .project-modal-close {
    top: 16px;
    right: 16px;
  }

  .notion-header-bg {
    height: 120px;
  }

  .notion-body {
    padding: 24px 16px 48px;
  }

  .notion-emoji {
    font-size: 3.6rem;
    margin-top: -60px;
    margin-bottom: 12px;
  }

  .notion-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .notion-subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .notion-metadata {
    margin-bottom: 20px;
  }

  .meta-label {
    width: 80px;
    font-size: 0.85rem;
    padding: 6px 0;
  }

  .meta-val {
    font-size: 0.85rem;
    padding: 6px 0;
  }

  .meta-tag-pill {
    padding: 2px 6px;
    font-size: 0.75rem;
  }

  .notion-block {
    margin-bottom: 24px;
  }

  .notion-block h2 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 8px;
  }

  .notion-block p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .notion-bullet {
    padding-left: 16px;
    gap: 8px;
    margin-bottom: 16px;
  }

  .notion-bullet li {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .notion-callout-block {
    padding: 14px 16px;
    font-size: 0.88rem;
    gap: 10px;
    margin-bottom: 20px;
  }

  /* Contact Optimization */
  .contact-wrap {
    box-shadow:
      8px 8px 24px rgba(165, 179, 200, 0.35),
      -8px -8px 24px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    overflow: hidden;
  }

  .contact-wrap::after {
    box-shadow:
      inset 8px 8px 18px rgba(165, 179, 200, 0.4),
      inset -8px -8px 18px rgba(255, 255, 255, 0.9);
  }

  .contact-wrap:hover {
    box-shadow:
      2px 2px 6px rgba(165, 179, 200, 0.12),
      -2px -2px 6px rgba(255, 255, 255, 0.25);
  }

  .contact-text {
    padding: 40px 24px;
  }

  .contact-text h2 {
    font-size: 1.9rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
  }

  .contact-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 32px;
  }

  .contact-info {
    gap: 16px;
    margin-bottom: 32px;
  }

  .ci {
    flex-direction: column;
    gap: 6px;
  }

  .ci-k {
    min-width: auto;
    font-size: 0.75rem;
  }

  .ci-v {
    font-size: 1rem;
    line-height: 1.45;
  }

  /* Experience Activity Log Mobile Override */
  .log-row {
    flex-direction: column;
    padding: 20px 24px;
    gap: 12px;
  }

  .log-date {
    width: 100%;
    font-size: 0.8rem;
  }

  .log-body {
    gap: 6px;
  }

  .log-title {
    font-size: 1.0rem;
  }

  .log-desc {
    font-size: 0.86rem;
  }

  /* Background Shape Mobile Optimization */
  .soft-depth-shape {
    border-radius: 48px;
    opacity: 0.7;
    /* Lower contrast for mobile readability */
  }

  .shape-1 {
    width: 280px;
    height: 180px;
    top: 100px;
    right: -80px;
  }

  .shape-2 {
    width: 240px;
    height: 160px;
    top: 640px;
    left: -80px;
  }

  .shape-3 {
    width: 380px;
    height: 220px;
    bottom: 160px;
    right: -100px;
  }
}

@media (max-width: 430px) {

  /* Ensure container has proper padding for small screens */
  .container {
    padding: 0 16px;
  }

  .shape-3 {
    display: none;
    /* Hide 3rd shape on very small screens to avoid clutter */
  }

  .shape-1 {
    width: 200px;
    height: 130px;
    top: 80px;
    right: -55px;
  }

  .shape-2 {
    width: 170px;
    height: 120px;
    top: 500px;
    left: -50px;
  }
}

@media (max-width: 390px) {
  .hero-main-title {
    font-size: 1.45rem;
  }
}

@media (max-width: 375px) {
  .hero-main-title {
    font-size: 1.35rem;
  }

  .hero-workflow {
    display: inline-flex;
    padding: 6px 12px;
    gap: 4px;
    margin-top: 14px;
  }

  .hero-workflow .wf-step {
    font-size: 0.68rem;
  }

  .hero-workflow .wf-sep {
    font-size: 0.62rem;
  }

  .card-link-sub {
    padding: 4px 8px !important;
    font-size: 0.68rem !important;
  }

  .view-detail-btn-main {
    height: 36px;
    font-size: 0.78rem;
  }

}

/* ── GLASS COPY BUTTON ── */
.copy-glass-btn {
  position: relative;
  width: 130px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: #333d4b;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  transition:
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1.2),
    background 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}

.copy-glass-btn:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.copy-glass-btn:active {
  transform: scale(0.94);
}

.btn-content-wrap {
  display: flex;
  flex-direction: column;
  height: 88px;
  /* 44px * 2 */
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1.15);
  /* springy rolling motion */
}

.btn-text-default,
.btn-text-success {
  height: 44px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-text-success {
  color: #12b886;
}

.check-icon {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s;
}

/* Copied state */
.copy-glass-btn.copied .btn-content-wrap {
  transform: translateY(-44px);
}

.copy-glass-btn.copied .check-icon {
  transform: scale(1);
}

/* ── COPY BUBBLE & PARTICLES ── */
.copy-feedback-bubble {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(229, 232, 235, 0.9);
  border-radius: 18px;
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  color: #333d4b;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  z-index: 100;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.15);
}

.copy-feedback-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99;
  animation: particleFly 0.8s cubic-bezier(0.1, 0.8, 0.25, 1) forwards;
}

@keyframes particleFly {
  0% {
    transform: translate(-50%, -50%) scale(var(--scale, 1));
    opacity: var(--opacity, 1);
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
    opacity: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── WEBSITE PREVIEW MODAL ── */
.preview-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.preview-modal-container {
  width: 90vw;
  max-width: 1120px; /* max-w-6xl = 1120px */
  height: 85vh;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.preview-modal-overlay.active .preview-modal-container {
  transform: scale(1) translateY(0);
}

.preview-modal-header {
  height: 56px;
  min-height: 56px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.6);
}

.preview-modal-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -0.01em;
}

.preview-modal-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-modal-action-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4e5968;
  border-radius: 999px;
  border: 1px solid rgba(229, 232, 235, 0.85);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.preview-modal-action-btn:hover {
  color: #191f28;
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.preview-modal-close-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  border-radius: 999px;
  border: none;
  background: #4e5968;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  cursor: pointer;
}

.preview-modal-close-btn:hover {
  background: #191f28;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preview-modal-body {
  flex-grow: 1;
  position: relative;
  background: #f8fafc;
}

.preview-modal-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}

/* Responsive Overrides for WebsitePreviewModal */
@media (max-width: 768px) {
  .preview-modal-container {
    width: 95vw;
    height: 85vh;
    border-radius: 20px;
  }
  
  .preview-modal-header {
    padding: 0 16px;
    height: 52px;
    min-height: 52px;
  }

  .preview-modal-title {
    font-size: 0.88rem;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .preview-modal-action-btn {
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .preview-modal-close-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }
}