* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #4A90E2;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.logo-container img {
    max-width: 100px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

nav a.active, nav a:hover {
    background-color: #3578C1;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.hero {
    text-align: center;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #4A90E2;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3578C1;
}

.roles {
    text-align: center;
    margin-bottom: 2rem;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1080px;
    margin: 1rem auto;
}

.role-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1s ease-in-out forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    will-change: transform, box-shadow, opacity;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for fade-in */
.role-card:nth-child(1) { animation-delay: 0.1s; }
.role-card:nth-child(2) { animation-delay: 0.2s; }
.role-card:nth-child(3) { animation-delay: 0.3s; }
.role-card:nth-child(4) { animation-delay: 0.4s; }
.role-card:nth-child(5) { animation-delay: 0.5s; }

.role-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 10px;
    background: linear-gradient(45deg, #4A90E2, #FF6F61, #6B7280, #4A90E2);
    background-size: 400%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}

.role-card:hover,
.role-card:active {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.role-card:hover::before,
.role-card:active::before {
    opacity: 1;
    animation: borderAnimation 3s linear infinite;
}

@keyframes borderAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 400% 50%; }
    100% { background-position: 0% 50%; }
}

.role-icon-container {
    margin-bottom: 1rem;
}

.role-icon {
    font-size: 64px;
    color: #4A90E2;
    display: block;
    margin: 0 auto;
}

.role-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.role-card p {
    font-size: 1rem;
    color: #555;
}

.features {
    text-align: center;
    margin-bottom: 2rem;
}

.features ul {
    list-style: none;
    max-width: 600px;
    margin: 1rem auto;
}

.features li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #4A90E2;
    color: white;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
    .role-grid {
        grid-template-columns: 1fr;
    }

    .role-card {
        padding: 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}