/**
 * KN Banner Component Styles
 * Hero banner section with customizable content and animations
 */

.kn-banner {
  position: relative;
  background: linear-gradient(135deg, #000000 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  padding: 100px 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.kn-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.kn-section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kn-section-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3;
}

.kn-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  z-index: 5;
}

.kn-banner-container {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 15;
  max-width: 600px;
  justify-content: flex-start;
}

.kn-banner-content {
  width: 100%;
  display: block;
  text-align: left;
}

.kn-banner-text {
  color: white;
}

.kn-banner-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kn-banner-subtitle {
  font-size: 1.25rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-weight: 400;
  line-height: 1.6;
}

.kn-banner-description {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.kn-banner-cta {
  background: linear-gradient(
    74.5deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  ) !important;
  text-transform: uppercase;
}

.kn-banner-cta-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.kn-banner-cta:hover .kn-banner-cta-icon {
  transform: translateX(4px);
}

.kn-banner-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.kn-banner-image {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: auto;
}

.kn-banner-robot-hand,
.kn-banner-custom-image {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  filter: drop-shadow(0 10px 30px rgba(74, 144, 226, 0.3));
}

.kn-banner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(74, 144, 226, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: kn-banner-pulse 4s ease-in-out infinite;
  z-index: 1;
}

.kn-banner-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.kn-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-light, #4a90e2);
  border-radius: 50%;
  animation: kn-banner-float 6s ease-in-out infinite;
}

.kn-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.kn-particle:nth-child(2) {
  top: 40%;
  right: 15%;
  animation-delay: 2s;
}

.kn-particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.kn-particle:nth-child(4) {
  top: 60%;
  right: 25%;
  animation-delay: 1s;
}

.kn-particle:nth-child(5) {
  bottom: 20%;
  right: 10%;
  animation-delay: 3s;
}

/* Animations */
@keyframes kn-banner-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

@keyframes kn-banner-float {
  0%,
  100% {
    transform: translateY(0px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) scale(1.2);
    opacity: 1;
  }
}

/* GSAP Animation Support */
.kn-banner-text[data-animate="true"],
.kn-banner-visual[data-animate="true"] {
  /* Remove CSS animations - handled by GSAP */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .kn-banner-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .kn-banner-title {
    font-size: 3rem;
  }

  .kn-banner-subtitle {
    font-size: 1.125rem;
  }
}

@media (max-width: 768px) {
  .kn-banner-container {
    padding: 0 1rem;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .kn-banner-content {
    gap: 2rem;
  }

  .kn-banner-title {
    font-size: 2.5rem;
  }

  .kn-banner-subtitle {
    font-size: 1rem;
  }

  .kn-banner-description {
    font-size: 0.9rem;
  }

  .kn-banner-cta {
    font-size: 1rem;
  }

  .kn-banner-glow {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .kn-banner {
    padding: 40px 0;
    min-height: 400px;
  }
  .kn-banner-title {
    font-size: 2rem;
  }

  .kn-banner-subtitle {
    font-size: 0.9rem;
  }

  .kn-banner-cta {
    font-size: 0.9rem;
  }

  .kn-banner-glow {
    width: 250px;
    height: 250px;
  }
}

/* Centered layout variant */
.kn-banner--centered .kn-banner-content {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.kn-banner--centered .kn-banner-visual {
  order: -1;
  margin-bottom: 2rem;
}

.kn-banner--centered .kn-banner-description {
  max-width: 600px;
}