@import url("variables.css");

:root {
    --glow-main: rgba(180, 220, 255, 0.9);
    --glow-soft: rgba(180, 220, 255, 0.5);
    --glow-neon: rgba(0, 229, 255, 1);
}

html,
body {
    height: 100%;
    font-family: "LibreBaskerville", system-ui, -apple-system, sans-serif;
    font-size: medium;
    color: white;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "LibreBaskerville", system-ui, -apple-system, sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("../images/Space-Background.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

.game-icon {
    width: 12em;
    height: auto;
    align-self: center;
}

/*------------------------------------------------------------------------header section start------------------------------------------------------------------------*/

.header-background {
    background: linear-gradient(to top, rgba(0, 0, 0, 0), rgb(0, 0, 0));
}

/* Brand animation */
.brand-animate {
    opacity: 0;
    transform: translateY(-10px);
    animation: brandSlideIn 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

/* Brand stacked text */
.brand-stack {
    display: flex;
    flex-direction: column;
    line-height: 1;
    color: white;
}

/* Main brand text */
.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-shadow:
        0 0 6px var(--glow-main),
        0 0 12px var(--glow-soft),
        0 0 24px rgba(0, 229, 255, 0.3);
}

/* Subtitle */
.brand-subtitle {
    text-align: center;
    margin: 2px;
    text-shadow:
        0 0 4px var(--glow-soft),
        0 0 10px rgba(0, 229, 255, 0.25);
}

/* Nav animation */
.nav-animate {
    opacity: 0;
    transform: translateY(-10px);
    animation: navSlideIn 0.8s ease-out forwards;
    animation-delay: 1s;
}

/* Set brand color */
.navbar-brand:hover,
.navbar-brand:focus {
    text-decoration: none;
}

/* Prevent hover from changing child text */
.navbar-brand:hover .brand-title,
.navbar-brand:hover .brand-subtitle {
    color: inherit;
}

/* Optional: nav spacing */
.navbar-nav .nav-link {
    margin: 0 1rem;
    font-weight: 500;
    color: white;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* Base nav link styling */
.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 6px;
    color: #ffffff;
    text-shadow:
        0 0 6px var(--glow-main),
        0 0 12px var(--glow-soft),
        0 0 10px rgba(0, 229, 255, 0.25);
    ;
}

/* Underline */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover effect */
.navbar-nav .nav-link:hover::after {
    transform-origin: center;
    transform: scaleX(1);
}

/* Active / clicked state */
.navbar-nav .nav-link.active::after,
.navbar-nav .nav-link:focus::after {
    transform-origin: center;
    transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    text-shadow:
        0 0 6px var(--glow-soft),
        0 0 14px var(--glow-neon),
        0 0 10px rgba(0, 229, 255, 0.25);

}

/*------------------------------------------------------------------------header section end------------------------------------------------------------------------*/

/*------------------------------------------------------------------------brand section start-----------------------------------------------------------------------*/

.brand-section {
    opacity: 0;
    padding-top: 1em;
    transform: translateY(20px);
    animation: brandFadeUp 0.8s ease-out forwards;
    animation-delay: 1.8s;
}

.brand-text {
    text-shadow:
        0 0 6px var(--glow-soft),
        0 0 14px var(--glow-neon);
}

/*------------------------------------------------------------------------brand section end-------------------------------------------------------------------------*/
/*------------------------------------------------------------------------divider section start-------------------------------------------------------------------------*/

.section-divider {
    width: 100%;
    height: 1px;
    margin: 2em;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
}

/*------------------------------------------------------------------------divider section end-------------------------------------------------------------------------*/


/*------------------------------------------------------------------------games section start------------------------------------------------------------------------*/
.games-section {
    opacity: 0;
    transform: translateY(20px);
    animation: brandFadeUp 0.8s ease-out forwards;
    animation-delay: 2.6s;
}

/* Space below section title */
.games-title {
    margin-bottom: 1em;
}

/* Card container */
.game-card {
    display: flex;
    flex-direction: column;
    height: 100%;

    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding-top: 1.5rem;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover glow */
.game-card:hover {
    box-shadow: 0 10px 30px rgba(255, 0, 179, 0.534);
}

.game-icon {
    width: 96px;
    height: auto;
    margin: 0 auto 1rem;

    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.game-card .card-body {
    background: transparent;
    padding: 1rem 1.25rem;
    flex-grow: 1;
}

.game-card .card-title {
    color: #ffffff;
    text-shadow: 0 0 6px rgba(180, 220, 255, 0.6);
}

.game-card .card-text {
    color: #d9f7ff;
    font-size: 0.9rem;
    line-height: 1.6;

    text-shadow:
        0 0 4px rgba(180, 220, 255, 0.4),
        0 0 10px rgba(0, 229, 255, 0.2);
}

.game-card .card-footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: none;

    padding: 0.75rem;
}

/* Footer link */
.game-card .card-footer a {
    color: #00e5ff;
    text-decoration: none;
    font-weight: 500;
}

.game-card .card-footer a:hover {
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.8);
}

.store-icon {
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/*------------------------------------------------------------------------games section end--------------------------------------------------------------------------*/

/*------------------------------------------------------------------------animations section start------------------------------------------------------------------*/
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes brandSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes brandFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/*------------------------------------------------------------------------animations section end-------------------------------------------------------------------*/

/*------------------------------------------------------------------------footer section start-------------------------------------------------------------------*/

/* Footer container */
.site-footer {
    background: linear-gradient(to bottom,
            rgba(10, 15, 25, 0),
            rgba(5, 10, 18, 1));
    padding: 0 0 1.5rem;
    color: #cfefff;
    position: relative;
    opacity: 0;
    animation: brandSlideIn 0.8s ease-out 3.4s forwards;
}

/* Footer section titles */
.footer-title {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;

    text-shadow:
        0 0 6px rgba(180, 220, 255, 0.5);
}

/* Footer lists */
.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

/* Footer links */
.footer-list a {
    color: #9fefff;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/* Bottom copyright */
.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(200, 230, 255, 0.7);

    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/*------------------------------------------------------------------------footer section end-------------------------------------------------------------------*/

/*------------------------------------------------------------------------top padding start--------------------------------------------------------------------*/
.padding-top {
    padding-top: 4em;
}

.animate-after-header {
    opacity: 0;
    animation: brandFadeUp 0.8s ease-out forwards;
    animation-delay: 2.6s;
}

/*------------------------------------------------------------------------top padding end--------------------------------------------------------------------*/

/*------------------------------------------------------------------------misc start--------------------------------------------------------------------------*/
.highlight-text {
    color: #9fefff;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

/*------------------------------------------------------------------------misc end--------------------------------------------------------------------------*/