/* style.css – modern, GREEN primary, mobile friendly, animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f0faf2;  /* soft green-white background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* main landing card */
.landing {
    max-width: 1280px;
    width: 100%;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    border-radius: 2.5rem;
    padding: 2rem 2rem 1.8rem;
    box-shadow: 0 20px 40px -12px rgba(0, 80, 40, 0.20);
    transition: box-shadow 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* brand header – logo + name */
.brand-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(0, 120, 60, 0.15);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 16px -4px rgba(0, 100, 50, 0.30);
    transition: transform 0.25s ease, box-shadow 0.3s;
    animation: subtle-float 3s infinite alternate ease-in-out;
}

.brand-logo i {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@keyframes subtle-float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-4px) scale(1.02); }
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #0a4d2a, #1a8a4e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0, 80, 40, 0.08);
}

.tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #1a6b3a;
    background: rgba(26, 107, 58, 0.08);
    padding: 0.4rem 1.2rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 120, 60, 0.10);
    letter-spacing: 0.3px;
}

/* department grid – mobile first */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 1.8rem 0 2rem;
}

/* card design */
.dept-card {
    background: white;
    border-radius: 2rem;
    padding: 1.6rem 0.8rem 1.4rem;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 80, 40, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 120, 60, 0.08);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.dept-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 40px -12px rgba(0, 100, 50, 0.25);
    border-color: rgba(0, 120, 60, 0.30);
    background: #ffffff;
}

/* card icon */
.card-icon {
    font-size: 2.6rem;
    color: #1a8a4e;
    background: rgba(26, 138, 78, 0.08);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    transition: 0.3s;
    margin-bottom: 0.25rem;
}

.dept-card:hover .card-icon {
    background: #1a8a4e;
    color: white;
    transform: rotate(3deg) scale(1.05);
}

.dept-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a3d22;
    letter-spacing: -0.01em;
    margin: 0.2rem 0 0.1rem;
}

.dept-card p {
    font-size: 0.8rem;
    color: #2b6b44;
    background: rgba(0, 120, 60, 0.04);
    padding: 0.2rem 0.7rem;
    border-radius: 30px;
    display: inline-block;
    font-weight: 450;
}

/* portal button – GREEN primary */
.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0a6b3a;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: 60px;
    margin-top: 0.3rem;
    transition: all 0.25s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 12px -4px rgba(0, 80, 40, 0.25);
    letter-spacing: 0.3px;
    width: 100%;
    max-width: 160px;
}

.portal-btn i {
    transition: transform 0.2s ease;
    font-size: 0.85rem;
}

.portal-btn:hover {
    background: #1f9c5a;
    transform: scale(1.03);
    box-shadow: 0 10px 20px -6px #0a5a30b3;
    border-color: rgba(255, 255, 255, 0.2);
}

.portal-btn:hover i {
    transform: translateX(6px);
}

.portal-btn:active {
    transform: scale(0.95);
}

/* footer */
.landing-footer {
    margin-top: 1.8rem;
    padding-top: 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 120, 60, 0.08);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: #1a5a36;
}

.landing-footer p {
    font-size: 0.9rem;
    font-weight: 450;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-footer i {
    color: #1a8a4e;
}

.small-note {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* responsiveness */
@media (max-width: 640px) {
    .landing {
        padding: 1.5rem 1rem;
        border-radius: 2rem;
    }
    .brand-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .brand-name {
        font-size: 1.9rem;
    }
    .tagline {
        font-size: 0.8rem;
        padding: 0.2rem 1rem;
        margin-left: 0;
    }
    .brand-logo {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }
    .portal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .dept-card {
        padding: 1.2rem 0.5rem;
    }
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2.2rem;
    }
    .dept-card h3 {
        font-size: 1.1rem;
    }
    .portal-btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
        max-width: 130px;
    }
    .landing-footer {
        flex-direction: column;
        gap: 0.2rem;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .portal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }
    .brand-name {
        font-size: 1.6rem;
    }
    .dept-card p {
        font-size: 0.7rem;
    }
}

/* animations on load (cards appear) */
.dept-card {
    opacity: 0;
    animation: fadeSlideUp 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.dept-card:nth-child(1) { animation-delay: 0.05s; }
.dept-card:nth-child(2) { animation-delay: 0.12s; }
.dept-card:nth-child(3) { animation-delay: 0.19s; }
.dept-card:nth-child(4) { animation-delay: 0.26s; }
.dept-card:nth-child(5) { animation-delay: 0.33s; }
.dept-card:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(24px) scale(0.94); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* tiny extra animation for brand */
.brand-logo {
    animation: subtle-float 3.5s infinite alternate ease-in-out;
}