:root {
  /* Enhanced Cinema-inspired Professional Color Palette */
  --primary-color: #1a1a2e;        /* Deep Navy - main brand color */
  --primary-light: #2d2d44;        /* Lighter navy for hover states */
  --primary-dark: #0d0d17;         /* Darker navy */
  --secondary-color: #e94560;      /* Cinematic Red - accent */
  --secondary-light: #ff5a7a;      /* Lighter red for hover */
  --secondary-dark: #d4304f;       /* Darker red */
  --accent-color: #0f3460;         /* Rich Blue - highlights */
  --accent-light: #1a4d8f;         /* Lighter blue */
  --accent-gold: #f4a261;          /* Golden accent */
  --accent-gold-light: #f7b585;    /* Lighter gold */
  
  /* Text colors with better hierarchy */
  --text-dark: #0a0e27;            /* Almost black - headings */
  --text-primary: #1f2937;         /* Dark gray - body text */
  --text-secondary: #6b7280;       /* Medium gray - secondary text */
  --text-light: #9ca3af;           /* Light gray - hints/disabled */
  --text-inverse: #ffffff;         /* White text on dark bg */
  
  /* Background colors with depth */
  --bg-primary: #ffffff;           /* Pure white */
  --bg-secondary: #f9fafb;         /* Off-white (lighter) */
  --bg-tertiary: #f3f4f6;          /* Light gray */
  --bg-dark: #0f172a;              /* Dark background */
  --bg-dark-lighter: #1e293b;      /* Lighter dark bg */
  --bg-overlay: rgba(15, 23, 42, 0.96); /* Dark overlay with more opacity */
  
  /* Border colors with better contrast */
  --border-light: #e5e7eb;         /* Subtle borders */
  --border-medium: #d1d5db;        /* Medium borders */
  --border-dark: #9ca3af;          /* Strong borders */
  
  /* Status colors (vibrant and clear) */
  --success-color: #10b981;        /* Green */
  --success-light: #34d399;        /* Light green */
  --warning-color: #f59e0b;        /* Orange */
  --warning-light: #fbbf24;        /* Light orange */
  --error-color: #ef4444;          /* Red */
  --error-light: #f87171;          /* Light red */
  --info-color: #3b82f6;           /* Blue */
  --info-light: #60a5fa;           /* Light blue */
  
  /* Category colors (more vibrant) */
  --color-preproduction: #8b5cf6;  /* Purple */
  --color-production: #ef4444;     /* Red */
  --color-postproduction: #3b82f6; /* Blue */
  --color-cinematography: #f59e0b; /* Orange */
  --color-directing: #ec4899;      /* Pink */
  --color-screenwriting: #14b8a6;  /* Teal */
  --color-sound: #06b6d4;          /* Cyan */
  --color-tools: #6366f1;          /* Indigo */
  
  /* Enhanced shadows for depth */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Glow effects for interactive elements */
  --glow-red: 0 0 20px rgba(233, 69, 96, 0.4);
  --glow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
  --glow-gold: 0 0 20px rgba(244, 162, 97, 0.4);
  
  /* Smooth transitions with easing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Spacing scale for consistency */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border radius scale */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

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

/* Improved focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', 'Roboto', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Enhanced Typography with better hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { 
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 { 
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.025em;
}

h3 { 
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h4 { 
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  line-height: 1.4;
}

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* Better text rendering */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Links */
a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-color);
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Enhanced Buttons with better visual feedback */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md), var(--glow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-red);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--border-medium);
  color: var(--text-primary);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  background-color: rgba(233, 69, 96, 0.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Premium Cards with enhanced depth */
.card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  overflow: hidden;
  position: relative;
}

/* Removed gradient bar decoration that was causing visual artifacts
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover::before {
  opacity: 1;
}
*/

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

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-elevated:hover {
  box-shadow: var(--shadow-2xl);
}

/* Enhanced Navigation with better interactivity */
.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.625rem 1.125rem;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
  border-radius: var(--radius-full);
  transform: translateX(-50%);
  transition: width var(--transition-spring);
}

.nav-link:hover {
  color: var(--secondary-color);
  background-color: rgba(233, 69, 96, 0.08);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active {
  color: var(--secondary-color);
  font-weight: 600;
  background-color: rgba(233, 69, 96, 0.1);
}

.nav-link.active::after {
  width: 80%;
}

/* Premium Badges - ALL NEUTRAL COLORS to avoid green/orange artifacts */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 0.875rem;
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.badge-primary { 
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(100, 116, 139, 0.1) 100%);
  color: #334155;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-secondary { 
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.15) 0%, rgba(71, 85, 105, 0.1) 100%);
  color: #1e293b;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

.badge-success { 
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(148, 163, 184, 0.1) 100%);
  color: #475569;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-warning { 
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.15) 0%, rgba(100, 116, 139, 0.1) 100%);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-info { 
  background: linear-gradient(135deg, rgba(71, 85, 105, 0.15) 0%, rgba(71, 85, 105, 0.1) 100%);
  color: #334155;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

/* Enhanced filter buttons with active states */
.filter-btn {
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.1), transparent);
  transition: left 0.5s;
}

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

.filter-btn:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  color: var(--text-inverse);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-md), var(--glow-red);
  font-weight: 600;
}

.filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--glow-red);
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.813rem;
  }
}

/* Enhanced section headers with visual impact */
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  position: relative;
}

.section-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-medium) 0%, transparent 100%);
}

.section-header h2 {
  margin: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding-bottom: 0.25rem;
}

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #0891b2 0%, #14b8a6 30%, #06b6d4 60%, #0891b2 100%);
  border: none;
  margin: 48px 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(8, 145, 178, 0.3);
  opacity: 0.9;
}

/* Premium hero gradient backgrounds with depth */
.hero-gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, var(--secondary-dark) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(15, 52, 96, 0.2) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 50px) rotate(180deg); }
}

.hero-gradient-2 {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.hero-gradient-2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(244, 162, 97, 0.1) 0%, transparent 50%);
}

/* Premium hover lift effect with proper transitions */
.hover-lift {
  transition: 
    transform var(--transition-normal),
    box-shadow var(--transition-normal),
    border-color var(--transition-normal);
  will-change: transform;
}

.hover-lift:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-2xl);
}

.hover-lift:active {
  transform: translateY(-2px) scale(0.99);
  transition-duration: 100ms;
}

/* Glass morphism effect for modern UI */
.glass-morphism {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    var(--shadow-lg),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* Enhanced text gradient */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.text-gradient::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(8px);
  opacity: 0.5;
}

/* Background pattern with subtle texture */
.bg-pattern {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(233, 69, 96, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(15, 52, 96, 0.12) 0%, transparent 50%),
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 20px, rgba(255,255,255,0.02) 21px);
}

/* Interactive content containers with smooth entry */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

@media (max-width: 640px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Enhanced empty states with better visual hierarchy */
.empty-state {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
  filter: grayscale(0.3);
  animation: gentle-bounce 3s ease-in-out infinite;
}

@keyframes gentle-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Smooth scrolling with momentum */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Premium animations with spring physics */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-right {
  animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-in-left {
  animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Staggered animation for lists */
.stagger-item {
  opacity: 0;
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }

/* Page transitions with momentum */
.page-enter {
  opacity: 0;
  transform: translateY(30px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: 
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 6px;
  border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(233, 69, 96, 0.2);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-large {
  width: 40px;
  height: 40px;
  border-width: 4px;
}

/* Utility classes */
.text-gradient {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-pattern {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(15, 52, 96, 0.1) 0%, transparent 50%);
}

.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hover-lift {
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

/* Responsive utilities */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .show-mobile-only { display: none !important; }
}
