/* body */
:root {
  --accent: #6366F1;
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --text-muted: #555555;
}

/* Light mode */
[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-muted: #999999;
}

[data-theme="light"] body {
  background-color: var(--bg);
  color: var(--text-primary);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .logo-text {
  color: #000000;
}

[data-theme="light"] .nav-links a {
  color: #666666;
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
  color: #000000;
}

[data-theme="light"] h1, 
[data-theme="light"] h2, 
[data-theme="light"] h3,
[data-theme="light"] .s-headline,
[data-theme="light"] .s-hero-title,
[data-theme="light"] .bento-lead,
[data-theme="light"] .ab-headline,
[data-theme="light"] .ab-section-headline,
[data-theme="light"] .sk-headline,
[data-theme="light"] .ab-cta-headline,
[data-theme="light"] .contact-lead,
[data-theme="light"] .about .lead,
[data-theme="light"] .research-card h3,
[data-theme="light"] .sk-name,
[data-theme="light"] .ab-fact-value,
[data-theme="light"] .skill-value,
[data-theme="light"] .detail-value,
[data-theme="light"] .s-fact-value,
[data-theme="light"] .sk-beyond-col h3,
[data-theme="light"] .next-project-link {
  color: #000000;
}

[data-theme="light"] p,
[data-theme="light"] .hero-tagline,
[data-theme="light"] .page-intro,
[data-theme="light"] .ab-why-right p,
[data-theme="light"] .ab-beyond-text,
[data-theme="light"] .ab-timeline-body p,
[data-theme="light"] .research-card p,
[data-theme="light"] .bento-project-text p,
[data-theme="light"] .sk-focus-card p,
[data-theme="light"] .sk-beyond-col p,
[data-theme="light"] .skill-description {
  color: #444444;
}

[data-theme="light"] .ab-why-right strong {
  color: #000000;
}

[data-theme="light"] .resume-btn {
  background-color: #000000;
  color: #ffffff;
}

[data-theme="light"] .cta-button {
  background-color: #000000;
  color: #ffffff;
}

[data-theme="light"] .bento-tile,
[data-theme="light"] .project-card,
[data-theme="light"] .research-card,
[data-theme="light"] .sk-focus-card,
[data-theme="light"] .build-card {
  background-color: #f8f8f8;
  border-color: #e8e8e8;
}

[data-theme="light"] .bento-tile:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .research-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}

[data-theme="light"] .s-tag,
[data-theme="light"] .bento-tag,
[data-theme="light"] .project-tag,
[data-theme="light"] .skill-tag {
  background-color: #e8e8ea;
  color: #444444;
}

[data-theme="light"] .back-link,
[data-theme="light"] .icon-link {
  background-color: #f0f0f2;
  color: #000000;
}

[data-theme="light"] .back-link:hover,
[data-theme="light"] .icon-link:hover {
  background-color: var(--accent);
  color: #ffffff;
}

[data-theme="light"] .page-tab {
  background-color: #f0f0f2;
  color: #666666;
}

[data-theme="light"] .page-tab:hover {
  background-color: #e5e5e7;
  color: #333333;
}

[data-theme="light"] .research-link-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #666666;
}

[data-theme="light"] .research-card:hover .research-link-badge {
  background: #24292e;
  color: #ffffff;
}

[data-theme="light"] .research-card .card-arrow {
  background-color: rgba(0, 0, 0, 0.06);
  color: #888888;
}

[data-theme="light"] .research-card:hover .card-arrow {
  background-color: var(--accent);
  color: #ffffff;
}

[data-theme="light"] .research-tag {
  color: #555555;
}

[data-theme="light"] .tag-detail {
  background-color: #f0f0f2;
  color: #444444;
  border-color: #e5e5e7;
}

[data-theme="light"] .placeholder-img,
[data-theme="light"] .bento-project-image,
[data-theme="light"] .project-hero {
  background-color: #e8e8ea;
}

[data-theme="light"] .sk-list-item,
[data-theme="light"] .ab-timeline-item,
[data-theme="light"] .skill-section,
[data-theme="light"] .info-section,
[data-theme="light"] .skills,
[data-theme="light"] .skill-category,
[data-theme="light"] .detail,
[data-theme="light"] .page-header,
[data-theme="light"] .project-section {
  border-color: #eaeaea;
}

[data-theme="light"] .ab-timeline-item:first-child,
[data-theme="light"] .sk-list-item:first-child {
  border-top-color: #eaeaea;
}

[data-theme="light"] .project-hero {
  background-color: #000000;
}

[data-theme="light"] .project-card-image {
  background-color: #000000;
}

[data-theme="light"] .research-visual {
  background-color: #f8f8f8;
  border-color: #e8e8e8;
}

[data-theme="light"] .research-focus {
  background-color: #f5f5f7;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
  margin-left: 16px;
}

.theme-toggle:hover {
  background-color: var(--accent);
  transform: scale(1.05);
}

.theme-toggle i {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .theme-toggle {
  background-color: rgba(0, 0, 0, 0.06);
  color: #000000;
}

[data-theme="light"] .theme-toggle:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: -0.02em;
  overflow-x: hidden;
}

/* Cursor glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.04) 40%, transparent 70%);
}

@media (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-logo:hover {
  opacity: 0.7;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.logo-dot {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

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

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  color: #888888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 1;
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  margin-bottom: 6px;
}

.hamburger span:nth-child(3) {
  margin-top: 6px;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile drawer overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg);
  z-index: 1001;
  padding: 80px 32px 32px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.drawer-close:hover {
  color: var(--text-primary);
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.mobile-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.mobile-drawer .drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-drawer .drawer-links a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-drawer .drawer-links a:first-child {
  border-top: 1px solid var(--border);
}

.mobile-drawer .drawer-links a:hover,
.mobile-drawer .drawer-links a.active {
  color: var(--text-primary);
  padding-left: 8px;
}

.mobile-drawer .drawer-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.mobile-drawer .drawer-theme-toggle span {
  font-size: 14px;
  color: var(--text-secondary);
}

.mobile-drawer .theme-toggle {
  margin-left: 0;
}

/* section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h2 {
  margin-bottom: 0;
}

.see-all {
  font-size: 14px;
  font-weight: 500;
  color: #888888;
  transition: color 0.2s;
}

.see-all:hover {
  color: var(--accent);
  opacity: 1;
}

/* container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  padding-top: 100px;
}

/* headings */
h1 {
  color: #ffffff;
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h2 {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

/* text */
p {
  color: #aaaaaa;
  font-size: 16px;
  line-height: 1.8;
  max-width: 540px;
}

ul {
  color: #aaaaaa;
  font-size: 16px;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* helper classes */
.left { text-align: left; }
.center { text-align: center; }
.attention { font-weight: 500; }
.muted { color: #666666; font-size: 16px; }
.subtitle {
  font-size: 18px;
  color: #888888;
  font-weight: 400;
  margin-top: 0;
}

/* header */
.header {
  padding: 120px 0 80px;
  margin-bottom: 0;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 32px;
}

.profile-img {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.hero-intro {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888888;
  margin-bottom: 16px;
}

.author-info h1 {
  margin-bottom: 20px;
  font-size: 72px;
  line-height: 1;
}

.hero-tagline {
  font-size: 24px;
  font-weight: 400;
  color: #888888;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.author-info .subtitle {
  margin: 0;
  font-size: 15px;
  color: #666666;
}

/* resume button */
.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #ffffff;
  color: #000000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  transition: background-color 0.2s, transform 0.2s;
}

.resume-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  opacity: 1;
}

.resume-btn i {
  width: 16px;
  height: 16px;
}

/* ── samsung section system ── */
.s-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.s-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
  margin-bottom: 16px;
}

.s-headline {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 24px;
  max-width: 100%;
}

.s-subhead {
  font-size: 16px;
  color: #888888;
  margin: 0 0 28px;
}

.s-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}

.s-link:hover {
  opacity: 0.7;
}

/* hero section */
.s-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.s-hero .s-inner {
  max-width: 1100px;
  width: 100%;
}

.s-hero-center {
  text-align: center;
}

.s-hero .s-eyebrow {
  margin-bottom: 20px;
}

.s-hero-title {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  margin: 0 0 20px;
}

.s-hero-tagline {
  font-size: 26px;
  font-weight: 400;
  color: #888888;
  letter-spacing: -0.02em;
  margin: 0;
}

.s-hero .resume-btn {
  margin-top: 48px;
}

/* about section */
.s-about {
  padding: 80px 0;
  background-color: var(--bg-elevated);
}

.s-about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.s-about-left .s-headline {
  margin-bottom: 20px;
}

.s-about-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
}

.s-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.s-fact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
}

.s-fact-value {
  font-size: 16px;
  color: #cccccc;
}

/* stats section */
.s-stats {
  padding: 60px 0;
  background-color: #000000;
}

.s-stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
}

.s-stat {
  text-align: center;
}

.s-stat-number {
  display: block;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}

.s-stat-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  margin-top: 8px;
}

/* skills section */
.s-skills {
  padding: 80px 0;
}

.s-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.s-tag {
  font-size: 14px;
  font-weight: 500;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 100px;
}

.s-tag.dim {
  background-color: transparent;
  color: #666666;
  padding: 8px 4px;
}

/* projects section */
.s-projects {
  padding: 80px 0;
  background-color: var(--bg-elevated);
}

.s-projects .section-header {
  margin-bottom: 32px;
}

.s-projects .section-header .s-eyebrow {
  margin-bottom: 0;
}

/* bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px;
  padding-bottom: 60px;
}

.bento-tile {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.bento-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.bento-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
  margin-bottom: 16px;
}

.bento-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 18px;
  color: #cccccc;
  transition: color 0.2s, transform 0.2s;
}

.bento-tile:hover .bento-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* about tile — spans 2 rows on the left */
.bento-about {
  grid-row: 1 / 3;
  justify-content: flex-start;
}

.bento-lead {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.3;
  margin: 0 0 28px;
}

.bento-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

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

/* stats tile — top right */
.bento-stats {
  background-color: #000000;
  color: #ffffff;
}

.bento-stats .bento-label {
  color: #666666;
}

.bento-stats-grid {
  display: flex;
  gap: 32px;
  margin-top: auto;
}

.bento-stat .stat-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #ffffff;
}

.bento-stat .stat-label {
  font-size: 12px;
  color: #666666;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

/* skills tile — bottom right */
.bento-skills {
  justify-content: flex-start;
}

.bento-skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.bento-tag {
  font-size: 13px;
  font-weight: 500;
  color: #aaaaaa;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
}

.bento-tag.dim {
  background-color: transparent;
  color: #666666;
  padding: 6px 0;
}

/* featured project tile — full width */
.bento-project {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
}

.bento-project .bento-arrow {
  top: 32px;
  right: 32px;
  z-index: 1;
}

.bento-project-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 240px;
}

.bento-project-text {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-project-text .bento-label {
  margin-bottom: 12px;
}

.bento-project-text h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.bento-project-text p {
  font-size: 15px;
  color: #888888;
  margin: 0;
}

.bento-project-image {
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-project-image .placeholder-img {
  border-radius: 0;
  height: 100%;
}

/* skills (legacy - kept for skills page) */
.skills {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 60px;
}

.skill-category {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.skill-category:nth-child(odd):last-child,
.skill-category:nth-child(even):last-child {
  border-bottom: none;
}

.skill-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
}

.skill-value {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.5;
}

.skill-more {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 4px;
}

/* info section */
.info-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.about, .contact {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.about .lead {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.025em;
  margin: 0 0 36px 0;
  max-width: 100%;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail {
  display: flex;
  gap: 24px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  min-width: 80px;
}

.detail-value {
  font-size: 16px;
  color: #cccccc;
  font-weight: 450;
}

.about p {
  margin: 0;
}

.contact p {
  margin: 0;
  font-weight: 500;
}

.contact-lead {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px !important;
}

.contact-links {
  display: flex;
  gap: 16px;
}

.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.2s, color 0.2s;
}

.icon-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  opacity: 1;
}

.icon-link i,
.icon-link svg {
  width: 20px;
  height: 20px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
}

.contact-item a {
  font-size: 15px;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  font-size: 15px;
}

/* projects */
.projects {
  padding: 50px 0;
}

/* ── Currently Building ── */
.currently-building {
  padding: 50px 0;
}

.building-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.building-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.building-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.building-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #22c55e;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.building-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.building-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 0 16px;
}

.building-card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.building-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.building-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* Light mode building cards */
[data-theme="light"] .building-card {
  background: #f8f8fa;
  border-color: #eaeaea;
}

[data-theme="light"] .building-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.06);
}

[data-theme="light"] .building-card p strong {
  color: #000;
}

[data-theme="light"] .building-tag {
  background: rgba(99, 102, 241, 0.08);
}

/* Store section */
.store {
  padding: 50px 0;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.store-card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.store-card-image {
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.store-card:hover .store-card-image img {
  transform: scale(1.05);
}

.store-card-content {
  padding: 24px;
  position: relative;
}

.store-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.store-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.store-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

.store-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.store-arrow i,
.store-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.store-card:hover .store-arrow {
  opacity: 1;
  color: var(--accent);
  transform: translate(2px, -2px);
}

.store-card-content p {
  margin: 0;
  font-size: 15px;
  color: #666666;
}

.store-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.store-tag {
  font-size: 12px;
  font-weight: 500;
  color: #aaaaaa;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

/* Light mode store */
[data-theme="light"] .store-card {
  background-color: #f8f8f8;
  border-color: #e8e8e8;
}

[data-theme="light"] .store-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}

[data-theme="light"] .store-card-image {
  background-color: #000000;
}

[data-theme="light"] .store-card-content p {
  color: #444444;
}

[data-theme="light"] .store-tag {
  background-color: #e8e8ea;
  color: #444444;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.projects-grid.full-page {
  margin-top: 0;
}

/* Project categories */
.project-category {
  margin-bottom: 48px;
}

.project-category:last-child {
  margin-bottom: 0;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.category-title i,
.category-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* Category empty state */
.category-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 16px;
  color: var(--text-secondary);
  gap: 12px;
}

.category-empty i,
.category-empty svg {
  width: 32px;
  height: 32px;
  opacity: 0.5;
}

.category-empty p {
  font-size: 14px;
  margin: 0;
}

/* Category link card */
.category-link-card {
  display: block;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.category-link-card:hover {
  transform: translateX(4px);
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.link-card-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-card-content i,
.link-card-content svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.link-card-content span {
  font-size: 15px;
  font-weight: 500;
}

/* project card (clickable) */
.project-card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.project-card-image {
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.project-card-image img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  display: block;
  transition: transform 0.3s;
}

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

.project-card-content {
  padding: 24px;
  position: relative;
}

.project-card-content h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.project-card-content p {
  margin: 0;
  font-size: 15px;
  color: #666666;
}

.project-card-tags {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 12px;
  font-weight: 500;
  color: #aaaaaa;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 100px;
}

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

.project-card-header h3 {
  margin: 0;
}

.project-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  opacity: 0.4;
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

.project-arrow i,
.project-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.project-card:hover .project-arrow {
  opacity: 1;
  color: var(--text-secondary);
  transform: translateX(3px);
}

/* legacy project styles (for backwards compatibility) */
.project {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-content {
  padding: 24px;
}

.project h3 {
  margin-top: 0;
}

.project p {
  margin: 0;
  font-size: 15px;
  color: #666666;
}

/* project image styling */
.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* placeholder image */
.placeholder-img {
  background-color: #1a1a1a;
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666666;
  font-size: 14px;
}

/* ==================== */
/* PAGE STYLES          */
/* ==================== */

/* page header */
.page-header {
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 50px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #aaaaaa;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  margin-bottom: 32px;
  transition: background-color 0.2s, color 0.2s;
}

.back-link i,
.back-link svg {
  width: 20px;
  height: 20px;
}

.back-link:hover {
  background-color: var(--accent);
  color: #ffffff;
  opacity: 1;
}

.back-link--accent {
  color: var(--accent);
  background-color: rgba(255, 255, 255, 0.08);
}

.back-link--accent:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.page-intro {
  font-size: 20px;
  color: #888888;
  margin-top: 8px;
  max-width: 100%;
}

/* page tabs */
.page-tabs {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

.page-tab {
  font-size: 14px;
  font-weight: 500;
  color: #888888;
  padding: 10px 20px;
  border-radius: 100px;
  background-color: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.page-tab:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  opacity: 1;
}

.page-tab.active {
  background-color: var(--accent);
  color: #ffffff;
}

.page-tab.active:hover {
  background-color: var(--accent);
  opacity: 1;
}

/* research sections */
.research-section {
  margin-bottom: 48px;
}

.research-section:last-child {
  margin-bottom: 0;
}

.research-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.research-section-title i,
.research-section-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

/* research grid */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.research-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  border-color: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

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

.research-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.research-date {
  font-size: 13px;
  color: #888888;
}

.research-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}

.research-card p {
  font-size: 15px;
  color: #888888;
  margin: 0 0 16px;
  line-height: 1.6;
}

.research-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.research-card .card-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #888888;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.research-card:hover .card-arrow {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateX(0);
}

.research-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.research-tag {
  font-size: 11px;
  font-weight: 600;
  color: #888888;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.research-tag::after {
  content: ' ·';
  color: #555555;
  margin-left: 2px;
}

.research-tag:last-child::after {
  content: '';
}

/* research card featured */
.research-card.featured {
  background: linear-gradient(145deg, #1a1a1a 0%, #111111 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.research-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

.research-status.wip {
  background-color: #fef3c7;
  color: #92400e;
}

.research-link-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #888888;
  transition: all 0.2s;
}

.research-link-badge i {
  width: 16px;
  height: 16px;
}

.research-card:hover .research-link-badge {
  background: #24292e;
  color: #ffffff;
}

.card-arrow i {
  width: 16px;
  height: 16px;
}

.research-focus {
  margin: 20px 0;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.focus-heading {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888888;
  margin-bottom: 12px;
}

.research-bullets {
  margin: 0;
  padding-left: 18px;
  color: #444444;
  font-size: 14px;
  line-height: 1.8;
}

.research-bullets li {
  margin-bottom: 4px;
}

.research-updated {
  margin-top: 16px;
  font-size: 12px;
  color: #999999;
  font-style: italic;
}

/* research detail page */
.research-detail {
  max-width: 720px;
}

.research-section {
  margin-bottom: 48px;
}

.research-section h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
}

.research-section p {
  font-size: 16px;
  color: #444444;
  line-height: 1.8;
  margin-bottom: 16px;
}

.research-area {
  margin-bottom: 28px;
  padding-left: 20px;
  border-left: 2px solid #e0e0e0;
}

.research-area h3 {
  font-size: 17px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 8px;
}

.research-area p {
  font-size: 15px;
  color: #666666;
  margin: 0;
}

.progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #444444;
}

.progress-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.progress-status.done {
  background-color: #22c55e;
}

.progress-status.active {
  background-color: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.progress-status.pending {
  background-color: #d1d5db;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resource-list li {
  font-size: 15px;
  color: #444444;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.resource-list li:last-child {
  border-bottom: none;
}

/* research visual elements */
.research-visual {
  margin: 24px 0;
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* platform comparison */
.visual-comparison {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.comparison-item {
  flex: 1;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
}

.comparison-header {
  margin-bottom: 20px;
}

.platform-label {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.platform-subtitle {
  font-size: 13px;
  color: #888888;
}

.comparison-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comparison-points .point {
  font-size: 14px;
  color: #444444;
  padding: 10px 14px;
  background: #f5f5f7;
  border-radius: 8px;
}

.comparison-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
}

.comparison-divider span {
  font-size: 12px;
  font-weight: 600;
  color: #cccccc;
  text-transform: uppercase;
}

/* gesture flow */
.gesture-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.gesture-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  min-width: 140px;
}

.gesture-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f2;
  border-radius: 12px;
  color: var(--accent);
}

.gesture-icon i {
  width: 24px;
  height: 24px;
}

.gesture-name {
  font-size: 15px;
  font-weight: 600;
  color: #000000;
}

.gesture-desc {
  font-size: 12px;
  color: #888888;
  text-align: center;
}

.gesture-connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #e0e0e0, var(--accent), #e0e0e0);
  border-radius: 2px;
}

/* theme showcase */
.theme-showcase {
  display: flex;
  gap: 16px;
}

.theme-card {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
}

.theme-header {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-sample {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sample-nav {
  height: 8px;
  border-radius: 4px;
}

.sample-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sample-text {
  height: 6px;
  border-radius: 3px;
  width: 100%;
}

.sample-text.short {
  width: 60%;
}

.sample-button {
  height: 28px;
  border-radius: 6px;
  margin-top: 8px;
}

/* light theme card */
.theme-card.light {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.theme-card.light .theme-header {
  background: #f5f5f7;
  color: #666666;
}

.theme-card.light .sample-nav {
  background: #e0e0e0;
}

.theme-card.light .sample-text {
  background: #f0f0f2;
}

.theme-card.light .sample-button {
  background: #000000;
}

/* dark theme card */
.theme-card.dark {
  background: #1a1a1a;
}

.theme-card.dark .theme-header {
  background: #2a2a2a;
  color: #888888;
}

.theme-card.dark .sample-nav {
  background: #333333;
}

.theme-card.dark .sample-text {
  background: #2a2a2a;
}

.theme-card.dark .sample-button {
  background: #ffffff;
}

/* dynamic theme card */
.theme-card.dynamic {
  background: linear-gradient(145deg, #e8f0fe 0%, #f3e8ff 100%);
}

.theme-card.dynamic .theme-header {
  background: rgba(255,255,255,0.5);
  color: var(--accent);
}

.theme-card.dynamic .sample-nav {
  background: rgba(99, 102, 241, 0.2);
}

.theme-card.dynamic .sample-text {
  background: rgba(99, 102, 241, 0.1);
}

.theme-card.dynamic .sample-button {
  background: var(--accent);
}

/* insights grid */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.insight-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 24px;
}

.insight-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.insight-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 8px;
}

.insight-card p {
  font-size: 14px;
  color: #666666;
  margin: 0;
  line-height: 1.6;
}

/* research detail tags */
.research-tags-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.tag-detail {
  font-size: 13px;
  font-weight: 500;
  color: #aaaaaa;
  background-color: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* active nav link */
.nav-links a.active {
  color: #ffffff;
}

/* skill tags for skills page */
.skill-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.skill-section:last-of-type {
  border-bottom: none;
}

.skill-description {
  color: #888888;
  margin-bottom: 24px;
  max-width: 100%;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.skill-tag.learning {
  background-color: transparent;
  border: 2px dashed var(--accent);
  color: var(--accent);
}

.skill-tag.learning:hover {
  background-color: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* what I build grid */
.highlight-section {
  background-color: var(--bg-elevated);
  margin: 0 -40px;
  padding: 50px 40px;
  border-bottom: none;
}

.build-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.build-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
}

.build-card i,
.build-card svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.build-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.build-card p {
  font-size: 14px;
  color: #666666;
  margin: 0;
  max-width: 100%;
}

/* currently learning */
.learning-section {
  border-bottom: none;
}

.learning-note {
  color: #666666;
  margin-bottom: 20px;
  max-width: 100%;
}

/* ── skills page (samsung sections) ── */
.sk-intro {
  padding: 140px 0 60px;
}

.sk-headline {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 0 20px;
}

.sk-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: #888888;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

/* focus areas */
.sk-focus {
  padding: 80px 0;
  background-color: var(--bg-elevated);
}

.sk-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.sk-focus-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: 20px;
}

.sk-focus-card i,
.sk-focus-card svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
  margin-bottom: 20px;
}

.sk-focus-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}

.sk-focus-card p {
  font-size: 15px;
  color: #888888;
  line-height: 1.55;
  margin: 0;
}

/* technical stack */
.sk-stack {
  padding: 80px 0;
}

.sk-stack-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.sk-list {
  display: flex;
  flex-direction: column;
}

.sk-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.sk-list-item:first-child {
  border-top: 1px solid var(--border);
}

.sk-name {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.sk-list-item.learning .sk-name {
  color: #666666;
}

.sk-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: rgba(99, 102, 241, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

.sk-evolving-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.04);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.sk-evolving-note strong {
  color: var(--accent);
  font-weight: 700;
}

.sk-evolving-note i,
.sk-evolving-note svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  stroke-width: 2;
}

[data-theme="light"] .sk-evolving-note {
  background: rgba(99, 102, 241, 0.04);
}

.sk-more-indicator {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* currently exploring */
.sk-exploring {
  padding: 80px 0;
  background-color: #000000;
}

.sk-exploring-headline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 40px;
}

.sk-exploring-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.sk-exploring-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sk-exploring-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.sk-exploring-desc {
  font-size: 14px;
  color: #888888;
  line-height: 1.55;
}

/* beyond code */
.sk-beyond {
  padding: 80px 0;
  background-color: var(--bg-elevated);
}

.sk-beyond-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 32px;
}

.sk-beyond-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #ffffff;
}

.sk-beyond-col p {
  font-size: 14px;
  color: #888888;
  line-height: 1.6;
  margin: 0;
}

/* ── about page (samsung sections) ── */
.ab-intro {
  padding: 140px 0 60px;
}

.ab-headline {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
}

/* facts */
.ab-facts {
  padding: 60px 0;
  background-color: var(--bg-elevated);
}

.ab-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.ab-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-fact-value {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

/* why I build */
.ab-why {
  padding: 80px 0;
}

.ab-why-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ab-section-headline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #ffffff;
  margin: 0;
}

.ab-why-right p {
  font-size: 17px;
  line-height: 1.7;
  color: #aaaaaa;
  margin: 0 0 16px;
}

.ab-why-right p:last-child {
  margin-bottom: 0;
}

.ab-why-right strong {
  color: #ffffff;
  font-weight: 600;
}

/* beliefs */
.ab-beliefs {
  padding: 80px 0;
  background-color: #000000;
}

.ab-beliefs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 32px;
}

.ab-belief h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
}

.ab-belief p {
  font-size: 15px;
  color: #888888;
  line-height: 1.6;
  margin: 0;
}

/* journey */
.ab-journey {
  padding: 80px 0;
  background-color: var(--bg-elevated);
}

.ab-timeline {
  margin-top: 32px;
}

.ab-timeline-item {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.ab-timeline-item:first-child {
  border-top: 1px solid var(--border);
}

.ab-timeline-marker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999999;
  min-width: 80px;
  padding-top: 4px;
}

.ab-timeline-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.ab-timeline-body p {
  margin: 0;
  font-size: 15px;
  color: #888888;
  line-height: 1.55;
}

/* beyond code */
.ab-beyond {
  padding: 80px 0;
}

.ab-beyond-text {
  font-size: 18px;
  line-height: 1.75;
  color: #aaaaaa;
  max-width: 640px;
  margin: 0;
}

/* ── Contact Page ── */
.ct-intro {
  padding: 120px 0 60px;
}

.ct-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 12px 0 0;
}

/* Channel links */
.ct-channels {
  padding: 60px 0;
}

.ct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.ct-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.ct-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ct-link > i:first-child,
.ct-link > svg:first-child {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.ct-link-arrow {
  width: 14px !important;
  height: 14px !important;
  color: var(--text-muted) !important;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  margin-left: -4px;
}

.ct-link:hover .ct-link-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

/* Open to section */
.ct-open {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.ct-open-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.ct-open-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s ease;
}

.ct-open-item:hover {
  border-color: var(--accent);
}

.ct-open-item i,
.ct-open-item svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  stroke-width: 1.8;
  margin-bottom: 14px;
}

.ct-open-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.ct-open-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Availability bar */
.ct-availability {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
}

.ct-status-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  padding: 10px 20px;
}

.ct-status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.ct-status-text {
  font-size: 14px;
  font-weight: 600;
  color: #22c55e;
}

.ct-response-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Contact page light mode */
[data-theme="light"] .ct-link {
  background: #f8f8fa;
  border-color: #eaeaea;
}

[data-theme="light"] .ct-link:hover {
  border-color: var(--accent);
}

[data-theme="light"] .ct-open-item {
  background: #f8f8fa;
  border-color: #eaeaea;
}

[data-theme="light"] .ct-open-item:hover {
  border-color: var(--accent);
}

[data-theme="light"] .ct-open,
[data-theme="light"] .ct-availability {
  border-top-color: #eaeaea;
}

[data-theme="light"] .ct-status-bar {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.15);
}

/* Contact form */
.ct-form-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.ct-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ct-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ct-form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ct-form-group input,
.ct-form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 0;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  transition: border-color 0.3s;
  outline: none;
}

.ct-form-group input::placeholder,
.ct-form-group textarea::placeholder {
  color: var(--text-muted);
}

.ct-form-group input:focus,
.ct-form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.ct-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.ct-form-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}

.ct-form-btn:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.ct-form-btn:active {
  transform: translateY(0);
}

.ct-form-btn i,
.ct-form-btn svg {
  width: 16px;
  height: 16px;
}

[data-theme="light"] .ct-form-group input,
[data-theme="light"] .ct-form-group textarea {
  border-bottom-color: #ddd;
}

[data-theme="light"] .ct-form-group input:focus,
[data-theme="light"] .ct-form-group textarea:focus {
  border-bottom-color: var(--accent);
}

[data-theme="light"] .ct-form-section {
  border-top-color: #eaeaea;
}

/* Contact responsive */
@media (max-width: 768px) {
  .ct-open-grid {
    grid-template-columns: 1fr;
  }

  .ct-links {
    flex-direction: column;
  }

  .ct-link {
    justify-content: center;
  }

  .ct-intro {
    padding: 100px 0 40px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
  }
}

/* cta */
.ab-cta {
  padding: 80px 0;
  background-color: var(--bg-elevated);
  text-align: center;
}

.ab-cta-headline {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #ffffff;
  margin: 0 auto 12px;
}

.ab-cta-sub {
  font-size: 16px;
  color: #888888;
  margin: 0 auto 32px;
  max-width: 100%;
}

.cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #000000;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background-color: var(--accent);
  color: #ffffff;
  opacity: 1;
}

/* Error page (404) */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 48px 24px;
}

.error-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  margin-bottom: 24px;
}

.error-icon i,
.error-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1;
}

.error-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 16px 0 8px;
}

.error-message {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 400px;
}

.error-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.cta-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--text-secondary);
}

.cta-secondary i,
.cta-secondary svg {
  width: 18px;
  height: 18px;
}

/* project page styles */
.project-hero {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 500px;
}

.project-hero img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
  display: block;
}

.project-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.project-section:last-of-type {
  border-bottom: none;
}

.project-section h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888888;
  margin-bottom: 20px;
}

.project-section .intro-facts {
  margin-top: 0;
}

/* intro facts grid for project pages */
.intro-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.intro-fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fact-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.fact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Samsung-style feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.feature-item .feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.feature-item .feature-icon svg,
.feature-item .feature-icon i {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.feature-item .feature-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Countdown Timer */
.countdown-section {
  text-align: center;
}

.countdown-section h2 {
  text-align: center;
}

.countdown-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-number {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 8px;
}

.countdown-launched {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: none;
  padding-bottom: 20px;
}

.project-links .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-links .cta-button i {
  width: 18px;
  height: 18px;
}

.project-links .cta-button.secondary {
  background-color: transparent;
  color: #000000;
  border: 1px solid #d1d1d6;
}

.project-links .cta-button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.project-gallery img {
  width: 100%;
  border-radius: 12px;
  background-color: #1a1a1a;
}

/* Screenshot carousel */
.screenshot-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 16px 4px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  transition: transform 0.3s ease;
}

.carousel-slide:hover {
  transform: translateY(-4px);
}

/* iPhone 17 Air device frame */
.iphone-frame {
  position: relative;
  width: 250px;
  padding: 4px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2c2c2e, #1c1c1e);
  border: 1.5px solid #3a3a3c;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* No notch — screenshots already include it */
.iphone-notch {
  display: none;
}

/* Side button (power) */
.iphone-frame::before {
  content: '';
  position: absolute;
  top: 96px;
  right: -3px;
  width: 2px;
  height: 36px;
  background: #3a3a3c;
  border-radius: 0 2px 2px 0;
}

/* Volume buttons */
.iphone-frame::after {
  content: '';
  position: absolute;
  top: 78px;
  left: -3px;
  width: 2px;
  height: 24px;
  background: #3a3a3c;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 32px 0 #3a3a3c;
}

.iphone-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .iphone-frame {
  background: linear-gradient(145deg, #f0f0f5, #dcdce0);
  border-color: #c8c8cc;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .iphone-frame::before,
[data-theme="light"] .iphone-frame::after {
  background: #c8c8cc;
}

[data-theme="light"] .iphone-frame::after {
  box-shadow: 0 32px 0 #c8c8cc;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(120, 120, 128, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  z-index: 2;
}

.carousel-arrow:hover {
  background: rgba(120, 120, 128, 0.28);
  transform: scale(1.08);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-arrow svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 16px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: var(--text-muted);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: var(--text-secondary);
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }

  .iphone-frame {
    width: 220px;
    padding: 3px;
    border-radius: 40px;
  }

  .iphone-frame img {
    border-radius: 37px;
  }
}

@media (max-width: 480px) {
  .iphone-frame {
    width: 200px;
    padding: 3px;
    border-radius: 36px;
  }

  .iphone-frame img {
    border-radius: 33px;
  }
}

.project-nav {
  padding: 40px 0;
  text-align: right;
}

.next-project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.2s;
}

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

.next-project-link i {
  width: 18px;
  height: 18px;
}

/* mobile responsive */
@media (max-width: 768px) {
  .container {
    padding: 40px 24px;
    padding-top: 100px;
  }
  
  h1 {
    font-size: 36px;
  }
  
  .s-inner {
    padding: 0 24px;
  }
  
  .s-hero {
    min-height: 100vh;
    padding: 80px 0 40px;
  }
  
  .s-hero-title {
    font-size: 48px;
  }
  
  .s-hero-tagline {
    font-size: 18px;
  }
  
  .s-headline {
    font-size: 28px;
  }
  
  .s-about {
    padding: 60px 0;
  }
  
  .s-about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .s-about-right {
    padding-top: 0;
  }
  
  .s-stats {
    padding: 48px 0;
  }
  
  .s-stats-row {
    gap: 40px;
  }
  
  .s-stat-number {
    font-size: 36px;
  }
  
  .s-skills {
    padding: 60px 0;
  }
  
  .s-projects {
    padding: 60px 0;
  }
  
  .header {
    padding: 50px 0 40px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-about {
    grid-row: auto;
  }
  
  .bento-tile {
    padding: 28px 24px;
  }
  
  .bento-project-inner {
    grid-template-columns: 1fr;
  }
  
  .bento-project-image {
    min-height: 180px;
  }
  
  .bento-stats-grid {
    gap: 24px;
  }
  
  .info-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .belief-grid {
    grid-template-columns: 1fr;
  }
  
  .build-grid {
    grid-template-columns: 1fr;
  }
  
  .intro-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .project-hero {
    margin: 24px 0;
    max-height: 350px;
  }

  .project-hero img {
    max-height: 350px;
  }
  
  .intro-quote {
    font-size: 24px;
  }
  
  .highlight-section {
    margin: 0 -24px;
    padding: 40px 24px;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 8px;
  }
  
  .navbar {
    padding: 16px 24px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-links a {
    font-size: 12px;
  }
  
  .project-gallery {
    grid-template-columns: 1fr;
  }
  
  .project-links {
    flex-direction: column;
  }
  
  .project-links .cta-button {
    text-align: center;
    justify-content: center;
  }

  /* skills page responsive */
  .sk-intro {
    padding: 110px 0 40px;
  }

  .sk-headline {
    font-size: 32px;
  }

  .sk-subtitle {
    font-size: 16px;
  }

  .sk-focus {
    padding: 60px 0;
  }

  .sk-focus-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sk-stack {
    padding: 60px 0;
  }

  .sk-stack-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sk-exploring {
    padding: 60px 0;
  }

  .sk-exploring-headline {
    font-size: 26px;
  }

  .sk-exploring-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .sk-beyond {
    padding: 60px 0;
  }

  .sk-beyond-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* about page responsive */
  .ab-intro {
    padding: 110px 0 40px;
  }

  .ab-headline {
    font-size: 32px;
  }

  .ab-facts {
    padding: 40px 0;
  }

  .ab-facts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ab-why {
    padding: 60px 0;
  }

  .ab-why-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ab-section-headline {
    font-size: 26px;
  }

  .ab-beliefs {
    padding: 60px 0;
  }

  .ab-beliefs-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ab-journey {
    padding: 60px 0;
  }

  .ab-timeline-item {
    flex-direction: column;
    gap: 8px;
  }

  .ab-beyond {
    padding: 60px 0;
  }

  .ab-cta {
    padding: 60px 0;
  }

  .ab-cta-headline {
    font-size: 26px;
  }
}

/* stats card */
.stats-card {
  background: linear-gradient(160deg, #0a0a0a 0%, #151515 50%, #0d0d0d 100%);
  border-radius: 20px;
  padding: 32px;
  color: var(--text-primary);
}

[data-theme="light"] .stats-card {
  background: linear-gradient(160deg, #f0f0f2 0%, #ffffff 50%, #f5f5f7 100%);
  border: 1px solid #e8e8ea;
}

[data-theme="light"] .stats-card h2 {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .stat-number {
  color: #000000;
}

[data-theme="light"] .stat-label {
  color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .stats-focus {
  border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .focus-label {
  color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .focus-value {
  color: #000000;
}

.stats-card h2 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.stats-grid {
  display: flex;
  gap: 32px;
}

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

.stat-number {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.stats-focus {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.focus-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.focus-value {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

/* sticky footer */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 40px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.footer-tagline {
  font-size: 14px;
  color: #888888;
}

.footer-update {
  font-size: 12px;
  color: #555555;
  margin-top: 4px;
}

/* Availability line - minimal */
.availability-line {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  margin: 40px 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.avail-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  flex-shrink: 0;
}

.availability-line a {
  color: var(--accent);
  text-decoration: none;
}

.availability-line a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: background-color 0.2s, transform 0.2s;
}

.footer-link:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

.footer-link i {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-policy-link {
  font-size: 12px;
  color: #555555;
  text-decoration: none;
  transition: color 0.2s;
}

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

@media (max-width: 768px) {
  .site-footer {
    padding: 32px 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  
  .footer-left {
    align-items: center;
  }
}


/* ====== Research 2-Column Layout ====== */
.research-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.research-main {
  min-width: 0;
}

/* Sidebar */
.research-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.sidebar-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

/* Sidebar Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-link:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.sidebar-link i {
  width: 16px;
  height: 16px;
  color: var(--accent);
  opacity: 1;
}

/* Sidebar Gallery */
.sidebar-gallery {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
}

.gallery-link:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.25);
}

.gallery-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.gallery-icon.apple {
  background: linear-gradient(135deg, #fff 0%, #f5f5f7 100%);
  color: #000;
}

.gallery-icon.material {
  background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 100%);
  color: #fff;
}

.gallery-link span {
  font-size: 13px;
  color: #cccccc;
}

.gallery-link:hover span {
  color: #ffffff;
}

/* Compact Progress List */
.progress-list.compact {
  border: none;
  padding: 0;
  gap: 8px;
}

.progress-list.compact .progress-item {
  font-size: 13px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.progress-list.compact .progress-status {
  width: 8px;
  height: 8px;
}

.progress-list.compact .progress-status.done {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.progress-list.compact .progress-status.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  animation: pulse-status 2s infinite;
}

.progress-list.compact .progress-status.pending {
  background: rgba(255, 255, 255, 0.2);
}

@keyframes pulse-status {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Tools List */
.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-item {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  color: #aaaaaa;
}

/* Research Images */
.research-image {
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.research-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  color: #888888;
  background: rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .research-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .research-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sidebar-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .research-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar-card:first-child {
    grid-column: span 1;
  }

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

@media (max-width: 480px) {
  .intro-facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .project-hero {
    margin: 16px 0;
    max-height: 280px;
    border-radius: 12px;
  }
  
  .project-hero img {
    max-height: 280px;
  }

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

  .feature-item .feature-icon svg,
  .feature-item .feature-icon i {
    width: 28px;
    height: 28px;
  }

  .feature-item .feature-label {
    font-size: 13px;
  }

  .countdown-grid {
    gap: 12px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 12px 8px;
  }

  .countdown-number {
    font-size: 24px;
  }

  .countdown-label {
    font-size: 10px;
  }
}

/* ==========================================
   ANIMATIONS - Samsung One UI style
   ========================================== */

/* Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 10001;
  transition: width 0.05s linear;
}

/* Page transition */
body {
  animation: pageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.page-exit {
  animation: pageOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

/* Reveal animation classes */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 60ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 120ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 180ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 240ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 300ms; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Page load animation for hero */
.header {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Card hover - Samsung lift effect */
.project-card,
.research-card {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.project-card:hover,
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Skill category hover */
.skill-category {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-category:hover {
  transform: translateY(-2px);
}

[data-theme="light"] .skill-category:hover {
  background-color: transparent;
}

/* Button press effect */
.cta-button,
.resume-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              background-color 0.2s ease;
}



.cta-button:active,
.resume-btn:active {
  transform: scale(0.97);
}

/* Nav link underline animation */
.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
  left: 0;
}

/* Icon hover effects */
.footer-link {
  position: relative;
}

.footer-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

.footer-link:hover::before {
  opacity: 0.1;
  transform: scale(1.2);
}

.footer-link:hover i,
.footer-link:hover svg {
  transform: scale(1.15);
}

.footer-link i,
.footer-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth image loading with zoom */
.project-card-image {
  overflow: hidden;
}

.project-card-image img,
.project-hero img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.08);
}

/* Tag hover effect */
.project-tag,
.research-tag {
  transition: background-color 0.2s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease;
}

.project-card:hover .project-tag,
.research-card:hover .research-tag {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Section header slide in */
.section-header {
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Chevron arrow bounce on hover */
.project-arrow i,
.project-arrow svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-arrow i,
.project-card:hover .project-arrow svg {
  transform: translateX(6px);
}

/* Theme toggle with rotation */
.theme-toggle {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
}

.theme-toggle:active {
  transform: rotate(0deg) scale(0.9);
}

/* Hamburger to X animation enhancement */
.hamburger span {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              width 0.2s ease;
}

/* Mobile drawer slide animation */
.mobile-drawer {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay {
  transition: opacity 0.3s ease;
}

/* Hero text gradient animation */
.hero-gradient-text {
  background: linear-gradient(90deg, var(--text-primary), var(--accent), var(--text-primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

/* Floating animation for icons */
.floating {
  animation: float 3s ease-in-out infinite;
}

/* Shimmer loading effect */
.shimmer {
  background: linear-gradient(90deg, 
    var(--bg-card) 0%, 
    var(--bg-elevated) 50%, 
    var(--bg-card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}

/* Breathing effect for status indicators */
.breathing {
  animation: breathe 3s ease-in-out infinite;
}

/* Page header parallax ready */
.page-header {
  will-change: transform;
}

/* Smooth count up numbers */
.count-up {
  font-variant-numeric: tabular-nums;
}

/* Back link hover */
.back-link {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.2s ease;
}

.back-link:hover {
  transform: translateX(-4px) scale(1.05);
}

/* Logo hover effect */
.nav-logo {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-dot {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo:hover .logo-dot {
  transform: scale(1.3);
}

/* See all link hover */
.see-all {
  position: relative;
  transition: color 0.2s ease;
}

.see-all::after {
  content: '›';
  display: inline-block;
  margin-left: 4px;
  font-size: 1.2em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.see-all:hover::after {
  transform: translateX(4px);
}

/* CTA button glow on hover */
.cta-button:hover {
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

/* ── Engineering Depth Sections ── */

/* Architecture diagram */
.arch-diagram {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.arch-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.arch-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
  flex: 1;
  max-width: 220px;
  transition: border-color 0.3s ease;
}

.arch-box:hover {
  border-color: var(--accent);
}

.arch-box-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.arch-box-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-box-detail {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.arch-connector {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.3em;
}

.arch-full {
  max-width: 100%;
}

/* Tradeoff / Decision cards */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.decision-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease;
}

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

.decision-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.decision-title i,
.decision-title svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  stroke-width: 2;
}

.decision-chose {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.decision-why {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.decision-alt {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* API / endpoint table */
.api-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 13px;
}

.api-table thead {
  border-bottom: 2px solid var(--border);
}

.api-table th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 10px 16px;
  text-align: left;
}

.api-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.api-table tr:last-child td {
  border-bottom: none;
}

.api-method {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.api-method.get { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.api-method.post { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.api-method.put { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.api-method.delete { background: rgba(239, 68, 68, 0.15); color: #ef4444; }

.api-endpoint {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-primary);
}

/* Database / Schema section */
.schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.schema-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.3s ease;
}

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

.schema-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schema-card-title i,
.schema-card-title svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.schema-fields {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schema-fields li {
  font-size: 12px;
  padding: 4px 0;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.schema-fields li:last-child {
  border-bottom: none;
}

.schema-field-name {
  font-family: 'Courier New', monospace;
  color: var(--text-primary);
  font-weight: 500;
}

.schema-field-type {
  color: var(--text-muted);
  font-size: 11px;
}

/* Scaling / performance callouts */
.scale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.scale-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s ease;
}

.scale-item:hover {
  border-color: var(--accent);
}

.scale-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.scale-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.scale-detail {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Section subtitle text */
.section-note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

/* Light mode overrides for engineering sections */
[data-theme="light"] .arch-box,
[data-theme="light"] .decision-card,
[data-theme="light"] .schema-card,
[data-theme="light"] .scale-item {
  background: #f8f8fa;
  border-color: #eaeaea;
}

[data-theme="light"] .arch-box:hover,
[data-theme="light"] .decision-card:hover,
[data-theme="light"] .schema-card:hover,
[data-theme="light"] .scale-item:hover {
  border-color: var(--accent);
}

[data-theme="light"] .api-table td {
  border-bottom-color: #eaeaea;
}

[data-theme="light"] .api-table thead {
  border-bottom-color: #ddd;
}

[data-theme="light"] .schema-fields li {
  border-bottom-color: #eaeaea;
}

/* Responsive: engineering sections */
@media (max-width: 768px) {
  .arch-row {
    flex-direction: column;
    align-items: center;
  }

  .arch-box {
    max-width: 100%;
    width: 100%;
  }

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

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

  .api-table {
    font-size: 12px;
  }

  .api-table th,
  .api-table td {
    padding: 8px 10px;
  }

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

/* ==========================================
   AUTH API PROJECT — Live badges, code blocks,
   auth flow, API examples
   ========================================== */

/* Live API badges */
.api-live-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.api-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.api-live-badge:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.api-live-badge svg {
  width: 16px;
  height: 16px;
}

.api-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-glow 2s ease-in-out infinite;
}

.api-live-badge.swagger {
  border-color: rgba(34, 197, 94, 0.3);
}

.api-live-badge.github {
  border-color: rgba(255, 255, 255, 0.15);
}

.api-caution {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(234, 179, 8, 0.06);
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 10px;
}

.api-caution > i,
.api-caution > svg {
  width: 18px;
  height: 18px;
  color: #eab308;
  flex-shrink: 0;
  margin-top: 2px;
}

.api-caution p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

[data-theme="light"] .api-caution {
  background: rgba(234, 179, 8, 0.05);
  border-color: rgba(234, 179, 8, 0.25);
}

/* Strong caution variant */
.api-caution--strong {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 20px 24px;
  gap: 16px;
}

.api-caution--strong > i,
.api-caution--strong > svg {
  color: #ef4444;
  width: 22px;
  height: 22px;
  margin-top: 2px;
}

.api-caution--strong strong {
  display: block;
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 6px;
}

.api-caution--strong p {
  font-size: 13px;
  line-height: 1.7;
}

[data-theme="light"] .api-caution--strong {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.2);
}

/* API access gate */
.api-access-gate {
  margin-top: 24px;
}

.api-gate-card {
  text-align: center;
  padding: 40px 32px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
}

.api-gate-card > i,
.api-gate-card > svg {
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.api-gate-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.api-gate-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.api-gate-checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.api-gate-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.api-gate-card .consent-btn {
  min-width: 180px;
}

.api-gate-card .consent-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Auth flow diagram */
.auth-flow-diagram {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-flow-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.auth-flow-actor {
  flex-shrink: 0;
  min-width: 100px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-align: center;
}

.auth-flow-arrow {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  position: relative;
  padding: 4px 12px;
}

.auth-flow-label {
  font-size: 11px;
  font-family: 'Courier New', monospace;
  color: var(--accent);
  white-space: nowrap;
}

.auth-flow-line {
  width: 100%;
  height: 2px;
  background: var(--border);
  position: relative;
}

.auth-flow-line::after {
  content: '→';
  position: absolute;
  right: -4px;
  top: -9px;
  font-size: 14px;
  color: var(--accent);
}

.auth-flow-step.return .auth-flow-line::after {
  content: '←';
  left: -4px;
  right: auto;
}

.auth-flow-step.return .auth-flow-label {
  color: #22c55e;
}

.auth-flow-step.return .auth-flow-line {
  background: rgba(34, 197, 94, 0.3);
}

/* Code blocks */
.code-block {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: #e6edf3;
  margin: 0;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.code-block.response {
  background: #0a0e14;
  border-color: rgba(34, 197, 94, 0.15);
}

[data-theme="light"] .code-block {
  background: #f6f8fa;
  border-color: #d0d7de;
  color: #1f2328;
}

[data-theme="light"] .code-block.response {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

/* API example cards */
.api-example-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.api-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
}

.api-example-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.api-example-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.api-example-response {
  margin-top: 14px;
}

.api-example-response-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #22c55e;
  margin-bottom: 8px;
}

.api-method.patch { background: rgba(168, 85, 247, 0.15); color: #a855f7; }

/* API project 2-column layout */
.api-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.api-two-col .project-section {
  margin-bottom: 0;
}

.api-two-col-full {
  grid-column: 1 / -1;
}

/* API example grid — 2 columns on desktop */
.api-example-grid {
  grid-template-columns: 1fr 1fr;
}

/* Clean Architecture layered diagram */
.api-arch {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.api-arch-layer {
  position: relative;
  padding: 18px 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  text-align: center;
}

.api-arch-layer:first-child {
  border-radius: 12px 12px 0 0;
}

.api-arch-layer:last-child {
  border-radius: 0 0 12px 12px;
}

.api-arch-layer + .api-arch-layer {
  border-top: none;
}

.api-arch-layer-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 4px;
}

.api-arch-layer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.api-arch-layer-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.api-arch-layer-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}

.api-arch-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.api-arch-divider {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 0;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.api-arch-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.api-arch-split .api-arch-layer:first-child {
  border-radius: 0 0 0 12px;
  border-right: none;
}

.api-arch-split .api-arch-layer:last-child {
  border-radius: 0 0 12px 0;
}

/* Light mode overrides */
[data-theme="light"] .api-arch-chip {
  background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .api-arch-divider {
  background: #fff;
}

@media (max-width: 900px) {
  .api-two-col {
    grid-template-columns: 1fr;
  }
  
  .api-arch-split {
    grid-template-columns: 1fr;
  }
  
  .api-arch-split .api-arch-layer:first-child {
    border-radius: 0;
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  
  .api-arch-split .api-arch-layer:last-child {
    border-radius: 0 0 12px 12px;
  }
}

@media (max-width: 700px) {
  .auth-flow-step {
    flex-direction: column;
    gap: 4px;
  }
  
  .auth-flow-actor {
    min-width: unset;
    width: 100%;
  }
  
  .auth-flow-arrow {
    padding: 8px 0;
    width: 100%;
  }
  
  .auth-flow-line {
    width: 2px;
    height: 20px;
  }
  
  .auth-flow-line::after {
    content: '↓';
    right: -5px;
    top: 4px;
  }
  
  .auth-flow-step.return .auth-flow-line::after {
    content: '↑';
    left: -5px;
    right: auto;
  }
  
  .api-live-links {
    flex-direction: column;
  }
  
  .api-live-badge {
    justify-content: center;
  }
  
  .api-example-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .reveal,
  .reveal-scale,
  .stagger-children > * {
    opacity: 1;
    transform: none;
  }
  
  .scroll-progress {
    display: none;
  }
}

/* Privacy consent overlay */
.privacy-consent-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-consent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.consent-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 14px;
  color: var(--accent);
}

.consent-icon svg {
  width: 24px;
  height: 24px;
}

.privacy-consent-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.privacy-consent-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.consent-actions {
  display: flex;
  gap: 12px;
}

.consent-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.consent-btn:active {
  transform: scale(0.97);
}

.consent-accept {
  background: var(--accent);
  color: #fff;
}

.consent-accept:hover {
  background: #5558e6;
}

.consent-decline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.consent-decline:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}
