:root {
  --primary: #ab2744;
  --primary-soft: rgba(171,39,68,0.15);
  --accent: #ab2744;
  --bg: #020617;
  --bg-elevated: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148,163,184,0.2);
  --radius-lg: 32px;
  --radius-md: 16px;
  --shadow-soft: 0 18px 45px rgba(2,6,23,0.8);
  --border-orbit: rgba(148,163,184,0.2);
}
html.theme-dark {
  --bg: #020617;
  --bg-elevated: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148,163,184,0.2);
  --border-orbit: rgba(255, 255, 255,0.7);
}
html.theme-light {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --text: #020617;
  --muted: #6b7280;
  --border: rgba(148,163,184,0.4);
  --border-orbit: rgba(148,163,184,0.4);
}
body.theme-dark {
  --bg: #020617;
  --bg-elevated: #0f172a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148,163,184,0.2);
  --border-orbit: rgba(255, 255, 255,0.7);
}
body.theme-light {
  --bg: #f9fafb;
  --bg-elevated: #ffffff;
  --text: #020617;
  --muted: #6b7280;
  --border: rgba(148,163,184,0.4);
  --border-orbit: rgba(148,163,184,0.4);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
  width: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
}
.page-root {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(30, 41, 59, 0.4) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(171, 39, 68, 0.08) 0, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(171, 39, 68, 0.05) 0, transparent 60%),
    var(--bg);
}
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: none;
  z-index: 1;
  mix-blend-mode: overlay;
}
body.theme-light .noise-overlay {
  opacity: 0.03;
  mix-blend-mode: soft-light;
}
.theme-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.theme-morph-svg {
  width: 220vw;
  height: 220vh;
}
.theme-morph-svg path {
  fill: rgba(171, 39, 68, 0.85);
}
.wrapper {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.glass-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 24px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
body.theme-light .glass-header {
  background: rgba(255, 255, 255, 0.9);
}
body.is-mobile .glass-header {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}
.brand-tag {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  transition: all 0.2s;
}
.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
.nav-link.active {
  color: var(--text);
  background: var(--primary-soft);
  font-weight: 500;
}
.header-cta {
  padding: 8px 20px;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: var(--bg);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s;
}
.header-cta:hover {
  transform: scale(1.05);
}
body.theme-light .header-cta {
  background: var(--primary);
  color: #ffffff;
}
body.is-mobile .nav-links,
body.is-mobile .header-cta {
  display: none !important;
}
.theme-toggle {
  margin-left: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.btn-icon:hover {
  transform: translateY(-1px);
}

.btn-icon i {
  font-size: 14px;
}
body.theme-light .btn-icon {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}
.user-dropdown {
  position: relative;
}
.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 55;
}
body.theme-light .user-dropdown-menu {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}
.user-dropdown.open .user-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.user-dropdown-info {
  margin-bottom: 8px;
  font-size: 13px;
}
.user-dropdown-name {
  font-weight: 600;
  color: var(--text);
}
.user-dropdown-email {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.user-dropdown-logout {
  width: 100%;
  margin-top: 8px;
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.user-dropdown-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(171, 39, 68, 0.45);
}
.layer-edit-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 3;
}
.layer-edit-btn i {
  font-size: 13px;
}
.layer-edit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.layer-edit-box {
  width: 100%;
  max-width: 540px;
  border-radius: 16px;
  padding: 20px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
  color: var(--text);
}
.layer-edit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.layer-edit-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.layer-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.layer-edit-cancel,
.layer-edit-save {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.layer-edit-cancel {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.layer-edit-save {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(171, 39, 68, 0.45);
}
body.theme-light .theme-toggle {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}
.theme-toggle:hover {
  transform: translateY(-1px);
}
.mobile-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: calc(16px + env(safe-area-inset-bottom, 0));
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.75);
  display: none;
  gap: 4px;
  z-index: 40;
}
body.theme-light .mobile-nav {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
}
.mobile-nav-item {
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 8px 4px;
  border-radius: 999px;
  font-size: 12px;
}
.mobile-nav-item i {
  display: block;
  font-size: 18px;
}
.mobile-nav-item span {
  display: block;
  line-height: 1;
}
.mobile-nav-item.active {
  background: var(--primary-soft);
  color: var(--text);
}
body.is-mobile .mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #020617;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.6);
  cursor: pointer;
  z-index: 45;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  pointer-events: none;
}
body.theme-light .back-to-top {
  color: #ffffff;
}
.back-to-top i {
  pointer-events: none;
}
.back-to-top:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.is-mobile .back-to-top {
  display: none;
}
@media (max-width: 768px) {
  .back-to-top {
    display: none;
  }
}
.nav-link:focus-visible,
.btn:focus-visible,
.header-cta:focus-visible,
.theme-toggle:focus-visible,
.btn-icon:focus-visible,
.mobile-nav-item:focus-visible,
.comment-nav-btn:focus-visible,
.comment-dot:focus-visible,
.footer-social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}
.hero-grid {
  width: 100%;
}
.hero-content h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-content h1 span {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.btn {
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(171, 39, 68, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(171, 39, 68, 0.6);
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(148, 163, 184, 0.08);
}
.btn-outline-success {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-success:hover {
  background: var(--primary);
  color: #ffffff;
}
.text-muted,
.text-body-secondary {
  color: var(--muted) !important;
}
.text-body {
  color: var(--text) !important;
}
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 450px;
  margin: 0 auto;
  perspective: 1000px;
}
.orbit-3d-content {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 1px dashed var(--border-orbit);
  border-radius: 50%;
  animation: spin 20s linear infinite;
  transform: translateZ(0);
}
.orbit-avatar {
  position: absolute;
  inset: 20%;
  background: var(--bg-elevated);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(15, 23, 42, 0.75);
  z-index: 2;
  transform: translateZ(30px);
  transform-style: preserve-3d;
}
body.theme-light .orbit-avatar {
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.18);
}
.orbit-avatar img {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  object-fit: cover;
}
.orbit-item {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
body.theme-light .orbit-item {
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.pinned-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 5;
  background: var(--bg);
}
.layer-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  opacity: 0;
  visibility: hidden;
}
.layer-card {
  width: 100%;
  max-width: 1000px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 60px;
  align-items: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: translateY(50px);
  position: relative;
}
.layer-content h2 {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--text);
}
.layer-content p {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.layer-visual {
  background: var(--bg);
  border-radius: 24px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
  min-height: 300px;
}
body.is-mobile .pinned-container {
  height: auto;
  min-height: auto;
  overflow: visible;
  padding: 40px 0 24px;
}
body.is-mobile .layer-section {
  position: relative;
  height: auto;
  padding: 24px 16px;
}
.blog-actions {
  display: flex;
  justify-content: flex-end;
}
.blog-section {
  padding-top: 120px;
  padding-bottom: 80px;
}
body.is-mobile .blog-section {
  padding-top: 80px;
  padding-bottom: 56px;
}
.blog-header {
  text-align: center;
  margin-bottom: 32px;
}
.blog-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}
.blog-subtitle {
  max-width: 640px;
  margin: 0 auto;
  font-size: 14px;
}
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.blog-category-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 16px;
  font-size: 13px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.blog-category-btn:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(148, 163, 184, 0.06);
}
.blog-category-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.blog-list {
  margin-top: 8px;
}
.blog-card {
  background: var(--bg-elevated);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px 20px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
body.theme-light .blog-card {
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.9);
}
.blog-card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.blog-card-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.blog-card-excerpt {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
}
.blog-card-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.btn-icon-sm {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
body.theme-light .btn-icon-sm {
  background: #ffffff;
}
.btn-icon-sm:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.blog-read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.blog-pagination {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.blog-page-btn {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.blog-page-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}
.blog-page-btn.is-disabled {
  opacity: 0.5;
  cursor: default;
}
.blog-empty,
.blog-error,
.blog-loading {
  text-align: center;
  padding: 32px 16px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  max-width: 600px;
  margin: 40px auto 0;
  color: var(--muted);
}
.blog-detail {
  max-width: 840px;
  margin: 0 auto;
}
.blog-detail-card {
  background: var(--bg-elevated);
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 24px 24px 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
}
body.theme-light .blog-detail-card {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}
.blog-back-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.blog-back-link:hover {
  color: var(--primary);
}
.blog-detail-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-detail-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.blog-detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.blog-detail-content p {
  margin-bottom: 16px;
}
.blog-detail-content ul,
.blog-detail-content ol {
  margin-bottom: 16px;
  padding-left: 20px;
}
.blog-detail-content li {
  margin-bottom: 4px;
}
body.theme-light .blog-empty,
body.theme-light .blog-error,
body.theme-light .blog-loading {
  background: rgba(255, 255, 255, 0.96);
}
.blog-edit-box {
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
}
.blog-editor {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
}
body.theme-light .blog-editor {
  background: rgba(255, 255, 255, 0.98);
}
.blog-editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.blog-editor-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
}
.blog-editor-btn:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.16);
}
.blog-editor-area {
  min-height: 160px;
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.blog-editor-area:focus-visible {
  outline: none;
}
.swal2-popup {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
}
.swal2-title {
  color: var(--text) !important;
}
.swal2-html-container {
  color: var(--muted) !important;
}
.swal2-confirm,
.swal2-cancel {
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.swal2-confirm {
  background-color: var(--primary) !important;
}
.swal2-cancel {
  background-color: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
}
.contact-section {
  padding: 120px 0;
}
.contact-box {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, rgba(15, 23, 42, 0) 100%);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 60px;
  text-align: center;
}
.comment-list {
  margin-top: 32px;
}
.comment-slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-slider-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-card {
  display: none;
  background:
    radial-gradient(circle at 0 0, rgba(171, 39, 68, 0.12), transparent 60%),
    rgba(15, 23, 42, 0.9);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}
body.theme-light .comment-card {
  background:
    radial-gradient(circle at 0 0, rgba(171, 39, 68, 0.12), transparent 60%),
    #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.comment-card.is-active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.comment-name {
  font-weight: 600;
  font-size: 14px;
}
.comment-time {
  font-size: 12px;
  color: var(--muted);
}
.comment-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  color: var(--muted);
  white-space: nowrap;
}
body.theme-light .comment-badge {
  background: rgba(15, 23, 42, 0.06);
}
.comment-body {
  text-align: left;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}
.comment-reply-action {
  margin-top: 8px;
  align-self: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.comment-reply-action:hover {
  text-decoration: underline;
}
.comment-replies {
  margin-top: 8px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.comment-card.show-replies .comment-replies {
  display: flex;
}
.comment-reply-item {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}
body.theme-light .comment-reply-item {
  background: rgba(148, 163, 184, 0.08);
}
.comment-reply-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.comment-reply-body {
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.comment-reply-container {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: none;
  flex-direction: column;
  gap: 8px;
}
.comment-card.show-replies .comment-reply-container {
  display: flex;
}
.comment-reply-title {
  font-size: 13px;
  font-weight: 600;
}
.comment-reply-target {
  font-size: 12px;
  color: var(--muted);
}
.comment-reply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comment-reply-input,
.comment-reply-textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-size: 13px;
}
body.theme-light .comment-reply-input,
body.theme-light .comment-reply-textarea {
  background: rgba(255, 255, 255, 0.95);
  color: #020617;
}
.comment-reply-submit {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.comment-reply-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(171, 39, 68, 0.45);
}
.comment-slider-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.comment-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
body.theme-light .comment-nav-btn {
  background: #ffffff;
}
.comment-nav-btn:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.comment-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(148, 163, 184, 0.6);
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.comment-dot.is-active {
  width: 18px;
  background: var(--primary);
}
.comment-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(15, 23, 42, 0.7);
}
body.theme-light .comment-empty {
  background: rgba(255, 255, 255, 0.95);
}
.contact-form {
  display: grid;
  gap: 16px;
  max-width: 480px;
  margin: 32px auto 0;
  text-align: left;
}
.contact-box .form-label {
  font-size: 14px;
  color: var(--text);
}
.contact-box .form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
body.theme-light .contact-box .form-control {
  background: rgba(255, 255, 255, 0.95);
  color: #020617;
}
.contact-box .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.12rem rgba(171, 39, 68, 0.5);
}
.contact-box .form-control::placeholder {
  color: var(--muted);
  opacity: 1;
}
.comment-notify-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
body.theme-light .comment-notify-overlay {
  background: rgba(15, 23, 42, 0.25);
}
.comment-notify-box {
  max-width: 360px;
  width: 90%;
  border-radius: 16px;
  padding: 16px 20px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
  color: var(--text);
}
body.theme-light .comment-notify-box {
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
.comment-notify-text {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.comment-notify-ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.comment-notify-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(171, 39, 68, 0.5);
}
.layer-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
body.theme-light .layer-edit-overlay {
  background: rgba(15, 23, 42, 0.25);
}
.layer-edit-box {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  padding: 20px 24px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.85);
  color: var(--text);
}
body.theme-light .layer-edit-box {
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.layer-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.layer-edit-title {
  font-size: 16px;
  font-weight: 600;
}
.layer-edit-close {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.layer-edit-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.layer-edit-form label {
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--text);
}
.layer-edit-form input,
.layer-edit-form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  font-size: 13px;
}
body.theme-light .layer-edit-form input,
body.theme-light .layer-edit-form textarea {
  background: rgba(255, 255, 255, 0.96);
  color: #020617;
}
.layer-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}
.layer-edit-actions button {
  border-radius: 999px;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.layer-edit-cancel {
  background: transparent;
  color: var(--muted);
}
.layer-edit-save {
  background: var(--primary);
  color: #ffffff;
}
footer {
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-social {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

body.theme-dark .tooltip-inner {
  background: #020617;
  color: #e5e7eb;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

body.theme-light .tooltip-inner {
  background: #ffffff;
  color: #020617;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

body.theme-dark .tooltip .tooltip-arrow::before {
  border-top-color: #020617;
  border-bottom-color: #020617;
}

body.theme-light .tooltip .tooltip-arrow::before {
  border-top-color: #ffffff;
  border-bottom-color: #ffffff;
}

@media (max-width: 768px) {
  body.is-mobile {
    padding-bottom: 80px;
  }
  .hero-section {
    align-items: flex-start;
    padding-top: 64px;
    padding-bottom: 40px;
  }
  .hero-grid {
    text-align: center;
  }
  .hero-visual {
    max-width: 260px;
  }
  .orbit-avatar {
    inset: 30%;
    box-shadow: 0 0 24px rgba(171, 39, 68, 0.16);
  }
  .orbit-item {
    width: 28px;
    height: 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-desc {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .hero-actions {
    justify-content: center;
  }
  .layer-card {
    padding: 24px 20px;
    border-radius: 28px;
  }
  .layer-visual {
    min-height: 160px;
  }
  .contact-section {
    padding: 56px 0 calc(96px + env(safe-area-inset-bottom, 0));
  }
  .contact-box {
    padding: 24px 16px;
  }
  .layer-content h2 {
    font-size: 24px;
  }
  .layer-content p {
    font-size: 14px;
  }
  footer {
    padding: 24px 16px calc(96px + env(safe-area-inset-bottom, 0));
    font-size: 13px;
  }
  .comment-card {
    padding: 16px;
  }
  .comment-body {
    font-size: 13px;
  }
  .comment-nav-btn {
    width: 28px;
    height: 28px;
  }
  .fullpage-overlay {
    padding: 0;
    background: var(--bg);
  }
  .fullpage-overlay-inner {
    max-width: none;
    width: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    padding: 56px 16px 32px;
    box-sizing: border-box;
  }
  .fullpage-overlay-inner h2 {
    font-size: 24px;
    margin-bottom: 16px;
    padding-right: 32px;
  }
  .fullpage-overlay-text {
    font-size: 14px;
    line-height: 1.7;
  }
  .fullpage-overlay-close {
    top: 20px;
    right: 20px;
  }
}

/* --- Mobile Optimizations & New Features --- */

/* Minimalist Layer Card (Experience Section) */
.layer-card-minimal {
  padding: 40px !important;
  border-radius: 24px !important;
  max-width: 800px !important;
  margin: 0 auto;
}

/* Mobile Nav Optimization - Floating Pill */
.mobile-nav {
  position: fixed !important;
  bottom: calc(24px + env(safe-area-inset-bottom, 0)) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 40px) !important;
  max-width: 480px !important;
  border-radius: 999px !important;
  padding: 12px 24px !important;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  z-index: 9999 !important;
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex !important;
  }
}

body.theme-light .mobile-nav {
  background: rgba(255, 255, 255, 0.9);
}

.mobile-nav-item {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.mobile-nav-item span {
  font-size: 10px;
  font-weight: 500;
}

/* Layer Section Mobile Tweaks */
@media (max-width: 768px) {
  .layer-card-minimal {
    padding: 32px 24px !important;
  }
  
  /* Ensure layer sections stack properly on mobile */
  .pinned-container {
    height: auto !important;
    overflow: visible !important;
  }
  
  .layer-section {
    position: relative !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 24px 16px !important;
    margin-bottom: 24px;
  }
  
  .layer-card {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
  }

  .layer-icon-large {
    font-size: 60px !important;
  }
}

/* Orbit Animation Helpers */
.orbit-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Countdown Section */
.countdown-section {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  margin-bottom: 2rem;
}
.countdown-wrapper {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  will-change: width, margin, padding, border-radius;
}
.countdown-title {
  color: var(--primary);
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
}
.countdown-value {
  color: var(--text);
  font-family: monospace;
  line-height: 1;
  font-size: 2rem;
}
.countdown-label {
  font-size: 0.75rem;
  margin-top: 0.25rem;
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .countdown-item {
    min-width: 50px;
  }
  .countdown-value {
    font-size: 1.5rem;
  }
}

/* Light Mode Countdown Override */
body.theme-light .countdown-wrapper {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(171, 39, 68, 0.3);
}
body.theme-light .countdown-title,
body.theme-light .countdown-value {
  color: #ffffff;
}
body.theme-light .countdown-label {
  color: rgba(255, 255, 255, 0.8);
}