/* panel.css - Advanced Medical Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary: #008080;      /* Medical Teal */
    --primary-dark: #004d4d; /* Darker Teal */
    --accent: #20b2aa;       /* Light Sea Green */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #e0f7fa, #ffffff, #e0f2f1, #b2dfdb);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    z-index: 1;
}

/* Header Section */
.header-section {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 1s ease-out;
}

.header-section h1 {
    color: var(--primary-dark);
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.header-section p {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 300;
}

/* The Grid */
.portal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    padding: 10px;
}

/* Glassmorphism Cards */
.role-card {
    background: var(--glass);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Hover Effects */
.role-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 128, 128, 0.2);
    border-color: var(--primary);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.role-card:hover::before {
    transform: scaleX(1);
}

/* Icons inside cards */
.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(0, 128, 128, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.role-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.role-card h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.role-card span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Staggered Animation for Cards */
.role-card:nth-child(1) { animation: fadeInUp 0.6s ease-out 0.1s backwards; }
.role-card:nth-child(2) { animation: fadeInUp 0.6s ease-out 0.2s backwards; }
.role-card:nth-child(3) { animation: fadeInUp 0.6s ease-out 0.3s backwards; }
.role-card:nth-child(4) { animation: fadeInUp 0.6s ease-out 0.4s backwards; }
.role-card:nth-child(5) { animation: fadeInUp 0.6s ease-out 0.5s backwards; }
.role-card:nth-child(6) { animation: fadeInUp 0.6s ease-out 0.6s backwards; }
.role-card:nth-child(7) { animation: fadeInUp 0.6s ease-out 0.7s backwards; }
.role-card:nth-child(8) { animation: fadeInUp 0.6s ease-out 0.8s backwards; }

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .header-section h1 { font-size: 1.8rem; }
    .portal-container { grid-template-columns: 1fr; }
}