/* PHOTO EDITING SECTION STYLES */
.photo-editing-section {
  padding: 40px 20px;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Animated background particles */
.photo-editing-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 65, 108, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #00dbde, #fc00ff, #00dbde);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
  font-weight: 800;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to { background-position: 200% center; }
}

.section-subtitle {
  color: #a0a0e0;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* PHOTO EDITING CARD - MAGIC AI COLOR */
.photo-editing-card {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* GRADIENT BORDER - More magical */
.gradient-border {
  background: linear-gradient(45deg, 
    #00dbde, #fc00ff, #00dbde, #fc00ff,
    #00dbde, #fc00ff, #00dbde, #fc00ff);
  background-size: 300% 300%;
  padding: 4px;
  border-radius: 25px;
  animation: magicalFlow 6s ease infinite;
  position: relative;
  box-shadow: 
    0 0 50px rgba(0, 219, 222, 0.3),
    0 0 100px rgba(252, 0, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

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

/* MAGIC AI CARD BACKGROUND */
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: linear-gradient(145deg, 
    rgba(16, 14, 41, 0.95) 0%,
    rgba(48, 43, 99, 0.92) 50%,
    rgba(36, 36, 62, 0.95) 100%);
  border-radius: 22px;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* IMAGE CONTAINER */
.pe-image-container {
  position: relative;
  padding: 30px;
  z-index: 2;
}

.image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, 
    rgba(0, 219, 222, 0.2) 0%,
    rgba(252, 0, 255, 0.1) 50%,
    transparent 70%);
  border-radius: 20px;
  z-index: 1;
  filter: blur(20px);
}

.pe-main-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  display: block;
  margin: 0 auto;
  position: relative;
  z-index: 3;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 60px rgba(0, 219, 222, 0.2),
    0 0 100px rgba(252, 0, 255, 0.1);
  transition: all 0.5s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.pe-main-image:hover {
  transform: scale(1.03) rotateY(5deg);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(0, 219, 222, 0.3),
    0 0 120px rgba(252, 0, 255, 0.2);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(0, 219, 222, 0.1) 0%,
    rgba(252, 0, 255, 0.05) 50%,
    transparent 100%);
  border-radius: 20px;
  z-index: 2;
}

/* CONTENT AREA */
.pe-content {
  padding: 30px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.pe-title {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #00dbde, #ffffff, #fc00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 25px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* BADGES - Magical badges */
.pe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.badge {
  background: linear-gradient(135deg, #00dbde 0%, #fc00ff 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 219, 222, 0.3);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.badge::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: 0.5s;
}

.badge:hover::before {
  left: 100%;
}

.badge:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 10px 25px rgba(0, 219, 222, 0.4),
    0 0 30px rgba(252, 0, 255, 0.3);
}

/* FEATURES - Magical features */
.pe-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d0d0ff;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 5px currentColor);
}

/* FREE TAG - Magical glow */
.pe-free-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #00ff87 0%, #00ffcc 100%);
  color: #000;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 30px;
  box-shadow: 
    0 10px 30px rgba(0, 255, 135, 0.3),
    0 0 40px rgba(0, 255, 204, 0.2);
  position: relative;
  overflow: hidden;
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 10px 30px rgba(0, 255, 135, 0.3); }
  100% { box-shadow: 0 10px 40px rgba(0, 255, 135, 0.5), 0 0 50px rgba(0, 255, 204, 0.4); }
}

.free-icon {
  font-size: 1.4rem;
  animation: spin 3s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ACTION BUTTON - Magical button */
.pe-action-btn {
  background: linear-gradient(135deg, #ff0080 0%, #ff8c00 100%);
  color: white;
  border: none;
  padding: 20px 45px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  margin: 20px auto;
  transition: all 0.3s ease;
  box-shadow: 
    0 15px 35px rgba(255, 0, 128, 0.4),
    0 0 50px rgba(255, 140, 0, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pe-action-btn::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: 0.8s;
}

.pe-action-btn:hover::before {
  left: 100%;
}

.pe-action-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 
    0 25px 50px rgba(255, 0, 128, 0.6),
    0 0 80px rgba(255, 140, 0, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.2);
}

.pe-action-btn:active {
  transform: translateY(-4px) scale(1.02);
}

.btn-text {
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.pe-action-btn:hover .btn-icon {
  transform: translateX(10px) rotate(45deg);
}

/* NOTE */
.pe-note {
  color: #a0a0e0;
  font-size: 0.95rem;
  margin-top: 25px;
  font-style: italic;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
  letter-spacing: 0.5px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .pe-title {
    font-size: 1.8rem;
  }
  
  .pe-badges {
    gap: 8px;
  }
  
  .badge {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .pe-features {
    flex-direction: column;
    gap: 15px;
  }
  
  .feature {
    width: 100%;
    justify-content: center;
  }
  
  .pe-action-btn {
    padding: 16px 35px;
    font-size: 1rem;
  }
  
  .gradient-border {
    border-radius: 20px;
  }
  
  .pe-image-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .photo-editing-section {
    padding: 20px 15px;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .pe-title {
    font-size: 1.5rem;
  }
  
  .pe-action-btn {
    padding: 14px 30px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }
  
  .pe-free-tag {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
