/* StretchStrong - Modern Professional UI Redesign */
/* Premium medical platform styling with creative animations and professional polish */

/* Advanced CSS Custom Properties */
:root {
  /* Primary Brand Colors - Medical Professional */
  --primary-blue: #0066CC;
  --primary-blue-dark: #004499;
  --primary-blue-light: #3399FF;
  --accent-teal: #00B4A6;
  --accent-teal-light: #26C6DA;
  --success-green: #00C851;
  --warning-amber: #FF9F00;
  --danger-red: #FF3547;
  
  /* Professional Grays */
  --gray-50: #FAFBFC;
  --gray-100: #F4F6F8;
  --gray-200: #E1E8ED;
  --gray-300: #C7D0D9;
  --gray-400: #9BA9B4;
  --gray-500: #6C7B83;
  --gray-600: #4A5568;
  --gray-700: #2D3748;
  --gray-800: #1A202C;
  --gray-900: #171923;
  
  /* Gradient Collections */
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
  --gradient-success: linear-gradient(135deg, var(--success-green) 0%, var(--accent-teal) 100%);
  --gradient-hero: linear-gradient(135deg, #0066CC 0%, #00B4A6 50%, #3399FF 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.1) 100%);
  
  /* Advanced Shadows */
  --shadow-soft: 0 2px 15px rgba(0, 102, 204, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 102, 204, 0.12);
  --shadow-strong: 0 20px 60px rgba(0, 102, 204, 0.15);
  --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.3);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.12);
  
  /* Typography Scale */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, 'Courier New', monospace;
  
  /* Animation Timings */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.6s;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Border Radius System */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
}

/* Enhanced Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Professional Typography System */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--gray-900);
  letter-spacing: -0.02em;
  background: var(--gradient-hero);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-8);
  text-align: center;
  position: relative;
}

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

/* Advanced Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 48px;
  user-select: none;
}

.btn::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 var(--duration-slow) var(--ease-out);
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: var(--shadow-medium);
}

/* Glass Morphism Components */
.glass-card {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  position: relative;
}

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

/* Enhanced Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-4) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
  text-decoration: none;
  position: relative;
}

.nav-brand i {
  font-size: 28px;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  min-height: 44px;
}

.nav-item:hover {
  color: var(--primary-blue);
  background: rgba(0, 102, 204, 0.08);
  transform: translateY(-1px);
}

.nav-item.active {
  color: var(--primary-blue);
  background: var(--gradient-card);
  box-shadow: var(--shadow-soft);
}

.nav-innovation {
  background: var(--gradient-accent) !important;
  color: white !important;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
}

.nav-innovation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: rotate-glow 3s linear infinite;
}

@keyframes rotate-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gradient-success);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-medium);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Hero Section Redesign */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0066CC 0%, #00B4A6 50%, #3399FF 100%);
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

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

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: white;
}

.hero-title {
  color: white;
  margin-bottom: var(--space-6);
  -webkit-text-fill-color: white;
  background: none;
}

.hero-subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.stat {
  text-align: center;
  padding: var(--space-6);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all var(--duration-normal) var(--ease-out);
}

.stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Animated Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.injury-prevention-graphic {
  width: 500px;
  height: 500px;
  position: relative;
  animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.prevention-ring {
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse-ring 4s ease-in-out infinite;
}

.prevention-ring:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 150px;
  left: 150px;
  animation-delay: 0s;
}

.prevention-ring:nth-child(2) {
  width: 300px;
  height: 300px;
  top: 100px;
  left: 100px;
  animation-delay: 1s;
}

.prevention-ring:nth-child(3) {
  width: 400px;
  height: 400px;
  top: 50px;
  left: 50px;
  animation-delay: 2s;
}

@keyframes pulse-ring {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

.injury-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.injury-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: float-icon 3s ease-in-out infinite;
}

.injury-icon:nth-child(1) {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.injury-icon:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 0.5s;
}

.injury-icon:nth-child(3) {
  bottom: 20%;
  left: 10%;
  animation-delay: 1s;
}

.injury-icon:nth-child(4) {
  bottom: 15%;
  right: 20%;
  animation-delay: 1.5s;
}

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

/* Enhanced Features Section */
.features {
  padding: var(--space-24) 0;
  background: var(--gray-50);
  position: relative;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.feature-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.05), transparent);
  transition: left var(--duration-slow) var(--ease-out);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-blue-light);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--gradient-accent);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.feature-card:hover .feature-icon::after {
  opacity: 0.2;
}

.feature-icon i {
  font-size: 32px;
  color: white;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-4);
}

.feature-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-600);
}

/* Enhanced Authentication Banner */
.auth-banner {
  background: var(--gradient-accent);
  color: white;
  text-align: center;
  padding: var(--space-4);
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.auth-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: slide-shine 3s ease-in-out infinite;
}

@keyframes slide-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.auth-banner a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  margin-left: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal) var(--ease-out);
}

.auth-banner a:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  
  .hero-visual {
    order: -1;
  }
  
  .injury-prevention-graphic {
    width: 350px;
    height: 350px;
  }
  
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 var(--space-4);
  }
  
  .nav-menu {
    gap: var(--space-1);
  }
  
  .nav-item {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .hero {
    padding-top: 100px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .injury-prevention-graphic {
    width: 280px;
    height: 280px;
  }
  
  .injury-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .nav-brand {
    font-size: 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .feature-card {
    padding: var(--space-6);
  }
}