/* Cute & Bright Pro Portal Theme */
:root {
    --bg-gradient: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 2px solid rgba(255, 255, 255, 0.9);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --text-main: #4a5568;
    --text-muted: #718096;
    --accent-primary: #FF9A9E;
    /* Cute Pink */
    --accent-secondary: #a18cd1;
    /* Soft Purple */
    --accent-tertiary: #fbc2eb;
    /* Lavender */
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-hover: rgba(255, 255, 255, 0.98);
}

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

body {
    font-family: 'Kanit', sans-serif;
    background: #fdfbfb;
    background-image: linear-gradient(120deg, #fccb90 0%, #d57eeb 100%);
    background-size: 300% 300%;
    animation: rainbowMove 15s ease infinite;
    min-height: 100vh;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

@keyframes rainbowMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.portal-container {
    width: 100%;
    max-width: 1200px;
    z-index: 1;
}

/* Header Section */
.portal-header {
    text-align: center;
    margin-bottom: 50px;
    animation: bounceInDown 1s ease;
}

.mascot-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 25px rgba(255, 105, 180, 0.3);
    margin-bottom: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-logo:hover {
    transform: scale(1.1) rotate(10deg);
}

.portal-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.portal-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Grid Layout */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Base Card */
.feature-card {
    background: var(--card-bg);
    border: 3px solid white;
    border-radius: 30px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center align for cuteness */
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Card Content */
.card-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #f3f4f6 100%);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s ease;
    border: 3px solid transparent;
}

.feature-card:hover .card-icon {
    transform: rotate(15deg) scale(1.1);
    background: white;
}

/* Specific Card Colors using nth-child for variety */
.feature-card:nth-child(1) .card-icon {
    border-color: #ff9a9e;
    color: #ff9a9e;
}

.feature-card:nth-child(2) .card-icon {
    border-color: #a18cd1;
    color: #a18cd1;
}

.feature-card:nth-child(3) .card-icon {
    border-color: #ffc3a0;
    color: #ff9a9e;
}

.feature-card:nth-child(4) .card-icon {
    border-color: #84fab0;
    color: #43e97b;
}

.feature-card:nth-child(5) .card-icon {
    border-color: #cfd9df;
    color: #667eea;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2d3748;
}

.card-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 20px;
}

.card-arrow {
    font-weight: 600;
    color: white;
    background: var(--accent-primary);
    padding: 8px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 154, 158, 0.4);
}

.feature-card:nth-child(2) .card-arrow {
    background: #a18cd1;
    box-shadow: 0 4px 10px rgba(161, 140, 209, 0.4);
}

.feature-card:nth-child(3) .card-arrow {
    background: #ff9a9e;
}

.feature-card:nth-child(4) .card-arrow {
    background: #43e97b;
    box-shadow: 0 4px 10px rgba(67, 233, 123, 0.4);
}

.feature-card:nth-child(5) .card-arrow {
    background: #667eea;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

.feature-card:hover .card-arrow {
    transform: scale(1.05);
    padding: 8px 25px;
}

/* Footer */
.portal-footer {
    text-align: center;
    margin-top: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out 0.5s backwards;
}

/* Animations */
@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translateY(-3000px);
    }

    60% {
        opacity: 1;
        transform: translateY(25px);
    }

    75% {
        transform: translateY(-10px);
    }

    90% {
        transform: translateY(5px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .portal-title {
        font-size: 2rem;
    }

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