@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Outfit:wght@100..900&display=swap');

/* DEFAULT VALUES */
:root {
    --bg-100: #000000;
    --bg-200: #0a0a0a;
    --bg-300: #111111;
    --bg-400: #1a1a1a;
    --bg-500: #222222;

    --fg-100: #ffffff;
    --fg-200: #f0f0f0;
    --fg-300: #e0e0e0;
    --fg-400: #d0d0d0;
    --fg-500: #c0c0c0;

    --font-body: 'Outfit';
    --font-title: 'Fredoka';
}

/* ALL STYLES */
* {
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
    outline: none;
    background: none;
    color: var(--fg-100);
}

/* PREFERS LIGHT MODE */
@media (prefers-color-scheme: light) {
    :root {
        --fg-100: #000000;
        --fg-200: #0a0a0a;
        --fg-300: #111111;
        --fg-400: #1a1a1a;
        --fg-500: #222222;

        --bg-100: #ffffff;
        --bg-200: #f0f0f0;
        --bg-300: #e0e0e0;
        --bg-400: #d0d0d0;
        --bg-500: #c0c0c0;
    }
}

/* BODY & HTML */
body {
    display: flex;
    flex-direction: column;
    background: var(--bg-100);
    font-family: var(--font-body);
}

/* NAV HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 3rem;
    color: var(--fg-100);
    user-select: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.2), transparent);
    z-index: 9999;
}

header .header-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header-links li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-links li a {
    position: relative;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-family: var(--font-title);
    font-weight: 600;
    letter-spacing: 1px;
}

.header-links li a::after {
    position: absolute;
    top: 100%;
    left: 50%;
    content: '';
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--fg-100);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
    border-radius: 999px;
}

.header-links li a:hover::after,
.header-links li a.active::after {
    transform: translateX(-50%) scaleX(1)
}

/* HERO SECTIONS */
.hero {
    display: flex;
    height: 100vh;
    background: url('/images/backgrounds/home.png');
    background-position: center;
    background-size: cover;
}

.hero.dark {
    background: var(--bg-100);
}
.hero.dark .hero-container span {
    color: var(--fg-100);
}
.hero.dark .hero-content {
    margin-left: 0;
    margin-right: 3rem;
    text-align: right;
    justify-content: end;
    width: 100%;
}
.hero.dark .hero-content p {
    color: var(--fg-100);
    text-align: right;
    width: 50%;
    justify-self: end;
    text-transform: capitalize;
    font-family: var(--font-body);
    font-weight: 500;
}
.hero.dark .hero-content .hero-title {
    color: var(--fg-100);
    padding: 0;
    font-size: 2.5rem;
    text-align: right;
    width: 100%;
    background: none;
}
.hero.dark .hero-content .hero-title.accent {
    color: var(--fg-100);
}

.hero[data-image="freight"] {
    background: linear-gradient(rgba(255,255,255,0.2)), url('images/services/freight.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="orbital"] {
    background: linear-gradient(rgba(255,255,255,0.2)), url('images/services/orbital.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="construction"] {
    background: linear-gradient(rgba(255,255,255,0.2)), url('images/services/construction.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="rs420"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/rs420.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="rs520"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/rs520.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="aurora"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/aurora.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="orblink"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/orblink.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="liquidfuelunit"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/liquidfuelunit.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="generalfreighttrailer"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/generalfreighttrailer.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="discord"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/discord.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="stumpy"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/stumpy.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="taxi"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/taxi.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="tray"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/tray.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="highboy"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/highboy.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="snatch"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/snatch.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="boomer"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/boomer.png');
    background-size: cover;
    background-position: center right;
}
.hero[data-image="ram"] {
    background: linear-gradient(to left, rgba(0,0,0,0.9), rgba(0,0,0,0.6), transparent), url('images/backgrounds/ram.png');
    background-size: cover;
    background-position: center right;
}


.separator {
    height: 3px;
    width: 100%;
    background: var(--fg-100);
}

.hero .hero-container {
    display: flex;
    flex-direction: column;
    user-select: none;
    width: 100%;
}
.hero .hero-container span {
    padding: 0 3rem;
    margin-top: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--bg-100);
}

.hero .hero-content {
    display: flex;
    gap: 2rem;
    padding-left: 3rem;
    padding-top: 8rem;
    user-select: none;
}

.hero .hero-content p {
    margin-top: 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--bg-100);
}

.hero .hero-content .hero-title {
    font-family: var(--font-title);
    font-size: 4.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--bg-100);
    border-radius: 12px;
    width: fit-content;
    padding: 0 1rem;
}

.hero .hero-content .hero-title.accent {
    font-family: var(--font-body);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    background: none;
    padding: 0;
    color: var(--bg-100);
}

.hero .hero-content .logo-link {
    height: 135px;
    aspect-ratio: 1 / 1;
}

.hero .hero-content .logo-link .logo {
    width: 100%;
    display: inline-block;
    -webkit-user-drag: none;
}

.hero .hero-content .logo-link .logo {
    animation: spin 20s linear infinite;
}

.hero .hero-container .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    padding: 3rem 3rem;
    flex: 1;
    gap: 2rem;
}

.hero .hero-container .grid .card {
    display: flex;
    background: var(--fg-100);
    border-radius: 12px;
    border: 4px solid var(--bg-100);
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.hero .hero-container .grid .card[data-image="freight"] {
    background: url('images/services/freight.png');
    background-size: cover;
    background-position: center right;
}
.hero .hero-container .grid .card[data-image="orbital"] {
    background: url('images/services/orbital.png');
    background-size: cover;
    background-position: center right;
}
.hero .hero-container .grid .card[data-image="construction"] {
    background: url('images/services/construction.png');
    background-size: cover;
    background-position: center right;
}

.hero .hero-container .grid .card .card-title {
    color: var(--fg-100);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-title);
    text-transform: uppercase;
    padding: 1rem;
    width: 100%;
    background: linear-gradient(rgba(0,0,0,0.5));
    height: fit-content;
}

.hero.dark .hero-content .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hero .hero-content .hero-text .cta {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--fg-100);
    color: var(--bg-100);
    font-family: var(--font-title);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 999px;
    width: fit-content;
    text-decoration: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .logo-link {
        display: none;
    }

    .hero,
    .hero.dark {
        background-size: cover;
        background-position: center;
        min-height: 100vh;
        height: fit-content;
        overflow-x: hidden;
    }

    .hero .hero-container,
    .hero.dark .hero-container {
        padding: 0;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero .hero-content,
    .hero.dark .hero-content {
        margin: 0;
        margin-top: 5rem;
        padding: 3rem;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 90%;
    }
    .hero .hero-content p,
    .hero.dark .hero-content p {
        width: 100%;
        text-align: center;
    }

    .hero .hero-content .hero-title,
    .hero.dark .hero-content .hero-title {
        width: fit-content;
        margin: 0 auto;
        font-size: 2.5rem;
        text-align: center;
    }

    .grid {
        width: 90%;
    }
    .cta {
        align-self: center;
    }
}
