 /* Typing animation */
    .typing-text::after {
    content: "with Big Data Analytics";
    font-size: 2.5rem;
    background: linear-gradient(90deg, #2a5298 0%, #1e3c72 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: typing 5s ease-in-out infinite;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    vertical-align: bottom;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes typing {
    0% { 
        width: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}


    .card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from center to better handle longer content */
    align-items: center;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card-front {
    background: linear-gradient(135deg, #3a7bd5 0%, #00d2ff 100%);
    color: white;
    text-align: center;
}

.card-back {
    background: white;
    color: #333;
    transform: rotateY(180deg);
    overflow-y: auto; /* Added for scrollable content */
    text-align: left; /* Changed from center for better readability */
    align-items: flex-start; /* Better for paragraph content */
}

/* Additional recommended styles to complement the cards */
.service-card {
    perspective: 1000px;
    height: 350px; /* Fixed height for consistency */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.card-back .service-icon {
    color: #3a7bd5;
    align-self: center; /* Center icon in back card */
    margin-bottom: 15px;
}

.service-features {
    margin-top: 15px;
    padding-left: 20px;
    width: 100%;
}

.service-features li {
    margin-bottom: 8px;
    position: relative;
    line-height: 1.4;
}

/* Scrollbar styling for card-back */
.card-back::-webkit-scrollbar {
    width: 6px;
}

.card-back::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.card-back::-webkit-scrollbar-thumb {
    background: #3a7bd5;
    border-radius: 10px;
}

/* Hero Section Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 80px 20px 40px;
        text-align: center;
    }
    
    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .hero-image {
        width: 100%;
        margin-top: 20px;
    }
    
    .hero-image .image-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-image img {
        width: 100%;
        height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .typing-text::after {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
}