/**
 * Ultra-Modern Portfolio Design
 * Futuristic, Interactive, Out-of-the-Box Styling
 */

/*--------------------------------------------------------------
# Custom Cursor System
--------------------------------------------------------------*/
@media (min-width: 769px) {
  * {
    cursor: none !important;
  }
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 2px solid #12d640;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background: rgba(18, 214, 64, 0.1);
  border-color: #35e888;
}

.custom-cursor.click {
  transform: scale(0.8);
}

.cursor-trail {
  position: fixed;
  width: 4px;
  height: 4px;
  background: #12d640;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

/*--------------------------------------------------------------
# Animated Blob Background
--------------------------------------------------------------*/
.animated-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  animation: blobMove 20s infinite ease-in-out;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #12d640, #8b5cf6);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  bottom: -150px;
  right: -150px;
  animation-delay: 5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #06b6d4, #12d640);
  top: 50%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes blobMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-100px, 100px) scale(0.9);
  }
}

/*--------------------------------------------------------------
# Particle System
--------------------------------------------------------------*/
.particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: #12d640;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-100px) translateX(50px);
    opacity: 0.8;
  }
}

/*--------------------------------------------------------------
# Neon Glow Effects
--------------------------------------------------------------*/
.neon-glow {
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px #12d640,
    0 0 35px #12d640,
    0 0 40px #12d640;
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    text-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor,
      0 0 15px currentColor,
      0 0 20px #12d640,
      0 0 35px #12d640,
      0 0 40px #12d640;
  }
  to {
    text-shadow: 
      0 0 2px currentColor,
      0 0 5px currentColor,
      0 0 8px currentColor,
      0 0 12px #12d640,
      0 0 18px #12d640,
      0 0 25px #12d640;
  }
}

.neon-border {
  border: 2px solid #12d640;
  box-shadow: 
    0 0 5px #12d640,
    0 0 10px #12d640,
    0 0 15px #12d640,
    inset 0 0 5px #12d640;
  animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% {
    box-shadow: 
      0 0 5px #12d640,
      0 0 10px #12d640,
      0 0 15px #12d640,
      inset 0 0 5px #12d640;
  }
  50% {
    box-shadow: 
      0 0 10px #12d640,
      0 0 20px #12d640,
      0 0 30px #12d640,
      inset 0 0 10px #12d640;
  }
}

/*--------------------------------------------------------------
# Holographic/Iridescent Effects
--------------------------------------------------------------*/
.holographic {
  background: linear-gradient(
    45deg,
    #12d640,
    #8b5cf6,
    #06b6d4,
    #12d640
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 3s ease infinite;
}

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

.holographic-border {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(#000, #000) padding-box,
              linear-gradient(45deg, #12d640, #8b5cf6, #06b6d4, #12d640) border-box;
  background-size: 300% 300%;
  animation: holographicShift 3s ease infinite;
}

/*--------------------------------------------------------------
# 3D Card Effects
--------------------------------------------------------------*/
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

.card-flip {
  transform-style: preserve-3d;
  transition: transform 0.6s;
  perspective: 1000px;
}

.card-flip:hover {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-flip-back {
  transform: rotateY(180deg);
}

/*--------------------------------------------------------------
# Floating Elements
--------------------------------------------------------------*/
.float-element {
  animation: floatUpDown 3s ease-in-out infinite;
}

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

/*--------------------------------------------------------------
# Glitch Effect
--------------------------------------------------------------*/
.glitch {
  position: relative;
  animation: glitch 0.3s infinite;
}

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

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 #8b5cf6;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 #12d640, 2px 2px #8b5cf6;
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@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-anim {
  0% {
    clip: rect(31px, 9999px, 94px, 0);
  }
  20% {
    clip: rect(54px, 9999px, 66px, 0);
  }
  40% {
    clip: rect(28px, 9999px, 98px, 0);
  }
  60% {
    clip: rect(67px, 9999px, 34px, 0);
  }
  80% {
    clip: rect(23px, 9999px, 89px, 0);
  }
  100% {
    clip: rect(76px, 9999px, 12px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(65px, 9999px, 100px, 0);
  }
  20% {
    clip: rect(12px, 9999px, 59px, 0);
  }
  40% {
    clip: rect(78px, 9999px, 34px, 0);
  }
  60% {
    clip: rect(45px, 9999px, 89px, 0);
  }
  80% {
    clip: rect(23px, 9999px, 67px, 0);
  }
  100% {
    clip: rect(90px, 9999px, 12px, 0);
  }
}

/*--------------------------------------------------------------
# Enhanced Background
--------------------------------------------------------------*/
body {
  background: #000000;
  position: relative;
  overflow-x: hidden;
}

body::before {
  background: radial-gradient(circle at 20% 50%, rgba(18, 214, 64, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 40% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%),
              #000000;
  animation: backgroundShift 20s ease infinite;
  z-index: -2;
}

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

/*--------------------------------------------------------------
# Magnetic Hover Effect
--------------------------------------------------------------*/
.magnetic {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/*--------------------------------------------------------------
# Button Ripple Effect
--------------------------------------------------------------*/
.ripple-button {
  position: relative;
  overflow: hidden;
}

.ripple-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(18, 214, 64, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.ripple-button:active::after {
  width: 300px;
  height: 300px;
}

/*--------------------------------------------------------------
# Scroll Reveal Animations
--------------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*--------------------------------------------------------------
# Section Title Enhancements
--------------------------------------------------------------*/
.section-title h2.holographic {
  background: linear-gradient(
    45deg,
    #12d640,
    #8b5cf6,
    #06b6d4,
    #12d640
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 3s ease infinite;
  font-weight: 600;
  letter-spacing: 2px;
}

/*--------------------------------------------------------------
# Navigation Enhancements
--------------------------------------------------------------*/
.nav-menu a {
  position: relative;
  transition: all 0.3s ease;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #12d640, #8b5cf6);
  transition: width 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #12d640;
  text-shadow: 0 0 10px rgba(18, 214, 64, 0.5);
}

/*--------------------------------------------------------------
# Enhanced Contact Info Boxes
--------------------------------------------------------------*/
.contact .info-box {
  transition: all 0.3s ease;
}

.contact .info-box:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 30px rgba(18, 214, 64, 0.3);
}

/*--------------------------------------------------------------
# Enhanced Services/Icon Boxes
--------------------------------------------------------------*/
.services .icon-box {
  transition: all 0.3s ease;
}

.services .icon-box:hover {
  transform: translateY(-10px) scale(1.02);
}

/*--------------------------------------------------------------
# Mobile Optimizations
--------------------------------------------------------------*/
@media (max-width: 768px) {
  * {
    cursor: auto !important;
  }
  
  .custom-cursor,
  .cursor-trail {
    display: none;
  }
  
  .animated-blob {
    filter: blur(60px);
    opacity: 0.2;
  }
  
  .neon-glow {
    text-shadow: 0 0 5px currentColor;
  }
}

/*--------------------------------------------------------------
# Reduced Motion Support
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .animated-blob,
  .particle,
  .float-element,
  .glitch,
  .neon-glow,
  .neon-border,
  .holographic {
    animation: none !important;
  }
  
  .card-3d:hover,
  .card-flip:hover {
    transform: none;
  }
}

