/* Futuristic Why Choose Us Section */
.futuristic-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  padding: 100px 0;
}

/* Animated Background */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="neural" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="2" fill="%23ff6b6b" opacity="0.3"/><line x1="0" y1="50" x2="100" y2="50" stroke="%23ff6b6b" stroke-width="0.5" opacity="0.2"/><line x1="50" y1="0" x2="50" y2="100" stroke="%23ff6b6b" stroke-width="0.5" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23neural)"/></svg>') repeat;
  animation: neuralPulse 4s infinite ease-in-out;
}

@keyframes neuralPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.floating-particles::before,
.floating-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.floating-particles::before {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-particles::after {
  top: 80%;
  left: 80%;
  animation-delay: 10s;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, -100px) rotate(90deg); }
  50% { transform: translate(-100px, -200px) rotate(180deg); }
  75% { transform: translate(-200px, 100px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

#matrix-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}

/* 3D Holographic Display */
.holographic-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  z-index: 1;
}

.hologram-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-radius: 50%;
  animation: hologramSpin 20s infinite linear;
}

.hologram-ring-2 {
  width: 120%;
  height: 120%;
  border-color: rgba(78, 205, 196, 0.2);
  animation-duration: 25s;
  animation-direction: reverse;
}

.hologram-ring-3 {
  width: 80%;
  height: 80%;
  border-color: rgba(255, 255, 255, 0.1);
  animation-duration: 15s;
}

@keyframes hologramSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Container */
.container {
  position: relative;
  z-index: 2;
}

/* Futuristic Title */
.title-container {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.cyber-title {
  position: relative;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.glitch-text {
  position: relative;
  color: #fff;
  text-shadow: 
    0 0 5px rgba(255, 107, 107, 0.8),
    0 0 10px rgba(255, 107, 107, 0.6),
    0 0 20px rgba(255, 107, 107, 0.4);
  animation: glitch 2s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-1 0.5s infinite;
  color: #ff6b6b;
  z-index: -1;
}

.glitch-text::after {
  animation: glitch-2 0.5s infinite;
  color: #4ecdc4;
  z-index: -2;
}

@keyframes glitch {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(-2px, -2px); }
  20% { transform: translate(-2px, 2px); }
  30% { transform: translate(2px, 2px); }
  40% { transform: translate(2px, -2px); }
  50% { transform: translate(-2px, 2px); }
  60% { transform: translate(-2px, -2px); }
  70% { transform: translate(2px, -2px); }
  80% { transform: translate(-2px, -2px); }
  90% { transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  10% { transform: translate(2px, 2px); }
  20% { transform: translate(2px, -2px); }
  30% { transform: translate(-2px, -2px); }
  40% { transform: translate(-2px, 2px); }
  50% { transform: translate(2px, -2px); }
  60% { transform: translate(2px, 2px); }
  70% { transform: translate(-2px, 2px); }
  80% { transform: translate(2px, 2px); }
  90% { transform: translate(-2px, -2px); }
}

.title-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(255, 107, 107, 0.3), transparent);
  animation: titleGlow 3s infinite ease-in-out;
}

@keyframes titleGlow {
  0%, 100% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(100%); }
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.deco-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
  animation: lineGlow 2s infinite alternate;
}

@keyframes lineGlow {
  0% { box-shadow: 0 0 5px #ff6b6b; }
  100% { box-shadow: 0 0 20px #ff6b6b, 0 0 30px #ff6b6b; }
}

.deco-diamond {
  width: 12px;
  height: 12px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  transform: rotate(45deg);
  animation: diamondSpin 4s infinite linear;
}

@keyframes diamondSpin {
  0% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(225deg) scale(1.2); }
  100% { transform: rotate(405deg) scale(1); }
}

/* 3D Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 80px;
  perspective: 1000px;
}

.feature-card-3d {
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  cursor: pointer;
}

.feature-card-3d:hover {
  transform: translateY(-20px) rotateX(10deg) rotateY(5deg);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 50px rgba(255, 107, 107, 0.3);
}

.center-card {
  transform: scale(1.05);
  z-index: 3;
}

.center-card:hover {
  transform: translateY(-30px) rotateX(10deg) rotateY(5deg) scale(1.1);
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-3d:hover .card-glow {
  opacity: 1;
}

.card-hologram {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 107, 107, 0.1), transparent);
  animation: hologramRotate 4s infinite linear;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-3d:hover .card-hologram {
  opacity: 1;
}

@keyframes hologramRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.feature-icon-3d {
  position: relative;
  margin-bottom: 30px;
  display: inline-block;
}

.icon-orbit {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  border-radius: 50%;
  animation: iconFloat 3s infinite ease-in-out;
}

.icon-orbit::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(255, 107, 107, 0.3);
  border-radius: 50%;
  animation: orbitSpin 8s infinite linear;
}

.icon-orbit::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  border: 1px solid rgba(78, 205, 196, 0.2);
  border-radius: 50%;
  animation: orbitSpin 12s infinite linear reverse;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes orbitSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.icon-orbit i {
  font-size: 32px;
  color: #fff;
  z-index: 2;
  position: relative;
}

.icon-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.icon-particles::before,
.icon-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: particleOrbit 4s infinite linear;
}

.icon-particles::before {
  top: 10%;
  left: 50%;
  animation-delay: 0s;
}

.icon-particles::after {
  bottom: 10%;
  right: 50%;
  animation-delay: 2s;
}

@keyframes particleOrbit {
  0% { transform: rotate(0deg) translateX(60px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(60px) rotate(-360deg); }
}

.feature-title-3d {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.text-gradient {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s infinite linear;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.feature-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 16px;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  border-radius: 2px;
  width: 0%;
  transition: width 2s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progressGlow 2s infinite;
}

@keyframes progressGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* Circuit Pattern */
.card-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
}

.circuit-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
  height: 1px;
  width: 100%;
  top: 20%;
  animation: circuitFlow 3s infinite;
}

.circuit-line-2 {
  top: 80%;
  animation-delay: 1.5s;
}

.circuit-node {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ff6b6b;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: nodePulse 2s infinite;
}

@keyframes circuitFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes nodePulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
}

/* Futuristic Stats */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  color: #ff6b6b;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating Tech Elements */
.tech-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tech-element {
  position: absolute;
  opacity: 0.3;
}

.tech-cube {
  top: 10%;
  left: 10%;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  animation: techFloat 15s infinite linear;
}

.tech-sphere {
  top: 70%;
  right: 20%;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, #4ecdc4, #ff6b6b);
  border-radius: 50%;
  animation: techFloat 18s infinite linear reverse;
}

.tech-pyramid {
  bottom: 20%;
  left: 30%;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 20px solid #ff6b6b;
  animation: techFloat 20s infinite linear;
}

@keyframes techFloat {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(100px, -50px) rotate(90deg); }
  50% { transform: translate(-50px, -100px) rotate(180deg); }
  75% { transform: translate(-100px, 50px) rotate(270deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .cyber-title {
    font-size: 3.5rem;
  }
  
  .holographic-display {
    width: 700px;
    height: 700px;
  }
  
  .features-grid {
    gap: 30px;
  }
  
  .feature-card-3d {
    padding: 35px;
  }
}

@media (max-width: 992px) {
  .cyber-title {
    font-size: 3rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
  }
  
  .holographic-display {
    width: 600px;
    height: 600px;
  }
  
  .stats-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
  }
  
  .stat-number {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .futuristic-section {
    padding: 80px 0;
  }
  
  .cyber-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .title-container {
    margin-bottom: 60px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }
  
  .feature-card-3d {
    margin: 0 10px;
    padding: 30px;
    transform: none !important;
  }
  
  .feature-card-3d:hover {
    transform: translateY(-10px) !important;
  }
  
  .center-card {
    transform: none !important;
  }
  
  .center-card:hover {
    transform: translateY(-15px) !important;
  }
  
  .holographic-display {
    width: 400px;
    height: 400px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .stat-item {
    padding: 25px;
  }
  
  .deco-line {
    width: 60px;
  }
  
  .icon-orbit {
    width: 70px;
    height: 70px;
  }
  
  .icon-orbit i {
    font-size: 28px;
  }
  
  .feature-title-3d {
    font-size: 20px;
  }
  
  .feature-desc {
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .futuristic-section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .cyber-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }
  
  .title-container {
    margin-bottom: 50px;
  }
  
  .features-grid {
    gap: 15px;
    margin-bottom: 50px;
  }
  
  .feature-card-3d {
    margin: 0;
    padding: 25px;
    border-radius: 15px;
  }
  
  .holographic-display {
    width: 300px;
    height: 300px;
  }
  
  .icon-orbit {
    width: 60px;
    height: 60px;
  }
  
  .icon-orbit i {
    font-size: 24px;
  }
  
  .feature-title-3d {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .feature-desc {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .stats-container {
    gap: 15px;
    margin-top: 30px;
  }
  
  .stat-item {
    padding: 20px;
    border-radius: 12px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .stat-label {
    font-size: 14px;
  }
  
  .deco-line {
    width: 50px;
  }
  
  .title-decoration {
    gap: 15px;
  }
  
  .tech-elements {
    display: none;
  }
}

@media (max-width: 400px) {
  .cyber-title {
    font-size: 1.8rem;
  }
  
  .feature-card-3d {
    padding: 20px;
  }
  
  .icon-orbit {
    width: 50px;
    height: 50px;
  }
  
  .icon-orbit i {
    font-size: 20px;
  }
  
  .feature-title-3d {
    font-size: 16px;
  }
  
  .feature-desc {
    font-size: 13px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .holographic-display {
    width: 250px;
    height: 250px;
  }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
  .futuristic-section {
    padding: 40px 0;
  }
  
  .cyber-title {
    font-size: 2.5rem;
  }
  
  .title-container {
    margin-bottom: 40px;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .feature-card-3d {
    padding: 20px;
  }
  
  .holographic-display {
    width: 300px;
    height: 300px;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glitch-text {
    text-shadow: 
      0 0 3px rgba(255, 107, 107, 0.8),
      0 0 6px rgba(255, 107, 107, 0.6),
      0 0 12px rgba(255, 107, 107, 0.4);
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .feature-card-3d:hover {
    transform: translateY(-5px) !important;
  }
  
  .center-card:hover {
    transform: translateY(-8px) !important;
  }
  
  .stat-item:hover {
    transform: translateY(-5px);
  }
  
  .card-hologram,
  .card-glow {
    opacity: 0.5;
  }
}

/* Intersection Observer Animation */
.features-grid {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

.features-grid.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card-3d {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.feature-card-3d.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card-3d:nth-child(1) { transition-delay: 0.1s; }
.feature-card-3d:nth-child(2) { transition-delay: 0.2s; }
.feature-card-3d:nth-child(3) { transition-delay: 0.3s; }
