/* =========================================
   ATOMIC LAB - ABOUT PAGE STYLES
   Complete design system integration
   ========================================= */

/* =================
   PAGE CONTAINER
   ================= */
.about-page {
  padding: 6rem 0 3rem; /* Account for fixed nav */
  min-height: 100vh;
  position: relative;
}

/* =================
   HERO SECTION
   ================= */
.about-hero {
  text-align: center;
  padding: 5rem 2rem;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  
  /* Dark sci-fi background with quantum particles */
  background: 
    radial-gradient(circle at 30% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(189, 0, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 70%),
    var(--color-bg-secondary);
  
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-primary);
  
  /* Subtle glow effect */
  box-shadow: 
    inset 0 0 100px rgba(0, 212, 255, 0.05),
    0 0 50px rgba(0, 212, 255, 0.03);
}

/* Animated grid background */
.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-drift 30s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* Hero Title */
.about-hero h1 {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  
  /* Neon gradient text */
  background: linear-gradient(
    135deg,
    var(--color-brand-primary) 0%,
    var(--color-brand-secondary) 25%,
    var(--color-brand-tertiary) 50%,
    var(--color-brand-primary) 75%,
    var(--color-brand-secondary) 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  
  /* Animated gradient */
  animation: gradient-flow 4s ease infinite;
  
  /* Neon glow */
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.6))
          drop-shadow(0 0 40px rgba(189, 0, 255, 0.3));
}

@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero Subtitle */
.about-hero .subtitle {
  font-family: var(--font-secondary);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.6;
  letter-spacing: 0.02em;
  
  /* Subtle text glow */
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

/* =================
   CONTENT SECTIONS
   ================= */
.about-section {
  margin-bottom: 3rem;
  padding: 3rem;
  background: var(--color-surface-primary);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-secondary);
  position: relative;
  overflow: hidden;
  
  /* Depth effect */
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
  
  transition: all var(--duration-normal) var(--ease-out);
}

/* Hover animation */
.about-section:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-primary);
  box-shadow: 
    0 8px 30px rgba(0, 212, 255, 0.15),
    inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

/* Top accent bar */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg, 
    var(--color-brand-primary) 0%, 
    var(--color-brand-secondary) 50%, 
    var(--color-brand-tertiary) 100%
  );
  animation: accent-shimmer 3s ease infinite;
}

@keyframes accent-shimmer {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Section Headings */
.about-section h2 {
  font-family: var(--font-primary);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  
  /* Text glow */
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.about-section h2 i {
  font-size: 0.9em;
  color: var(--color-brand-secondary);
  filter: drop-shadow(0 0 10px currentColor);
  animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.about-section h3 {
  font-family: var(--font-primary);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 600;
  color: var(--color-brand-secondary);
  margin: 2.5rem 0 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
}

/* Section Paragraphs */
.about-section p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

/* Lists */
.about-section ul {
  font-family: var(--font-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text-primary);
  margin-left: 2rem;
  list-style: none;
}

.about-section li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.about-section li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-brand-primary);
  font-weight: bold;
  text-shadow: 0 0 5px currentColor;
}

/* =================
   FEATURE GRID
   ================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--color-surface-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-tertiary);
  position: relative;
  overflow: hidden;
  
  /* Glass morphism effect */
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(42, 46, 56, 0.9) 0%,
    rgba(26, 29, 36, 0.9) 100%
  );
  
  transition: all var(--duration-normal) var(--ease-out);
}

/* Feature card hover state */
.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--color-brand-primary);
  box-shadow: 
    0 10px 40px rgba(0, 212, 255, 0.2),
    inset 0 0 30px rgba(0, 212, 255, 0.05);
}

/* Animated border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-brand-primary),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-out);
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card h4 {
  font-family: var(--font-primary);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-brand-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.feature-card i {
  color: var(--color-brand-secondary);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px currentColor);
}

.feature-card p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* =================
   STATISTICS GRID
   ================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-tertiary);
  position: relative;
  overflow: hidden;
  
  /* Holographic effect */
  background: linear-gradient(
    145deg,
    rgba(0, 212, 255, 0.05) 0%,
    rgba(189, 0, 255, 0.05) 50%,
    rgba(0, 255, 136, 0.05) 100%
  );
  
  transition: all var(--duration-normal) var(--ease-out);
}

/* Animated background particle */
.stat-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.2) 0%,
    transparent 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: particle-float 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes particle-float {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.6;
  }
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-brand-primary);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--color-brand-primary);
  display: block;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  
  /* Neon number effect */
  text-shadow: 
    0 0 10px rgba(0, 212, 255, 0.8),
    0 0 20px rgba(0, 212, 255, 0.6),
    0 0 30px rgba(0, 212, 255, 0.4);
  
  /* Animated glow */
  animation: number-glow 2s ease-in-out infinite;
}

@keyframes number-glow {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.stat-label {
  font-family: var(--font-secondary);
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* =================
   TECHNOLOGY BADGES
   ================= */
.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-badge {
  background: var(--color-surface-secondary);
  color: var(--color-brand-primary);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-primary);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  
  transition: all var(--duration-fast) var(--ease-out);
}

/* Tech badge shine effect */
.tech-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(0, 212, 255, 0.2) 50%,
    transparent 70%
  );
  transform: rotate(45deg) translateY(-100%);
  transition: transform var(--duration-slow) var(--ease-out);
}

.tech-badge:hover::before {
  transform: rotate(45deg) translateY(100%);
}

.tech-badge:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-brand-primary);
  box-shadow: 
    0 5px 20px rgba(0, 212, 255, 0.3),
    inset 0 0 10px rgba(0, 212, 255, 0.1);
  color: var(--color-text-primary);
}

/* =================
   CALL TO ACTION
   ================= */
.cta-section {
  text-align: center;
  padding: 5rem 3rem;
  margin: 5rem 0 3rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-primary);
  position: relative;
  overflow: hidden;
  
  /* Quantum field background */
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 70%, rgba(189, 0, 255, 0.15) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 255, 136, 0.08) 0%, transparent 60%),
    var(--color-surface-primary);
  
  /* Inner glow */
  box-shadow: 
    inset 0 0 100px rgba(0, 212, 255, 0.05),
    0 0 50px rgba(0, 212, 255, 0.02);
}

/* Animated particles background */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle, rgba(0, 212, 255, 0.3) 1px, transparent 1px),
    radial-gradient(circle, rgba(189, 0, 255, 0.3) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px;
  background-position: 0 0, 25px 25px;
  animation: particles-drift 20s linear infinite;
  opacity: 0.3;
  pointer-events: none;
}

@keyframes particles-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

.cta-section h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-brand-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.cta-section p {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  
  /* Primary button style */
  background: linear-gradient(
    135deg,
    var(--color-brand-primary) 0%,
    var(--color-brand-secondary) 100%
  );
  color: var(--color-bg-primary);
  border: 2px solid transparent;
  box-shadow: 
    0 4px 20px rgba(0, 212, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Shine effect */
.cta-button::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: left var(--duration-slow) var(--ease-out);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 8px 30px rgba(0, 212, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Secondary button style */
.cta-button.secondary {
  background: transparent;
  color: var(--color-brand-primary);
  border: 2px solid var(--color-brand-primary);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.1),
    inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.cta-button.secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-brand-secondary);
  color: var(--color-text-primary);
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 0.3),
    inset 0 0 30px rgba(0, 212, 255, 0.1);
}

/* =================
   RESPONSIVE DESIGN
   ================= */
@media (max-width: 768px) {
  .about-page {
    padding: 5rem 0 2rem;
  }
  
  .about-hero {
    padding: 3rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .about-hero .subtitle {
    font-size: 1.1rem;
  }
  
  .about-section {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }
  
  .about-section h2 {
    font-size: 1.8rem;
  }
  
  .about-section h3 {
    font-size: 1.4rem;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .technology-list {
    gap: 0.75rem;
  }
  
  .tech-badge {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
  
  .cta-section {
    padding: 3rem 1.5rem;
    margin: 3rem 0 2rem;
  }
  
  .cta-section h2 {
    font-size: 2rem;
  }
  
  .cta-section p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cta-button {
    width: 100%;
    padding: 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .about-section ul {
    margin-left: 1rem;
  }
}

/* =================
   ANIMATIONS
   ================= */

/* Fade in animation for sections */
.about-section,
.feature-card,
.stat-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-in-up 0.6s ease-out forwards;
}

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation delays */
.about-section:nth-child(1) { animation-delay: 0.1s; }
.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.3s; }
.about-section:nth-child(4) { animation-delay: 0.4s; }
.about-section:nth-child(5) { animation-delay: 0.5s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }
.stat-card:nth-child(5) { animation-delay: 0.25s; }
.stat-card:nth-child(6) { animation-delay: 0.3s; }

/* =================
   ACCESSIBILITY
   ================= */

/* Focus states */
.cta-button:focus,
.tech-badge:focus {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .about-section,
  .feature-card,
  .stat-card,
  .tech-badge {
    border-width: 2px;
  }
  
  .stat-number {
    text-shadow: none;
    font-weight: 900;
  }
}

/* =================
   PRINT STYLES
   ================= */
@media print {
  .about-hero::before,
  .cta-section::before,
  .stat-card::before,
  .tech-badge::before,
  .feature-card::before {
    display: none;
  }
  
  .about-section {
    page-break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .cta-section {
    display: none;
  }
}