/* style.css - m2ea Labs Website */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
}

header {
    background: #1a73e8;
    color: white;
    padding: 20px;
    text-align: center;
}

nav {
    background: #f4f4f4;
    padding: 10px;
    text-align: center;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.hero {
    background: #e8f0fe;
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section {
    padding: 40px 20px;
    max-width: 900px;
    margin: auto;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Keep text color consistent */
}

.service-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.4s; }

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

.service-item.education svg { stroke: #1a73e8; }
.service-item.health svg { stroke: #e63946; }
.service-item.entertainment svg { stroke: #f4a261; }

footer {
    text-align: center; /* Center the footer text */
    padding: 20px;
    background: #f4f4f4;
    margin-top: 40px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
