/* Dramatic Visual Effects - Immediately Visible */

/* Dramatic Hero Background with Moving Gradient */
.hero {
  background: linear-gradient(-45deg, #f0f9ff, #dbeafe, #bfdbfe, #93c5fd, #60a5fa);
  background-size: 600% 600%;
  animation: dramaticGradient 8s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes dramaticGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Floating Particles */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 2px, transparent 2px),
    radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.2) 1px, transparent 1px);
  background-size: 50px 50px, 80px 80px, 30px 30px;
  animation: floatParticles 20s linear infinite;
  pointer-events: none;
}

@keyframes floatParticles {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-100px) translateX(50px); }
}

/* Dramatic Profile Image */
.profile-img {
  animation: dramaticFloat 4s ease-in-out infinite;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.3));
}

.profile-img:hover {
  transform: scale(1.15) rotate(10deg);
  filter: drop-shadow(0 30px 60px rgba(37, 99, 235, 0.5));
}

@keyframes dramaticFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  25% { 
    transform: translateY(-15px) rotate(2deg); 
  }
  50% { 
    transform: translateY(-25px) rotate(0deg); 
  }
  75% { 
    transform: translateY(-15px) rotate(-2deg); 
  }
}

/* Enhanced Service Cards with Dramatic Effects */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.service-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #06b6d4, #10b981);
  background-size: 400% 400%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  animation: borderGlow 3s ease infinite;
  z-index: -1;
}

.service-card:hover::before {
  opacity: 1;
}

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

.service-card:hover {
  transform: translateY(-20px) scale(1.08) rotateX(5deg);
  box-shadow: 
    0 25px 50px rgba(37, 99, 235, 0.25),
    0 0 50px rgba(37, 99, 235, 0.1);
}

/* Pulsing Service Icons */
.service-icon {
  animation: iconPulse 3s ease-in-out infinite;
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  animation: iconSpin 0.8s ease-in-out;
  transform: scale(1.3);
}

@keyframes iconPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
  }
}

@keyframes iconSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1.3) rotate(360deg); }
}

/* Dramatic Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.5s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
}

/* Enhanced Nav Links */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dramatic Button Effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  border-radius: 50%;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(37, 99, 235, 0.4),
    0 0 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  color: white;
}

/* Certification Badges Animation */
.cert-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.cert-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(37, 99, 235, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.cert-item:hover::before {
  opacity: 1;
}

.cert-item:hover {
  transform: translateY(-15px) scale(1.1) rotate(3deg);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.cert-icon {
  transition: all 0.4s ease;
}

.cert-item:hover .cert-icon {
  transform: scale(1.4) rotate(360deg);
  color: #3b82f6;
}

/* Social Links Enhanced */
.social-link {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
  z-index: -1;
}

.social-link:hover::before {
  width: 120%;
  height: 120%;
}

.social-link:hover {
  transform: translateY(-8px) scale(1.3) rotate(15deg);
  color: white;
  border-color: transparent;
}

/* CTA Section Dramatic Background */
.cta-section {
  background: linear-gradient(-45deg, #1e3a8a, #1d4ed8, #2563eb, #3b82f6, #1e40af);
  background-size: 1000% 1000%;
  animation: dramaticCTAGradient 10s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes dramaticCTAGradient {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

.cta-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: backgroundFloat 25s linear infinite;
  pointer-events: none;
}

@keyframes backgroundFloat {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); }
}

/* Page Load Animation */
body {
  animation: pageLoad 1s ease-out;
}

@keyframes pageLoad {
  0% { 
    opacity: 0;
    transform: translateY(20px);
  }
  100% { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .service-card:hover {
    transform: translateY(-15px) scale(1.05);
  }
  
  .profile-img:hover {
    transform: scale(1.1) rotate(5deg);
  }
  
  .social-link:hover {
    transform: translateY(-5px) scale(1.2);
  }
}
