* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.main-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 50px;
    max-width: 900px;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.school-header {
    text-align: center;
    margin-bottom: 40px;
}

.school-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(185, 28, 28, 0.3);
}

h1 {
    color: #333;
    font-size: 36px;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 16px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.portal-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: #333;
}

.portal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.portal-card.student {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.portal-card.teacher {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.portal-card.parent {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.portal-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.portal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.portal-desc {
    font-size: 14px;
    opacity: 0.9;
}

.features {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.features h2 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.feature-item strong {
    color: #667eea;
}

@media (max-width: 768px) {
    .main-container {
        padding: 30px 20px;
    }

    h1 {
        font-size: 28px;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}
