/* Main Styles for Media River - 2025 Redesign */

:root {
  /* Color Variables */
  --primary-color: #4361ee;
  --primary-color-rgb: 67, 97, 238; /* RGB values for primary color */
  --primary-dark: #3a56d4;
  --secondary-color: #7209b7;
  --accent-color: #4cc9f0;
  --text-color: #2b2d42;
  --text-light: #8d99ae;
  --bg-color: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.8);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --gradient-1: linear-gradient(135deg, #4361ee, #7209b7);
  --gradient-2: linear-gradient(45deg, #4cc9f0, #4361ee);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Timing */
  --transition-fast: 0.2s;
  --transition-medium: 0.4s;
  --transition-slow: 0.6s;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --primary-color: #4cc9f0;
  --primary-dark: #3aa8d9;
  --secondary-color: #f72585;
  --accent-color: #7209b7;
  --text-color: #f8f9fa;
  --text-light: #b5bec6;
  --bg-color: #121212;
  --card-bg: rgba(30, 30, 30, 0.8);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .animated-gradient, 
  .scroll-indicator, 
  .process-step .step-number,
  .card-icon svg {
    animation: none !important;
    transition: none !important;
  }
}

[data-reduced-motion="true"] {
  --transition-fast: 0s;
  --transition-medium: 0s;
  --transition-slow: 0s;
}

/* High Contrast Mode */
[data-high-contrast="true"] {
  --primary-color: #0066cc;
  --secondary-color: #cc0066;
  --accent-color: #ffcc00;
  --text-color: #000000;
  --text-light: #444444;
  --bg-color: #ffffff;
  --card-bg: #ffffff;
}

[data-high-contrast="true"][data-theme="dark"] {
  --primary-color: #00ccff;
  --secondary-color: #ff00cc;
  --accent-color: #ffcc00;
  --text-color: #ffffff;
  --text-light: #bbbbbb;
  --bg-color: #000000;
  --card-bg: #111111;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-color);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
}

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

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  outline: none;
  border: none;
  font-size: 1rem;
}

.btn.primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn.primary:hover {
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.5);
  transform: translateY(-2px);
}

.btn.secondary {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Custom Cursor */
.cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  background: rgba(67, 97, 238, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  mix-blend-mode: difference;
  opacity: 0;
}

@media (pointer: fine) {
  .cursor-follower {
    opacity: 1;
  }
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--card-shadow);
}

.theme-toggle .icon-dark,
.theme-toggle .icon-light {
  position: absolute;
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.theme-toggle .icon-dark {
  opacity: 1;
  transform: scale(1);
}

.theme-toggle .icon-light {
  opacity: 0;
  transform: scale(0);
}

[data-theme="dark"] .theme-toggle .icon-dark {
  opacity: 0;
  transform: scale(0);
}

[data-theme="dark"] .theme-toggle .icon-light {
  opacity: 1;
  transform: scale(1);
}

/* Language Switcher */
.lang-switcher {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: flex;
  gap: 5px;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: var(--card-shadow);
}

.lang-switcher button {
  background: transparent;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.lang-switcher button.active {
  background-color: var(--primary-color);
  color: white;
}

/* Main Navigation */
.main-nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

[data-theme="dark"] .main-nav {
  background: rgba(18, 18, 18, 0.8);
}

.main-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: block;
  width: 120px;
  transition: transform var(--transition-fast);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-items {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  position: relative;
  color: var(--text-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
  font-weight: 600;
}

.nav-link.primary-action {
  background: var(--gradient-1);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  color: white;
}

.nav-link.primary-action:hover,
.nav-link.primary-action.active {
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.nav-link.primary-action.active {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-color);
  position: absolute;
  left: 0;
  transition: all var(--transition-fast);
}

.menu-toggle .bar:first-child {
  top: 0;
}

.menu-toggle .bar:last-child {
  bottom: 0;
}

.menu-toggle[aria-expanded="true"] .bar:first-child {
  transform: rotate(45deg);
  top: 11px;
}

.menu-toggle[aria-expanded="true"] .bar:last-child {
  transform: rotate(-45deg);
  bottom: 11px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
  }
  
  .nav-items.active {
    max-height: 400px;
  }
  
  .nav-items li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 1rem 2rem;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link.primary-action {
    margin: 1rem 2rem;
    text-align: center;
  }
}