/* Glassmorphism Design System - Antikythera Technologies */
/* Professional, modern glass effects inspired by enterprise design */

:root {
  /* Enhanced Color Palette */
  --glass-bg: rgba(26, 27, 38, 0.7);
  --glass-bg-light: rgba(36, 40, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  
  /* Text Colors */
  --tn-text-primary: #c0caf5;
  --tn-text-secondary: #9aa5ce;
  
  /* Professional Accent Colors */
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-tertiary: #06b6d4;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  
  /* Refined Gradients */
  --gradient-professional: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --gradient-modern: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --gradient-premium: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --gradient-dark: linear-gradient(135deg, rgba(26, 27, 38, 0.9) 0%, rgba(36, 40, 59, 0.8) 100%);
  
  /* Enhanced Shadows */
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);
  --shadow-hover: 0 16px 48px rgba(59, 130, 246, 0.25);
  --shadow-premium: 0 20px 60px rgba(139, 92, 246, 0.3);
  
  /* Backdrop Filters */
  --blur-standard: blur(12px);
  --blur-intense: blur(20px);
  --blur-subtle: blur(8px);
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-standard);
  -webkit-backdrop-filter: var(--blur-standard);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glass);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--glass-border-hover);
  background: rgba(36, 40, 59, 0.75);
}

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

/* Premium Glass Button */
.glass-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--blur-standard);
  -webkit-backdrop-filter: var(--blur-standard);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--tn-text-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.glass-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

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

/* Primary Glass Button */
.glass-button--primary {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.2) 0%, 
    rgba(139, 92, 246, 0.2) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: #fff;
}

.glass-button--primary:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.3) 0%, 
    rgba(139, 92, 246, 0.3) 100%);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

/* Glass Navigation Bar */
.glass-nav {
  background: rgba(26, 27, 38, 0.85);
  backdrop-filter: var(--blur-intense);
  -webkit-backdrop-filter: var(--blur-intense);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.glass-nav.scrolled {
  background: rgba(26, 27, 38, 0.95);
  box-shadow: var(--shadow-glass);
}

/* Glass Hero Section */
.glass-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1b26 0%, #24283b 100%);
}

.glass-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 20% 80%, 
    rgba(59, 130, 246, 0.15) 0%, 
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 20%, 
    rgba(139, 92, 246, 0.15) 0%, 
    transparent 50%
  ),
  radial-gradient(
    circle at 40% 40%, 
    rgba(6, 182, 212, 0.1) 0%, 
    transparent 50%
  );
  animation: float-gradient 20s ease infinite;
}

@keyframes float-gradient {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

/* Glass Feature Card */
.glass-feature {
  background: var(--glass-bg);
  backdrop-filter: var(--blur-standard);
  -webkit-backdrop-filter: var(--blur-standard);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-feature::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle, 
    rgba(59, 130, 246, 0.1) 0%, 
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0);
}

.glass-feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(59, 130, 246, 0.3);
}

.glass-feature:hover::after {
  opacity: 1;
  transform: scale(1.5);
}

/* Glass Input Fields */
.glass-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(36, 40, 59, 0.5);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--tn-text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.glass-input:focus {
  background: rgba(36, 40, 59, 0.7);
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.glass-input::placeholder {
  color: var(--tn-text-muted);
}

/* Glass Modal/Overlay */
.glass-modal {
  background: rgba(26, 27, 38, 0.9);
  backdrop-filter: var(--blur-intense);
  -webkit-backdrop-filter: var(--blur-intense);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Glass Badge */
.glass-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: var(--blur-subtle);
  -webkit-backdrop-filter: var(--blur-subtle);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.glass-badge:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
}

/* Premium Glass Effects */
.glass-premium {
  background: linear-gradient(135deg, 
    rgba(139, 92, 246, 0.1) 0%, 
    rgba(236, 72, 153, 0.1) 100%);
  backdrop-filter: var(--blur-intense);
  -webkit-backdrop-filter: var(--blur-intense);
  border: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-premium);
  position: relative;
}

.glass-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(255, 255, 255, 0.05) 50%, 
    transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive Glass Components */
@media (max-width: 768px) {
  .glass-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .glass-modal {
    padding: 2rem;
    border-radius: 20px;
  }
  
  .glass-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }
  
  .glass-input {
    padding: 0.875rem 1.25rem;
  }
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

.hover-scale {
  transition: transform 0.3s ease;
}

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

/* Professional Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.6);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
}

.animate-slide-in-right {
  animation: slide-in-right 0.8s ease forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease infinite;
}