/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/* VARS */
:root {
    --base-black: #121B2A;
    --alt-black: #020F1D;
    --base-grey: #374d63;
    --gradient: linear-gradient(to right, #564EE7 0%, #C32BF9 100%);
    --purple: #C32BF9;
    --text: #A1A9B9;
}
/* MAIN STYLING */
body {
    margin: 0px;
    padding: 0px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    background-color: #050310;
    background-image: url("../assets/img/starfield.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

#wrapper {
    max-width: 70vw;
    margin: 0px auto;
}

/* NAVIGATION */
nav {
    top: 0;
    z-index: 9999;
    width: 100%;
    position: fixed;
    padding: 2vh 0 2vh 0;
    /* background-color: rgba(1, 7, 14, 0.3); */
    transition: .4s;
}
nav img {
    width: 40px;
}
nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
nav article {
    display: inline-block;
}
nav .right {
    float: right;
}
nav .right a {
    margin-right: 30px;
}
nav .right a i {
    color: var(--purple);
    font-size: 20px;
}


/* HEADER */
header {
    padding: 32vh 0 32vh 0;
    width: 100%;
    background: linear-gradient(rgba(5,3,16,0.35) 0%, rgba(5,3,16,0.85) 100%);
}
header h1 {
    color: #fff;
    margin: 0px;
    font-size: 60px;
    font-weight: 700;
    /* text-transform: uppercase; */
    letter-spacing: -2px;
}
header h2 {
    color: #fff;
    margin: 0 0 50px 0;
    font-weight: 200;
}
header a {
    background-image: var(--gradient);
    padding: 15px 25px 15px 25px;
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    transition: .4s;
}
header a:hover {
    background: none;
    border: 1px solid #fff;
}


/* MAIN CONTENT */
main h2 {
    font-size: 20px;
    text-align: center;
    margin: 0 0 20px;
    color: #fff;
    letter-spacing: -1px;
    font-weight: 500;
    text-transform: uppercase;
}

/* TOP BAR */
#topbar {
    padding: 2.5vh 0 2.5vh 0;
    background-color: var(--alt-black);
}
#topbar h3 {
    color: #fff;
    margin: 0px;
    font-weight: 400;
    text-transform: uppercase;
}
#topbar h3 i {
    color: #fff;
    font-size: 15px;
    margin-right: 10px;
    background-color: #263341;
    padding: 10px;
    border-radius: 50%;
}


/* SERVICES SECTION */
#services {
    padding: 0vh 0 10vh 0;
}
#services .sub {
    margin: 0 0 100px 0;
    text-align: center;
    font-weight: 400;
    color: var(--base-grey);
    font-size: 20px;
}
#services article div p {
    color: var(--text);
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    transition: .4s;
    font-size: 13px;
    display: inline-block;
} 
#services article a {
    text-decoration: none;
}
#services article div p i {
    color: #263341;
    font-size: 12px;
    margin-left: 10px;
}
#services article div {
    display: inline-block;
    vertical-align: top;
    margin: 20px;
    width: 180px;
    background-color: rgb(17, 24, 37);
    /* box-shadow: 0 0.375rem 0.5rem rgba(0,0,0,.05); */
    border-radius: 10px;
    height: 180px;
    padding: 40px 20px 0px 20px;
}
#services img {
    width: 90px;
    /* height: 90px; */
}
#services article {
    text-align: center;
}
/* FOOTER */
footer {
    margin: 100px 0 0 0;
    width: 100%;
    z-index: 9999;
    background-color: var(--alt-black);
    padding: 10vh 0 0 0;
}
footer p {
    margin: 0px;
    text-align: center;
    width: 100%;
    background-color: #010913;
    color: grey;
    margin-top: 10vh;
    padding: 10px 0 10px;
    font-weight: 400;
}
/* footer article */
footer article h3 {
    /* color: var(--base-black); */
    color: #fff;
    font-weight: 800;
    font-size: 25px;
}
footer article ul {
    padding-left: 0px;
}
footer article li {
    list-style-type: none;
    color: var(--base-grey);
    font-weight: 500;
}
footer article i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: var(--purple);
}
footer article {
    display: inline-block;
}
footer .logo {
    float: right;
}
footer article ul li a {
    text-decoration: none;
    color: white;
}

/* NEWS PAGE */
#title {
    padding: 12vh 0 10vh 0;
} 
#news{
    padding: 10vh 0 10vh 0;
}
#news a {
    text-decoration-color: var(--purple);
    color: var(--text);
    font-size: 14px;
}
#events {
    padding: 10vh 0 10vh 0;
}
#events a {
    text-decoration-color: var(--purple);
    color: var(--text);
    font-size: 14px;
}
#news article {
    width: 50%;
    margin-bottom: 50px;
}
#news article p {
    color: var(--text);
    font-size: 14px;
    font-weight: 300;
}
#news article p i {
    color: var(--purple);
}
#news h3 {
    color: #fff;
    font-size: 25px;
    margin: 0px;
}
#news .subject {
    background-color: var(--base-grey);
    display: inline-block;
    padding: 6.5px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
}

/* EVENTS PAGE */
#events article {
    width: 300px;
    display: inline-block;
    vertical-align: top;
    margin: 40px;
}
#events article div {
    height: 170px;
    width: 300px;
    background: red;
    margin-bottom: 30px;
}
#events article div img {
    width: 100%;
    height: 100%;
}
#events article .subject {
    margin-bottom: 10px;
}
#events article p {
    font-size: 13px;
    color: var(--text);
    font-weight: 300;
    margin: 0 0 30px 0;
}
#events article p i {
    color: var(--purple);
}
#events article h4 {
    margin: 0 0 10px 0;
    color: #fff;
}
#events article span {
    margin-top: 10px;
    background-color: var(--base-grey);
    font-size: 14px;
    padding: 10px 20px 10px 20px;
    font-weight: 600;
    color: #fff;
}

/* .icon {
    display: none;
} */


/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (max-width: 600px) {
    header {
        padding: 30vh 0 25vh 0;
    }
    header article h1 {
        font-size: 35px;
        line-height: 35px;
    }
    header article h2 {
        font-size: 18px;
    }
    header article a {
        padding: 10px 20px 10px 20px;
        font-size: 12px;
        font-weight: 500;
    }
    nav .right a {
        margin-right: 10px;
    }
    nav a {
        font-size: 14px;
    }
    nav .right a i {
        font-size: 14px;
    }
    #wrapper {
        max-width: 80vw;
    }
    #topbar {
        padding: 1.5vh 0 1.5vh 0;
    }
    #topbar h3 {
        font-size: 15px;
    }
    #services {
        padding: 10vh 0 0 0;
    }
    #services h2 {
        font-size: 25px;
    }
    #services .sub {
        font-size: 16px;
        margin: 0 0 50px 0;
    }
    #services img {
        width: 80px;
    }
    #services article div {
        padding: 40px 10px 0px 10px;
    }

    footer article h3 {
        font-size: 18px;
        margin: 0px;
    }
    footer article ul li {
        font-size: 13px;
    }
    footer .logo img {
        width: 90px;
    }
    footer p {
        font-size: 13px;
        font-weight: 500;
    }

    /* NEWS PAGE */
    #title {
        padding: 10vh 0 5vh 0;
    } 
    #title h1 {
        font-size: 30px;
        letter-spacing: 0px;
    }
    #news {
        padding: 10vh 0 10vh 0;
    }
    #news article {
        width: 100%;
        margin-bottom: 50px;
    }
    #news article p {
        color: var(--text);
        line-height: 20px;
        font-size: 14px;
    }
    #news h3 {
        color: #fff;
        font-size: 20px;
        margin: 0px;
    }
    #news .subject {
        background-color: var(--base-grey);
        display: inline-block;
        padding: 5px;
        font-size: 11px;
        border-radius: 4px;
        color: #fff;
        font-weight: 500;
    }


    /* EVENTS PAGE */
    #events article {
        width: 100%;
        margin: 20px 0 20px 0;
    }
    #events article div {
        height: 170px;
        width: 100%;
        background: red;
        margin-bottom: 30px;
    }
    #events article div img {
        width: 100%;
        height: 100%;
    }
    #events article .subject {
        margin-bottom: 10px;
    }
    #events article p {
        font-size: 13px;
        color: var(--text);
        font-weight: 300;
        margin: 0 0 30px 0;
    }
    #events article p i {
        color: var(--purple);
    }
    #events article h4 {
        margin: 0 0 10px 0;
        color: #fff;
    }
    #events article span {
        margin-top: 10px;
        background-color: var(--base-grey);
        font-size: 14px;
        padding: 10px 20px 10px 20px;
        font-weight: 600;
        color: #fff;
    }
}

/* ===== PRODUCT CARDS (simplified homepage) ===== */
#services .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 10px;
}
#services .products .card {
    background-color: rgba(17, 24, 37, 0.92);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .3s;
}
#services .products .card:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
}
#services .products .card .thumb {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #000;
    overflow: hidden;
}
#services .products .card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .4s;
}
#services .products .card:hover .thumb img { transform: scale(1.04); }
#services .products .card .body {
    padding: 22px 24px 26px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1;
}
#services .products .card .abbr {
    display: block;
    color: var(--purple);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
#services .products .card h3 {
    color: #fff;
    font-size: 18px;
    margin: 6px 0 0;
    letter-spacing: -0.5px;
    font-weight: 600;
    text-align: left;
    text-transform: none;
}
#services .products .card p {
    color: var(--text);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.55;
    margin: 12px 0 22px;
    text-transform: none;
    text-align: left;
    flex: 1;
}
#services .products .card p em { color: var(--purple); font-style: normal; font-weight: 500; }
#services .products .card .btn {
    align-self: flex-start;
    display: inline-block;
    background-image: var(--gradient);
    color: #fff;
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 6px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: .5px;
    transition: .3s;
}
#services .products .card .btn:hover {
    background: none;
    box-shadow: inset 0 0 0 1px #fff;
}
#services .products .card .btn i {
    color: #fff;
    margin-left: 8px;
    font-size: 11px;
}
@media only screen and (max-width: 600px) {
    #services .products { grid-template-columns: 1fr; }
}

.js-mail { cursor: pointer; }
