

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {

  --bg-deep:     #050508;
  --bg-base:     #07070a;
  --bg-surface:  #0d0d14;
  --bg-card:     #111119;
  --bg-elevated: #16161f;

  --brand:       #7c6aef;
  --brand-light: #a78bfa;
  --brand-dark:  #5b4acf;
  --brand-glow:  rgba(124, 106, 239, 0.35);
  --brand-2:     #00d4aa;
  --brand-2-glow: rgba(0, 212, 170, 0.3);

  --text-primary:   #eaeaf2;
  --text-secondary:  rgba(234, 234, 242, 0.7);
  --text-muted:      rgba(234, 234, 242, 0.45);
  --text-faint:      rgba(234, 234, 242, 0.2);

  --border:       rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-brand: rgba(124, 106, 239, 0.3);

  --glass-bg:     rgba(255, 255, 255, 0.04);
  --glass-bg-strong: rgba(255, 255, 255, 0.08);
  --glass-blur:   20px;
  --glass-border: rgba(255, 255, 255, 0.08);

  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg:  0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-brand: 0 8px 32px rgba(124, 106, 239, 0.2);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  --container: 1200px;
  --container-wide: 1400px;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-deep:     #f1f2f6;
  --bg-base:     #f8f9fa;
  --bg-surface:  #ffffff;
  --bg-card:     #ffffff;
  --bg-elevated: #ffffff;

  --brand:       #5c4ee0;
  --brand-light: #8172f3;
  --brand-dark:  #4438b5;

  --text-primary:   #0f172a;
  --text-secondary:  rgba(15, 23, 42, 0.75);
  --text-muted:      rgba(15, 23, 42, 0.5);
  --text-faint:      rgba(15, 23, 42, 0.2);

  --border:       rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --border-brand: rgba(92, 78, 224, 0.25);

  --glass-bg:     rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.08);

  --shadow-sm:  0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 8px 32px rgba(15, 23, 42, 0.06);
  --shadow-lg:  0 16px 64px rgba(15, 23, 42, 0.08);
  --shadow-brand: 0 8px 32px rgba(92, 78, 224, 0.15);
  --brand-glow: rgba(92, 78, 224, 0.15);
}

[data-theme="light"] .hero-bg-base {
  background: var(--bg-deep);
}

[data-theme="light"] .hero-vignette {
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 30%, rgba(248, 249, 250, 0.5) 100%);
}

[data-theme="light"] .hero-fade {
  background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.8) 50%, var(--bg-base));
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb {
  mix-blend-mode: multiply;
  opacity: 0.5;
}

[data-theme="light"] .hero-title-accent {
  background: linear-gradient(135deg, #111119, var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(124, 106, 239, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .noise-overlay {
  opacity: 0.015;
}

[data-theme="light"] .navbar.scrolled .navbar-inner {
  background: rgba(248, 248, 250, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mobile-nav {
  background: rgba(248, 248, 250, 0.95);
}

[data-theme="light"] .loading-screen {
  background: var(--bg-deep);
}

[data-theme="light"] ::-webkit-scrollbar-track {
  background: #f0f0f2;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .project-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .project-card:hover {
  box-shadow: 0 12px 40px rgba(99, 81, 216, 0.15);
  background: #ffffff;
}

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

[data-theme="light"] .nav-cta,
[data-theme="light"] .nav-menu-btn,
[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-cta:hover,
[data-theme="light"] .nav-menu-btn:hover,
[data-theme="light"] .theme-toggle:hover {
  background: #f8f8fa;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .cta-email-btn {
  background: #111119;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .cta-email-btn:hover {
  background: #222230;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .footer-glass,
[data-theme="light"] .social-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .social-card:hover {
  background: #f8f8fa;
  box-shadow: 0 8px 24px rgba(99, 81, 216, 0.12);
}

[data-theme="light"] .sound-toggle {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .sound-toggle:hover {
  background: #f8f8fa;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .hero-pill {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .hero-pill:hover {
  background: #f8f8fa;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .filter-btn:not(.active) {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .filter-btn:not(.active):hover {
  background: #f8f8fa;
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .cta-title-accent {
  color: var(--brand);
}

[data-theme="light"] .footer-nav-title {
  color: var(--text-secondary);
  font-weight: 700;
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--brand);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-bg-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease-smooth);
  opacity: 0;
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-glow.active {
  opacity: 1;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  position: relative;
}

.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--glass-bg-strong);
  border-color: var(--border-hover);
  transform: scale(1.08);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  position: absolute;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.08);
}

.sound-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.sound-toggle:hover {
  color: var(--text-primary);
  background: var(--glass-bg-strong);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.sound-toggle svg {
  width: 18px;
  height: 18px;
}

.sound-toggle.muted {
  color: var(--text-faint);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.5rem;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
  animation: loadFadeIn 0.6s var(--ease-out) 0.1s forwards;
}

.loading-logo span {
  color: var(--brand);
}

.loading-bar-track {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
  opacity: 0;
  animation: loadFadeIn 0.4s var(--ease-out) 0.3s forwards;
}

.loading-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--brand-glow), 0 0 4px var(--brand);
  transform-origin: left;
  transform: scaleX(0);
  will-change: transform;
  animation: loadProgress 1.4s cubic-bezier(0.7, 0, 0.1, 1) 0.1s forwards;
}

@keyframes loadFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loadProgress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.navbar {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 16px;
  transition: all 0.4s var(--ease-out);
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 6px 0 20px;
  border-radius: 9999px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled .navbar-inner {
  background: rgba(7, 7, 10, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--glass-border);
}

.nav-avatar-light {
  display: none;
}

[data-theme="light"] .nav-avatar-dark {
  display: none;
}

[data-theme="light"] .nav-avatar-light {
  display: block;
}

.nav-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  border: 1px solid var(--glass-border);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-name {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-handle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a.active {
  font-weight: 600;
}



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

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transition: all 0.25s var(--ease-out);
  backdrop-filter: blur(8px);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
}

.nav-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transition: all 0.25s var(--ease-out);
}

.nav-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-menu-btn svg {
  width: 16px;
  height: 16px;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(20px);
  opacity: 0;
}

.mobile-nav.open a {
  animation: mobileNavIn 0.5s var(--ease-out) forwards;
}

.mobile-nav.open a:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { animation-delay: 0.1s; }
.mobile-nav.open a:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { animation-delay: 0.2s; }

@keyframes mobileNavIn {
  to { transform: translateY(0); opacity: 1; }
}

.mobile-nav a:hover {
  color: var(--brand-light);
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-cta { display: inline-flex; }
  .nav-menu-btn { display: none; }
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-base {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  mix-blend-mode: screen;
  will-change: transform;
}

.hero-orb-1 {
  top: -15%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(124, 106, 239, 0.12);
  animation: orbFloat1 20s ease-in-out infinite;
}

.hero-orb-2 {
  bottom: -10%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: rgba(0, 212, 170, 0.08);
  animation: orbFloat2 25s ease-in-out infinite;
}

.hero-orb-3 {
  top: 30%;
  left: 50%;
  width: 400px;
  height: 400px;
  background: rgba(167, 139, 250, 0.06);
  animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 30px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -40px) scale(1.05); }
  66% { transform: translate(40px, -20px) scale(1.1); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, 0) scale(1); }
  33% { transform: translate(calc(-50% + 80px), 50px) scale(1.15); }
  66% { transform: translate(calc(-50% - 60px), -30px) scale(0.9); }
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 300px;
  background: linear-gradient(to bottom, transparent, rgba(5, 5, 8, 0.6) 50%, var(--bg-base));
  z-index: 2;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 20px 80px;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  text-wrap: balance;
}

.hero-title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(135deg, #fff, var(--brand-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  margin-top: 24px;
  max-width: 560px;
  margin-inline: auto;
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  text-wrap: pretty;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.hero-pill:hover {
  background: var(--glass-bg-strong);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.hero-pill strong {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.filter-btn {
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease-out);
}

.filter-btn.active {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 24px var(--brand-glow);
}

.filter-btn:not(.active) {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.filter-btn:not(.active):hover {
  background: var(--glass-bg-strong);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.hero-reveal {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

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

.projects {
  position: relative;
  padding: 80px 0 100px;
}

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
  margin-bottom: 12px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .section-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  text-wrap: balance;
}

.section-title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

.section-subtitle {
  max-width: 420px;
  color: var(--text-muted);
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all 0.4s var(--ease-out);
}

.project-card:hover {
  border-color: var(--border-brand);
  box-shadow: var(--shadow-brand);
  transform: translateY(-4px);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

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

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.15) 50%, transparent);
}

.card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(17, 17, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.card-number {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.card-big-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: white;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.card-body {
  padding: 20px;
  border-top: 1px solid var(--border);
}

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

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}

.card-meta-brand {
  color: var(--brand);
  font-weight: 600;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.25s var(--ease-out);
}

.card-link:hover {
  gap: 6px;
}

.card-link svg {
  width: 12px;
  height: 12px;
}

.card-year {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

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

.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }

.services-section {
  padding: 40px 0 80px;
}

.services-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.service-tab {
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-out);
}

.service-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.service-tab.active {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: transparent;
}

.services-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--border-hover);
  transform: scale(1.05);
}

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

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

.services-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 24px;
  padding: 12px 0;
}

.services-grid::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 clamp(280px, 85vw, 340px);
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.service-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(124, 106, 239, 0.05);
  border-bottom: 1px solid var(--border);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .service-card-media img {
  transform: scale(1.05);
}

.service-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--border-hover);
}

.service-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: block;
}

.service-card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card-price svg {
  color: var(--text-muted);
  transition: transform 0.3s;
}

.service-card:hover .service-card-price svg {
  transform: translateX(4px);
  color: var(--brand);
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.service-modal.open {
  opacity: 1;
  visibility: visible;
}

.service-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.service-dialog {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s var(--ease-spring);
  display: flex;
  flex-direction: column;
}

.service-dialog-large {
  max-width: 1000px; 
}

.service-modal.open .service-dialog {
  transform: translateY(0) scale(1);
}

.service-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.service-header-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.service-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.service-close:hover {
  background: var(--border-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}

.service-modal-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px;
}

@media (min-width: 800px) {
  .service-modal-content-grid {
    grid-template-columns: 280px 1fr;
  }
}

.service-rating-sidebar {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
}

.rating-sidebar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.rating-sidebar-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.rating-score-big {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
}

.rating-score-small {
  font-size: 16px;
  color: var(--text-secondary);
}

.rating-star-icon {
  width: 40px;
  height: 40px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.rating-stars-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.rating-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

.rating-bar-track {
  flex-grow: 1;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.rating-bar-fill {
  height: 100%;
  background: #fbbf24;
  border-radius: 99px;
}

.service-reviews-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-media-container {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--border);
}

.service-media-container img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.service-media-container.hidden {
  display: none;
}

.service-modal-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--glass-bg);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.submit-review-card {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.submit-review-header {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.submit-icon {
  width: 48px;
  height: 48px;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.submit-review-header h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.submit-review-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.submit-review-rating label,
.submit-review-comment label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.interactive-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
  margin-bottom: 24px;
}

.interactive-score {
  font-weight: 700;
  font-size: 14px;
  margin-left: 8px;
}

.submit-review-comment textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 24px;
}

.submit-review-comment textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.submit-review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.review-status-msg {
  font-size: 13px;
  color: var(--text-muted);
}

.submit-review-btn {
  background: var(--brand);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.submit-review-btn:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.user-reviews-section {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.user-reviews-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.user-reviews-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.user-review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.user-review-card:last-child {
  margin-bottom: 0;
}

.urc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.urc-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.urc-info {
  flex-grow: 1;
}

.urc-info h5 {
  font-size: 15px;
  font-weight: 600;
}

.urc-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.urc-stars {
  display: flex;
  align-items: center;
  gap: 2px;
}

.urc-score {
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
}

.urc-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase {
  position: relative;
  padding: 40px 0 80px;
}

.showcase-banner {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.5s var(--ease-out);
}

.showcase-banner:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}

.showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.showcase-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.showcase-banner:hover .showcase-bg img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(7, 7, 10, 0.95) 0%, rgba(7, 7, 10, 0.6) 50%, transparent 100%);
}

[data-theme="light"] .showcase-overlay {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 50%, transparent 100%);
}

.showcase-content {
  position: relative;
  z-index: 1;
  padding: 60px 40px;
  max-width: 500px;
}

.showcase-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(124, 106, 239, 0.2);
  color: var(--brand-light);
  margin-bottom: 16px;
}

[data-theme="light"] .showcase-tag {
  background: rgba(99, 81, 216, 0.15);
  color: var(--brand);
}

.showcase-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 99px;
  background: var(--text-primary);
  color: var(--bg-base);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s var(--ease-out);
}

.showcase-btn svg {
  transition: transform 0.3s var(--ease-out);
}

.showcase-banner:hover .showcase-btn {
  background: var(--brand);
  color: white;
}

.showcase-banner:hover .showcase-btn svg {
  transform: translateX(4px);
}

.reviews {
  position: relative;
  padding: 40px 0 100px;
  overflow: hidden;
}

.reviews-marquee-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  padding-bottom: 40px;
}

.reviews-marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 16px;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.review-track {
  display: flex;
  flex-shrink: 0;
  align-items: stretch;
  justify-content: space-around;
  gap: 16px;
  min-width: 100%;
  will-change: transform;
  animation: scroll-marquee 90s linear infinite;
}

.review-track.reverse {
  animation: scroll-marquee-reverse 90s linear infinite;
}

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

@keyframes scroll-marquee-reverse {
  from { transform: translateX(calc(-50% - 12px)); }
  to { transform: translateX(0); }
}

.review-card {
  width: 350px;
  height: 260px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s var(--ease-out);
}

[data-theme="light"] .review-card {
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--glass-bg-strong);
}

[data-theme="light"] .review-card:hover {
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(124, 106, 239, 0.15);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border-brand);
}

.review-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.review-service {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--brand);
  background: rgba(124, 106, 239, 0.1);
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
}

.review-stars {
  font-size: 14px;
  color: #f59e0b;
  letter-spacing: 2px;
}

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

.prisma-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s;
}

.prisma-modal.open {
  opacity: 1;
  visibility: visible;
}

.prisma-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.prisma-dialog {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transform: translateY(60px) scale(0.9);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease-out;
}

.prisma-modal.open .prisma-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.prisma-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.prisma-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prisma-header-info img {
  height: 48px;
  border-radius: 8px;
}

.prisma-header-info h3 {
  font-size: 16px;
  font-weight: 600;
}

.prisma-header-info p {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.prisma-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.prisma-close:hover {
  background: var(--border-hover);
  color: var(--text-primary);
  transform: scale(1.1);
}

.prisma-body {
  padding: 24px;
}

.prisma-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.prisma-tab {
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.prisma-tab.active {
  background: var(--text-primary);
  color: var(--bg-base);
  border-color: transparent;
}

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

.prisma-content.website-mode {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .prisma-content {
    grid-template-columns: repeat(4, 1fr);
  }
  .prisma-content.gallery-mode {
    grid-template-columns: repeat(3, 1fr);
  }
  .prisma-content.website-mode {
    grid-template-columns: 1fr;
  }
}

.prisma-content.website-mode video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.prisma-content iframe {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 12px;
  border: none;
}

.prisma-content img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.prisma-content img:hover {
  border-color: var(--brand);
}

.cta-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.cta-bg-orb-1 {
  position: absolute;
  top: -160px;
  left: 25%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(124, 106, 239, 0.06);
  filter: blur(120px);
  pointer-events: none;
}

.cta-bg-orb-2 {
  position: absolute;
  bottom: -160px;
  right: 25%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.05);
  filter: blur(120px);
  pointer-events: none;
}

.cta-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1024px) {
  .cta-content { padding: 0 32px; }
}

.cta-main {
  padding: 64px 0 80px;
  border-bottom: 1px solid var(--border);
}

.cta-grid {
  display: grid;
  gap: 40px;
  align-items: end;
}

@media (min-width: 1024px) {
  .cta-grid {
    grid-template-columns: 8fr 4fr;
  }
}

.cta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-primary);
}

.cta-title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: rgba(234, 234, 242, 0.85);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .cta-actions { align-items: flex-end; }
}

.cta-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 9999px;
  background: var(--text-primary);
  color: var(--bg-base);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s var(--ease-out);
  width: fit-content;
}

.cta-email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.cta-email-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-out);
}

.cta-email-btn:hover svg {
  transform: translate(2px, -2px);
}

.cta-channels {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-channels:hover {
  color: var(--text-primary);
}

.cta-channels svg {
  width: 14px;
  height: 14px;
}

.footer-columns {
  padding: 56px 0;
  display: grid;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-columns {
    grid-template-columns: 5fr 3fr 4fr;
  }
}

.footer-brand-logo {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.25rem;
  color: var(--text-primary);
  line-height: 1;
}

.footer-brand-logo span {
  color: var(--brand);
}

.footer-brand-desc {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.status-dot {
  position: relative;
  width: 6px;
  height: 6px;
}

.status-dot-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.75;
  animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.status-dot-core {
  position: relative;
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.footer-location svg {
  width: 12px;
  height: 12px;
}

.footer-nav-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.25s var(--ease-out);
}

.footer-nav-list a svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s var(--ease-out);
}

.footer-nav-list a:hover {
  color: var(--text-primary);
}

.footer-nav-list a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all 0.3s var(--ease-out);
}

.social-card:hover {
  background: var(--glass-bg-strong);
  border-color: var(--border-hover);
  box-shadow: 0 4px 20px rgba(124, 106, 239, 0.08);
}

.social-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-wrap svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.social-icon-wrap img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.social-icon-wrap img.insta-logo {
  width: 32px;
  height: 32px;
}

.social-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.social-card > svg {
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  transition: all 0.25s var(--ease-out);
}

.social-card:hover > svg {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

.footer-heart {
  display: flex;
  align-items: center;
  gap: 6px;
}

.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

.magnetic {
  transition: transform 0.3s var(--ease-out);
}

@keyframes borderGlow {
  0%, 100% { border-color: var(--border-brand); }
  50% { border-color: rgba(124, 106, 239, 0.5); }
}

@media (max-width: 639px) {
  .hero-content {
    padding: 120px 16px 180px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .hero-pills {
    gap: 8px;
  }

  .hero-pill {
    padding: 8px 14px;
    font-size: 13px;
  }

  .cta-title {
    font-size: 2rem;
  }

  .card-big-title {
    font-size: 1.5rem;
  }

  .wave-transition {
    height: 120px;
  }
}

@media (max-width: 767px) {
  .navbar {
    top: 12px;
  }

  .navbar-inner {
    height: 52px;
    padding: 0 4px 0 16px;
  }
}

.review-avatar-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.service-review-avatar-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.nav-indicator {
  position: absolute;
  bottom: -4px;
  height: 4px;
  width: 4px;
  border-radius: 4px;
  background: var(--brand);
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  opacity: 0;
  left: 0;
}
.nav-indicator.active {
  opacity: 1;
}


/* ---- POLISH: Smooth page transitions ---- */
body {
  transition: background-color 0.6s var(--ease-smooth), color 0.5s var(--ease-smooth);
}

/* ---- POLISH: Better focus states for accessibility ---- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- POLISH: Smoother card hover with glow pulse ---- */
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--brand-glow), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  z-index: -1;
  pointer-events: none;
}
.project-card:hover::before {
  opacity: 1;
}

/* ---- POLISH: Stagger on scroll-reveal children ---- */
.scroll-reveal:nth-child(4) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.35s; }

/* ---- POLISH: Navbar brand subtle pulse on load ---- */
@keyframes brandPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.nav-logo span {
  animation: brandPulse 2.5s ease-in-out 1;
}

/* ---- POLISH: Service card entry with slight rotation ---- */
.service-card {
  transition: all 0.45s var(--ease-spring) !important;
}
.service-card:hover {
  transform: translateY(-6px) rotate(-0.3deg) !important;
}

/* ---- POLISH: Review cards subtle tilt on hover ---- */
.review-card {
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out);
}
.review-card:hover {
  transform: scale(1.02) rotate(-0.5deg);
  box-shadow: 0 12px 40px rgba(124, 106, 239, 0.12);
}

/* ---- POLISH: CTA section floating orbs breathing ---- */
@keyframes orbBreathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.85; }
}
.cta-bg-orb-1, .cta-bg-orb-2 {
  animation: orbBreathe 6s ease-in-out infinite;
}
.cta-bg-orb-2 {
  animation-delay: -3s;
}

/* ---- POLISH: Showcase banner parallax depth ---- */
.showcase-banner {
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
}
.showcase-banner:hover {
  transform: translateY(-4px) scale(1.005);
}

/* ---- POLISH: Filter buttons press effect ---- */
.filter-btn:active {
  transform: scale(0.95) !important;
  transition: transform 0.1s ease !important;
}



/* ---- POLISH: Footer link underline slide ---- */
.footer-nav a {
  position: relative;
  display: inline-block;
}
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width 0.35s var(--ease-out);
}
.footer-nav a:hover::after {
  width: 100%;
}

/* ---- POLISH: Social cards shine sweep ---- */
.social-card {
  overflow: hidden;
  position: relative;
}
.social-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.social-card:hover::after {
  left: 100%;
}

/* ---- POLISH: Hero title entrance ---- */
@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.hero-title {
  animation: heroTitleIn 1.2s var(--ease-out) 1.6s both;
}
.hero-subtitle {
  animation: heroTitleIn 1s var(--ease-out) 1.9s both;
}
.hero-actions {
  animation: heroTitleIn 0.9s var(--ease-out) 2.1s both;
}

/* ---- POLISH: Smoother theme transition on everything ---- */
.navbar-inner, .project-card, .service-card,
.review-card, .cta-section, .showcase-banner,
.social-card, .footer-glass, .hero-pill,
.filter-btn, .nav-cta, .sound-toggle {
  transition-property: background, border-color, box-shadow, color, transform, opacity;
  transition-duration: 0.4s;
  transition-timing-function: var(--ease-out);
}

/* ---- POLISH: Cursor trail smoothing ---- */
.cursor-glow {
  transition: opacity 0.5s var(--ease-smooth), transform 0s;
}

/* Social Logos Theme Toggle */
.logo-light-only {
  display: none !important;
}
[data-theme="light"] .logo-dark-only {
  display: none !important;
}
[data-theme="light"] .logo-light-only {
  display: block !important;
}
