/* Universal Banner Styles for All Pages (except homepage) */

/* Main Background Canvas - Standard across all pages */
#bg-softfx {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.8;
}

/* Universal Page Hero Banner - Enhanced Spacing */
.page-hero {
  padding: 70px 0 50px !important;
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(109, 40, 217, 0.95) 50%,
    rgba(124, 58, 237, 0.95) 100%) !important;
  position: relative;
  overflow: hidden;
  min-height: auto !important;
  display: flex;
  align-items: center;
  gap: 4rem;
}

/* Override any conflicting styles from other CSS files */
section.page-hero,
.page-hero.products-hero,
.page-hero.services-hero,
.page-hero.about-hero,
.page-hero.media-hero,
.page-hero.contact-hero,
.page-hero.careers-hero {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.95) 0%, 
    rgba(109, 40, 217, 0.95) 50%,
    rgba(124, 58, 237, 0.95) 100%) !important;
  padding: 70px 0 50px !important;
}

/* Universal Wireframe Animations for All Pages */
.page-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: wireframe-move 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes wireframe-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, 40px); }
}

/* Floating Tech Elements */
.page-hero .hero-content {
  position: relative;
  z-index: 2;
}

/* Add animated background pattern */
.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.02) 0%, transparent 50%);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
    opacity: 0.6;
  }
  50% { 
    transform: translateY(-15px) rotate(1deg); 
    opacity: 0.8;
  }
}

.page-hero .hero-content {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

.page-hero p {
  font-size: 1.05rem;
  color: #ffffff !important;
  margin-bottom: 36px;
  line-height: 1.65;
  max-width: 600px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
}

/* Specific variations for different pages */

/* Contact Page - Left-Right Layout Enhanced */
.contact-hero .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.contact-hero .hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-hero .benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero .benefit-item strong {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  color: #ffffff !important;
}

.contact-hero .benefit-item span {
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Contact Hero Title - Ensure Visibility */
.contact-hero .hero-text h1,
.contact-hero h1 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

.contact-hero .hero-text p,
.contact-hero p {
  color: #ffffff !important;
  font-weight: 500 !important;
  text-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.2) !important;
  opacity: 0.95;
}

/* About Page - Centered like other pages */
.about-hero .hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-hero .hero-visual {
  display: none; /* Hide visual element for consistency */
}

/* Products/Services Pages - Centered with Stats */
.products-hero .hero-content,
.services-hero .hero-content {
  text-align: center;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.hero-stats .stat {
  text-align: center;
  color: #ffffff !important;
}

.hero-stats .stat strong {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-stats .stat span {
  font-size: 1rem;
  opacity: 0.95;
  color: #ffffff !important;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-hero {
    padding: 60px 0 40px;
    min-height: auto;
  }
  
  .contact-hero .hero-content,
  .about-hero .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .page-hero h1 {
    font-size: 2rem;
  }
  
  .page-hero p {
    font-size: 1rem;
  }
}

/* ===== HERO SLIDESHOW STYLES ===== */
.hero-slideshow {
  flex: 1;
  max-width: 600px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 400px;
}

.slide.active {
  display: block;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.slideshow-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-dot.active {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.2);
}

.nav-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Hero Content Responsive Adjustments */
.hero-content {
  flex: 1;
  max-width: 600px;
}

/* Mobile Responsive for Slideshow */
@media (max-width: 768px) {
  .page-hero {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-slideshow {
    max-width: 100%;
    margin: 0 20px;
  }
  
  .slide img {
    height: 300px;
  }
}

/* ===== SERVICES BANNER ANIMATION ===== */
.services-animation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  color: rgba(255, 255, 255, 0.2);
  animation: float-icon 6s ease-in-out infinite;
}

.icon-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.icon-2 {
  top: 60%;
  left: 80%;
  animation-delay: 1.5s;
}

.icon-3 {
  top: 30%;
  right: 15%;
  animation-delay: 3s;
}

.icon-4 {
  bottom: 20%;
  left: 70%;
  animation-delay: 4.5s;
}

@keyframes float-icon {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.3;
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px) rotate(-3deg);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-30px) rotate(8deg);
    opacity: 0.7;
  }
}

.tech-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: particle-float 8s linear infinite;
}

.particle:nth-child(1) {
  left: 20%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle:nth-child(2) {
  left: 40%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.particle:nth-child(3) {
  left: 60%;
  animation-delay: 4s;
  animation-duration: 7s;
}

.particle:nth-child(4) {
  left: 80%;
  animation-delay: 6s;
  animation-duration: 9s;
}

.particle:nth-child(5) {
  left: 90%;
  animation-delay: 1s;
  animation-duration: 11s;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    transform: translateY(90vh) scale(1);
    opacity: 1;
  }
  90% {
    transform: translateY(-10vh) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(0);
    opacity: 0;
  }
}

/* Enhanced Services Hero Styling */
.services-hero {
  position: relative;
  overflow: hidden;
}

.services-hero .hero-content {
  position: relative;
  z-index: 10;
}

.services-hero .hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .services-hero .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .floating-icon {
    opacity: 0.1;
  }
  
  .particle {
    opacity: 0.2;
  }
}