 /* Added a spacer div to make scrolling necessary for the demo */
 .spacer {
     height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2rem;
     text-align: center;
     background-color: #e9ecef;
 }

 .cv-core-values-section {
     background: rgba(255, 255, 255, 0.966);
     background-image: url('../images/core-values-bg.webp');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     background-attachment: fixed;
     /* ✅ This makes it fixed */
     margin: 0 auto;
     padding: 6rem 2rem;
     position: relative;
     overflow: hidden;
     z-index: 1;
 }

 .cv-core-values-section::before {
     content: '';
     position: absolute;
     inset: 0;
     background: rgba(255, 255, 255, 0.6);
     /* Softens the background */
     z-index: 0;
 }

 .cv-core-values-section>* {
     position: relative;
     z-index: 1;
 }


 .cv-section-header {
     text-align: center;
     margin-bottom: 4rem;
 }

 .cv-section-title {
     font-size: 3.5rem;
     font-weight: 700;
     background: linear-gradient(135deg, #28a745 0%, #ffd700 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 1rem;
     letter-spacing: -0.02em;
 }

 .cv-section-subtitle {
     font-size: 1.25rem;
     color: #2c2d2f;
     font-weight: 400;
     max-width: 600px;
     margin: 0 auto;
     line-height: 1.6;
 }

 .cv-values-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 2rem;
     margin-top: 4rem;
 }

 /* --- MODIFIED CSS RULE --- */
 .cv-value-card {
     background: rgba(255, 255, 255, 0.95);
     border-radius: 20px;
     padding: 4rem;
     text-align: center;
     position: relative;
     overflow: hidden;
     backdrop-filter: blur(10px);
     border: 1px solid rgba(255, 255, 255, 0.2);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
     transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);

     /* THIS IS THE KEY: Hide the card before animation */
     opacity: 0;
 }

 /* This rule ensures the card stays visible after the animation ends */
 .cv-value-card.animate__animated {
     opacity: 1;
 }

 .cv-value-card:hover {
     transform: translateY(-10px) scale(1.02);
     box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
 }

 .cv-value-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 4px;
     background: linear-gradient(90deg, #28a745 0%, #ffd700 100%);
     transform: scaleX(0);
     transition: transform 0.6s ease;
 }

 .cv-value-card:hover::before {
     transform: scaleX(1);
 }

 .cv-value-icon {
     margin: 0 auto 1.5rem;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 2rem;
     color: #28a745;
     position: relative;
     overflow: hidden;
 }

 .cv-value-icon::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 0;
     height: 0;
     background: rgba(255, 255, 255, 0.2);
     border-radius: 50%;
     transform: translate(-50%, -50%);
     transition: all 0.6s ease;
 }

 .cv-value-card:hover .cv-value-icon::before {
     width: 100%;
     height: 100%;
 }

 .cv-value-title {
     font-size: 1.5rem;
     font-weight: 600;
     color: #2c3e50;
     margin-bottom: 1rem;
     letter-spacing: -0.01em;
 }

 .cv-value-description {
     color: #6c757d;
     line-height: 1.6;
     font-size: 1rem;
     margin-bottom: 1.5rem;
 }

 .cv-value-highlight {
     font-weight: 600;
     color: #28a745;
     font-size: 0.9rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 /* Floating elements and responsive rules are unchanged */
 .cv-floating-element {
     position: absolute;
     opacity: 0.1;
     pointer-events: none;
     animation: cv-float 6s ease-in-out infinite;
 }

 .cv-floating-element:nth-child(1) {
     top: 10%;
     left: 10%;
     animation-delay: 0s;
 }

 .cv-floating-element:nth-child(2) {
     top: 20%;
     right: 15%;
     animation-delay: 2s;
 }

 .cv-floating-element:nth-child(3) {
     bottom: 15%;
     left: 20%;
     animation-delay: 4s;
 }

 @keyframes cv-float {

     0%,
     100% {
         transform: translateY(0px) rotate(0deg);
     }

     50% {
         transform: translateY(-20px) rotate(180deg);
     }
 }

 @media (max-width: 768px) {
     .cv-section-title {
         font-size: 2.5rem;
     }

     .cv-core-values-section {
         padding: 4rem 1rem;
         background-attachment: scroll;
         /* disable fixed on mobile */
     }

     .cv-values-grid {
         grid-template-columns: 1fr;
         gap: 1.5rem;
     }

     .cv-value-card {
         padding: 2rem;
     }
 }