@font-face {
    font-family: 'optima';
    src: url('font/OPTIMA.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red; */
}

body, html {
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Apply globally */
body, html {
    font-family: 'optima', Arial, sans-serif;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Headings */
.launchpad-heading {
    font-family: 'optima', Arial, sans-serif;
    font-weight: 700; /* Bold variant */
}

/* Card text */
.card-text {
    font-family: 'optima', Arial, sans-serif;
    font-weight: 500; /* Medium variant */
    width: 75%;
    /* margin: auto; */
}

/* Launchpad background */
.launchpad {
    min-height: 100vh;
    background-image: url('images/back.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-left: 20px;
    padding-right: 20px;
    color: #fff;
}

/* Logo */
.logo img {
    width: 150px;
    max-width: 100%;
    margin-bottom: 80px;
}

/* Heading */
.launchpad-heading {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
}

/* Cards container */
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 1000px;
}

/* Individual card */
.card {
    position: relative; /* required for pseudo-element */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    /* padding-top: 40px; */

    height: 200px;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    overflow: hidden; /* important to clip pseudo-element corners */

    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

/* Pseudo-element for gradient border */
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    padding: 0.5px; /* border thickness */
    border-radius: inherit; /* same as card */
    
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none; /* doesn't block clicks */
}

/* Glass hover + shadow */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Shiny strip */
.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    pointer-events: none;

    /* Make sure it doesn’t animate by default */
    animation: none;
}


.footer{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

/* Animate once on hover */
.card:hover::after {
    animation: shine 1s ease-in-out forwards; /* run once */
}

@keyframes shine {
    0% {
        left: -75%;
    }
    100% {
        left: 125%;
    }
}

/* Logo wrapper (controls alignment) */
.card-logo-wrapper {
    height: 30px;           /* fixed area for logo */
    display: flex;
    align-items: center;     /* vertical center */
    justify-content: center; /* horizontal center */
}

/* Card logo */
.card-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Card text */
.card-text {
    font-size: 16px;
    color: #fff;
    line-height: 1.3;
    margin-top: 10px;
}

/* Tablet */
@media (max-width: 992px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .card {
        height: 140px;
    }
    .card-logo {
        height: 50px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .logo img {
        width: 120px;
    }
    .launchpad-heading {
        font-size: 36px;
    }
    .card {
        height: 130px;
    }
    .card-logo {
        height: 45px;
    }
}

/* Extra small mobile */
@media (max-width: 480px) {
    .launchpad-heading {
        font-size: 24px;
    }
    .cards-container {
        gap: 12px;
    }
    .card {
        height: 125px;
        border-radius: 10px;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
    }
    .card-logo {
        height: 35px;
    }
    .card-text {
        font-size: 12px;
        width: 100%;
    }
}