/* RevSlider Style - Advanced Effects */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f3a 50%, #2d3748 100%);
  perspective: 1000px;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide.prev {
  z-index: 1;
}

/* Parallax Layers */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 120%;
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.9), rgba(26, 31, 58, 0.9));
  transform: translateZ(-100px) scale(1.1);
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 40%, rgba(0, 188, 212, 0.1), transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(107, 70, 193, 0.1), transparent 50%);
  transform: translateZ(-50px);
  transition: transform 1s ease-out;
}

.slide-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(-25px);
}

/* Advanced Transition Effects with Distortion */
@keyframes slideInRight {
  0% {
    transform: translateX(100%) rotateY(45deg) scale(0.8) skewX(10deg);
    opacity: 0;
    filter: blur(10px) brightness(0.5) contrast(1.5);
  }
  30% {
    transform: translateX(20%) rotateY(10deg) scale(0.95) skewX(3deg);
    opacity: 0.7;
    filter: blur(5px) brightness(0.8) contrast(1.2);
  }
  70% {
    transform: translateX(-5%) rotateY(-2deg) scale(1.02) skewX(-1deg);
    opacity: 0.9;
    filter: blur(2px) brightness(1.1) contrast(1.1);
  }
  100% {
    transform: translateX(0) rotateY(0deg) scale(1) skewX(0deg);
    opacity: 1;
    filter: blur(0px) brightness(1) contrast(1);
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  to {
    transform: translateX(-100%) rotateY(-45deg) scale(0.8);
    opacity: 0;
    filter: blur(10px);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%) rotateY(-45deg) scale(0.8);
    opacity: 0;
    filter: blur(10px);
  }
  to {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  to {
    transform: translateX(100%) rotateY(45deg) scale(0.8);
    opacity: 0;
    filter: blur(10px);
  }
}

@keyframes zoomIn {
  0% {
    transform: scale(1.8) rotateZ(15deg) perspective(1000px) rotateX(45deg);
    opacity: 0;
    filter: blur(20px) hue-rotate(45deg) saturate(2);
  }
  25% {
    transform: scale(1.3) rotateZ(8deg) perspective(1000px) rotateX(25deg);
    opacity: 0.3;
    filter: blur(12px) hue-rotate(25deg) saturate(1.5);
  }
  60% {
    transform: scale(0.95) rotateZ(-3deg) perspective(1000px) rotateX(-5deg);
    opacity: 0.8;
    filter: blur(4px) hue-rotate(5deg) saturate(1.1);
  }
  85% {
    transform: scale(1.05) rotateZ(1deg) perspective(1000px) rotateX(2deg);
    opacity: 0.95;
    filter: blur(1px) hue-rotate(-2deg) saturate(1.05);
  }
  100% {
    transform: scale(1) rotateZ(0deg) perspective(1000px) rotateX(0deg);
    opacity: 1;
    filter: blur(0px) hue-rotate(0deg) saturate(1);
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1) rotateZ(0deg);
    opacity: 1;
    filter: blur(0px);
  }
  to {
    transform: scale(0.5) rotateZ(-10deg);
    opacity: 0;
    filter: blur(15px);
  }
}

@keyframes flipIn {
  from {
    transform: rotateY(90deg) scale(0.7);
    opacity: 0;
  }
  to {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes flipOut {
  from {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
  to {
    transform: rotateY(-90deg) scale(0.7);
    opacity: 0;
  }
}

/* Transition Classes with Advanced Easing */
.slide.transition-slide-right {
  animation: slideInRight 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

.slide.transition-slide-left {
  animation: slideInLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

.slide.transition-zoom {
  animation: zoomIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

.slide.transition-flip {
  animation: flipIn 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}

.slide.exit-slide-left {
  animation: slideOutLeft 1.4s cubic-bezier(0.6, 0, 0.735, 0.045) forwards;
}

.slide.exit-slide-right {
  animation: slideOutRight 1.4s cubic-bezier(0.6, 0, 0.735, 0.045) forwards;
}

.slide.exit-zoom {
  animation: zoomOut 1.3s cubic-bezier(0.6, 0, 0.735, 0.045) forwards;
}

.slide.exit-flip {
  animation: flipOut 1.2s cubic-bezier(0.6, 0, 0.735, 0.045) forwards;
}

/* Distortion Effects on Elements */
.slide.active .hero-title {
  animation: textReveal 1.2s ease-out 0.3s both;
}

.slide.active .hero-subtitle {
  animation: textReveal 1.2s ease-out 0.5s both;
}

.slide.active .hero-btn {
  animation: buttonReveal 1.2s ease-out 0.7s both;
}

@keyframes textReveal {
  0% {
    transform: translateY(50px) rotateX(45deg);
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    transform: translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes buttonReveal {
  0% {
    transform: translateY(30px) scale(0.8) rotateZ(-5deg);
    opacity: 0;
    filter: blur(5px);
  }
  70% {
    transform: translateY(-5px) scale(1.05) rotateZ(2deg);
    opacity: 0.9;
    filter: blur(1px);
  }
  100% {
    transform: translateY(0) scale(1) rotateZ(0deg);
    opacity: 1;
    filter: blur(0px);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 2rem;
}

.hero-text {
  text-align: left;
  animation: slideInLeft 1s ease-out 0.5s both;
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
}

.slide.active .hero-title::before {
  left: 100%;
}

.gradient-text-cyan {
  background: linear-gradient(45deg, #00bcd4, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(45deg, #6b46c1, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald {
  background: linear-gradient(45deg, #10b981, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-warm {
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
}

.btn-cyan {
  background: linear-gradient(45deg, #00bcd4, #10b981);
  box-shadow: 0 10px 30px rgba(0, 188, 212, 0.3);
}

.btn-purple {
  background: linear-gradient(45deg, #6b46c1, #8b5cf6);
  box-shadow: 0 10px 30px rgba(107, 70, 193, 0.3);
}

.btn-emerald {
  background: linear-gradient(45deg, #10b981, #059669);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-warm {
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4);
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideInRight 1s ease-out 0.7s both;
  position: relative;
  z-index: 10;
  transform-style: preserve-3d;
  transition: all 0.3s ease;
}

.visual-placeholder {
  width: 400px;
  height: 300px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 188, 212, 0.1), rgba(107, 70, 193, 0.1));
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
  animation: float 6s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.visual-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 188, 212, 0.1), transparent, rgba(107, 70, 193, 0.1), transparent);
  animation: rotate 8s linear infinite;
  opacity: 0.7;
}

.visual-placeholder::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.9), rgba(26, 31, 58, 0.9));
  z-index: -1;
}

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

.web-visual::before { content: "🌐"; }
.ai-visual::before { content: "🤖"; }
.marketing-visual::before { content: "📈"; }
.video-visual::before { content: "🎬"; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.slider-dots {
  display: flex;
  gap: 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #00bcd4;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(0, 188, 212, 0.5);
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav:hover {
  background: rgba(0, 188, 212, 0.3);
  border-color: #00bcd4;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 2rem;
}

.slider-nav.next {
  right: 2rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 0 1.5rem;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .visual-placeholder {
    width: 100%;
    max-width: 350px;
    height: 250px;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .visual-placeholder {
    width: 100%;
    max-width: 280px;
    height: 200px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .hero-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .slider-nav.prev {
    left: 0.5rem;
  }
  
  .slider-nav.next {
    right: 0.5rem;
  }

  .slider-dots {
    bottom: 1.5rem;
    gap: 0.5rem;
  }

  .slider-dot {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 90px 0 30px;
  }

  .hero-grid {
    padding: 0 0.75rem;
    gap: 1rem;
  }

  .visual-placeholder {
    max-width: 240px;
    height: 180px;
  }

  .hero-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  .hero-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .slider-nav {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .slider-dots {
    bottom: 1rem;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
  }
}
