/*
    Cerne Website - Styles for the home page.

    Copyright (c) 2026 Cerne Project
    SPDX-License-Identifier: CC-BY-SA-4.0

    This file is part of the Cerne Project.
    See the LICENSE file in the root directory for further details.
*/
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Space+Grotesk:wght@300..700&display=swap');

/* Global stuff */

:root {
    --background-color: #030304;
    --header-background: rgba(255, 255, 255, 0.03);
    --button-background: rgba(0, 0, 0, 0.05);
    --button-hover: rgba(0, 0, 0, 0.15);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #00d0ffbe;
    --text-primary: #edededf3;
    --text-secondary: #a1a1a1e1;
}

::selection {
    background-color: var(--text-primary);
    color: var(--background-color);
}

body {
    margin: 0;
    padding: 0;
    font-family: "Outfit", sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--background-color);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#stars {
    width: 100%;
    height: 100%;
    position: relative;
}

.top-glow {
    position: absolute;
    top: -25vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 50vh;
    background: radial-gradient(
        ellipse at center, 
        var(--accent) 0%, 
        transparent 70%
    );
    opacity: 0.3;
    filter: blur(60px);
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background-color: var(--text-primary);
    animation: twinkle 5s infinite;
    width: 2px;
    height: 2px;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Header related stuff */

#header {
    background-color: var(--header-background) !important;
    backdrop-filter: blur(12px);
    border-radius: 8px;
    width: calc(80% - 40px);
    position: fixed;
    left: 50%;
    top: 20px;
    display: flex;
    align-items: center;
    padding: 10px 20px !important;
    transform: translateX(-50%);
}

#header .navbar-brand, 
#header .nav-link,
#header h3 {
    color: var(--text-primary) !important;
}

#header #left h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

#header #left h3 img {
    width: auto;
    height: 20px;
}

#header #right {
    position: static;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: "Outfit", sans-serif;
    transition: all ease-in-out .2s;
    font-size: 15px;
}

a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

button {
    background-color: transparent;
    color: var(--text-primary);
    border: none;
    outline: none;
    font-family: "Outfit", sans-serif;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all ease-in-out .2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

button:hover {
    background-color: var(--button-hover);
}

#discord i {
    color: var(--accent);
}

#login {
    border: 1px solid var(--border);
}

/* Body */

#body {
    text-align: center;
    padding-top: 120px;
}

#body h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 70px;
}

p {
    color: var(--text-secondary);
}

#body #choices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#download {
    background-color: var(--text-primary);
    backdrop-filter: blur(12px);
    color: var(--background-color);
    box-shadow: 0px 0px 15px var(--text-primary);
}

#download:hover {
    box-shadow: 0px 0px 20px var(--text-primary);
}

#learn_more {
    background-color: var(--accent);
    backdrop-filter: blur(12px);
    color: var(--background-color);
    box-shadow: 0px 0px 15px var(--accent);
}

#learn_more:hover {
    box-shadow: 0px 0px 20px var(--accent);
}