@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", sans-serif;
}
html, body {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: black;
    animation: fadeIn 0.8s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-out {
    animation: fadeOut 0.5s forwards;
}
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid black;
}
.logo img {
    height: 40px;
}
nav a {
    margin: 0 15px;
    text-decoration: none;
    color: black;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    font-size: 18px;
    margin: 0 15px;
    padding: 10px;
    transition: transform 0.2s ease, background 0.2s ease;
}
nav a:hover {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.intro {
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    max-width: 80%;
}
.content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 80%;
}
.card {
    width: 300px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid black;
}
.card h2 {
    font-size: 20px;
    font-weight: bold;
}
footer {
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: bold;
    border: 2px solid black;
    border-radius: 1000px;
}
.exxtream {
    background-image: linear-gradient(to right, rgb(252, 13, 13) , rgb(54, 207, 253));
    color: transparent;
    background-clip: text;
}

/* responsive design for smaller screens */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 10px;
        text-align: center;
    }

    .logo img {
        height: 30px; /* smaller logo */
    }

    nav {
        margin-top: 10px;
    }

    nav a {
        display: inline-block;
        margin: 5px;
        font-size: 14px;
    }

    .intro {
        font-size: 20px;
        padding: 20px;
        max-width: 90%;
    }

    .content {
        flex-direction: column;
        align-items: center;
        width: 90%;
    }

    .card {
        width: 90%;
        max-width: 350px; /* ensures consistent size */
        padding: 15px;
    }

    .card h2 {
        font-size: 18px;
    }

    footer {
        font-size: 14px;
        padding: 8px;
        border-radius: 30px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 25px;
    }

    nav a {
        font-size: 12px;
        margin: 3px;
    }

    .intro {
        font-size: 18px;
    }

    .card {
        width: 95%;
        padding: 10px;
    }

    .card h2 {
        font-size: 16px;
    }

    footer {
        font-size: 12px;
        padding: 6px;
    }
}