@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  /* ฟอนต์ไทยไร้หัวมาตรฐานสากล (Standard Thai Loilless Sans-Serif) */
  --font-thai-sans: 'Prompt', 'Noto Sans Thai', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en-sans: 'Plus Jakarta Sans', 'Prompt', 'Noto Sans Thai', sans-serif;

  /* ธีมสว่าง (Light Theme - Borderless Smooth Glass & Distinct Layering) */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  /* แยกเลเยอร์กระจกให้เห็นชัดเจน ตัดกับพื้นหลัง อ่านง่าย ไม่ลายตา ไร้เส้นขอบสี */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-card-nested: rgba(255, 255, 255, 0.86);
  --glass-inner-slot: rgba(255, 255, 255, 0.92);

  /* เงาเบลอนุ่มลึกแบบ Multi-Layer Diffusion แทนการใช้เส้นขอบ */
  --glass-shadow: 0 24px 54px -12px rgba(67, 56, 202, 0.14), 0 8px 24px -6px rgba(15, 23, 42, 0.07);
  --glass-shadow-hover: 0 32px 68px -10px rgba(67, 56, 202, 0.22), 0 12px 30px -6px rgba(15, 23, 42, 0.10);
  --inner-shadow: 0 8px 22px -6px rgba(67, 56, 202, 0.10), 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --btn-shadow: 0 12px 26px -6px rgba(79, 70, 229, 0.34);

  --accent: #4338ca;
  --accent-gradient: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  --accent-soft: rgba(67, 56, 202, 0.11);

  --status-success: #059669;
  --status-success-bg: rgba(16, 185, 129, 0.13);

  --pill-bg: rgba(255, 255, 255, 0.88);
  --pill-active-bg: #0f172a;
  --pill-active-text: #ffffff;
}

[data-theme="dark"] {
  /* ธีมมืด (Dark Theme - Borderless Smooth Glass & Distinct Layering) */
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-subtle: #94a3b8;

  /* แยกเลเยอร์กระจกในโหมดมืดชัดเจน ไร้เส้นขอบสี */
  --glass-bg: rgba(15, 23, 42, 0.64);
  --glass-card-nested: rgba(30, 41, 59, 0.84);
  --glass-inner-slot: rgba(30, 41, 59, 0.90);

  /* เงาเบลอนุ่มลึกในโหมดมืด */
  --glass-shadow: 0 26px 58px -12px rgba(0, 0, 0, 0.72), 0 8px 24px -6px rgba(0, 0, 0, 0.52);
  --glass-shadow-hover: 0 34px 72px -10px rgba(0, 0, 0, 0.86), 0 14px 32px -6px rgba(0, 0, 0, 0.62);
  --inner-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.50), 0 2px 8px -2px rgba(0, 0, 0, 0.35);
  --btn-shadow: 0 12px 28px -6px rgba(99, 102, 241, 0.48);

  --accent: #a5b4fc;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --accent-soft: rgba(165, 180, 252, 0.15);

  --status-success: #34d399;
  --status-success-bg: rgba(52, 211, 153, 0.14);

  --pill-bg: rgba(30, 41, 59, 0.88);
  --pill-active-bg: #f8fafc;
  --pill-active-text: #0f172a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: none !important;
  outline: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-thai-sans);
  color: var(--text-main);
  background: #eef2ff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[data-theme="dark"] body,
html[data-theme="dark"] {
  background: #090d16;
}

/* =============================================================
   DYNAMIC BACKGROUND CONTINUOUS ROTATING GRADIENT
   (หมุนสีพื้นหลังวนลูป 360 องศา ไร้แสงดำกระพริบเมื่อเลื่อนสไลด์)
============================================================= */
.bg-canvas-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-slide-layer {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  opacity: 1 !important;
  will-change: transform, filter;
  animation: bgGradientSpinLoop 32s linear infinite;
  transform-origin: center center;
}

@keyframes bgGradientSpinLoop {
  0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); }
  50% { transform: rotate(180deg) scale(1.08); filter: hue-rotate(20deg); }
  100% { transform: rotate(360deg) scale(1); filter: hue-rotate(0deg); }
}

/* Light Theme Gradients (โทนสีพาสเทลสะอาดตา นุ่มนวลตามหลัก 60-30-10) */
html[data-theme="light"] #bgLayer0,
html[data-theme="light"] #bgLayer1,
html[data-theme="light"] #bgLayer2 {
  background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, #e0e7ff 38%, #ddd6fe 68%, #fae8ff 88%, #eef2ff 100%);
}

/* Dark Theme Gradients (โทนสี Deep Slate & Midnight Indigo หรูหรา สบายตา) */
html[data-theme="dark"] #bgLayer0,
html[data-theme="dark"] #bgLayer1,
html[data-theme="dark"] #bgLayer2 {
  background: radial-gradient(circle at 50% 50%, #0f172a 0%, #1e1b4b 40%, #0f172a 70%, #172554 90%, #090d16 100%);
}

/* Ambient glow orbs พื้นหลังฟุ้งกระจายมุมจอ */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.65;
  animation: orbFloatBreathing 20s ease-in-out infinite alternate;
}
.glow-orb-top {
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(168, 85, 247, 0.18) 50%, transparent 75%);
  top: -160px;
  right: -120px;
}
.glow-orb-bottom {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.38) 0%, rgba(99, 102, 241, 0.16) 50%, transparent 75%);
  bottom: -160px;
  left: -120px;
  animation-delay: -10s;
}

@keyframes orbFloatBreathing {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.12) translate(45px, -35px); }
  100% { transform: scale(1.04) translate(-35px, 45px); }
}

/* =============================================================
   FLOATING CIRCLES LAYER (วงกลมเบลอและสีฟุ้ง กระจายตัวลอยทั่วทั้งหน้าจออย่างช้าๆ)
============================================================= */
.floating-circles-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  will-change: transform;
  opacity: 0.88;
}

/* วงกลมที่ 1: มุมบนซ้าย - Indigo Violet สีฟุ้ง */
.floating-circle.circle-1 {
  width: 380px;
  height: 380px;
  top: 2%;
  left: 3%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.82) 0%, rgba(139, 92, 246, 0.48) 55%, transparent 100%);
  animation: floatCirclePath1 34s ease-in-out infinite alternate;
}

/* วงกลมที่ 2: ขวาล่าง - Cyan Sky สีฟุ้ง */
.floating-circle.circle-2 {
  width: 350px;
  height: 350px;
  top: 62%;
  left: 76%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.80) 0%, rgba(99, 102, 241, 0.45) 55%, transparent 100%);
  animation: floatCirclePath2 38s ease-in-out infinite alternate;
}

/* วงกลมที่ 3: ซ้ายล่าง - Purple Pink สีฟุ้ง */
.floating-circle.circle-3 {
  width: 370px;
  height: 370px;
  top: 66%;
  left: 8%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.82) 0%, rgba(244, 114, 182, 0.48) 55%, transparent 100%);
  animation: floatCirclePath3 36s ease-in-out infinite alternate;
}

/* วงกลมที่ 4: บนขวา - Royal Blue สีฟุ้ง */
.floating-circle.circle-4 {
  width: 330px;
  height: 330px;
  top: 5%;
  left: 72%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.82) 0%, rgba(79, 70, 229, 0.45) 55%, transparent 100%);
  animation: floatCirclePath4 30s ease-in-out infinite alternate;
}

/* วงกลมที่ 5: กลางจอค่อนบน - Teal Aqua สีฟุ้ง */
.floating-circle.circle-5 {
  width: 310px;
  height: 310px;
  top: 18%;
  left: 40%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.72) 0%, rgba(56, 189, 248, 0.42) 55%, transparent 100%);
  animation: floatCirclePath5 40s ease-in-out infinite alternate;
}

/* วงกลมที่ 6: ซ้ายกลาง - Rose Magenta สีฟุ้ง */
.floating-circle.circle-6 {
  width: 340px;
  height: 340px;
  top: 34%;
  left: 12%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.76) 0%, rgba(168, 85, 247, 0.44) 55%, transparent 100%);
  animation: floatCirclePath6 35s ease-in-out infinite alternate;
}

/* วงกลมที่ 7: ขวากลาง - Lavender Periwinkle สีฟุ้ง */
.floating-circle.circle-7 {
  width: 320px;
  height: 320px;
  top: 36%;
  left: 82%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.80) 0%, rgba(99, 102, 241, 0.45) 55%, transparent 100%);
  animation: floatCirclePath1 42s ease-in-out infinite alternate-reverse;
}

/* วงกลมที่ 8: กลางจอค่อนล่าง - Sky Indigo สีฟุ้ง */
.floating-circle.circle-8 {
  width: 350px;
  height: 350px;
  top: 56%;
  left: 45%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.78) 0%, rgba(129, 140, 248, 0.44) 55%, transparent 100%);
  animation: floatCirclePath3 44s ease-in-out infinite alternate-reverse;
}

/* วงกลมที่ 9: บนกลางซ้าย - Violet Orchid สีฟุ้ง */
.floating-circle.circle-9 {
  width: 290px;
  height: 290px;
  top: 8%;
  left: 25%;
  background: radial-gradient(circle, rgba(216, 180, 254, 0.82) 0%, rgba(147, 51, 234, 0.40) 55%, transparent 100%);
  animation: floatCirclePath2 37s ease-in-out infinite alternate-reverse;
}

/* วงกลมที่ 10: ล่างกลางขวา - Soft Coral Pink & Violet สีฟุ้ง */
.floating-circle.circle-10 {
  width: 320px;
  height: 320px;
  top: 72%;
  left: 60%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.72) 0%, rgba(99, 102, 241, 0.42) 55%, transparent 100%);
  animation: floatCirclePath4 39s ease-in-out infinite alternate-reverse;
}

[data-theme="dark"] .floating-circle {
  filter: blur(65px);
  opacity: 0.70;
}

@keyframes floatCirclePath1 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(28vw, 18vh, 0) scale(1.12); }
  66%  { transform: translate3d(14vw, 42vh, 0) scale(0.94); }
  100% { transform: translate3d(45vw, 12vh, 0) scale(1.08); }
}

@keyframes floatCirclePath2 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(-32vw, -22vh, 0) scale(1.14); }
  66%  { transform: translate3d(-18vw, -40vh, 0) scale(0.92); }
  100% { transform: translate3d(-48vw, -10vh, 0) scale(1.06); }
}

@keyframes floatCirclePath3 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(24vw, -28vh, 0) scale(1.08); }
  66%  { transform: translate3d(46vw, -14vh, 0) scale(1.16); }
  100% { transform: translate3d(18vw, -44vh, 0) scale(0.95); }
}

@keyframes floatCirclePath4 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-26vw, 32vh, 0) scale(1.15); }
  100% { transform: translate3d(-42vw, 14vh, 0) scale(0.92); }
}

@keyframes floatCirclePath5 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(-22vw, -18vh, 0) scale(1.1); }
  66%  { transform: translate3d(22vw, 20vh, 0) scale(0.92); }
  100% { transform: translate3d(-14vw, 24vh, 0) scale(1.08); }
}

@keyframes floatCirclePath6 {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(34vw, 22vh, 0) scale(1.12); }
  100% { transform: translate3d(58vw, -12vh, 0) scale(0.96); }
}

/* =============================================================
   GLASSMORPHISM BASE SYSTEM (เบลอเฉพาะที่ตัวการ์ดแต่ละใบ พื้นหลังนอกการ์ดคมชัด)
============================================================= */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: none !important;
  box-shadow: var(--glass-shadow);
  border-radius: 26px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, background-color 0.35s ease;
}

/* =============================================================
   HOVER & INTERACTION SYSTEM (คลีน ทันสมัย ไร้อนิเมชั่นเงาสีทอง)
============================================================= */
a, button, .nav-pill-item, .project-card-clean, .skill-count-card, 
.contact-channel-row, .stat-metric-pill, .brand-pill, .footer-back-link {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

a:hover, button:hover, .nav-pill-item:hover, .project-link-action:hover, 
.footer-back-link:hover, .contact-channel-row:hover span:last-child {
  opacity: 0.92;
}

/* =============================================================
   NAVBAR (กระชับ ลด Margin ขอบจอ จัดปุ่มนำทาง 3 ปุ่มเท่ากันเป๊ะ)
============================================================= */
header.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 999;
  width: calc(100% - 24px);
  max-width: 1780px;
  margin: 0 auto;
  height: 64px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-radius: 36px;
  height: 100%;
}

.brand-pill {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-en-sans);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  padding: 8px 22px;
  background: var(--pill-bg);
  border-radius: 26px;
  box-shadow: var(--inner-shadow);
}

.nav-capsule-island {
  display: grid;
  grid-template-columns: repeat(3, 145px);
  gap: 6px;
  background: var(--pill-bg);
  padding: 4px 6px;
  border-radius: 28px;
  box-shadow: var(--inner-shadow);
  position: relative;
}

.nav-pill-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  height: 38px;
  padding: 0 14px;
  border-radius: 22px;
  cursor: pointer;
  background: transparent;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
  white-space: nowrap;
  line-height: 1;
}

.nav-pill-item:hover {
  color: var(--text-main);
}

.nav-pill-item.active {
  color: var(--pill-active-text) !important;
  -webkit-text-fill-color: var(--pill-active-text) !important;
  background: transparent;
}

.theme-switch-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  padding: 8px 18px;
  border-radius: 26px;
  cursor: pointer;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: var(--inner-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease;
}

.theme-switch-capsule:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -5px rgba(99, 102, 241, 0.35);
}

/* =============================================================
   FULLPAGE VIEWPORT SLIDER
============================================================= */
.fullpage-slider-container {
  width: 100%;
  height: 100vh;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.fullpage-track {
  width: 100%;
  height: 300vh;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.fullpage-slide {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 84px 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.slide-inner-viewport {
  width: 100%;
  max-width: 1780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  transform: scale(0.975) translateY(10px);
  opacity: 0.45;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.fullpage-slide.is-active .slide-inner-viewport {
  transform: scale(1) translateY(0);
  opacity: 1;
}

#slide-0 .slide-inner-viewport {
  height: calc(100vh - 104px);
}

/* Slide 1 & 2: เพิ่มระยะความห่างจาก Navbar ด้านบนให้สวยงามโปร่งตา */
#slide-1,
#slide-2 {
  padding-top: 96px;
}

#slide-1 .slide-inner-viewport {
  height: auto;
  max-height: calc(100vh - 114px);
}

/* Slide 2: ยึดความสูงเต็มจอ เพื่อให้ Footer ชิดขอบล่างสุดพอดีเป๊ะ */
#slide-2 .slide-inner-viewport {
  height: calc(100vh - 114px);
  justify-content: space-between;
}

/* =============================================================
   PAGE 1: HERO SECTION GRID (73% / 27%)
============================================================= */
.hero-wide-grid {
  display: grid;
  grid-template-columns: 73% 1fr;
  gap: 16px;
  width: 100%;
  height: 100%;
  align-items: stretch;
}

.hero-banner-card {
  padding: 12px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.meta-role-capsule-overlay {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  background: var(--glass-card-nested);
  backdrop-filter: blur(20px);
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--glass-shadow);
}

.banner-img-stage {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-inner-slot);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: zoom-in;
}

.banner-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
  will-change: transform;
}

/* เอฟเฟกต์ซูมเบาๆ เมื่อวางเมาส์เหนือกล่องแบนเนอร์ */
.banner-img-stage:hover .banner-full-img {
  transform: scale(1.035);
  filter: contrast(1.03) brightness(1.02);
}

/* ป้ายบอกให้คลิกซูมภาพ */
.banner-zoom-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--glass-card-nested);
  backdrop-filter: blur(16px);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.85;
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 5;
}

.banner-img-stage:hover .banner-zoom-hint {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--accent);
}

/* =============================================================
   LIGHTBOX MODAL สำหรับซูมภาพแบนเนอร์ HD คมชัดเต็มจอ
============================================================= */
.banner-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  padding: 24px;
}

.banner-lightbox-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-glass-dialog {
  width: 100%;
  max-width: 1300px;
  max-height: 92vh;
  background: var(--glass-bg);
  backdrop-filter: blur(36px) saturate(190%);
  border-radius: 26px;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-lightbox-backdrop.is-open .lightbox-glass-dialog {
  transform: scale(1) translateY(0);
}

.lightbox-toolbar {
  padding: 12px 20px;
  background: var(--glass-card-nested);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--inner-shadow);
}

.lightbox-title-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--glass-inner-slot);
  color: var(--text-main);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lightbox-btn-icon:hover {
  transform: scale(1.08);
  background: var(--accent);
  color: #ffffff;
}

.lightbox-stage-scroll {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  min-height: 400px;
}

.lightbox-hd-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-hd-image.is-zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.hero-right-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-profile-card {
  flex: 1;
  min-height: 0;
  padding: 14px 16px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow: hidden;
}

.profile-square-wrap {
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 160px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  background: var(--glass-inner-slot);
  margin-bottom: 8px;
}

.profile-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.profile-text-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.profile-line-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--glass-inner-slot);
  padding: 7px 12px;
  border-radius: 12px;
  box-shadow: var(--inner-shadow);
}

.profile-line-skills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--glass-inner-slot);
  padding: 6px 8px;
  border-radius: 12px;
  box-shadow: var(--inner-shadow);
}

.profile-skill-chip {
  font-family: var(--font-en-sans);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 8px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.inner-info-pill-left {
  background: var(--glass-card-nested);
  padding: 7px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: var(--inner-shadow);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
}

/* =============================================================
   HERO STATS CARD: 4 WINDOW TILES GRID (ดีไซน์ 4 กล่องหน้าต่างแบบแคบกระชับ)
============================================================= */
.hero-stats-card {
  flex-shrink: 0;
  padding: 10px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-window-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
}

.window-tile {
  background: var(--glass-inner-slot);
  padding: 8px 12px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--inner-shadow);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, box-shadow 0.25s ease;
}

.window-tile:hover {
  transform: translateY(-2px);
  background: var(--glass-card-nested);
  box-shadow: var(--glass-shadow);
}

.window-tile-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.window-tile-main {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.25;
  margin: 2px 0;
}

.status-text-emerald {
  color: var(--status-success) !important;
}

.window-tile-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.2;
}

/* =============================================================
   PAGE 2: CONTROLS CLUSTER WITH FLOATING JELLY PILL SLIDER
   (อนิเมชั่นเลื่อนสไลด์แบบเยลลี่ ของเหลวลากตามจุดที่คลิก)
============================================================= */
.projects-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-heading-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-pill-tag {
  background: var(--pill-bg);
  padding: 6px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: var(--inner-shadow);
  white-space: nowrap;
}

.section-title-large {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.controls-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* แถบควบคุมพร้อมเยลลี่ลากตาม */
.industry-filter-pill-bar, .view-mode-pill-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--pill-bg);
  padding: 4px 6px;
  border-radius: 26px;
  box-shadow: var(--inner-shadow);
  position: relative;
}

/* ก้อน Indicator เยลลี่ลอยตัวลากสไลด์ตาม (จุดเริ่มต้น 0,0 สอดคล้องกับค่าพิกัดปุ่มจริง 100%) */
.jelly-slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--pill-active-bg);
  border-radius: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), 
              width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              height 0.35s ease,
              border-radius 0.35s ease;
  will-change: transform, width, height;
}

.filter-btn, .view-btn {
  background: transparent;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.filter-btn:hover, .view-btn:hover {
  color: var(--text-main);
}

.filter-btn.active, .view-btn.active {
  color: var(--pill-active-text) !important;
  -webkit-text-fill-color: var(--pill-active-text) !important;
}

.projects-scroll-grid {
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding-right: 6px;
}

.projects-scroll-grid.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.projects-scroll-grid.grid-cols-5 {
  grid-template-columns: repeat(5, 1fr);
}

.project-card-clean {
  padding: 16px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.project-card-clean:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow-hover);
}

.project-card-clean.hidden {
  display: none !important;
}

.project-card-thumb-wrap {
  width: 100%;
  height: 190px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--glass-inner-slot);
  position: relative;
}

.grid-cols-5 .project-card-thumb-wrap {
  height: 135px;
}

.project-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-badge-clean {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  letter-spacing: 0.02em;
  z-index: 3;
}

[data-theme="dark"] .card-badge-clean {
  background: rgba(15, 23, 42, 0.90);
  color: #c7d2fe;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.card-title-text {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.grid-cols-5 .card-title-text {
  font-size: 0.95rem;
}

.tech-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tech-tag-pill {
  font-family: var(--font-en-sans);
  background: var(--glass-inner-slot);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--inner-shadow);
}

/* แถวล่างสุดของการ์ดผลงาน: คำอธิบายสั้นซ้าย + ปุ่มเยี่ยมชมชิดขวา */
.project-card-bottom-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
}

.project-card-brief-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid-cols-5 .project-card-brief-desc {
  font-size: 0.75rem;
  -webkit-line-clamp: 2;
}

/* ปุ่มเยี่ยมชมชิดขวา สไตล์ Glass Capsule สวยงาม พร้อมแสงเรืองแสงด้านใต้ */
.project-card-btn-action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 14px;
  background: var(--glass-inner-slot);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--inner-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
}

.grid-cols-5 .project-card-btn-action {
  padding: 5px 10px;
  font-size: 0.76rem;
  border-radius: 12px;
}

.project-card-btn-action:hover {
  background: var(--accent);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -5px rgba(99, 102, 241, 0.45);
}

.project-card-btn-action svg {
  transition: transform 0.2s ease;
}

.project-card-btn-action:hover svg {
  transform: translate(2px, -2px);
}

/* =============================================================
   PAGE 3: BRICK WALL MASONRY GRID (กำแพงอิฐสลับฟันปลา 4 การ์ด)
   - แถวที่ 1: ทักษะสถิติ (กว้าง 7 cols) + ติดต่อ (แคบ 5 cols)
   - แถวที่ 2: มาตรฐานงาน (แคบ 5 cols) + โซเชียลมีเดีย (กว้าง 7 cols)
   - Footer ติดขอบล่างสไลด์พอดีเป๊ะ
============================================================= */
.slide3-brick-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  row-gap: 22px; /* เพิ่มระยะห่างระหว่างการ์ดบนล่างให้มีช่องลมเท่าระยะห่าง Navbar */
  align-items: stretch;
  margin-bottom: 12px;
}

/* สัดส่วนแบบก่อกำแพงอิฐสลับฟันปลา */
.brick-row1-wide {
  grid-column: span 7;
}

.brick-row1-narrow {
  grid-column: span 5;
}

.brick-row2-narrow {
  grid-column: span 5;
}

.brick-row2-wide {
  grid-column: span 7;
}

.skills-combined-card {
  padding: 16px 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skills-combined-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skills-combined-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.skills-count-badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.skill-count-card {
  background: var(--glass-inner-slot);
  padding: 9px 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--inner-shadow);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-count-card:hover {
  transform: translateY(-2px);
  background: var(--glass-card-nested);
  box-shadow: var(--glass-shadow);
}

.skill-name-col {
  display: flex;
  flex-direction: column;
}

.skill-main-name {
  font-family: var(--font-en-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.skill-sub-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.skill-calc-badge {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: var(--accent-soft);
  padding: 4px 11px;
  border-radius: 10px;
}

.skill-calc-num {
  font-family: var(--font-en-sans);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.skill-calc-unit {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
}

.skills-footnote-bar {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--glass-inner-slot);
  padding: 8px 14px;
  border-radius: 12px;
  box-shadow: var(--inner-shadow);
}

.contact-standalone-card {
  padding: 16px 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.contact-hero-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
  color: var(--text-main);
  white-space: nowrap;
}

.contact-hero-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.contact-direct-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-inner-slot);
  padding: 8px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.92rem;
  box-shadow: var(--inner-shadow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.contact-channel-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -5px rgba(99, 102, 241, 0.25);
}

.channel-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.channel-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.contact-channel-row:hover .channel-icon-box {
  transform: scale(1.08);
}

.mail-bg {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.github-bg {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.channel-info-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.channel-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.2;
}

.channel-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-arrow-icon {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-channel-row:hover .channel-arrow-icon {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* แถวแสดงสถานะรับงาน */
.status-highlight-row {
  cursor: default;
  background: var(--glass-inner-slot);
}

.status-highlight-row:hover {
  transform: none;
  box-shadow: var(--inner-shadow);
}

.status-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--status-success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.65);
  display: inline-block;
  flex-shrink: 0;
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}

.status-badge-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--status-success);
}

/* การ์ดฝั่งซ้ายล่าง: มาตรฐานการพัฒนา */
.work-standards-card {
  padding: 16px 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.standards-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.standards-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-main);
}

.standards-card-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.std-item-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass-inner-slot);
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  box-shadow: var(--inner-shadow);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.std-item-badge:hover {
  transform: translateX(3px);
  background: var(--glass-card-nested);
  box-shadow: var(--glass-shadow);
}

.std-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.green-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.55);
}

.blue-dot {
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.55);
}

.purple-dot {
  background: #a855f7;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.55);
}

.std-text-content strong {
  font-family: var(--font-en-sans);
  color: var(--text-main);
  font-weight: 700;
}

/* การ์ดฝั่งขวา: โซเชียลมีเดียสไตล์กำแพงอิฐ (4 บาน ขนาดไม่เท่ากัน) */
.social-brick-card {
  padding: 16px 22px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.social-brick-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.social-brick-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text-main);
}

/* Brick Wall Grid: 12 คอลัมน์ แบบก่อกำแพงสลับฟันปลา
   แถวที่ 1: กว้าง (7คอลัมน์ ~ 58%) + แคบ (5คอลัมน์ ~ 42%)
   แถวที่ 2: แคบ (5คอลัมน์ ~ 42%) + กว้าง (7คอลัมน์ ~ 58%) */
.social-brick-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.brick-btn {
  display: flex;
  align-items: center;
  background: var(--glass-inner-slot);
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: var(--inner-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.brick-btn:hover {
  transform: translateY(-2px);
  background: var(--glass-card-nested);
  box-shadow: 0 12px 24px -6px rgba(99, 102, 241, 0.22);
}

.brick-wide {
  grid-column: span 7;
}

.brick-narrow {
  grid-column: span 5;
}

.brick-brand-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  overflow: hidden;
}

.brick-custom-img-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.channel-custom-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.channel-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  overflow: hidden;
}

.brick-text-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.brick-brand-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brick-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brick-arrow-icon {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.brick-btn:hover .brick-arrow-icon {
  transform: translate(2px, -2px);
  color: var(--accent);
}

/* แถบ Footer กระจกลอยตัวแนวนอนด้านล่าง ติดขอบล่างสุดของสไลด์ 3 (จัดข้อความให้อยู่ตรงกลาง) */
.bottom-floating-footer {
  width: 100%;
  padding: 10px 20px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--glass-card-nested);
  box-shadow: var(--glass-shadow);
  margin-top: auto; /* ดัน Footer ลงมาชิดขอบล่างสุดของสไลด์พอดี */
}

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

.footer-divider-dot {
  color: var(--accent);
  opacity: 0.6;
}

/* =============================================================
   RESPONSIVE DESIGN
============================================================= */
@media (max-width: 1200px) {
  .hero-wide-grid {
    grid-template-columns: 65% 1fr;
  }
  .slide3-brick-container {
    grid-template-columns: 1fr;
  }
  .brick-row1-wide,
  .brick-row1-narrow,
  .brick-row2-narrow,
  .brick-row2-wide {
    grid-column: span 1 !important;
  }
  .bottom-floating-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .brick-wide,
  .brick-narrow {
    grid-column: span 12;
  }
}

@media (max-width: 992px) {
  .fullpage-slider-container {
    height: auto;
    overflow-y: auto;
  }
  .fullpage-track {
    height: auto;
    position: static;
    transform: none !important;
  }
  .fullpage-slide {
    height: auto;
    min-height: 100vh;
    padding-top: 90px;
  }
  .slide-inner-viewport {
    height: auto !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .hero-wide-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-right-col {
    grid-template-rows: auto auto;
  }
  .projects-scroll-grid.grid-cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  header.site-header {
    height: auto;
    top: 8px;
    width: calc(100% - 16px);
  }
  .nav-wrapper {
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 8px;
    border-radius: 22px;
  }
  .brand-pill {
    font-size: 0.98rem;
    padding: 6px 14px;
  }
  .theme-switch-capsule {
    font-size: 0.84rem;
    padding: 6px 12px;
  }
  .nav-capsule-island {
    order: 3;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px;
  }
  .nav-pill-item {
    font-size: 0.85rem;
    height: 34px;
    padding: 0 8px;
  }
  .fullpage-slide {
    padding-top: 122px !important;
  }
  .projects-scroll-grid.grid-cols-3,
  .projects-scroll-grid.grid-cols-5 {
    grid-template-columns: 1fr;
  }
  .skills-count-badges-grid {
    grid-template-columns: 1fr;
  }
}
