/* Homepage Modern Styles */

/* Hero Section - Centered with static cards */
.hero-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-bg-primary);
  overflow: hidden;
  position: relative;
}

/* Subtle gradient background */
.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    -45deg,
    rgba(9, 105, 218, 0.02),
    rgba(124, 58, 237, 0.01),
    rgba(255, 255, 255, 0),
    rgba(20, 184, 166, 0.02)
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  z-index: 1;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Hero Grid Layout - Centered */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}

.hero-headline {
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: var(--color-text-primary);
}

.hero-subheadline {
  font-size: var(--text-xl);
  line-height: 1.5;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

/* Hero Visual - Static cards with creative layout */
.hero-visual {
  position: relative;
  height: 400px;
  perspective: 1000px;
}

.static-cards {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
}

.hero-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Creative static positioning - better layout */
.hero-card-1 {
  top: 0;
  left: 0;
  width: 240px;
  transform: rotate(-3deg) translateX(-20px);
  border-top: 3px solid var(--color-accent-purple);
  z-index: 3;
}

.hero-card-1:hover {
  transform: rotate(-3deg) translateX(-20px) translateY(-8px) scale(1.02);
  background: linear-gradient(to bottom, #faf5ff 0%, #ffffff 100%);
}

.hero-card-2 {
  top: 60px;
  right: 0;
  width: 240px;
  transform: rotate(2deg) translateX(20px);
  border-top: 3px solid var(--color-accent-teal);
  z-index: 2;
}

.hero-card-2:hover {
  transform: rotate(2deg) translateX(20px) translateY(-8px) scale(1.02);
  background: linear-gradient(to bottom, #f0fdfa 0%, #ffffff 100%);
}

.hero-card-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 240px;
  border-top: 3px solid var(--color-accent-orange);
  z-index: 1;
}

.hero-card-3:hover {
  transform: translateX(-50%) rotate(-1deg) translateY(-8px) scale(1.02);
  background: linear-gradient(to bottom, #fff7ed 0%, #ffffff 100%);
}

.hero-card-icon {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
  color: var(--color-primary);
}

.hero-card-1 .hero-card-icon {
  color: var(--color-accent-purple);
}

.hero-card-2 .hero-card-icon {
  color: var(--color-accent-teal);
}

.hero-card-3 .hero-card-icon {
  color: var(--color-accent-orange);
}

.hero-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.hero-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Features Section - GitHub style with color accents */
.features-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--color-accent-purple) 25%, 
    var(--color-accent-teal) 50%, 
    var(--color-accent-orange) 75%, 
    transparent 100%
  );
  opacity: 0.3;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
  font-size: var(--text-2xl);
  position: relative;
  overflow: hidden;
}

/* Add subtle gradient backgrounds to feature icons */
.feature-card:nth-child(1) .feature-icon {
  background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
  color: var(--color-accent-purple);
}

.feature-card:nth-child(2) .feature-icon {
  background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
  color: var(--color-accent-teal);
}

.feature-card:nth-child(3) .feature-icon {
  background: linear-gradient(135deg, #fce7f3 0%, #e0f2fe 100%);
  color: var(--color-accent-pink);
}

.feature-card:nth-child(4) .feature-icon {
  background: linear-gradient(135deg, #fed7aa 0%, #fce7f3 100%);
  color: var(--color-accent-orange);
}

.feature-card:nth-child(5) .feature-icon {
  background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
  color: var(--color-primary);
}

.feature-card:nth-child(6) .feature-icon {
  background: linear-gradient(135deg, #ddd6fe 0%, #fed7aa 100%);
  color: var(--color-accent-indigo);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.feature-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Product Showcase - Apple style with color */
.product-showcase {
  padding: var(--space-24) 0;
  background: linear-gradient(to bottom, var(--color-bg-primary) 0%, #f8faff 100%);
}

.showcase-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.showcase-header h2 {
  font-size: var(--text-5xl);
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.showcase-header p {
  font-size: var(--text-xl);
  color: var(--color-text-secondary);
}

.modules-showcase {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  flex-wrap: wrap;
}

.module-preview {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-full);
  background: var(--color-bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
}

.module-preview.active,
.module-preview:hover {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  color: white;
  border-color: transparent;
}

.module-preview.active h3,
.module-preview:hover h3,
.module-preview.active p,
.module-preview:hover p {
  color: white;
}

.module-preview h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.module-preview p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

.module-display {
  max-width: 900px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border-light);
}

.display-content {
  text-align: center;
}

.module-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

/* Process Section */
.process-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
  position: relative;
}

.process-section .section-intro h3 {
  font-size: var(--text-3xl);
  margin: var(--space-2) 0 var(--space-4) 0;
  color: var(--color-text-primary);
}

.process-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-16);
  position: relative;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin: 0 auto var(--space-4);
  position: relative;
  box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

.process-step h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  max-width: 150px;
  margin: 0 auto;
}

.process-connector {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  opacity: 0.3;
  margin-top: -30px;
}

/* Technology Section */
.technology-section {
  padding: var(--space-24) 0;
  background: linear-gradient(to bottom, var(--color-bg-primary) 0%, #f8faff 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.tech-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.tech-card:hover::before {
  opacity: 1;
}

.tech-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
  color: var(--color-primary);
}

.tech-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.tech-card p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.tech-stack {
  margin-top: var(--space-16);
  text-align: center;
}

.tech-stack h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
  color: var(--color-text-primary);
}

.tech-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.tech-logo-item {
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-logo-item:hover {
  transform: translateY(-4px);
}

.tech-logo-item img {
  height: 60px;
  width: 120px;
  object-fit: contain;
  margin-bottom: var(--space-2);
  filter: grayscale(30%);
  transition: all 0.2s ease;
  padding: var(--space-2);
}

.tech-logo-item:hover img {
  filter: grayscale(0%);
}

.tech-logo-item span {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* Partners Section */
.partners-section {
  padding: var(--space-24) 0;
  background: var(--color-bg-secondary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-12);
}

.partner-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  border: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--partner-color, var(--color-primary));
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--partner-color, var(--color-primary));
}

.partner-card:hover::before {
  opacity: 1;
}

.partner-card img {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-6);
  filter: grayscale(0%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-card:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.partner-info h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
}

.partner-info p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* CTA Section */
.cta-section {
  padding: var(--space-24) 0;
  background: linear-gradient(135deg, #f8faff 0%, #fff5f7 100%);
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--color-accent-purple) 25%, 
    var(--color-accent-teal) 50%, 
    var(--color-accent-orange) 75%, 
    transparent 100%
  );
  opacity: 0.3;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

.cta-content p {
  font-size: var(--text-xl);
  margin-bottom: var(--space-10);
  color: var(--color-text-secondary);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.btn-primary-large {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-purple) 100%);
  color: white;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--text-xl);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  border: 2px solid transparent;
}

.btn-primary-large:hover {
  background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-accent-purple) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(9, 105, 218, 0.3);
  color: white;
}

.btn-primary-large i {
  transition: transform 0.2s ease;
}

.btn-primary-large:hover i {
  transform: translateX(4px);
}

.cta-contact {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.phone-link {
  color: var(--color-primary);
  font-weight: 600;
  margin-left: var(--space-2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-subheadline {
    margin: 0 auto var(--space-10);
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    flex-direction: column;
    gap: var(--space-8);
  }
  
  .process-connector {
    width: 2px;
    height: 40px;
    margin: 0 auto;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-headline {
    font-size: var(--text-4xl);
  }
  
  .hero-subheadline {
    font-size: var(--text-lg);
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .modules-showcase {
    gap: var(--space-3);
  }
  
  .module-preview {
    padding: var(--space-3) var(--space-4);
  }
  
  .showcase-header h2 {
    font-size: var(--text-3xl);
  }
  
  .cta-content h2 {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: var(--text-3xl);
  }
}

/* Fade in animation for hero content */
.hero-content > * {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-headline {
  animation-delay: 0.2s;
}

.hero-subheadline {
  animation-delay: 0.4s;
}

.hero-actions {
  animation-delay: 0.6s;
}
