/* ========================================================
        GLOBAL STYLING
======================================================== */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: radial-gradient(circle at top, #1a2a3a, #0d1824);
    font-family: "Poppins", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

/* ========================================================
        PARTICLE BACKGROUND
======================================================== */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(#ffffff22 2px, transparent 2px) 0 0,
        radial-gradient(#ffffff22 2px, transparent 2px) 20px 20px;
    background-size: 40px 40px;
    opacity: .15;
    animation: particleMove 30s linear infinite;
}

@keyframes particleMove {
    from { background-position: 0 0, 20px 20px; }
    to { background-position: 200px 200px, 220px 220px; }
}

/* ========================================================
        FLOATING SHAPES
======================================================== */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.45;
    animation: float 12s infinite ease-in-out;
}

.shape1 { width: 300px; height: 300px; background:#00c6ff; top:5%; left:8%; }
.shape2 { width: 350px; height: 350px; background:#3bbf73; bottom:12%; right:10%; animation-delay:-4s; }
.shape3 { width: 250px; height: 250px; background:#a455ff; top:60%; left:35%; animation-delay:-7s; }

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-40px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0); }
}

/* ========================================================
        GLASS CARD
======================================================== */
.glass-box {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    padding: 50px 45px;
    width: 90%;
    max-width: 650px;
    border-radius: 22px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    position: relative;
    z-index: 10;
    text-align: center;

    /* Animated border */
    outline: 2px solid transparent;
    outline-offset: -6px;
    background-clip: padding-box;
}

/* ========================================================
        TEXT
======================================================== */
h1 {
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: .8;
    margin-bottom: 35px;
}

/* ========================================================
        BUTTON GRID
======================================================== */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* ========================================================
        DEPT BUTTONS (NEON + 3D)
======================================================== */
.dept-button {
    text-decoration: none;
    padding: 25px;
    border-radius: 18px;
    color: white;
    font-size: 1.35rem;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;

    transition: .35s ease;
    position: relative;
    overflow: hidden;

    /* 3D effect */
    transform: perspective(400px) translateZ(0);
}

/* Glowing border */
.dept-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: inherit;
    transition: 0.35s ease;
}

/* Glow on hover */
.dept-button:hover {
    transform: perspective(400px) translateZ(25px) scale(1.04);
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
}

.dept-button:hover::before {
    border-color: rgba(255,255,255,0.55);
}

.icon {
    font-size: 2rem;
    opacity: 0.9;
}

.brand-logo{
  display:block;
  width: 92px;
  height: auto;
  margin: 0 auto 10px;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
  user-select:none;
}


/* Department Gradient Colors */
.admin { background: linear-gradient(135deg, #10ff, #0fcc); }
.csr { background: linear-gradient(135deg, #225e, #0f8a3c); }
.inventory { background: linear-gradient(135deg, #ff94, #d2691e); }
.hr { background: linear-gradient(135deg, #c084fc, #c08c); }
.logistics { background: linear-gradient(135deg, #c0CCBc, #A223ea); }

/* ========================================================
        ANIMATIONS
======================================================== */
.animate-fade {
    animation: fadeIn .9s ease forwards;
}

.animate-fade-delayed {
    opacity: 0;
    animation: fadeIn 1.4s ease forwards;
}

.animate-slide-down {
    transform: translateY(-20px);
    opacity: 0;
    animation: slideDown .8s ease forwards;
}

.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp .8s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideDown {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeUp {
    to { transform: translateY(0); opacity: 1; }
}

/* ========================================================
        MOBILE RESPONSIVE
======================================================== */
@media(max-width: 500px) {
    .button-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 2rem;
    }
}
