@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

/* Base Global Styles */
@custom-variant dark (&:is(.dark *));

:root {
  --font-size: 16px;

  /* Premium Robot Propaganda Color Palette */
  --propaganda-red: #C4342D;
  --propaganda-red-dark: #8B1A1A;
  --propaganda-red-light: #E84A42;
  --propaganda-cream: #F8F3E8;
  --propaganda-cream-dark: #F0E8D6;
  --propaganda-black: #0D0D0F;
  --propaganda-black-soft: #1A1A1C;
  --propaganda-gold: #D4AF37;
  --propaganda-gold-light: #F4D03F;
  --propaganda-gold-dark: #B8860B;
  --propaganda-silver: #C0C4CC;
  --propaganda-bronze: #CD7F32;

  /* Neutral System */
  --neutral-50: #FAFAFA;
  --neutral-100: #F5F5F5;
  --neutral-200: #E5E5E5;
  --neutral-300: #D4D4D4;
  --neutral-400: #A3A3A3;
  --neutral-500: #737373;
  --neutral-600: #525252;
  --neutral-700: #404040;
  --neutral-800: #262626;
  --neutral-900: #171717;
  --neutral-950: #0A0A0A;

  --background: var(--propaganda-cream);
  --background-elevated: var(--propaganda-cream-dark);
  --foreground: var(--propaganda-black);
  --foreground-muted: var(--neutral-600);
  --card: rgba(255, 255, 255, 0.95);
  --card-foreground: var(--propaganda-black);
  --popover: rgba(255, 255, 255, 0.98);
  --popover-foreground: var(--propaganda-black);
  --primary: var(--propaganda-red);
  --primary-foreground: #ffffff;
  --primary-hover: var(--propaganda-red-light);
  --secondary: var(--propaganda-gold);
  --secondary-foreground: var(--propaganda-black);
  --secondary-hover: var(--propaganda-gold-light);
  --muted: var(--neutral-100);
  --muted-foreground: var(--neutral-500);
  --accent: var(--propaganda-gold);
  --accent-foreground: var(--propaganda-black);
  --destructive: #EF4444;
  --destructive-foreground: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  --input: rgba(255, 255, 255, 0.9);
  --input-border: rgba(0, 0, 0, 0.1);
  --ring: var(--propaganda-red);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Premium Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, var(--propaganda-red) 0%, var(--propaganda-red-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--propaganda-gold) 0%, var(--propaganda-gold-dark) 100%);
  --gradient-hero: linear-gradient(135deg, var(--propaganda-cream) 0%, var(--propaganda-cream-dark) 50%, #E8DCC0 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(196, 52, 45, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.dark {
  --background: var(--propaganda-black);
  --background-elevated: var(--propaganda-black-soft);
  --foreground: var(--propaganda-cream);
  --foreground-muted: var(--neutral-400);
  --card: rgba(26, 26, 28, 0.95);
  --card-foreground: var(--propaganda-cream);
  --popover: rgba(13, 13, 15, 0.98);
  --popover-foreground: var(--propaganda-cream);
  --primary: var(--propaganda-red-light);
  --primary-foreground: var(--propaganda-cream);
  --primary-hover: var(--propaganda-red);
  --secondary: var(--propaganda-gold-light);
  --secondary-foreground: var(--propaganda-black);
  --secondary-hover: var(--propaganda-gold);
  --muted: var(--neutral-800);
  --muted-foreground: var(--neutral-400);
  --accent: var(--propaganda-gold-light);
  --accent-foreground: var(--propaganda-black);
  --destructive: #F87171;
  --destructive-foreground: var(--propaganda-cream);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.15);
  --input: rgba(26, 26, 28, 0.9);
  --input-border: rgba(255, 255, 255, 0.15);
  --ring: var(--propaganda-red-light);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);

  --gradient-hero: linear-gradient(135deg, var(--propaganda-black) 0%, var(--propaganda-black-soft) 50%, #2A2A2F 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(196, 52, 45, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
}

* {
  border-color: var(--border);
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-feature-settings: "cv11", "ss01";
  font-variation-settings: "opsz" 32;
}

/* Ultra-Premium Design System Enhancements */

/* Advanced Particle System */
@keyframes particle-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0.3;
  }
  33% {
    transform: translate3d(30px, -30px, 0) rotate(120deg);
    opacity: 0.7;
  }
  66% {
    transform: translate3d(-20px, 20px, 0) rotate(240deg);
    opacity: 0.5;
  }
}

@keyframes morphing-blob {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg) scale(1);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: rotate(90deg) scale(1.05);
  }
  50% {
    border-radius: 50% 30% 60% 40% / 30% 70% 40% 60%;
    transform: rotate(180deg) scale(0.95);
  }
  75% {
    border-radius: 40% 70% 30% 60% / 70% 40% 60% 30%;
    transform: rotate(270deg) scale(1.02);
  }
}

@keyframes luxury-glow {
  0%, 100% {
    box-shadow:
      0 0 20px rgba(196, 52, 45, 0.3),
      0 0 40px rgba(196, 52, 45, 0.1),
      0 0 60px rgba(196, 52, 45, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 0 30px rgba(196, 52, 45, 0.5),
      0 0 60px rgba(196, 52, 45, 0.2),
      0 0 100px rgba(196, 52, 45, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes text-shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes holographic {
  0%, 100% {
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  50% {
    background-position: 100% 50%;
    filter: hue-rotate(15deg);
  }
}

@keyframes matrix-rain {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Ultra-Premium Typography */
.text-luxury {
  font-family: 'Inter', system-ui, sans-serif;
  font-optical-sizing: auto;
  font-variation-settings:
    "slnt" 0,
    "wght" 700;
  background: linear-gradient(
    135deg,
    var(--propaganda-red) 0%,
    var(--propaganda-gold) 50%,
    var(--propaganda-red) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 4s ease-in-out infinite;
}

.text-shimmer {
  background: linear-gradient(
    90deg,
    var(--foreground) 25%,
    var(--propaganda-gold) 50%,
    var(--foreground) 75%
  );
  background-size: 2000px 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 3s ease-in-out infinite;
}

.text-hologram {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--propaganda-gold) 0%,
    var(--propaganda-red) 50%,
    var(--propaganda-gold) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 3s ease-in-out infinite;
  text-shadow:
    0 0 10px rgba(212, 175, 55, 0.3),
    0 0 20px rgba(196, 52, 45, 0.2);
}

/* Ultra-Premium Glass Effects */
.glass-ultra {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%),
    linear-gradient(45deg, rgba(196, 52, 45, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-ultra::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-ultra:hover::before {
  left: 100%;
}

/* Morphing Blob Backgrounds */
.morphing-blob {
  position: absolute;
  background: linear-gradient(45deg,
    rgba(196, 52, 45, 0.1),
    rgba(212, 175, 55, 0.1),
    rgba(196, 52, 45, 0.05)
  );
  animation: morphing-blob 20s ease-in-out infinite;
  filter: blur(40px);
}

/* Particle System */
.particle-system {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--propaganda-gold) 0%, transparent 70%);
  border-radius: 50%;
  animation: particle-float 15s linear infinite;
  opacity: 0.6;
}

.particle:nth-child(2n) {
  background: radial-gradient(circle, var(--propaganda-red) 0%, transparent 70%);
  animation-duration: 12s;
  animation-delay: -2s;
}

.particle:nth-child(3n) {
  animation-duration: 18s;
  animation-delay: -4s;
}

/* Matrix Rain Effect */
.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.15;
}

.matrix-char {
  position: absolute;
  color: var(--propaganda-gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  animation: matrix-rain 8s linear infinite;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

/* Ultra-Premium Buttons */
.btn-ultra {
  position: relative;
  background: linear-gradient(135deg, var(--propaganda-red), var(--propaganda-red-dark));
  border: none;
  border-radius: var(--radius-xl);
  color: var(--primary-foreground);
  cursor: pointer;
  overflow: hidden;
  padding: 16px 40px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 8px 30px rgba(196, 52, 45, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
}

.btn-ultra::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.btn-ultra::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--propaganda-gold), var(--propaganda-gold-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.btn-ultra:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 60px rgba(196, 52, 45, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-ultra:hover::before {
  left: 100%;
}

.btn-ultra:hover::after {
  opacity: 1;
}

.btn-ultra:active {
  transform: translateY(-2px) scale(0.98);
}

.btn-ultra span {
  position: relative;
  z-index: 2;
}

/* Ultra-Premium Cards */
.card-ultra {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.08),
    0 8px 30px rgba(0, 0, 0, 0.06),
    0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  transform-style: preserve-3d;
}

.card-ultra::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(196, 52, 45, 0.02) 0%,
    rgba(212, 175, 55, 0.02) 50%,
    rgba(196, 52, 45, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card-ultra::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

.card-ultra:hover {
  transform: translateY(-12px) rotateX(5deg) rotateY(5deg);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: var(--propaganda-gold);
}

.card-ultra:hover::before {
  opacity: 1;
}

/* Luxury Section Dividers */
.section-divider {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--propaganda-red) 25%,
    var(--propaganda-gold) 50%,
    var(--propaganda-red) 75%,
    transparent 100%
  );
  margin: 4rem 0;
  overflow: hidden;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(196, 52, 45, 0.3) 25%,
    rgba(212, 175, 55, 0.3) 50%,
    rgba(196, 52, 45, 0.3) 75%,
    transparent 100%
  );
  filter: blur(4px);
}

/* Advanced Scroll Indicators */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg,
    var(--propaganda-red) 0%,
    var(--propaganda-gold) 50%,
    var(--propaganda-red-light) 100%
  );
  width: 0%;
  transition: width 0.1s ease;
  box-shadow:
    0 0 20px rgba(196, 52, 45, 0.6),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Ultra-Premium Forms */
.form-ultra input,
.form-ultra select,
.form-ultra textarea {
  background: var(--glass-ultra);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
}

.form-ultra input:focus,
.form-ultra select:focus,
.form-ultra textarea:focus {
  transform: translateY(-2px);
  border-color: var(--propaganda-gold);
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 30px rgba(212, 175, 55, 0.2),
    0 0 0 4px rgba(212, 175, 55, 0.1);
}

/* Advanced Hover Effects */
.hover-lift {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

.hover-tilt {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-tilt:hover {
  transform: rotateX(5deg) rotateY(10deg) translateY(-4px);
}

/* Luxury Loading States */
.loading-luxury {
  background: linear-gradient(
    90deg,
    var(--muted) 25%,
    var(--propaganda-gold) 50%,
    var(--muted) 75%
  );
  background-size: 200% 100%;
  animation: text-shimmer 2s ease-in-out infinite;
  border-radius: var(--radius);
}

/* Advanced Mobile Responsive */
@media (max-width: 768px) {
  .card-ultra {
    transform-style: initial;
  }

  .card-ultra:hover {
    transform: translateY(-8px);
  }

  .btn-ultra {
    padding: 12px 32px;
    font-size: 0.9rem;
  }

  .morphing-blob {
    filter: blur(60px);
  }

  .particle {
    display: none;
  }
}

/* Ultra-Premium Animations */
.animate-in {
  animation: slideInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

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

.stagger-animation {
  animation-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform, opacity;
}

.reduce-motion {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Luxury Typography Scale */
.text-mega {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.text-display {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.text-hero {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* Additional Jekyll-specific styles */
.hidden {
  display: none !important;
}

/* Toast system */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background: var(--glass-ultra);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-xl);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid var(--propaganda-gold);
}

.toast.error {
  border-left: 4px solid var(--propaganda-red);
}

.rotate-slow {
  animation: rotateSlow 15s linear infinite;
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}