/* CSS Variables - Design System */
:root {
  /* Colors - Background */
  --bg-primary: #100E16;
  --bg-gradient-center: #2A2042;
  --bg-gradient-edge: #100E16;
  
  /* Colors - Surface */
  --glass-bg: rgba(22, 19, 30, 0.5);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.2);
  
  /* Colors - Text */
  --text-primary: #F0F0F0;
  --text-secondary: #A0A0B0;
  --text-placeholder: #606070;
  
  /* Colors - Accent */
  --accent-primary: #A855F7;
  --accent-gradient-start: #C026D3;
  --accent-gradient-end: #A855F7;
  
  /* Colors - Semantic */
  --success: #22C55E;
  --warning: #FBBF24;
  --danger: #EF4444;
  
  /* Effects - Shadows */
  --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 10px 20px rgba(0, 0, 0, 0.2);
  
  /* Effects - Rounding */
  --rounding-default: 12px;
  --rounding-large: 16px;
  --rounding-full: 9999px;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg-primary);
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Enhanced Background Gradient */
.background-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(192, 38, 211, 0.15) 0%, transparent 50%),
    radial-gradient(circle at center, var(--bg-gradient-center) 0%, var(--bg-primary) 70%);
  z-index: -1;
}

/* Enhanced Glass Morphism Effect */
.glass-morphism {
  backdrop-filter: blur(24px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Header */
.header-sticky {
  position: sticky;
  top: 12px;
  z-index: 50;
  margin: 12px auto 0;
  max-width: 1200px;
  border-radius: var(--rounding-full);
  padding: 12px 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(24px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.nav-link:hover {
  color: var(--accent-primary);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--rounding-full);
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-strong);
}

.btn-secondary {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  color: var(--text-primary);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--rounding-full);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Enhanced Cards and Containers */
.glass-card {
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    rgba(255, 255, 255, 0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--rounding-large);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.highlight {
  color: var(--accent-primary);
  font-style: italic;
}

/* Compact Section Spacing */
.section-padding {
  padding: 40px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Card Styles */
.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pillar Cards */
.pillar-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pillar-logo img {
  max-height: 48px;
  width: auto;
}

.pillar-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.pillar-description {
  color: var(--text-secondary);
  flex-grow: 1;
}

.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  padding-left: 20px;
}

.services-list li:before {
  content: "•";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
}

.services-list li:last-child {
  border-bottom: none;
}

/* Hidden Assets Section */
.asset-example {
  text-align: center;
  color: var(--text-secondary);
}

/* Icons */
.icon-accent {
  color: var(--accent-primary);
  width: 24px;
  height: 24px;
}

.icon-large {
  color: var(--accent-primary);
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

/* Testimonial */
.testimonial {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.testimonial-author {
  color: var(--text-secondary);
  font-size: 1rem;
  font-style: normal;
}

/* Client Logos */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease-in-out;
}

.client-logos:hover {
  opacity: 1;
}

.client-logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(0.8);
  transition: filter 0.3s ease-in-out;
}

.client-logo:hover {
  filter: grayscale(0%) brightness(1);
}

/* About Section */
.about-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: var(--accent-primary);
}

/* Enhanced Form Styles */
input, textarea {
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--rounding-default);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.3);
}

input::placeholder, textarea::placeholder {
  color: var(--text-placeholder);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 60px 0;
  }
  
  .header-sticky {
    margin: 8px;
    top: 8px;
  }
  
  .hero-image {
    width: 120px;
    height: 120px;
  }
  
  .client-logos {
    gap: 1rem;
  }
  
  .client-logo {
    height: 32px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .glass-card {
    padding: 16px;
  }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }

/* Slide-in animations */
.slide-in-item {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-item.slide-in-visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-item[data-delay="100"] {
  transition-delay: 0.1s;
}

.slide-in-item[data-delay="200"] {
  transition-delay: 0.2s;
}

.slide-in-item[data-delay="300"] {
  transition-delay: 0.3s;
}

/* Enhanced glassmorphism hover effects */
.glass-card.slide-in-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* App-like Interface Additions */
.app-interface {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.app-interface::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%);
}

/* Floating Action Elements */
.floating-element {
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15) 0%, 
    rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.floating-element:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(168, 85, 247, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Scroll-based animations will be handled by JavaScript */