/* ========================================
   Safe Edges Testimonials Section
   Compatible with HackVitraSec CSS Variables
   ======================================== */

/* Section Container */
.se-testimonials-section {
  padding: 70px 20px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

/* Background Effects */
.se-testimonials-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(110, 85, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: se-float 15s ease-in-out infinite;
}

.se-testimonials-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(30, 193, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  animation: se-float 12s ease-in-out infinite reverse;
}

@keyframes se-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
}

/* Header */
.se-testimonials-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

.se-testimonials-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--title-color, #fff);
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  font-family: var(--title-font, 'Raleway', sans-serif);
}

.se-testimonials-title .se-highlight {
  background: linear-gradient(90deg, var(--neon-blue, #1EC1FF), var(--neon-green, #00FF9C));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.se-testimonials-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted, #9aa4b2);
  margin: 0 0 24px 0;
  font-weight: 400;
}

/* Index Counter */
.se-index-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted, #9aa4b2);
  margin-bottom: 8px;
}

.se-index-counter span {
  opacity: 0.7;
}

/* Progress Bar */
.se-progress-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
}

.se-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue, #1EC1FF), var(--neon-green, #00FF9C));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Carousel Container */
.se-carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

/* Carousel Wrapper */
.se-carousel-wrapper {
  overflow: hidden;
  border-radius: var(--radius, 16px);
}

.se-carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Testimonial Card */
.se-testimonial-card {
  flex: 0 0 100%;
  padding: 40px;
  background: var(--glass, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius, 16px);
  position: relative;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  transition: 0.35s ease;
}

.se-testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius, 16px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(30, 193, 255, 0.2), transparent, rgba(110, 85, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Quote Icon */
.se-quote-icon {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 8rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* Card Content */
.se-card-content {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

/* Avatar */
.se-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  position: relative;
  overflow: hidden;
}

.se-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.se-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--hv-primary, #0B78D1), var(--neon-purple, #6E55FF));
  border-radius: 50%;
  border: 3px solid var(--dark-surface, #0f1116);
  display: flex;
  align-items: center;
  justify-content: center;
}

.se-avatar-badge svg {
  width: 12px;
  height: 12px;
  fill: white;
}

/* Card Info */
.se-card-info {
  flex: 1;
  min-width: 0;
}

/* Quote Text */
.se-quote-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--dark-text, #e8f1ff);
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 20px 0;
  font-weight: 400;
  opacity: 0.95;
}

/* Author Info */
.se-author-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.se-author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neon-blue, #1EC1FF);
  margin: 0;
  font-family: var(--title-font, 'Raleway', sans-serif);
}

/* Star Rating */
.se-star-rating {
  display: flex;
  gap: 3px;
}

.se-star {
  width: 18px;
  height: 18px;
  fill: var(--hv-gold, #F6C343);
}

/* Navigation */
.se-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.se-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--muted, #9aa4b2);
}

.se-nav-btn:hover {
  border-color: var(--neon-blue, #1EC1FF);
  color: var(--neon-blue, #1EC1FF);
  background: rgba(30, 193, 255, 0.1);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(30, 193, 255, 0.3);
}

.se-nav-btn:active {
  transform: scale(0.95);
}

.se-nav-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Dots */
.se-carousel-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.se-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.se-dot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.2);
}

.se-dot.active {
  background: linear-gradient(90deg, var(--neon-blue, #1EC1FF), var(--neon-green, #00FF9C));
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(30, 193, 255, 0.5);
}

/* Hover Effects - Matching HackVitraSec Style */
.se-testimonial-card:hover {
  border-color: var(--neon-blue, #1EC1FF);
  box-shadow: 0 0 25px rgba(30, 193, 255, 0.15);
}

/* Dark Theme Glow Animation (matching your existing style) */
body.dark-theme .se-testimonials-title,
body.dark-theme .se-author-name {
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .se-testimonials-section {
    padding: 60px 16px;
  }
 .se-testimonials-title{
   font-size: 1.4rem; 
  }
  .se-testimonial-card {
    padding: 28px 24px;
  }

  .se-card-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .se-author-info {
    align-items: center;
  }

  .se-quote-icon {
    top: 20px;
    right: 24px;
    font-size: 5rem;
  }

  .se-carousel-dots {
    gap: 8px;
  }

  .se-dot {
    width: 6px;
    height: 6px;
  }

  .se-dot.active {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .se-nav-btn {
    width: 40px;
    height: 40px;
  }

  .se-carousel-nav {
    gap: 12px;
  }
  
  .se-testimonials-title {
    font-size: 1.8rem;
  }
}