/* =========================================
   Enhanced Button Ripple Effects
========================================= */

button::before, 
a[class*="bg-blue"]::before, 
a[class*="bg-slate-900"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

button:active::before, 
a[class*="bg-blue"]:active::before, 
a[class*="bg-slate-900"]:active::before {
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% {
    width: 0;
    height: 0;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* =========================================
   Portfolio Stacking Effect
========================================= */

.portfolio-section {
  position: relative;
  will-change: transform, opacity;
  transform: translateZ(0);
  margin-bottom: 0 !important;
}

.portfolio-card {
  position: relative;
  will-change: transform, opacity;
  transform-origin: top center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.dark .portfolio-card {
  background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 100%);
}

#portfolio {
  position: relative;
  overflow: hidden;
}

#portfolio .space-y-20 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#portfolio .portfolio-card {
  overflow: hidden;
}

#portfolio .section-header {
  position: relative;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.98);
  backdrop-filter: blur(10px);
  padding: 1.5rem 0;
  margin: -1.5rem 0 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dark #portfolio .section-header {
  background: rgba(15, 23, 42, 0.98);
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
}

#portfolio .portfolio-card .grid {
  align-items: stretch;
}

#portfolio .portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 1024px) {
  #portfolio .portfolio-card img {
    height: auto;
    min-height: 300px;
  }
}

@media (max-width: 768px) {
  #portfolio .portfolio-card img {
    height: auto;
    min-height: auto;
  }
}
    opacity: 1;
  }
  100% {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* =========================================
   Floating Background Shapes
========================================= */

.floating-shape {
  position: fixed;
  border-radius: 50%;
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(40px);
  will-change: transform;
}

.floating-shape-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  top: 10%;
  left: -10%;
  animation: float1 20s ease-in-out infinite;
}

.floating-shape-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  bottom: 10%;
  right: -5%;
  animation: float2 25s ease-in-out infinite;
}

.floating-shape-3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  top: 50%;
  left: 50%;
  animation: float3 30s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-40px, 40px) scale(0.95);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15) rotate(45deg);
  }
}

/* =========================================
   Hexagonal Grid + Geometric Particles
========================================= */

#tech-grid-background {
  will-change: opacity;
  transition: opacity 0.3s ease;
}

#tech-canvas {
  opacity: 0.7;
}

.dark #tech-canvas {
  opacity: 0.5;
}
