/**
 * Landing Page Styles
 * Modern, accessible design with gradient backgrounds and glass morphism
 * 
 * @version 2.0
 * @author ITSM Technology Enterprise
 */

:root {
  --primary-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #475569 75%, #64748b 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-bg: #0f1419;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.1);
  --text-primary: #1a202c;
  --text-secondary: #718096;
  --border-radius: 20px;
  --border-radius-btn: 12px;
  --transition: all 0.3s ease;
  --shadow-light: 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-gradient);
  min-height: 100vh;
  backdrop-filter: blur(10px);
  position: relative;
  overflow-x: hidden;
}

/* Animated background particles - same as login page */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(30, 58, 138, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
  33% { transform: translateY(-20px) rotate(1deg); opacity: 0.8; }
  66% { transform: translateY(-10px) rotate(-1deg); opacity: 0.9; }
}

/* Ensure content appears above animated background */
.container, main, header, footer {
  position: relative;
  z-index: 10;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.modern-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--border-radius-btn);
  padding: 12px 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.modern-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

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

.modern-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modern-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

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

.btn-success.modern-btn {
  background: var(--secondary-gradient);
}

.btn-outline-secondary.modern-btn {
  background: var(--accent-gradient);
  color: white;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
  color: white;
}

.icon-circle.primary {
  background: var(--primary-gradient);
}

.icon-circle.success {
  background: var(--secondary-gradient);
}

.icon-circle.accent {
  background: var(--accent-gradient);
}

.modern-title {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .modern-title {
    font-size: 1.5rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .glass-card,
  .modern-btn,
  .modern-btn::before {
    transition: none;
  }
  
  .glass-card:hover {
    transform: none;
  }
  
  .modern-btn:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .glass-card {
    border: 2px solid #000;
    background: rgba(255, 255, 255, 1);
  }
}
