:root {
  --color-bg: #0B1120;
  --color-surface: #141C2E;
  --color-indigo: #6366F1;
  --color-indigo-light: #818CF8;
  --color-indigo-deep: #4F46E5;
  --color-cyan: #22D3EE;
  --color-text-primary: #F0F4F8;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-text-bright: #F8FAFC;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(99, 102, 241, 0.3);
  --gradient-bg: linear-gradient(160deg, #0B1120 0%, #141C2E 40%, #0B1120 100%);
  --gradient-accent: linear-gradient(135deg, #6366F1 0%, #4F46E5 50%, #22D3EE 100%);
  --gradient-text: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.15);
}

html {
  scroll-behavior: smooth;
}

.page--landing {
  font-family: var(--font-body);
  color: var(--color-text-primary);
}

body:has(.page--landing) {
  overflow-x: hidden;
}

.bg-gradient-animated {
  background: var(--gradient-bg);
  position: relative;
}
.bg-gradient-animated::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 20% 30%, rgba(99, 102, 241, 0.07) 0%, transparent 70%), radial-gradient(ellipse 500px 350px at 80% 70%, rgba(34, 211, 238, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.noise-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 9999;
}

.motto-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  font-family: var(--font-mono);
  background: rgba(11, 17, 32, 0.6);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.motto-banner .motto-text {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #94A3B8;
}
.motto-banner .motto-star {
  font-size: 10px;
  color: var(--color-cyan);
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6), 0 0 20px rgba(34, 211, 238, 0.3);
}

.cta-button {
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.08);
}
.cta-button:hover {
  color: #F0F4F8;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.15);
}
.cta-button svg {
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.cta-button:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spotlight-card {
  position: relative;
  overflow: hidden;
}
.spotlight-card .spotlight-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.spotlight-card:hover .spotlight-overlay {
  opacity: 0.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.animate-slide-left {
  animation: slideInFromLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

.delay-800 {
  animation-delay: 0.8s;
}

.delay-900 {
  animation-delay: 0.9s;
}

.delay-1000 {
  animation-delay: 1s;
}

.cursor-blink::after {
  content: "|";
  color: var(--color-indigo);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
  font-weight: 400;
}

.skill-tag {
  transition: all 0.2s ease;
  cursor: default;
}
.skill-tag:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}
.skill-tag [data-tooltip] {
  position: relative;
}
.skill-tag [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1E293B;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.skill-tag [data-tooltip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 4px solid transparent;
  border-top-color: #1E293B;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.skill-tag [data-tooltip]:hover::after, .skill-tag [data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.exp-link {
  position: relative;
}
.exp-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1E293B;
  color: #94A3B8;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.exp-link::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 4px solid transparent;
  border-top-color: #1E293B;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}
.exp-link:hover::after, .exp-link:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.exp-dot {
  width: 4px;
  height: 4px;
  background: var(--color-indigo);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.6;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cursor-blink::after {
    animation: none;
    opacity: 1;
  }
}
@media (min-width: 1024px) {
  .page-container {
    height: 100vh;
    overflow: hidden;
  }
}
