/* Futuristic Animations for HOKOHOST Theme */

/* Base Animation Properties */
:root {
  --primary-color: #f44336;
  --primary-glow: rgba(244, 67, 54, 0.6);
  --secondary-glow: rgba(0, 186, 255, 0.6);
  --neon-blue: #00baff;
  --neon-purple: #8a2be2;
  --transition-speed: 0.3s;
}

/* Floating Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Glow Pulse Animation */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-glow), 0 0 30px var(--secondary-glow);
  }
  100% {
    box-shadow: 0 0 5px var(--primary-glow);
  }
}

/* Text Gradient Animation */
@keyframes textGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Typing Cursor Animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Data Flow Animation */
@keyframes dataFlow {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}

/* Rotating Border Animation */
@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Rotate Animation */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Float Icons Animation */
@keyframes floatIcons {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Number Counter Animation */
@keyframes countUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Futuristic Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #212121 0%, #000000 100%);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 80px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, rgba(0,0,0,0.8) 0%, 
    rgba(0,0,0,0.4) 50%, 
    rgba(0,0,0,0.8) 100%);
  z-index: -1;
}

/* Futuristic Shapes */
.futuristic-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 186, 255, 0.05);
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation: float 15s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: 20%;
  animation: float 12s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 30%;
  right: -50px;
  animation: float 10s ease-in-out infinite;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(0, 186, 255, 0.5);
  animation: glowPulse 3s infinite;
  width: auto; /* Let content determine width */
  max-width: 180px; /* Limit maximum width */
  text-align: center; /* Ensure text is centered in the badge */
}

.accent {
  color: var(--neon-blue);
}

.hero-content h1 {
  animation: textGradient 8s ease infinite;
  background: linear-gradient(90deg, #fff, var(--neon-blue), #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(0, 186, 255, 0.3);
}

.hero-content p {
  position: relative;
  display: inline-block;
  max-width: 600px;
  color: #b0b0b0;
}

.hero-content p::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 15px;
  background-color: var(--neon-blue);
  animation: blink 1s infinite;
}

.typing-done::after {
  display: none;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.hero-buttons .btn {
  min-width: 160px;
  text-align: center;
  justify-content: center;
  display: flex;
  align-items: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  justify-content: flex-start;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 28px;
  font-weight: bold;
  color: var(--neon-blue);
  animation: countUp 1s ease forwards;
}

.stat-label {
  font-size: 14px;
  color: #888;
}

/* Hero Image */
.hero-image {
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(0, 186, 255, 0.3);
  border-radius: 50%;
  top: 0;
  left: 0;
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid rgba(0, 186, 255, 0.3);
  border-radius: 50%;
  animation: rotateBorder 20s linear infinite;
  pointer-events: none;
}

.hero-image img {
  animation: glowPulse 3s infinite;
  transition: transform 0.5s ease;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 186, 255, 0.3);
}

/* Floating Tech Icons */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-icons i {
  position: absolute;
  color: rgba(255, 255, 255, 0.7);
  font-size: 24px;
  animation: floatIcons 5s ease-in-out infinite;
}

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

.floating-icons i:nth-child(2) {
  top: 70%;
  left: 20%;
  animation-delay: 1s;
}

.floating-icons i:nth-child(3) {
  top: 30%;
  right: 15%;
  animation-delay: 2s;
}

.floating-icons i:nth-child(4) {
  top: 60%;
  right: 10%;
  animation-delay: 1.5s;
}

.floating-icons i:nth-child(5) {
  top: 80%;
  left: 50%;
  animation-delay: 0.5s;
}

/* Futuristic Buttons */
.btn-primary, .btn-secondary {
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-primary::before, .btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  z-index: -1;
  transition: all 0.6s ease;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
  left: 100%;
}

.btn-primary:hover, .btn-secondary:hover {
  box-shadow: 0 0 15px var(--neon-blue);
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary-color), #d32f2f);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--neon-blue);
  color: var(--neon-blue);
}

.btn-secondary:hover {
  background: rgba(0, 186, 255, 0.1);
}

.btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px);
}

/* Futuristic World Map */
.world-map-svg {
  overflow: visible;
}

.continent {
  transition: all 0.5s ease;
  fill: #444;
}

.continent:hover {
  fill: #555;
  filter: drop-shadow(0 0 8px var(--neon-blue));
}

.highlight-region {
  animation: glowPulse 2s infinite;
}

/* Futuristic Datacenter Map */
.datacenter-map {
  position: relative;
}

.datacenter-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--neon-blue);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 2s infinite;
  z-index: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.datacenter-dot:hover {
  width: 12px;
  height: 12px;
  background-color: var(--primary-color);
}

.datacenter-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: transparent;
  border: 1px solid var(--neon-blue);
  border-radius: 50%;
  animation: pulseOut 2s infinite;
  opacity: 0;
}

@keyframes pulseOut {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

/* Futuristic Product Cards */
.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #333 0%, #444 100%);
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--primary-color), 
    var(--neon-blue), 
    var(--neon-purple));
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.product-card:hover::before {
  transform: translateX(0);
}

.product-card:hover {
  background: linear-gradient(135deg, #444 0%, #333 100%);
  border-color: rgba(0, 186, 255, 0.2);
}

.product-icon {
  transition: all 0.3s ease;
}

.product-card:hover .product-icon {
  transform: scale(1.1) rotate(10deg);
  color: var(--neon-blue);
}

/* Remove colorful top line from featured card */
.product-card.plan-card.featured::before {
  display: none !important;
  content: none !important;
  background: transparent !important;
}

/* Feature Item Animation */
.feature-item {
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.feature-item::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 186, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  z-index: -1;
  transform: scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.feature-item:hover::after {
  opacity: 1;
  transform: scale(1);
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  color: var(--neon-blue);
  transform: scale(1.1);
}

/* Data Grid Background Animation */
.section {
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, transparent 9px, 
      rgba(0, 186, 255, 0.05) 10px, 
      transparent 10px),
    linear-gradient(90deg, transparent 9px, 
      rgba(0, 186, 255, 0.05) 10px, 
      transparent 10px);
  background-size: 10px 10px;
  background-position: center;
  pointer-events: none;
  z-index: -1;
}

/* Neon Text Animation */
.neon-text {
  color: #fff;
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.5),
    0 0 10px rgba(0, 186, 255, 0.5),
    0 0 15px rgba(0, 186, 255, 0.4),
    0 0 20px rgba(0, 186, 255, 0.3),
    0 0 30px rgba(0, 186, 255, 0.2);
}

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

.glitch {
  position: relative;
}

.glitch:hover {
  animation: glitch 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

/* Futuristic Logo Animation */
.logo {
  position: relative;
  transition: all 0.3s ease;
  text-shadow: 0 0 10px rgba(0, 186, 255, 0.3);
}

.logo:hover {
  color: var(--neon-blue);
  text-shadow: 
    0 0 5px rgba(0, 186, 255, 0.5),
    0 0 10px rgba(0, 186, 255, 0.4);
}

/* CTA Animation */
.cta {
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, 
    rgba(0, 186, 255, 0.05) 25%, 
    transparent 25%, 
    transparent 50%, 
    rgba(0, 186, 255, 0.05) 50%, 
    rgba(0, 186, 255, 0.05) 75%, 
    transparent 75%, 
    transparent);
  background-size: 20px 20px;
  animation: dataFlow 15s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

/* Testimonial Animation */
.testimonial {
  transition: all 0.4s ease;
}

.testimonial:hover {
  box-shadow: 0 0 20px rgba(0, 186, 255, 0.2);
}

/* Nav menu animation */
.menu-link {
  position: relative;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--neon-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.menu-link:hover::after {
  width: 80%;
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Slide In Animation for sections */
.animated-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animated-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
  .hero {
    padding: 30px 20px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-item {
    flex: 1 0 30%;
  }
  
  .floating-icons {
    display: none;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .shape-1, .shape-2, .shape-3 {
    display: none;
  }
  
  /* Adjust hero badge on mobile */
  .hero-badge {
    max-width: 160px;
    font-size: 12px;
  }
  
  /* Make hero buttons equal width on mobile */
  .hero-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
  }
  
  .hero-buttons .btn {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    white-space: nowrap;
    font-size: 14px;
  }
  
  .hero-buttons .btn i {
    font-size: 12px;
  }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hero-buttons .btn {
    padding: 10px 12px;
  }
} 