/* YOUWARE.com - Third Generation Hypermodern Quantum Design System */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Quantum Color Matrix */
  --quantum-primary: #00ffff;
  --quantum-secondary: #ff00ff;
  --quantum-tertiary: #ffff00;
  --quantum-void: #000000;
  --quantum-light: #ffffff;
  --quantum-plasma: #00d4ff;
  --quantum-nebula: #9c27b0;
  --quantum-stellar: #ffc107;
  --quantum-cosmic: #e91e63;
  --quantum-dimension: #03dac6;
  
  /* Hyperspace Gradients */
  --gradient-hyperspace: linear-gradient(135deg, var(--quantum-primary) 0%, var(--quantum-secondary) 50%, var(--quantum-tertiary) 100%);
  --gradient-vortex: conic-gradient(from 45deg, var(--quantum-plasma), var(--quantum-nebula), var(--quantum-stellar), var(--quantum-cosmic), var(--quantum-dimension), var(--quantum-plasma));
  --gradient-matrix: radial-gradient(circle at center, rgba(0, 255, 255, 0.8) 0%, rgba(255, 0, 255, 0.6) 30%, rgba(255, 255, 0, 0.4) 60%, transparent 100%);
  
  /* Neural Typography Scale */
  --text-quantum: 4.5rem;
  --text-hyperspace: 3.2rem;
  --text-matrix: 2.4rem;
  --text-neural: 1.8rem;
  --text-dimension: 1.4rem;
  --text-atom: 1rem;
  --text-particle: 0.875rem;
  
  /* Spacetime Measurements */
  --space-quantum: 8rem;
  --space-hyperspace: 6rem;
  --space-matrix: 4rem;
  --space-neural: 3rem;
  --space-dimension: 2rem;
  --space-atom: 1rem;
  --space-particle: 0.5rem;
  
  /* Holographic Effects */
  --holo-glow: 0 0 40px currentColor, 0 0 80px currentColor, 0 0 120px currentColor;
  --holo-pulse: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(255, 0, 255, 0.6), 0 0 60px rgba(255, 255, 0, 0.4);
  --holo-matrix: 0 0 15px var(--quantum-primary), inset 0 0 15px rgba(0, 255, 255, 0.2);
  
  /* Dimensional Transitions */
  --trans-hyperspace: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-quantum: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --trans-matrix: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Universal Matrix Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Quantum Body Foundation */
body {
  font-family: 'Exo 2', sans-serif;
  font-weight: 400;
  line-height: 1.8;
  color: var(--quantum-light);
  background: var(--quantum-void);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-matrix);
  opacity: 0.03;
  z-index: -2;
  animation: matrixPulse 15s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-vortex);
  opacity: 0.02;
  z-index: -1;
  animation: cosmicRotation 120s linear infinite;
}

@keyframes matrixPulse {
  0% { opacity: 0.01; transform: scale(1); }
  50% { opacity: 0.04; transform: scale(1.02); }
  100% { opacity: 0.02; transform: scale(1); }
}

@keyframes cosmicRotation {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Hyperspace Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-dimension);
  background: var(--gradient-hyperspace);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

h1 {
  font-size: var(--text-quantum);
  font-weight: 900;
  text-shadow: var(--holo-glow);
  animation: quantumShimmer 4s ease-in-out infinite alternate;
}

h2 {
  font-size: var(--text-hyperspace);
  font-weight: 800;
  text-shadow: var(--holo-pulse);
}

h3 {
  font-size: var(--text-matrix);
  font-weight: 700;
}

h4 {
  font-size: var(--text-neural);
  font-weight: 600;
}

h5 {
  font-size: var(--text-dimension);
  font-weight: 500;
}

h6 {
  font-size: var(--text-atom);
  font-weight: 500;
}

@keyframes quantumShimmer {
  0% { filter: hue-rotate(0deg) brightness(1); }
  25% { filter: hue-rotate(90deg) brightness(1.2); }
  50% { filter: hue-rotate(180deg) brightness(1.4); }
  75% { filter: hue-rotate(270deg) brightness(1.2); }
  100% { filter: hue-rotate(360deg) brightness(1); }
}

/* Quantum Paragraph Styling */
p {
  font-size: var(--text-dimension);
  line-height: 1.9;
  margin-bottom: var(--space-dimension);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

/* Hyperspace Link Matrix */
a {
  color: var(--quantum-primary);
  text-decoration: none;
  position: relative;
  transition: var(--trans-quantum);
  display: inline-block;
}

a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hyperspace);
  transition: var(--trans-matrix);
}

a:hover {
  color: var(--quantum-secondary);
  text-shadow: var(--holo-pulse);
  transform: translateY(-2px);
}

a:hover::before {
  width: 100%;
}

/* Quantum Navigation Matrix */
.navbar {
  background: rgba(0, 0, 0, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
  padding: var(--space-atom) 0;
  position: relative;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-matrix);
  opacity: 0.05;
  z-index: -1;
}

.navbar-brand {
  font-family: 'Orbitron', monospace !important;
  font-weight: 800 !important;
  font-size: var(--text-matrix) !important;
  background: var(--gradient-hyperspace);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--holo-glow);
  transition: var(--trans-quantum);
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

.navbar-nav .nav-link {
  font-family: 'Exo 2', sans-serif !important;
  font-weight: 500 !important;
  font-size: var(--text-dimension) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  margin: 0 var(--space-atom);
  padding: var(--space-particle) var(--space-atom) !important;
  position: relative;
  transition: var(--trans-matrix);
  border-radius: 8px;
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hyperspace);
  opacity: 0;
  border-radius: 8px;
  transition: var(--trans-matrix);
  z-index: -1;
}

.navbar-nav .nav-link:hover {
  color: var(--quantum-void) !important;
  text-shadow: none;
  transform: translateY(-2px);
}

.navbar-nav .nav-link:hover::before {
  opacity: 1;
}

.navbar-nav .nav-link.active {
  color: var(--quantum-primary) !important;
  background: rgba(0, 255, 255, 0.1);
  box-shadow: var(--holo-matrix);
}

/* Hyperspace Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('') center/cover;
  background-attachment: fixed;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-vortex);
  opacity: 0.15;
  animation: cosmicRotation 60s linear infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-matrix);
  opacity: 0.1;
  animation: matrixPulse 8s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-size: var(--text-quantum);
  font-weight: 900;
  margin-bottom: var(--space-neural);
  text-shadow: var(--holo-glow);
  animation: quantumShimmer 6s ease-in-out infinite alternate;
}

.hero-subtitle {
  font-size: var(--text-matrix);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-matrix);
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.hero-description {
  font-size: var(--text-neural);
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  margin: 0 auto var(--space-matrix);
  line-height: 1.8;
}

/* Quantum Button System */
.btn-quantum {
  background: var(--gradient-hyperspace);
  border: none;
  color: var(--quantum-void);
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  font-size: var(--text-dimension);
  padding: var(--space-dimension) var(--space-matrix);
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: var(--trans-quantum);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--holo-pulse);
  cursor: pointer;
}

.btn-quantum::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--trans-hyperspace);
}

.btn-quantum:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--holo-glow);
  filter: brightness(1.2);
}

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

.btn-quantum:active {
  transform: translateY(-2px) scale(1.02);
}

/* Neural Network Cards */
.quantum-card {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: var(--space-matrix);
  margin-bottom: var(--space-matrix);
  position: relative;
  overflow: hidden;
  transition: var(--trans-hyperspace);
  backdrop-filter: blur(15px) saturate(150%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.quantum-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-matrix);
  opacity: 0.03;
  transition: var(--trans-matrix);
}

.quantum-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-hyperspace);
  border-radius: 20px;
  opacity: 0;
  transition: var(--trans-matrix);
  z-index: -1;
}

.quantum-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  border-color: rgba(255, 0, 255, 0.6);
  box-shadow: var(--holo-glow);
}

.quantum-card:hover::before {
  opacity: 0.08;
}

.quantum-card:hover::after {
  opacity: 0.3;
}

.quantum-card .card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-dimension);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-vortex);
  border-radius: 50%;
  position: relative;
  animation: iconFloat 6s ease-in-out infinite alternate;
}

@keyframes iconFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(360deg); }
}

.quantum-card .card-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--quantum-light);
  filter: drop-shadow(0 0 10px currentColor);
}

.card-title {
  font-size: var(--text-neural);
  font-weight: 700;
  margin-bottom: var(--space-dimension);
  text-align: center;
}

.card-text {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.7;
}

/* Hyperspace Sections */
.section {
  padding: var(--space-quantum) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-hyperspace);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--gradient-hyperspace);
  border-radius: 2px;
}

/* Quantum Footer */
.footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(0, 255, 255, 0.3);
  padding: var(--space-matrix) 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-matrix);
  opacity: 0.05;
}

.footer-content {
  position: relative;
  z-index: 2;
}

.footer h5 {
  color: var(--quantum-primary);
  font-weight: 600;
  margin-bottom: var(--space-dimension);
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-particle);
}

.footer a:hover {
  color: var(--quantum-secondary);
}

/* Dimensional Contact Icons */
.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-dimension);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hyperspace);
  border-radius: 50%;
  position: relative;
  transition: var(--trans-quantum);
}

.contact-icon:hover {
  transform: scale(1.2) rotate(360deg);
  box-shadow: var(--holo-pulse);
}

.contact-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--quantum-void);
}

/* Responsive Quantum Grid */
@media (max-width: 768px) {
  :root {
    --text-quantum: 3rem;
    --text-hyperspace: 2.5rem;
    --text-matrix: 2rem;
    --text-neural: 1.5rem;
    --space-quantum: 4rem;
    --space-hyperspace: 3rem;
    --space-matrix: 2rem;
  }
  
  .hero-title {
    font-size: var(--text-hyperspace);
  }
  
  .quantum-card {
    margin-bottom: var(--space-dimension);
  }
  
  .navbar-nav .nav-link {
    margin: var(--space-particle) 0;
  }
}

@media (max-width: 576px) {
  :root {
    --text-quantum: 2.5rem;
    --text-hyperspace: 2rem;
    --text-matrix: 1.8rem;
    --space-quantum: 3rem;
    --space-hyperspace: 2rem;
  }
  
  .btn-quantum {
    padding: var(--space-dimension) var(--space-dimension);
    font-size: var(--text-particle);
  }
}

/* Quantum Form Elements */
.form-control {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: var(--quantum-light);
  border-radius: 10px;
  padding: var(--space-dimension);
  transition: var(--trans-matrix);
}

.form-control:focus {
  background: rgba(0, 0, 0, 0.8);
  border-color: var(--quantum-primary);
  box-shadow: var(--holo-matrix);
  color: var(--quantum-light);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Advanced Quantum Animations */
@keyframes hyperspacePulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

.quantum-particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: var(--quantum-primary);
  border-radius: 50%;
  opacity: 0.7;
  animation: neuralFlow 15s linear infinite;
  z-index: -1;
}

.quantum-particle:nth-child(2n) {
  background: var(--quantum-secondary);
  animation-duration: 20s;
  animation-delay: -5s;
}

.quantum-particle:nth-child(3n) {
  background: var(--quantum-tertiary);
  animation-duration: 12s;
  animation-delay: -8s;
}

/* Hyperspace Loading States */
.loading-quantum {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 255, 255, 0.3);
  border-top: 3px solid var(--quantum-primary);
  border-radius: 50%;
  animation: quantumSpin 1s linear infinite;
}

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

/* Ultra-Modern Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --quantum-primary: #ffffff;
    --quantum-secondary: #000000;
    --quantum-light: #ffffff;
    --quantum-void: #000000;
  }
}