/* 
 * Values Section - Premium Background with Subtle Parallax
 * Apple/Tesla-inspired design with micro-interactions
 */

.values-section {
  position: relative;
  overflow: hidden; 
  min-height: 80vh;
  padding-bottom: var(--space-16);
  box-shadow: 0 -10px 25px -5px rgba(7, 17, 41, 0.08);
}

/* Premium background container setup */
.values-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Background image with parallax effect */
.values-bg-image {
  position: absolute;
  top: -5%; /* Expanded slightly to allow parallax movement */
  left: 0;
  width: 100%;
  height: 110%; /* Expanded to allow movement */
  background-image: url('../images/Business\ men.webp');
  background-size: cover;
  background-position: center;
  transform: translateZ(0); /* Hardware acceleration */
  will-change: transform; /* Performance optimization */
  transition: transform 0.1s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

/* Premium gradient overlay with brand color */
.values-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(21, 56, 138, 0.82) 0%,
    rgba(22, 87, 51, 0.85) 40%,
    rgba(25, 104, 61, 0.87) 70%
  );
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 2;
}

/* Premium value cards grid with dynamic layout */
.values-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  perspective: 1000px;
}

/* Card base styling with premium aesthetics */
.value-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: var(--space-8);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  transform: translateZ(0);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 10px 30px -10px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(255, 255, 255, 0.05) inset;
  will-change: transform, box-shadow, background;
}

/* Dynamic hover state with 3D effect */
.value-card:hover {
  transform: translateY(-8px) scale(1.02) rotateX(2deg);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(255, 255, 255, 0.15) inset;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.15);
}

/* Dynamic background glow effect */
.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
    rgba(255, 255, 255, 0.15), 
    transparent 40%
  );
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  z-index: -1;
}

.value-card:hover::before {
  opacity: 1;
}

/* Premium accent border */
.value-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
  transition: width 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.value-card:hover::after {
  width: 100%;
}

/* Enhanced title with subtle light effect */
.values-title-effect {
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-4);
}

.values-title-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%; /* Center the line */
  transform: translateX(-50%); /* Perfect centering */
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Smooth animation curve */
}

/* Hover animation for the line */
.values-title-effect:hover::after {
  width: 100%; /* Expand to full width on hover */
  height: 3px; /* Slightly increase thickness */
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2)); /* Enhanced gradient */
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); /* Add subtle glow */
}

/* Premium value icons with sophisticated animations */
.value-icon {
  position: relative;
  background: linear-gradient(135deg, rgba(21, 56, 138, 0.4), rgba(25, 104, 61, 0.6));
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  box-shadow: 
    0 15px 35px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 0 4px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  z-index: 1;
}

/* Dynamic light ring effect */
.value-icon::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 50%;
  background: conic-gradient(
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent 45%
  );
  -webkit-mask: radial-gradient(circle, transparent 62%, black 63%);
  mask: radial-gradient(circle, transparent 62%, black 63%);
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.5s ease, transform 4s linear;
}

.value-card:hover .value-icon::before {
  opacity: 1;
  transform: rotate(360deg);
}

/* Premium icon styling */
.value-icon i {
  color: rgba(255, 255, 255, 1);
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateZ(0);
  will-change: transform;
  z-index: 2;
}

.value-card:hover .value-icon i {
  transform: scale(1.2);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)) brightness(1.1);
}

/* Icon inner glow effect */
.value-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
  opacity: 0.4;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.value-card:hover .value-icon::after {
  opacity: 0.7;
}

/* Enhanced typography for value cards */
.value-title {
  font-size: var(--font-size-h4);
  color: rgba(255, 255, 255, 1);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-bold);
  position: relative;
  display: inline-block;
  letter-spacing: 0.5px;
  transform: translateZ(0);
  transition: transform 0.3s ease, color 0.3s ease;
}

.value-card:hover .value-title {
  transform: translateX(3px);
  color: rgba(255, 255, 255, 1);
}

.value-text {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 0;
  transform: translateZ(0);
  transition: color 0.3s ease;
}

.value-card:hover .value-text {
  color: rgba(255, 255, 255, 0.95);
}

/* Enhanced values list */
.values-list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-2);
}

.values-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease, color 0.3s ease;
}

.values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.value-card:hover .values-list li::before {
  width: 18px;
  background-color: rgba(255, 255, 255, 0.8);
}

.value-card:hover .values-list li {
  transform: translateX(2px);
  color: rgba(255, 255, 255, 0.95);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .values-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    padding: 0 var(--space-4);
  }
}

@media (max-width: 768px) {
  .values-section {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  
  .values-container {
    grid-template-columns: 1fr;
    padding: 0;
    max-width: 100%;
  }
  
  .value-card {
    margin-bottom: var(--space-6);
    padding: var(--space-6);
  }
  
  .value-icon {
    width: 60px;
    height: 60px;
  }
}
