/* Import a clean, modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 30px;
}

.main-logo {
    max-height: 150px;
    margin-bottom: 20px;
    display: inline-block;     /* ensure transform works nicely */
    will-change: transform;    /* hint for smoother animation */
    animation: logo-bounce 15.2s cubic-bezier(.80,.2,.25,1) infinite;
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.module-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 20px;
    background-color: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.module-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.module-button i {
    margin-right: 12px;
    font-size: 1.2rem;
}

footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.footer-logos img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #95a5a6;
}

/* Responsive design for mobile devices */
@media (max-width: 768px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .grid-container {
        grid-template-columns: 1fr; /* Stack buttons in a single column */
    }
}

/* Bounce Animation */
@keyframes logo-bounce {
    0%   { transform: translateY(0); }
    20%  { transform: translateY(-40px); } /* highest hop */
    40%  { transform: translateY(0); }
    60%  { transform: translateY(0px); }  /* small rebound */
    80%  { transform: translateY(0); }
    100% { transform: translateY(0); }
}

/* Accessibility: Disable animation for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .main-logo {
        animation: none !important;
    }
}
