/* --- Reset & Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #f8fafc;
    padding: 40px;

    /* Background image setup */
    /* Ensure you have an image at: assets/image/background.png */
    background-image: url('assets/image/background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    /* Fallback background color */
    background-color: #071127; 
}

/* Subtle overlay + vignette */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(3,7,24,0.18) 0%, rgba(3,7,24,0.55) 80%),
                linear-gradient(180deg, rgba(2,6,23,0.35), rgba(2,6,23,0.55));
    z-index: 0;
    pointer-events: none;
}

/* Ensure page content sits above overlay */
.container { position: relative; z-index: 1; }

/* --- Layout --- */
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px;
    width: 100%;
    max-width: 1100px;
    padding: 40px 0;
}

/* --- The Glass Card --- */
.card {
    position: relative;
    background: linear-gradient(180deg, rgba(13,20,35,0.18), rgba(8,13,24,0.12));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 40px 28px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.55),
                inset 0 1px 0 rgba(255,255,255,0.02);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Subtle inner highlight */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.02));
    mix-blend-mode: overlay;
}

/* Hover Lift Effect */
.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 30px 60px rgba(2, 6, 23, 0.6),
                inset 0 1px 0 rgba(255,255,255,0.02);
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* --- Icons & Ambient Glow --- */
.icon-box {
    width: 72px;
    height: 72px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(25px);
    opacity: 0.4;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.card:hover .icon-box::before { opacity: 0.7; }

/* --- Typography --- */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    color: #fff;
}

p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 40px;
    font-weight: 400;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.btn i { margin-left: 8px; font-size: 0.8em; transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(4px); }

/* --- Theme Specifics --- */

/* BLUE - Frontend */
.theme-blue .icon-box { color: #38bdf8; }
.theme-blue .icon-box::before { background: #38bdf8; }
.theme-blue .btn {
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
.theme-blue .btn:hover { box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5); }

/* GREEN - Member */
.theme-green .icon-box { color: #10b981; }
.theme-green .icon-box::before { background: #10b981; }
.theme-green .btn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.theme-green .btn:hover { box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5); }

/* RED - Admin */
.theme-red .icon-box { color: #f43f5e; }
.theme-red .icon-box::before { background: #f43f5e; }
.theme-red .btn {
    background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}
.theme-red .btn:hover { box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5); }

/* --- Responsive --- */
@media (max-width: 768px) {
    body {
        /* Optional: Mobile background image */
        background-image: url('assets/image/bg-tech-sm.jpg'); 
        background-attachment: scroll;
    }
    .container { gap: 20px; padding: 20px; }
    .card { padding: 32px 24px; }
}