@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Manrope:wght@300;400;500;600&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--page-bg);
  color: var(--text-primary);
  transition: background 0.3s ease, color 0.3s ease;
  opacity: 0;
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

#vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 15%, rgba(63, 76, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(120, 150, 255, 0.16), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(63, 76, 255, 0.12), transparent 55%);
}

.video-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.video-bg__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  filter: brightness(0.6) saturate(1.1);
}

.vanta-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.page {
  position: relative;
  z-index: 1;
}

body.is-loaded {
  opacity: 1;
}

body.is-transitioning {
  opacity: 0;
  pointer-events: none;
}

:root {
  --radius-xl: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 22px 40px rgba(0, 0, 0, 0.18);
  --shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.3);
  --border-soft: 1px solid rgba(255, 255, 255, 0.08);
  --gradient-blue: linear-gradient(130deg, #101b2b 0%, #1c2f47 55%, #2b3d57 100%);
  --nav-pill-bg: rgba(255, 255, 255, 0.04);
  --nav-pill-border: rgba(255, 255, 255, 0.08);
  --nav-pill-hover: rgba(73, 151, 255, 0.14);
  --nav-pill-active: linear-gradient(135deg, rgba(62, 200, 255, 0.95), rgba(66, 135, 255, 0.95));
  --nav-pill-glow: 0 14px 36px rgba(75, 151, 255, 0.55);
}

html[data-theme="dark"] {
  --page-bg: radial-gradient(circle at top, #1b1b1b 0%, #111 60%);
  --card-bg: #1c1c1c;
  --card-bg-alt: #242424;
  --card-border: rgba(255, 255, 255, 0.12);
  --text-primary: #f3f4f8;
  --text-secondary: #a6adbb;
  --text-muted: #7d8594;
  --accent: #3b7cff;
  --accent-soft: #1e3358;
  --button-bg: #262626;
  --button-text: #f5f5f5;
  --shadow-soft: 0 22px 40px rgba(0, 0, 0, 0.45);
  --skill-card-bg: #1e2740;
  --skill-card-border: rgba(255, 255, 255, 0.08);
  --skill-text: #dbe3ff;
  --skill-accent: #c792ff;
  --skill-accent-2: #6fe6ff;
  --skill-label: #a8f3ff;
  --skill-bar-bg: #0f1426;
  --nav-pill-bg: rgba(255, 255, 255, 0.06);
  --nav-pill-border: rgba(255, 255, 255, 0.12);
  --nav-pill-hover: rgba(73, 151, 255, 0.18);
  --nav-pill-active: linear-gradient(135deg, rgba(63, 210, 255, 0.95), rgba(66, 135, 255, 0.95));
  --nav-pill-glow: 0 16px 40px rgba(73, 151, 255, 0.6);
}

html[data-theme="dark"] body.video-bg-page {
  --card-bg: rgba(28, 28, 28, 0.82);
  --card-bg-alt: rgba(36, 36, 36, 0.82);
  --card-border: rgba(255, 255, 255, 0.16);
  --skill-card-bg: rgba(30, 39, 64, 0.82);
  --skill-card-border: rgba(255, 255, 255, 0.14);
}

html[data-theme="light"] {
  --page-bg: linear-gradient(180deg, #f3f4f7 0%, #eceff3 100%);
  --card-bg: #f9f9fb;
  --card-bg-alt: #ffffff;
  --card-border: rgba(19, 28, 52, 0.08);
  --text-primary: #1b2233;
  --text-secondary: #5b6577;
  --text-muted: #8e95a3;
  --accent: #2f6fe6;
  --accent-soft: #d8e4ff;
  --button-bg: #101b2b;
  --button-text: #ffffff;
  --shadow-soft: 0 18px 32px rgba(14, 22, 36, 0.12);
  --skill-card-bg: #f7f8fb;
  --skill-card-border: rgba(16, 28, 52, 0.08);
  --skill-text: #1b2233;
  --skill-accent: #4b5eff;
  --skill-accent-2: #39c0ff;
  --skill-label: #4a7a93;
  --skill-bar-bg: #e5e9f2;
  --nav-pill-bg: rgba(16, 28, 52, 0.06);
  --nav-pill-border: rgba(16, 28, 52, 0.1);
  --nav-pill-hover: rgba(47, 111, 230, 0.12);
  --nav-pill-active: linear-gradient(135deg, rgba(53, 188, 255, 0.95), rgba(57, 128, 255, 0.95));
  --nav-pill-glow: 0 14px 36px rgba(47, 111, 230, 0.55);
}

html[data-theme="light"] body.video-bg-page {
  --card-bg: rgba(160, 174, 205, 0.86);
  --card-bg-alt: rgba(160, 174, 205, 0.86);
  --card-border: rgba(19, 28, 52, 0.1);
  --skill-card-bg: rgba(247, 248, 251, 0.86);
  --skill-card-border: rgba(16, 28, 52, 0.12);
}

html[data-theme="light"] body.video-bg-page .nav-link {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .nav-link.active {
  color: #0b1a2f;
}

html[data-theme="light"] body.video-bg-page .brand,
html[data-theme="light"] body.video-bg-page .nav-actions .icon-button,
html[data-theme="light"] body.video-bg-page .mobile-link {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .mobile-link.active {
  color: #ffffff;
}

html[data-theme="light"] body.video-bg-page .nav-dropdown a {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .nav-dropdown a:hover {
  color: #0b1a2f;
}

html[data-theme="light"] body.video-bg-page .card h1,
html[data-theme="light"] body.video-bg-page .card h2,
html[data-theme="light"] body.video-bg-page .card h3,
html[data-theme="light"] body.video-bg-page .card h4,
html[data-theme="light"] body.video-bg-page .card h5,
html[data-theme="light"] body.video-bg-page .card p,
html[data-theme="light"] body.video-bg-page .card span,
html[data-theme="light"] body.video-bg-page .card .label,
html[data-theme="light"] body.video-bg-page .card .eyebrow,
html[data-theme="light"] body.video-bg-page .card .body,
html[data-theme="light"] body.video-bg-page .card .card-meta .label,
html[data-theme="light"] body.video-bg-page .card .card-meta h3,
html[data-theme="light"] body.video-bg-page .card .card-meta h3 a {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .skills-section,
html[data-theme="light"] body.video-bg-page .skill-card,
html[data-theme="light"] body.video-bg-page .skill-card h4,
html[data-theme="light"] body.video-bg-page .skill-row span {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .card,
html[data-theme="light"] body.video-bg-page .card a,
html[data-theme="light"] body.video-bg-page .card .arrow,
html[data-theme="light"] body.video-bg-page .card .arrow-icon,
html[data-theme="light"] body.video-bg-page .card svg,
html[data-theme="light"] body.video-bg-page .mini-icon,
html[data-theme="light"] body.video-bg-page .mini-chip,
html[data-theme="light"] body.video-bg-page .profile-link {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .contact-section p,
html[data-theme="light"] body.video-bg-page .contact-section .info-card p {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .form-grid input,
html[data-theme="light"] body.video-bg-page .form-grid textarea {
  color: #490b3d;
}

html[data-theme="light"] body.video-bg-page .form-grid input::placeholder,
html[data-theme="light"] body.video-bg-page .form-grid textarea::placeholder {
  color: rgba(73, 11, 61, 0.75);
}

html[data-theme="light"] body.video-bg-page .blog-hero,
html[data-theme="light"] body.video-bg-page .blog-hero h1,
html[data-theme="light"] body.video-bg-page .blog-title {
  color: #f4f6ff;
}

html[data-theme="light"] body.video-bg-page .breadcrumb {
  color: rgba(220, 230, 255, 0.72);
}

html[data-theme="light"] body.video-bg-page .blog-main .post-card {
  color: rgba(236, 240, 255, 0.92);
}

html[data-theme="light"] body.video-bg-page .blog-main .post-card h3 {
  color: #ffffff;
}

html[data-theme="light"] body.video-bg-page .blog-main .post-card p {
  color: rgba(224, 230, 246, 0.85);
}

html[data-theme="light"] body.video-bg-page .blog-main .post-meta {
  color: #9fb7ff;
}

html[data-theme="light"] body.video-bg-page .detail-card {
  color: rgba(236, 240, 255, 0.92);
}

html[data-theme="light"] body.video-bg-page .detail-card h3 {
  color: #ffffff;
}

html[data-theme="light"] body.video-bg-page .detail-card p,
html[data-theme="light"] body.video-bg-page .detail-card .detail-list {
  color: rgba(224, 230, 246, 0.85);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1000;
}

.brand {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 22px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  background: var(--nav-pill-bg);
  border: 1px solid var(--nav-pill-border);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: var(--nav-pill-hover);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: -1;
}

.nav-link:hover::before,
.nav-link:focus-visible::before {
  opacity: 1;
}

.nav-link.active {
  color: #0b1a2f;
  background: var(--nav-pill-active);
  box-shadow: var(--nav-pill-glow);
}

.nav-item {
  position: relative;
}

.nav-trigger {
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 999;
}

.nav-dropdown a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover {
  background: var(--nav-pill-hover);
  color: var(--text-primary);
}

.nav-item.dropdown:hover .nav-dropdown,
.nav-item.dropdown.open .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.prompts-page .page {
  max-width: 1200px;
}

.prompts-hero {
  text-align: center;
  margin: 40px 0 24px;
  display: grid;
  gap: 18px;
}

.prompts-hero h1 {
  font-family: "Sora", sans-serif;
  font-size: 36px;
}

.prompt-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.prompt-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 14px;
  outline: none;
}

.prompt-search button {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.prompt-search button svg {
  width: 18px;
  height: 18px;
}

.prompt-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

html[data-theme="light"] .prompts-page .prompts-hero h1 {
  color: #1b1f2b;
}

html[data-theme="light"] .prompts-page .prompt-search {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 28, 52, 0.2);
}

html[data-theme="light"] .prompts-page .prompt-search input {
  color: #1b2233;
}

html[data-theme="light"] .prompts-page .prompt-search input::placeholder {
  color: #4a5162;
}

html[data-theme="light"] .prompts-page .prompt-search button {
  background: rgba(16, 28, 52, 0.08);
  color: #1b2233;
}

html[data-theme="light"] .prompts-page .prompt-tags {
  color: #3a3f4b;
}

.prompt-filters {
  display: grid;
  gap: 14px;
  margin: 24px 0 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.filter-tabs button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.filter-tabs button.active {
  background: var(--nav-pill-active);
  color: #0b1a2f;
  box-shadow: var(--nav-pill-glow);
}

.filter-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-controls button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
}

html[data-theme="light"] .prompts-page .filter-tabs {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 28, 52, 0.2);
}

html[data-theme="light"] .prompts-page .filter-tabs button {
  color: #1b2233;
}

html[data-theme="light"] .prompts-page .filter-controls button {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 28, 52, 0.2);
  color: #1b2233;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prompt-card {
  background: rgba(23, 28, 46, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.prompt-card.is-hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.prompt-card[hidden] {
  display: none;
}

html[data-theme="light"] .prompts-page .prompt-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 28, 52, 0.18);
}

.prompt-card__tag {
  font-size: 12px;
  color: var(--text-muted);
}

.prompt-card h3 {
  font-size: 18px;
  font-family: "Sora", sans-serif;
}

.prompt-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

html[data-theme="light"] .prompts-page .prompt-card__tag {
  color: #3a3f4b;
}

html[data-theme="light"] .prompts-page .prompt-card h3 {
  color: #1b1f2b;
}

html[data-theme="light"] .prompts-page .prompt-card p {
  color: #2f3747;
}

.prompt-card__chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-card__chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(60, 140, 255, 0.18);
  color: #cfe0ff;
  font-size: 12px;
}

html[data-theme="light"] .prompts-page .prompt-card__chips span {
  background: rgba(47, 111, 230, 0.12);
  color: #1f2a44;
}

.prompt-card__actions {
  display: flex;
  gap: 10px;
}

.prompt-card__actions button {
  flex: 1;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbe3ff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prompt-card__actions .primary {
  background: var(--nav-pill-active);
  color: #0b1a2f;
}

.copy-btn.is-copied {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px rgba(120, 160, 255, 0.4);
}

html[data-theme="light"] .prompts-page .prompt-card__actions button {
  background: rgba(16, 28, 52, 0.08);
  color: #1b2233;
}

html[data-theme="light"] .prompts-page .prompt-card__actions .primary {
  color: #0b1a2f;
}

.prompt-trending {
  margin: 40px 0 28px;
}

.trending-header h2 {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  margin-bottom: 16px;
}

.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trending-card {
  position: relative;
  min-height: 150px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(23, 28, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  align-content: end;
  backdrop-filter: blur(8px);
}

html[data-theme="light"] .prompts-page .trending-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 28, 52, 0.18);
}

.trending-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #ff6a6a, #ffb36b);
  color: #1a0c0c;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.prompt-premium {
  margin: 30px 0 50px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(33, 38, 66, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
}

.prompt-empty {
  text-align: center;
  margin: 18px 0 30px;
  color: var(--text-secondary);
}

html[data-theme="light"] .prompts-page .prompt-premium {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(16, 28, 52, 0.18);
}

.premium-content {
  display: grid;
  gap: 16px;
  text-align: center;
}

.premium-content h2 {
  font-family: "Sora", sans-serif;
  font-size: 24px;
}

.premium-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.premium-actions button {
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #dfe6ff;
  cursor: pointer;
}

.premium-actions .primary {
  background: linear-gradient(135deg, #ffc34f, #ff7c6e);
  color: #1a0c0c;
}

html[data-theme="light"] .prompts-page .premium-actions button {
  background: rgba(16, 28, 52, 0.08);
  color: #1b2233;
}

.premium-content ul {
  list-style: none;
  display: grid;
  gap: 8px;
  justify-content: center;
  color: var(--text-secondary);
}

html[data-theme="light"] .prompts-page .premium-content h2,
html[data-theme="light"] .prompts-page .trending-header h2 {
  color: #1b1f2b;
}

html[data-theme="light"] .prompts-page .premium-content p,
html[data-theme="light"] .prompts-page .premium-content ul {
  color: #2f3747;
}

.premium-content ul li::before {
  content: "✓";
  margin-right: 8px;
  color: #8fd4ff;
}

@media (max-width: 980px) {
  .prompt-grid,
  .trending-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .prompts-hero h1 {
    font-size: 28px;
  }

  .prompt-grid,
  .trending-grid {
    grid-template-columns: 1fr;
  }

  .prompt-search {
    padding: 8px 10px;
  }
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-actions .icon-button {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--nav-pill-border);
  background: var(--nav-pill-bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.nav-actions .icon-button:hover {
  background: var(--nav-pill-hover);
  box-shadow: var(--nav-pill-glow);
  border-color: transparent;
}

.primary-button {
  background: var(--nav-pill-active);
  color: #0b1a2f;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--nav-pill-glow);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(73, 151, 255, 0.55);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  color: var(--text-primary);
}

.icon-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.hamburger {
  display: none;
  position: relative;
}

.hamburger span,
.hamburger span::before,
.hamburger span::after {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  position: absolute;
  border-radius: 4px;
}

.hamburger span::before {
  transform: translateY(-6px);
}

.hamburger span::after {
  transform: translateY(6px);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 40;
  display: none;
}

.mobile-menu {
  position: fixed;
  top: 92px;
  left: 24px;
  right: 24px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  display: grid;
  gap: 18px;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
  z-index: 50;
}

.mobile-link {
  text-decoration: none;
  font-size: 20px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mobile-link.active {
  color: var(--accent);
}

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

.card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  grid-column: span var(--span, 12);
}

@supports (backdrop-filter: blur(1px)) {
  body.video-bg-page .card {
    backdrop-filter: blur(6px);
  }
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

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

.card .arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: var(--text-muted);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.arrow-icon {
  width: 22px;
  height: 22px;
}

.arrow-image {
  width: 28px;
  height: 28px;
  display: block;
  transform: scale(1.06);
}

.credentials .arrow,
.about-credentials .arrow {
  color: var(--text-muted);
}

html[data-theme="dark"] .credentials .arrow,
html[data-theme="dark"] .about-credentials .arrow {
  color: #d3d8e2;
}

.hero {
  --span: 5;
  grid-area: hero;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: 24px;
}

.hero-media {
  display: grid;
  place-items: center;
}

.portrait {
  width: 100%;
  max-width: 200px;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}

.hero-content h1 {
  font-family: "Sora", sans-serif;
  font-size: 32px;
  margin: 8px 0 12px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.marquee {
  --span: 7;
  grid-area: marquee;
  height: 58px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  align-self: start;
}

.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee 12s linear infinite;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  padding: 0 18px;
  align-items: center;
  height: 100%;
}

.marquee-track span {
  display: inline-block;
}

.credentials {
  --span: 7;
  grid-area: credentials;
  min-height: 180px;
}

.card-icon svg {
  width: 100px;
  color: var(--text-muted);
}

.card-meta .label {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
}

.card-meta h3 {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  margin-top: 8px;
}

.projects,
.gfonts,
.services,
.profiles {
  --span: 6;
  min-height: 220px;
}

.projects {
  grid-area: projects;
  align-self: stretch;
}

.gfonts {
  grid-area: gfonts;
}

.services {
  grid-area: services;
  justify-content: space-between;
  padding: 26px 28px;
}

.profiles {
  grid-area: profiles;
  justify-content: space-between;
  padding: 26px 28px;
}

.media-frame {
  background: var(--card-bg-alt);
  border-radius: var(--radius-md);
  padding: 12px;
}

.project-image {
  border-radius: 16px;
  background: linear-gradient(135deg, #1f3846, #3d5b64);
  height: 120px;
  display: grid;
  place-items: center;
  position: relative;
}

.project-image .plant {
  width: 70px;
  height: 90px;
  background: radial-gradient(circle at top, #5cca6b 0%, #2d6e44 80%);
  border-radius: 30px 30px 12px 12px;
  position: relative;
}

.project-image .plant::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 20px;
  background: #ffffff;
  border-radius: 0 0 10px 10px;
}

.blob-stack {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

.blob {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.blob.one {
  background: #ff6b6b;
}

.blob.two {
  background: #ffd166;
  margin-left: -20px;
}

.blob.three {
  background: #4dabf7;
  margin-left: -20px;
}

.gfonts-image {
  border-radius: 16px;
  overflow: hidden;
  background: var(--card-bg-alt);
}

.gfonts-image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.icon-row,
.profile-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.services .icon-row {
  justify-content: space-between;
  width: 100%;
  gap: 28px;
  margin-top: 6px;
}

.services .mini-icon {
  width: 52px;
  height: 52px;
  background: transparent;
  border-radius: 16px;
  box-shadow: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.services .mini-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.6;
}

.services .card-meta {
  margin-top: 6px;
}

.services .arrow {
  color: var(--accent);
}

.services .mini-icon:hover {
  color: var(--accent);
}

.service-link {
  color: inherit;
  text-decoration: none;
}

.service-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.service-arrow .arrow {
  position: static;
}

.project-link {
  color: inherit;
  text-decoration: none;
}

.project-arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.project-arrow .arrow {
  position: static;
}

.card-link {
  color: inherit;
  text-decoration: none;
}

.card-arrow-link {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

.card-arrow-link .arrow {
  position: static;
}

.card-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card.cta .cta-content {
  position: relative;
  z-index: 2;
}

.card.cta .card-arrow-link {
  z-index: 2;
}

.profiles .profile-icons {
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  align-items: center;
  flex-wrap: nowrap;
}

.profiles .mini-chip {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at top, #3c3c3c 0%, #2a2a2a 70%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

html[data-theme="light"] .profiles .mini-chip {
  background: radial-gradient(circle at top, #f0f2f7 0%, #e2e6ef 70%);
  border: 2px solid rgba(14, 22, 36, 0.14);
  color: #1b2233;
}

.profiles .mini-chip svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.profiles .mini-chip:hover {
  color: var(--accent);
  border-color: rgba(59, 124, 255, 0.6);
  transform: translateY(-2px) scale(1.03);
}

.profiles .profile-link {
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}

.profiles .mini-chip.is-selected {
  background: radial-gradient(circle at top, #5a1e1e 0%, #3c1414 70%);
  border-color: var(--accent);
  color: #ffffff;
}

html[data-theme="light"] .profiles .mini-chip.is-selected {
  background: radial-gradient(circle at top, #f4caca 0%, #e7a8a8 70%);
  border-color: var(--accent);
  color: #1b2233;
}

.profiles .arrow {
  color: var(--accent);
}

.mini-icon,
.mini-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--card-bg-alt);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.mini-icon svg,
.mini-chip svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.skills-section {
  --span: 12;
  grid-area: stats;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--card-border);
  padding: 24px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skills-section:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.skills-title {
  font-family: "Sora", sans-serif;
  font-size: 24px;
}

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

.skill-card {
  background: var(--skill-card-bg);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--skill-card-border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
  color: var(--skill-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.skill-card h4 {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  color: var(--skill-accent);
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--skill-label);
}

.skill-row span:last-child {
  color: var(--skill-accent);
  font-weight: 600;
}

.skill-bar {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: var(--skill-bar-bg);
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--skill-accent), var(--skill-accent-2));
  width: calc(var(--value, 0) * 1%);
  animation: skill-fill 1.4s ease forwards;
}

@keyframes skill-fill {
  from {
    width: 0%;
  }
  to {
    width: calc(var(--value, 0) * 1%);
  }
}

.cta {
  --span: 12;
  grid-area: cta;
  background: var(--gradient-blue);
  color: #f6f7ff;
  min-height: 160px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cta h2 {
  font-family: "Sora", sans-serif;
  font-size: 34px;
}

.cta h2 span {
  color: var(--accent);
}

.sparkle {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-family: "Sora", sans-serif;
  font-size: 20px;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
}

.about-section {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  font-family: "Sora", sans-serif;
  font-size: 40px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-star {
  color: var(--text-muted);
  font-size: 32px;
}

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

.about-photo {
  grid-area: about-photo;
  min-height: 240px;
  display: grid;
  place-items: center;
}

.about-portrait {
  width: 100%;
  max-width: 220px;
  border-radius: 36px;
  box-shadow: var(--shadow-soft);
}

.about-summary {
  grid-area: about-summary;
  justify-content: center;
  min-height: 240px;
}

.summary-star {
  font-size: 22px;
  color: var(--text-muted);
}

.about-summary h3 {
  font-family: "Sora", sans-serif;
  font-size: 28px;
}

.about-summary p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 15px;
}

.about-experience {
  grid-area: about-experience;
  min-height: 220px;
}

.about-education {
  grid-area: about-education;
  min-height: 220px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item .time {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h4 {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.about-profiles {
  grid-area: about-profiles;
  justify-content: space-between;
  padding: 26px 28px;
}

.about-profiles .profile-icons {
  justify-content: center;
  gap: 20px;
  margin-top: 6px;
}

.about-profiles .mini-chip {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle at top, #3c3c3c 0%, #2a2a2a 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.about-profiles .mini-chip:hover {
  color: var(--accent);
  border-color: rgba(59, 124, 255, 0.6);
}

html[data-theme="light"] .about-profiles .mini-chip {
  background: radial-gradient(circle at top, #f0f2f7 0%, #e2e6ef 70%);
  border: 1px solid rgba(14, 22, 36, 0.08);
  color: #1b2233;
}

.about-profiles .mini-chip svg {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}

.about-cta {
  grid-area: about-cta;
  background: var(--gradient-blue);
  color: #f6f7ff;
  justify-content: space-between;
  min-height: 180px;
}

.about-cta h3 {
  font-family: "Sora", sans-serif;
  font-size: 28px;
}

.about-cta h3 span {
  color: var(--accent);
}

.about-cta .arrow {
  color: rgba(255, 255, 255, 0.7);
}

.about-credentials {
  grid-area: about-credentials;
  min-height: 180px;
}

.about-credentials .arrow,
.about-profiles .arrow {
  color: var(--accent);
}

.contact-section {
  margin-top: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.contact-info {
  grid-area: contact-info;
  display: grid;
  gap: 18px;
}

.info-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card-bg-alt);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.info-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 6px;
}

.social-label {
  margin-top: 8px;
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row .mini-chip {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.social-row .mini-chip {
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-row .mini-chip:hover {
  color: var(--accent);
  border-color: rgba(59, 124, 255, 0.6);
  transform: translateY(-2px) scale(1.03);
}

.contact-form {
  grid-area: contact-form;
  padding: 28px 32px;
  min-height: 420px;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-header h2 {
  font-family: "Sora", sans-serif;
  font-size: 30px;
}

.form-header h2 span {
  color: var(--accent);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card-bg-alt);
  color: var(--text-primary);
  padding: 14px 16px;
  font-family: "Manrope", system-ui, sans-serif;
}

.form-grid textarea {
  min-height: 140px;
  resize: none;
}

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

.form-grid button {
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #3c3c3c;
  color: #f7f7f7;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.form-grid .send-button {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, background 0.2s ease;
}

.form-grid .send-button.is-sent {
  transform: rotateX(180deg);
}

.form-grid .send-button.is-sent::before {
  content: attr(data-sent-text);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: inherit;
  background: inherit;
  border-radius: inherit;
  transform: rotateX(180deg);
  backface-visibility: hidden;
}

.form-grid button:hover {
  transform: translateY(-2px);
  background: #4a4a4a;
}

.works-section {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.works-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: "Sora", sans-serif;
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.works-title .spark {
  color: var(--text-muted);
  font-size: 28px;
}

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

.works-page .work-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 18px 18px 22px;
  border: none;
  box-shadow: 0 30px 50px rgba(18, 22, 31, 0.12);
  position: relative;
  display: grid;
  gap: 18px;
  min-height: 320px;
  color: #1b2233;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.works-page .work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 60px rgba(18, 22, 31, 0.2);
}

.works-page .work-meta {
  display: grid;
  gap: 10px;
}

.works-page .work-meta .label {
  color: #8a93a4;
  letter-spacing: 0.22em;
}

.works-page .work-meta h3 {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  color: #1b2233;
}

.works-page .work-card .arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #0f1628;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 24px rgba(15, 22, 40, 0.2);
}

.works-page .work-card .arrow svg {
  transform: rotate(45deg);
}

.works-page .work-link {
  color: inherit;
  text-decoration: none;
}

.works-page .work-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
}

.works-page .work-arrow .arrow {
  position: static;
}

.blog-hero {
  margin-top: 40px;
  text-align: center;
  display: grid;
  gap: 12px;
}

.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.blog-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Sora", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 28px;
}

.blog-title .spark {
  color: var(--accent);
  font-size: 24px;
}

.blog-section {
  margin-top: 32px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.blog-main {
  display: grid;
  gap: 28px;
}

.post-card {
  display: grid;
  gap: 14px;
}

.post-image {
  height: 220px;
  border-radius: 18px;
  background: #e4e4e4;
  overflow: hidden;
}

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

.post-image.soft {
  background: linear-gradient(135deg, #e6d9cd, #c9b1a0);
}

.post-image.mint {
  background: linear-gradient(135deg, #f1f4f3, #dfe6e0);
}

.post-image.blue {
  background: linear-gradient(135deg, #2f61ff, #0c1433);
}

.post-meta {
  font-size: 12px;
  color: #2f6fe6;
}

.post-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.post-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.post-button {
  width: fit-content;
  border: none;
  background: #222;
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.sidebar-card h4 {
  font-family: "Sora", sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
}

.sidebar-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.search-card {
  display: flex;
  gap: 10px;
}

.search-card input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  background: var(--card-bg-alt);
}

.search-card button {
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  background: #222;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  background: #222;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
}

.detail-card {
  gap: 16px;
}

.detail-list {
  margin-left: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.detail-tags {
  margin-top: 8px;
}

.comment-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 16px;
}

.comment-card h4 {
  font-family: "Sora", sans-serif;
  font-size: 16px;
}

.comment-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 12px;
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dfe4ea, #b8c0cc);
  overflow: hidden;
}

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

.comment-item h5 {
  margin-top: 4px;
  font-size: 14px;
}

.reply-form {
  display: grid;
  gap: 12px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 10px 12px;
  background: var(--card-bg-alt);
  font-family: "Manrope", system-ui, sans-serif;
}

.reply-form button {
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: #222;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.works-page .work-media {
  border-radius: 22px;
  height: 190px;
  background: #e5e5e5;
  overflow: hidden;
  position: relative;
}

.works-page .work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.more-projects {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  margin-bottom: 12px;
}

.more-button {
  width: fit-content;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  background: #222;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
}

.more-button .more-arrow {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  opacity: 0;
  transform: translateY(10px);
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.more-grid.is-open {
  opacity: 1;
  transform: translateY(0);
  max-height: 1200px;
  margin-bottom: 6px;
}

.works-page .work-media.light {
  background: linear-gradient(135deg, #f1d7c7, #d59e7f);
}

.works-page .work-media.gray {
  background: linear-gradient(135deg, #d8dde3, #b4bac3);
}

.works-page .work-media.warm {
  background: linear-gradient(135deg, #d6a08a, #b46f5e);
}

.works-page .work-media.deep {
  background: linear-gradient(135deg, #c9755e, #7b3f39);
}

.works-page .work-media.mint {
  background: linear-gradient(135deg, #f1f4f3, #dfe6e0);
}

.works-page .work-media.blue {
  background: linear-gradient(135deg, #5b7cff, #23366f);
}

html[data-theme="dark"] .works-page .work-card {
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
  color: #f3f4f8;
}

html[data-theme="dark"] .works-page .work-card:hover {
  box-shadow: 0 36px 60px rgba(0, 0, 0, 0.65);
}

html[data-theme="dark"] .works-page .work-meta .label {
  color: #8e95a3;
}

html[data-theme="dark"] .works-page .work-meta h3 {
  color: #f3f4f8;
}

html[data-theme="dark"] .works-page .work-card .arrow {
  background: #2a2f3a;
  color: #f3f4f8;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.35);
}

.work-meta h3 {
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.services-section {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.services-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
}

.services-list {
  grid-area: services-list;
  padding: 26px;
  display: grid;
  gap: 18px;
  min-height: auto;
  align-content: center;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--card-bg-alt);
  color: var(--accent);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.services-main {
  grid-area: services-main;
  display: grid;
  gap: 20px;
}

.services-title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: "Sora", sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-title .spark {
  color: var(--accent);
  font-size: 28px;
}

.offerings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 22px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.offering-card {
  background: var(--card-bg-alt);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-secondary);
  min-height: 160px;
}

.offering-card h4 {
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.services-bottom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.services-profiles {
  grid-area: services-profiles;
  justify-content: space-between;
  min-height: 160px;
  padding: 22px 24px;
}

.services-profiles .profile-icons {
  justify-content: flex-start;
  gap: 12px;
}

.services-profiles .mini-chip {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.profile-link {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

.services-cta {
  grid-area: services-cta;
  background: var(--card-bg-alt);
  justify-content: space-between;
  min-height: 160px;
  padding: 22px 24px;
}

.services-cta h3 span {
  color: var(--accent);
}

.services-cta .cta-content {
  gap: 10px;
}

.services-cta h3 {
  font-size: 26px;
}

.services-cta .sparkle {
  width: 30px;
  height: 30px;
}

.services-credentials {
  grid-area: services-credentials;
  min-height: 160px;
  padding: 22px 24px;
}

@media (max-width: 1100px) {
  .page {
    padding: 20px 18px 50px;
  }

  .grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "hero hero hero hero hero hero"
      "marquee marquee marquee marquee marquee marquee"
      "credentials credentials credentials credentials credentials credentials"
      "projects projects projects gfonts gfonts gfonts"
      "services services services profiles profiles profiles"
      "stats stats stats stats stats stats"
      "cta cta cta cta cta cta";
  }

  .card {
    grid-column: auto;
  }

  .hero {
    --span: 6;
  }

  .marquee,
  .credentials {
    --span: 6;
  }

.projects,
.gfonts,
.services,
.profiles,
.skills-grid,
.cta {
  --span: 6;
}

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

  .about-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "about-photo about-photo about-photo about-summary about-summary about-summary"
      "about-experience about-experience about-experience about-education about-education about-education"
      "about-profiles about-profiles about-cta about-cta about-credentials about-credentials";
  }

  .about-title {
    font-size: 34px;
  }

  .contact-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "contact-info contact-info contact-info contact-info contact-info contact-info"
      "contact-form contact-form contact-form contact-form contact-form contact-form";
  }

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

  .post-image {
    height: 200px;
  }

  .search-card {
    flex-direction: column;
    align-items: stretch;
  }

  .search-card button {
    width: 100%;
  }

  .blog-hero {
    margin-top: 32px;
  }

  .blog-title {
    font-size: 24px;
  }

  .blog-title .spark {
    font-size: 20px;
  }

  .services-hero {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "services-list services-list services-list services-main services-main services-main";
  }

  .services-bottom {
    grid-template-columns: repeat(6, 1fr);
    grid-template-areas:
      "services-profiles services-profiles services-cta services-cta services-credentials services-credentials";
  }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1101px) {
  .grid {
    grid-template-areas:
      "hero hero hero hero hero hero marquee marquee marquee projects projects projects"
      "hero hero hero hero hero hero credentials credentials credentials projects projects projects"
      "gfonts gfonts gfonts services services services services services services profiles profiles profiles"
      "stats stats stats stats stats stats stats stats stats stats stats stats"
      "cta cta cta cta cta cta cta cta cta cta cta cta";
  }

  .about-grid {
    grid-template-areas:
      "about-photo about-photo about-photo about-photo about-summary about-summary about-summary about-summary about-summary about-summary about-summary about-summary"
      "about-experience about-experience about-experience about-experience about-experience about-education about-education about-education about-education about-education about-education about-education"
      "about-profiles about-profiles about-profiles about-cta about-cta about-cta about-cta about-cta about-credentials about-credentials about-credentials about-credentials";
  }

  .contact-grid {
    grid-template-areas: "contact-info contact-info contact-info contact-info contact-form contact-form contact-form contact-form contact-form contact-form contact-form contact-form";
  }

  .services-hero {
    grid-template-areas: "services-list services-list services-list services-list services-main services-main services-main services-main services-main services-main services-main services-main";
  }

  .services-bottom {
    grid-template-areas: "services-profiles services-profiles services-profiles services-cta services-cta services-cta services-cta services-cta services-credentials services-credentials services-credentials services-credentials";
  }

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

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

@media (max-width: 860px) {
  .page {
    padding: 18px 16px 40px;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "marquee"
      "credentials"
      "projects"
      "gfonts"
      "services"
      "profiles"
      "stats"
      "cta";
  }

  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "contact-info"
      "contact-form";
  }

  .card {
    padding: 20px;
    grid-column: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about-photo"
      "about-summary"
      "about-experience"
      "about-education"
      "about-profiles"
      "about-cta"
      "about-credentials";
  }

  .about-title {
    font-size: 28px;
  }

  .nav-links {
    display: none;
  }

  .primary-button {
    display: none;
  }

  .hamburger {
    display: grid;
  }

  .mobile-menu {
    display: grid;
    left: 16px;
    right: 16px;
    top: 84px;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }

  .hero .arrow {
    position: static;
    align-self: flex-end;
  }

  .portrait {
    max-width: 170px;
  }

  .marquee {
    height: 52px;
  }

  .contact-section {
    margin-top: 60px;
  }

  .contact-form {
    padding: 22px;
  }

  .form-header h2 {
    font-size: 26px;
  }

  .blog-title {
    font-size: 24px;
  }

  .post-card h3 {
    font-size: 16px;
  }

  .post-meta {
    font-size: 11px;
  }

  .blog-hero {
    margin-top: 26px;
  }

  .blog-title {
    font-size: 22px;
  }

  .blog-title h1 {
    font-size: 18px;
  }

  .blog-title .spark {
    font-size: 18px;
  }

  .services-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "services-list"
      "services-main";
  }

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

  .services-bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "services-profiles"
      "services-cta"
      "services-credentials";
  }

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

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

  .profiles .mini-chip {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 640px) {
  .card {
    --span: 1;
    padding: 18px;
  }

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

  .skills-section {
    padding: 18px;
  }

  .skills-title {
    font-size: 20px;
  }

  .profiles .mini-chip {
    width: 56px;
    height: 56px;
  }

  .profiles .profile-icons {
    gap: 12px;
  }

  .profiles .mini-chip svg {
    width: 24px;
    height: 24px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .about-section {
    margin-top: 60px;
  }

  .about-title {
    font-size: 24px;
    gap: 16px;
  }

  .about-summary h3 {
    font-size: 24px;
  }

  .about-cta h3 {
    font-size: 24px;
  }

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

  .info-icon {
    width: 42px;
    height: 42px;
  }

  .form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .services-title {
    font-size: 24px;
  }

  .services-list {
    min-height: auto;
  }

  .works-title {
    font-size: 26px;
  }

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

  .blog-title {
    font-size: 22px;
  }

  .blog-title h1 {
    font-size: 18px;
  }

  .blog-title .spark {
    font-size: 16px;
  }

  .comment-item {
    grid-template-columns: 1fr;
  }

  .comment-avatar {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1400px) {
  .page {
    max-width: 1280px;
  }

  .grid {
    gap: 28px;
  }
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 900px) {
  .mobile-menu-backdrop {
    display: block;
  }

  .mobile-menu-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .skill-bar span {
    width: calc(var(--value, 0) * 1%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
