/* Team Culture Cards - Enhanced 3D Glassmorphism Design */
.team-culture-section {
    background-color: var(--body-bg-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.team-culture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(159, 6, 236, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(65, 255, 242, 0.05) 1px, transparent 1px);
    background-size: 50px 50px, 40px 40px;
    animation: cultureParticles 20s linear infinite;
    pointer-events: none;
}

@keyframes cultureParticles {
    0% {
        background-position: 0% 0%, 0% 0%;
    }
    100% {
        background-position: 100% 100%, -100% 100%;
    }
}

.culture-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.animated-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(159, 6, 236, 0.15), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(65, 255, 242, 0.15), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(159, 6, 236, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(65, 255, 242, 0.2), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: dotDrift 30s linear infinite;
}

@keyframes dotDrift {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-150px) translateY(-150px); }
}

.culture-header {
    margin-bottom: 80px;
}

/* Enhanced section title styling to match Team Expertise exactly */
.culture-header .bi-section-title-2 {
    margin-bottom: 4rem;
}





.culture-header .section-description {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.culture-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.culture-card {
    border: solid 1px rgba(220, 255, 252, 0.1);
    padding: 40px 30px;
    border-radius: 25px;
    background: rgba(23, 25, 38, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    color: #f0f8ff;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.2),
        0 5px 20px rgba(159, 6, 236, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background-image: 
        radial-gradient(circle 200px at 10% 80%, rgba(159, 6, 236, 0.08), transparent),
        radial-gradient(circle 200px at 90% 20%, rgba(65, 255, 242, 0.08), transparent);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.culture-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(159, 6, 236, 0.1) 0%, 
        transparent 25%, 
        transparent 75%, 
        rgba(65, 255, 242, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.culture-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(159, 6, 236, 0.3),
        0 0 60px rgba(65, 255, 242, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(65, 255, 242, 0.6);
}

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

/* Ensure all cards have identical styling */
.culture-card {
    /* Remove any potential inconsistencies */
    box-sizing: border-box;
}

.culture-card .icon-core {
    /* Ensure all icon cores are identical */
    background: linear-gradient(135deg, #9f06ec, #41fff2) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.culture-card .icon-ring {
    /* Standardize all ring colors */
    border-color: rgba(159, 6, 236, 0.3) !important;
}

.culture-card .ring-2 {
    border-color: rgba(65, 255, 242, 0.3) !important;
}

.culture-card .ring-3 {
    border-color: rgba(159, 6, 236, 0.2) !important;
}

/* Enhanced 3D Icon Styling */
.card-icon-3d {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    perspective: 400px;
}

.icon-sphere {
    width: 120px;
    height: 120px;
    position: relative;
    transform-style: preserve-3d;
    animation: float3D 4s ease-in-out infinite;
}

.icon-core {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #9f06ec, #41fff2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(20px);
    box-shadow: 
        0 10px 30px rgba(159, 6, 236, 0.4),
        inset 0 5px 15px rgba(255, 255, 255, 0.2),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    animation: coreRotate 8s linear infinite;
}

.icon-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform-origin: center;
    pointer-events: none;
}

.ring-1 {
    width: 100px;
    height: 100px;
    border-color: rgba(159, 6, 236, 0.4);
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg);
    animation: ringRotate1 6s linear infinite;
}

.ring-2 {
    width: 110px;
    height: 110px;
    border-color: rgba(65, 255, 242, 0.3);
    transform: translate(-50%, -50%) rotateX(-45deg) rotateZ(45deg);
    animation: ringRotate2 8s linear infinite reverse;
}

.ring-3 {
    width: 120px;
    height: 120px;
    border-color: rgba(159, 6, 236, 0.2);
    transform: translate(-50%, -50%) rotateY(60deg) rotateZ(-30deg);
    animation: ringRotate3 10s linear infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, 
        rgba(159, 6, 236, 0.2) 0%, 
        rgba(65, 255, 242, 0.1) 50%, 
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: glowPulse 3s ease-in-out infinite alternate;
    filter: blur(5px);
}

/* 3D Animation Keyframes */
@keyframes float3D {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-10px) rotateX(5deg) rotateY(90deg);
    }
    50% {
        transform: translateY(-15px) rotateX(0deg) rotateY(180deg);
    }
    75% {
        transform: translateY(-10px) rotateX(-5deg) rotateY(270deg);
    }
}

@keyframes coreRotate {
    0% {
        transform: translate(-50%, -50%) translateZ(20px) rotateY(0deg);
    }
    100% {
        transform: translate(-50%, -50%) translateZ(20px) rotateY(360deg);
    }
}

@keyframes ringRotate1 {
    0% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg) rotateZ(360deg);
    }
}

@keyframes ringRotate2 {
    0% {
        transform: translate(-50%, -50%) rotateX(-45deg) rotateZ(45deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateX(-45deg) rotateZ(405deg);
    }
}

@keyframes ringRotate3 {
    0% {
        transform: translate(-50%, -50%) rotateY(60deg) rotateZ(-30deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateY(60deg) rotateZ(330deg);
    }
}

@keyframes glowPulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Card Content Styling */
.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f0f8ff;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.card-description {
    color: #b8c6db;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    text-align: center;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    color: #dcfffc;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.card-features li i {
    position: absolute;
    left: 0;
    top: 2px;
    color: #41fff2;
    font-size: 0.9rem;
}

/* Unified Hover Effects for All Cards */
.culture-card:hover .icon-core {
    background: linear-gradient(135deg, #9f06ec, #41fff2);
    box-shadow: 
        0 15px 40px rgba(159, 6, 236, 0.5),
        0 5px 20px rgba(65, 255, 242, 0.3),
        inset 0 5px 15px rgba(255, 255, 255, 0.3),
        inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%) translateZ(30px) scale(1.05);
}

/* CTA Button Styling */
.culture-cta {
    text-align: center;
    margin-top: 50px;
    position: relative;
    padding: 60px 20px;
}

.culture-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #9f06ec, #41fff2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    box-shadow: 
        0 8px 25px rgba(159, 6, 236, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.culture-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4),
        transparent);
    transition: left 0.8s ease;
    z-index: 3;
}

.culture-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #9f06ec, #41fff2, #9f06ec);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(8px);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

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

.culture-btn:hover::after {
    opacity: 0.8;
    animation: pulse-glow 2s infinite;
}

.culture-btn:active {
    transform: translateY(-3px) scale(1.02);
    transition: all 0.1s ease;
}

/* Enhanced CTA with decorative elements */
.culture-cta::before,
.culture-cta::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #9f06ec, #41fff2);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-particle 4s infinite ease-in-out;
}

.culture-cta::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.culture-cta::after {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-8px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.7;
    }
}

/* Additional particles for larger screens */
@media (min-width: 768px) {
    .culture-cta::before {
        width: 12px;
        height: 12px;
        top: 25%;
        left: 10%;
    }
    
    .culture-cta::after {
        width: 10px;
        height: 10px;
        top: 20%;
        right: 12%;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .culture-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
        max-width: 1000px;
    }
}

@media (max-width: 968px) {
    .culture-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .team-culture-section {
        padding: 80px 0;
    }
    
    .culture-header .bi-section-title-2 h2,
    .culture-header .bi-section-title-2 .headline-title {
        font-size: 2.8rem;
    }
    
    .culture-cards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .culture-card {
        padding: 35px 25px;
    }
    
    .card-icon-3d {
        width: 120px;
        height: 120px;
        margin-bottom: 25px;
    }
    
    .icon-sphere {
        width: 100px;
        height: 100px;
    }
    
    .icon-core {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .ring-1 {
        width: 85px;
        height: 85px;
    }
    
    .ring-2 {
        width: 95px;
        height: 95px;
    }
    
    .ring-3 {
        width: 105px;
        height: 105px;
    }
    
    .icon-glow {
        width: 120px;
        height: 120px;
    }
    
    .card-title {
        font-size: 1.6rem;
    }
    
    .card-description {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .culture-header .bi-section-title-2 h2,
    .culture-header .bi-section-title-2 .headline-title {
        font-size: 2.2rem;
    }
    
    .culture-header .section-description {
        font-size: 1.1rem;
    }
    
    .culture-card {
        padding: 30px 20px;
    }
    
    .card-icon-3d {
        width: 100px;
        height: 100px;
    }
    
    .icon-sphere {
        width: 80px;
        height: 80px;
    }
    
    .icon-core {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .ring-1 {
        width: 70px;
        height: 70px;
    }
    
    .ring-2 {
        width: 80px;
        height: 80px;
    }
    
    .ring-3 {
        width: 90px;
        height: 90px;
    }
    
    .icon-glow {
        width: 100px;
        height: 100px;
    }
    
    .card-title {
        font-size: 1.4rem;
    }
    
    .culture-btn {
        padding: 16px 32px;
        font-size: 1rem;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .culture-card,
    .icon-sphere,
    .icon-core,
    .icon-ring,
    .icon-glow,
    .culture-btn {
        animation: none !important;
    }
    
    .culture-card:hover {
        transform: translateY(-5px);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: light) {
    .team-culture-section {
        background-color: #f8f9fa;
    }
    
    .culture-card {
        background: rgba(255, 255, 255, 0.8);
        color: #2c3e50;
        border-color: rgba(159, 6, 236, 0.2);
    }
    
    .card-title {
        color: #2c3e50;
    }
    
    .card-description {
        color: #6c757d;
    }
    
    .card-features li {
        color: #495057;
    }
    
    .culture-header .section-title {
        color: #2c3e50;
    }
    
    .culture-header .section-description {
        color: #6c757d;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .culture-card {
        border-width: 2px;
        border-color: #41fff2;
    }
    
    .card-title,
    .card-description,
    .card-features li {
        color: #ffffff;
    }
}
