
.automation-container {
    text-align: center;
    margin: auto;
    overflow: hidden;
    width: 100vw; /* Full viewport width */
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(120deg, #241954, #0f0f54);
    padding: 20px;
    color: rgb(245, 240, 240);
    position: relative;
    isolation: isolate;
}

/* Title Styling */
.automation-container h1 {
    
    font-size: 3em;
    margin-bottom: 10px;
    margin-left: 5%;
}

.automation-container p {
   
    font-size: 1.2em;
    margin: 5px 0;
    margin-left: 5%;
}

ul {
    list-style-type: disc; /* Use bullet points */
    padding-left: 20px; /* Adjust indentation */
}

li {
    margin-bottom: 8px; /* Add spacing between bullet points */
    font-size: 1.2em;
    margin: 5px 0;

}




.image-container img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .text-content {
        grid-template-rows: auto;
        text-align: center;
    }
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 20px;
    background: #100626;
}
/* Force card background color */
.grid-container .service {
    background: #141046 !important;
}
.service {
   
    
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    min-width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    
    /* Fade-in Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Individual Card Animation Delay */
.service:nth-child(1) { animation-delay: 0.1s; }
.service:nth-child(2) { animation-delay: 0.2s; }
.service:nth-child(3) { animation-delay: 0.3s; }
.service:nth-child(4) { animation-delay: 0.4s; }
.service:nth-child(5) { animation-delay: 0.5s; }
.service:nth-child(6) { animation-delay: 0.6s; }
.service:nth-child(7) { animation-delay: 0.7s; }
.service:nth-child(8) { animation-delay: 0.8s; }

/* Hover Effect - Scale and Glow */
.service:hover {
    transform: scale(1.05);
    background: #254b73;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 123, 255, 0.4);
}

.service {
    transition: background 0.3s ease, transform 0.3s ease;
}

.service:hover {
    transform: scale(1.05);
    filter: brightness(1.2); /* Lightens the color on hover */
}
.service h2 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: #f1e8e8;
}

.service p {
    font-size: 1em;
    color: #f4efef;
}

/* Icon Styling */
.service .icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 30px; /* Adjust icon size */
    color: rgba(252, 254, 254, 0.7); /* Slightly darker icon for visibility */
}
/* Fade-in Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}