/* ================================
   LIQUID NEON CURSOR STYLES
================================ */

.liquid-cursor {
  position: fixed;
  width: 30px;
  height: 30px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 10000;
  filter: blur(2px);
}

.neon-core {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, 
    rgba(0, 212, 255, 1) 0%,
    rgba(0, 123, 255, 0.8) 30%,
    rgba(108, 99, 255, 0.4) 70%,
    transparent 100%
  );
  border-radius: 50%;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.8),
    0 0 40px rgba(0, 123, 255, 0.6),
    0 0 60px rgba(108, 99, 255, 0.4);
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.liquid-cursor.cursor-hover .neon-core {
  animation: neonPulseIntense 1s ease-in-out infinite;
  box-shadow: 
    0 0 30px rgba(0, 212, 255, 1),
    0 0 60px rgba(0, 123, 255, 0.8),
    0 0 90px rgba(108, 99, 255, 0.6);
}

@keyframes neonPulseIntense {
  0%, 100% {
    transform: scale(1.5);
  }
  50% {
    transform: scale(2);
  }
}

/* Traînée liquide */
.liquid-trail-dot {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, 
    rgba(0, 212, 255, 0.6) 0%,
    rgba(0, 123, 255, 0.4) 50%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  filter: blur(3px);
}

/* Bulles liquides */
.liquid-bubble {
  position: fixed;
  background: radial-gradient(circle at 30% 30%, 
    rgba(0, 212, 255, 0.8),
    rgba(0, 123, 255, 0.6),
    rgba(108, 99, 255, 0.4)
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  filter: blur(2px);
  animation: bubbleFloat 1.5s ease-out forwards;
  box-shadow: 
    inset 0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(0, 212, 255, 0.5);
}

@keyframes bubbleFloat {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -150%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -200%) scale(0.5);
    opacity: 0;
  }
}

/* Particules d'explosion au clic */
.explosion-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, 
    rgba(0, 212, 255, 1),
    rgba(108, 99, 255, 0.8)
  );
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  animation: explode 1s ease-out forwards;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

@keyframes explode {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(0);
    opacity: 0;
  }
}

/* ================================
   FOOTER MODERNE
================================ */

.footer {
  background: linear-gradient(180deg, 
    rgba(10, 14, 39, 0.95) 0%,
    rgba(6, 8, 24, 1) 100%
  );
  border-top: 1px solid rgba(0, 123, 255, 0.2);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent,
    rgba(0, 212, 255, 0.5),
    transparent
  );
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: 2px solid rgba(0, 123, 255, 0.3);
  margin-bottom: 0.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00d4ff, #007bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 25, 50, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 123, 255, 0.5);
  color: #00d4ff;
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, #007bff, transparent);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
}

.footer-column a::before {
  content: '→';
  position: absolute;
  left: -20px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #00d4ff;
}

.footer-column a:hover {
  color: #00d4ff;
  padding-left: 20px;
}

.footer-column a:hover::before {
  opacity: 1;
  left: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ================================
   ANIMATED GRADIENT BACKGROUND
================================ */

.animated-gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: linear-gradient(
    45deg,
    #0a0e27 0%,
    #1a1f3a 25%,
    #0a0e27 50%,
    #151932 75%,
    #0a0e27 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.animated-gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(0, 123, 255, 0.15) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 80% 80%,
    rgba(108, 99, 255, 0.15) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 40% 20%,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 50%
  );
  animation: gradientMove 20s ease infinite;
}

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

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

/* ================================
   SCROLL REVEAL ANIMATIONS
================================ */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Animations différentes selon le type d'élément */
.hero-content.reveal {
  transform: translateX(-50px);
}

.hero-image.reveal {
  transform: translateX(50px);
}

.card.reveal,
.project-card.reveal,
.service-card.reveal {
  transform: translateY(30px) scale(0.95);
}

.card.reveal-visible,
.project-card.reveal-visible,
.service-card.reveal-visible {
  transform: translateY(0) scale(1);
}

/* ================================
   GLASSMORPHISM EFFECTS
================================ */

.glass-effect {
  background: rgba(21, 25, 50, 0.7) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Appliquer l'effet aux cards */
.card,
.project-card,
.service-card,
.timeline-item {
  background: rgba(21, 25, 50, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
}

/* ================================
   ENHANCED HOVER EFFECTS
================================ */

.card:hover,
.project-card:hover,
.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 123, 255, 0.3),
    inset 0 0 20px rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.5);
  background: rgba(21, 25, 50, 0.8);
}

.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(0, 123, 255, 0.4),
    0 0 30px rgba(0, 123, 255, 0.3);
}

/* ================================
   MAGNETIC BUTTON EFFECT
================================ */

.btn,
.navbar-link,
.social-link {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ================================
   TEXT GRADIENT ANIMATIONS
================================ */

.hero-title .highlight {
  background: linear-gradient(
    135deg,
    #007bff,
    #6c63ff,
    #00d4ff,
    #007bff
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 5s ease infinite;
}

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

/* ================================
   FLOATING ANIMATION
================================ */

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

.hero-image {
  animation: float 6s ease-in-out infinite;
}

/* ================================
   SKILL TAGS ENHANCED
================================ */

.skill-tag {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.skill-tag::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.5s ease;
}

.skill-tag:hover::before {
  left: 100%;
}

.skill-tag:hover {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

/* ================================
   TIMELINE ENHANCEMENTS
================================ */

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 123, 255, 0.5),
    transparent
  );
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: -36px;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #6c63ff);
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 123, 255, 1);
    transform: scale(1.1);
  }
}

/* ================================
   STATUS BADGE ANIMATION
================================ */

.status-badge {
  position: relative;
  overflow: hidden;
}

.status-dot {
  animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.3);
  }
}

/* ================================
   NAVBAR ENHANCEMENTS
================================ */

.navbar {
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 4px 30px rgba(0, 123, 255, 0.2);
}

.navbar-link {
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #007bff, #6c63ff);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.navbar-link:hover::after,
.navbar-link.active::after {
  width: 80%;
}

/* ================================
   SOCIAL LINKS ENHANCEMENTS
================================ */

.social-link {
  position: relative;
  transition: all 0.3s ease;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #6c63ff);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover::before {
  opacity: 0.3;
}

.social-link:hover {
  transform: translateY(-5px) scale(1.2);
  filter: drop-shadow(0 5px 15px rgba(0, 123, 255, 0.5));
}

/* ================================
   PROJECT IMAGE EFFECTS
================================ */

.project-image {
  position: relative;
  overflow: hidden;
}

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

.project-card:hover .project-image::before {
  left: 100%;
}

.project-image img {
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

/* ================================
   RESPONSIVE - Désactiver certains effets sur mobile
================================ */

@media (max-width: 768px) {
  .custom-cursor,
  .custom-cursor-inner,
  .cursor-particle {
    display: none;
  }
  
  .animated-gradient-bg {
    animation-duration: 20s;
  }
  
  .card:hover,
  .project-card:hover,
  .service-card:hover {
    transform: none;
  }
}

/* ================================
   LOADING ANIMATION
================================ */

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  background-size: 1000px 100%;
}

/* ================================
   SCROLL PROGRESS BAR
================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #6c63ff, #00d4ff);
  z-index: 10000;
  transition: width 0.1s ease;
}
