/* Core Values Section Styles */
.core-values-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    overflow: hidden;
}

.core-values-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    font-family: 'Libre Baskerville', serif;
    position: relative;
}

.core-values-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #921010;
}

.core-values-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.core-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.core-value-card {
    height: 280px;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.core-value-card:hover {
    transform: rotateY(180deg);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.card-back {
    transform: rotateY(180deg);
    background: #921010;
    color: white;
}

.card-back p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
}

.value-icon {
    width: 80px;
    height: 80px;
    background: #921010;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.value-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #921010, #ff4d4d);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

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

.value-icon i {
    font-size: 32px;
    color: #fff;
    transition: transform 0.3s ease;
}

.core-value-card:hover .value-icon i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.card-front h3 {
    font-size: 18px;
    color: #333;
    margin: 15px 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .core-values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .core-values-section {
        padding: 60px 0;
    }
    
    .core-value-card {
        height: 250px;
    }
    
    .value-icon {
        width: 70px;
        height: 70px;
    }
    
    .value-icon i {
        font-size: 28px;
    }
    
    .card-front h3 {
        font-size: 16px;
    }
    
    .card-back p {
        font-size: 14px;
        padding: 15px;
    }
}
