/**
 * KRISHKA Section-Specific Visual Styles
 * Distinctive backgrounds, parallax effects, and decorative elements
 */

/* ========== PARALLAX BASE ========== */
.parallax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  will-change: transform;
}

/* Decorative elements should be behind content */
.decorative-shape,
.diagonal-accent,
.glow-orb,
.service-blob,
.process-line,
.about-pattern,
.contact-lines,
.trust-shield {
  z-index: 0;
}

section .container {
  position: relative;
  z-index: 1;
}

/* ========== FOR FOUNDERS - Grid Pattern with Floating Shapes ========== */
#founders {
  position: relative;
  overflow: hidden;
}

#founders::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(110, 45, 196, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 45, 196, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

#founders .decorative-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}

#founders .shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--brand-pink-300), transparent);
  top: -100px;
  right: -50px;
  animation: floatShape1 15s ease-in-out infinite;
}

#founders .shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--brand-purple-400), transparent);
  bottom: 10%;
  left: -50px;
  animation: floatShape2 18s ease-in-out infinite;
}

@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 50px) scale(1.1); }
}

@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(0.9); }
}

/* ========== FOR HIRING TEAMS - Diagonal Gradient with Lines ========== */
#hiring {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(248, 244, 255, 0.98) 0%, 
    rgba(255, 250, 255, 0.95) 50%,
    rgba(248, 240, 255, 0.98) 100%);
  overflow: hidden;
}

#hiring::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 100px,
      rgba(110, 45, 196, 0.02) 100px,
      rgba(110, 45, 196, 0.02) 101px
    );
}

#hiring .diagonal-accent {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: linear-gradient(
    45deg,
    transparent 48%,
    rgba(255, 42, 174, 0.03) 49%,
    rgba(255, 42, 174, 0.03) 51%,
    transparent 52%
  );
  transform: rotate(-5deg);
}

/* ========== DASHBOARD - Dark Theme with Glow ========== */
#dashboard {
  position: relative;
  background: linear-gradient(180deg, 
    var(--brand-purple-950) 0%, 
    var(--brand-purple-900) 50%,
    #1a0a2e 100%);
  color: white;
  overflow: hidden;
}

#dashboard::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

#dashboard .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

#dashboard .glow-1 {
  width: 400px;
  height: 400px;
  background: var(--brand-pink-500);
  top: -100px;
  right: 10%;
  animation: pulseGlow 8s ease-in-out infinite;
}

#dashboard .glow-2 {
  width: 300px;
  height: 300px;
  background: var(--brand-purple-500);
  bottom: -50px;
  left: 5%;
  animation: pulseGlow 10s ease-in-out infinite reverse;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
}

#dashboard .kicker-dark,
#dashboard h2,
#dashboard .lead {
  color: white;
}

#dashboard h2::after {
  background: linear-gradient(90deg, var(--brand-pink-500), var(--brand-purple-400));
}

/* ========== SERVICES - Radial Gradient Burst ========== */
#services {
  position: relative;
  background: radial-gradient(ellipse at center, 
    rgba(255, 252, 255, 1) 0%, 
    rgba(248, 244, 255, 0.98) 40%,
    rgba(240, 232, 255, 0.95) 100%);
  overflow: hidden;
}

#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 42, 174, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(110, 45, 196, 0.05) 0%, transparent 50%);
}

#services .service-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

#services .blob-1 {
  width: 500px;
  height: 500px;
  background: var(--brand-pink-300);
  top: -200px;
  left: -100px;
}

#services .blob-2 {
  width: 400px;
  height: 400px;
  background: var(--brand-purple-300);
  bottom: -150px;
  right: -100px;
}

/* ========== PROCESS - Step Connection Lines ========== */
#process {
  position: relative;
  background: linear-gradient(180deg, 
    var(--brand-purple-900) 0%, 
    var(--brand-purple-800) 100%);
  color: white;
  overflow: hidden;
}

#process::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

#process .process-line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.2) 20%,
    rgba(255, 255, 255, 0.2) 80%,
    transparent 100%);
  transform: translateY(-50%);
}

#process .process-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 20px;
  background: linear-gradient(90deg, 
    var(--brand-pink-500) 0%, 
    var(--brand-purple-400) 50%,
    var(--brand-pink-500) 100%);
  filter: blur(20px);
  opacity: 0.3;
  animation: processFlow 3s ease-in-out infinite;
}

@keyframes processFlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

#process .kicker-dark,
#process h2,
#process .lead {
  color: white;
}

#process h2::after {
  background: linear-gradient(90deg, var(--brand-pink-500), var(--brand-purple-400));
}

#process .card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== ABOUT - Split Diagonal ========== */
#about {
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(110, 45, 196, 0.03) 0%, 
    rgba(255, 42, 174, 0.03) 100%);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

#about .about-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(
    circle at 2px 2px, 
    rgba(110, 45, 196, 0.15) 1px, 
    transparent 0
  );
  background-size: 40px 40px;
}

/* ========== RESOURCES - Hexagonal Pattern ========== */
#resources {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(248, 244, 255, 0.98) 0%, 
    rgba(255, 252, 255, 0.98) 50%,
    rgba(248, 244, 255, 0.98) 100%);
  overflow: hidden;
}

#resources::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%236e2dc4' fill-opacity='0.03' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-7.5L27.99 34H28v2.31h-.01L17 42.65V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ========== STATISTICS - Already styled in main CSS ========== */

/* ========== TESTIMONIALS - Soft Gradient with Quote Marks ========== */
#testimonials {
  position: relative;
  background: linear-gradient(135deg, 
    rgba(255, 252, 255, 0.95) 0%, 
    rgba(248, 240, 255, 0.95) 50%,
    rgba(255, 250, 252, 0.95) 100%);
  overflow: hidden;
}

#testimonials::before {
  content: """;
  position: absolute;
  top: -50px;
  left: 5%;
  font-family: var(--head);
  font-size: 400px;
  color: rgba(110, 45, 196, 0.03);
  line-height: 1;
  pointer-events: none;
}

#testimonials::after {
  content: """;
  position: absolute;
  bottom: -100px;
  right: 5%;
  font-family: var(--head);
  font-size: 400px;
  color: rgba(255, 42, 174, 0.03);
  line-height: 1;
  pointer-events: none;
  transform: rotate(180deg);
}

/* ========== TRUST - Clean Professional ========== */
#trust {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(248, 244, 255, 0.98) 0%, 
    rgba(255, 252, 255, 0.98) 100%);
}

#trust::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--line) 20%,
    var(--line) 80%,
    transparent 100%);
}

#trust .trust-shield {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 150px;
  height: 150px;
  opacity: 0.05;
}

/* ========== CONTACT - Subtle Pattern ========== */
#contact {
  position: relative;
  background: linear-gradient(180deg, 
    rgba(248, 244, 255, 0.95) 0%, 
    rgba(255, 252, 255, 0.98) 50%,
    rgba(248, 244, 255, 0.95) 100%);
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 0% 0%, rgba(255, 42, 174, 0.04) 0%, transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(110, 45, 196, 0.04) 0%, transparent 30%);
}

#contact .contact-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(90deg, transparent 49.5%, rgba(110, 45, 196, 0.03) 49.5%, rgba(110, 45, 196, 0.03) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(110, 45, 196, 0.03) 49.5%, rgba(110, 45, 196, 0.03) 50.5%, transparent 50.5%);
  background-size: 100px 100px;
  transform: perspective(500px) rotateX(60deg);
  transform-origin: top;
  opacity: 0.5;
}

/* ========== PARALLAX SCROLLING EFFECTS ========== */
@media (prefers-reduced-motion: no-preference) {
  .parallax-slow {
    will-change: transform;
  }
  
  .parallax-medium {
    will-change: transform;
  }
  
  .parallax-fast {
    will-change: transform;
  }
}

/* ========== SECTION TRANSITIONS ========== */
.section-transition {
  position: relative;
}

.section-transition::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(248, 244, 255, 0.5));
  pointer-events: none;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children reveals */
[data-reveal] .reveal-ready:nth-child(1) { transition-delay: 0ms; }
[data-reveal] .reveal-ready:nth-child(2) { transition-delay: 100ms; }
[data-reveal] .reveal-ready:nth-child(3) { transition-delay: 200ms; }
[data-reveal] .reveal-ready:nth-child(4) { transition-delay: 300ms; }

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
  #founders::before {
    animation: none;
  }
  
  #founders .decorative-shape,
  #services .service-blob {
    display: none;
  }
  
  #process .process-line {
    display: none;
  }
  
  #testimonials::before,
  #testimonials::after {
    font-size: 200px;
  }
  
  #contact .contact-lines {
    display: none;
  }
}
