/* Why Work With Me section styling with modern tech aesthetic */

.why-work-with-me-section {
  padding: 5rem 1rem;
  background-color: var(--bs-dark-bg);
  position: relative;
  overflow: hidden;
}

/* Add tech-inspired background elements */
.why-work-with-me-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    url('../assets/why-me-bg.svg'),
    url('../assets/spots-left.svg'),
    radial-gradient(circle at 80% 20%, rgba(56, 214, 174, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(91, 152, 255, 0.08) 0%, transparent 50%);
  background-position: center center, -10% center, center center, center center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: contain, 40%, 100%, 100%;
  opacity: 0.6;
  z-index: 0;
}

/* Tech-inspired heading with gradient */
.why-work-with-me-section .section-title {
  background: linear-gradient(90deg, #5B98FF 0%, #38D6AE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.why-work-with-me-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin: 0 auto 3rem auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Enhanced card design */
.why-me-card {
  background-color: var(--bs-light-bg);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.why-me-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--bs-accent) 0%, var(--bs-secondary-accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-me-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
  background-color: rgba(28, 31, 38, 0.95);
}

.why-me-card:hover::before {
  opacity: 1;
}

/* Iconography with tech look */
.why-me-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(91, 152, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.why-me-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 152, 255, 0.2) 0%, rgba(56, 214, 174, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-me-card:hover .why-me-icon::after {
  opacity: 1;
}

.why-me-icon i {
  font-size: 1.8rem;
  color: var(--bs-accent);
  background: linear-gradient(90deg, var(--bs-accent) 0%, var(--bs-secondary-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  z-index: 1;
}

/* Card headings */
.why-me-card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
}

/* Card text */
.why-me-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.6;
}

/* Tech-inspired circuit decoration for cards */
.why-me-card::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,10 L70,10 L70,70 L10,70 Z' stroke='rgba(91, 152, 255, 0.1)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3Ccircle cx='70' cy='10' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3Ccircle cx='70' cy='70' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3Ccircle cx='10' cy='70' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3Cpath d='M10,30 L30,30 L30,50 L50,50 L50,70' stroke='rgba(91, 152, 255, 0.1)' stroke-width='1.5' fill='none'/%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3Ccircle cx='30' cy='50' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(91, 152, 255, 0.2)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.why-me-card:hover::after {
  opacity: 0.2;
}

/* Enhanced CTA button */
.why-me-cta-container {
  text-align: center;
  margin-top: 4rem;
  position: relative;
  z-index: 2;
}

.why-me-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(90deg, var(--bs-accent) 0%, var(--bs-secondary-accent) 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
}

.why-me-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  transition: left 0.7s ease;
}

.why-me-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(91, 152, 255, 0.3);
  color: white;
}

.why-me-cta:hover::before {
  left: 100%;
}

.why-me-cta i {
  font-size: 1.2rem;
}

/* Ripple effect for CTA button */
.cta-ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Enhanced section header with tech-inspired decoration */
.section-header {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
  z-index: 1;
}

.title-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.5rem;
}

.title-decoration .line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(91, 152, 255, 0.5) 0%, rgba(56, 214, 174, 0.5) 100%);
  position: relative;
}

.title-decoration .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--bs-accent) 0%, var(--bs-secondary-accent) 100%);
  position: relative;
}

.title-decoration .dot::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: rgba(91, 152, 255, 0.2);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

/* Staggered entrance animation for cards */
@media (min-width: 768px) {
  .why-me-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .why-me-card.animate {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger the animation timing */
  .why-me-card:nth-child(1) { transition-delay: 0.1s; }
  .why-me-card:nth-child(2) { transition-delay: 0.2s; }
  .why-me-card:nth-child(3) { transition-delay: 0.3s; }
  .why-me-card:nth-child(4) { transition-delay: 0.15s; }
  .why-me-card:nth-child(5) { transition-delay: 0.25s; }
  .why-me-card:nth-child(6) { transition-delay: 0.35s; }
}

/* Responsive styles */
@media (max-width: 991px) {
  .why-work-with-me-section {
    padding: 4rem 1rem;
  }
  
  .why-work-with-me-section::before {
    background-size: 150%, 40%, 100%, 100%;
    opacity: 0.4;
  }
  
  .why-me-card {
    padding: 1.5rem;
  }
  
  .why-me-icon {
    width: 50px;
    height: 50px;
  }
  
  .why-me-icon i {
    font-size: 1.5rem;
  }
  
  .why-me-card h4 {
    font-size: 1.2rem;
  }
}

@media (max-width: 767px) {
  .why-work-with-me-section .section-title {
    font-size: 1.8rem;
  }
  
  .why-me-card::after {
    width: 60px;
    height: 60px;
  }
  
  .why-me-cta {
    padding: 0.8rem 1.5rem;
  }
  
  .why-work-with-me-section::before {
    background-size: 200%, 60%, 100%, 100%;
    opacity: 0.3;
  }
}
