/*FONTS-------------------------------------------------------------------------------*/

@font-face {
    font-family: 'WMCT_One';
    src: url('../fonts/wmctOne.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Blogger';
    src: url("../fonts/blogger.ttf");
    font-weight: normal;
    font-style: normal;
}

/*Basic Website CSS-------------------------------------------------------------------*/

body {
    font-family: 'WMCT_One', sans-serif;
    color: #0c0c0c;
    background: none;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    transition: opacity 0.6s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Isolate the large page gradient into a fixed pseudo-element so it's
   rasterized once into its own compositing layer and doesn't repaint on
   content changes (reduces paint cost during scrolling). */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(0deg, #0b0f1b 0%, #000000 100%);
    transform: translateZ(0);
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.white {
    color: #ffffff;
}

.center {
    text-align: center;
}

.blogger {
    font-family: "Blogger", sans-serif;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
    list-style: none;
}

/*Animations---------------------------------------------------------------------------*/

.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1),
        transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-up {
    transform: translateY(50px);
}

.active-reveal {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/*Navigation Bar----------------------------------------------------------------------*/

.nav-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Solid background instead of backdrop-filter: the sticky nav must
       re-blur the entire viewport on every scroll pixel which is a major
       per-frame paint cost - visually ~identical at 0.96 opacity. */
    background: rgba(11, 15, 27, 0.96);
    will-change: transform;
}

.wmct-home-logo {
    width: 110px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 5px rgba(76, 132, 182, 0.2));
}

.logo-link:hover .wmct-home-logo {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 0 15px rgba(76, 132, 182, 0.5));
}

.navbar-nav {
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'WMCT_One', sans-serif;
    color: #ffffff !important;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: block;
    border-radius: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-accent, #4c84b6);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 8px #4c84b6;
}

.nav-link:hover {
    color: #4c84b6 !important;
    background: rgba(212, 248, 67, 0.05);
}

.nav-link:hover::after,
.nav-item.active .nav-link::after {
    width: 70%;
}

.nav-item.active .nav-link {
    color: #4c84b6 !important;
    text-shadow: 0 0 10px rgba(212, 248, 67, 0.4);
}

/* Pulsing "Live" indicator for Event Stats (If i decide to add that functionality) 
.nav-item:nth-child(3) .nav-link {
    position: relative;
}

.nav-item:nth-child(3) .nav-link::before {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 5px;
    height: 5px;
    background: #ff5353;
    border-radius: 50%;
    animation: pulseRed 1.5s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(255, 83, 83, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 83, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 83, 83, 0); }
} */

/* RESPONSIVE NAV */
@media (max-width: 900px) {
    .nav-section {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }

    .navbar-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
}

/*Footer------------------------------------------------------------------------------*/

.footer {
    background: #0b141d;
    border-top: 1px solid rgba(83, 195, 255, 0.3);
    padding: 12px 5%;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.footer-text-brand {
    font-family: "Blogger", sans-serif;
    font-weight: bold;
    letter-spacing: 4px;
    font-size: 2rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.footer-item p {
    font-size: 1rem;
    font-family: "Blogger", sans-serif;
    color: rgb(255, 255, 255);
    margin: 0;
    border-left: 1px solid rgba(83, 195, 255, 0.2);
    padding-left: 15px;
    max-width: 320px;
    line-height: 1.3;
}

.footer-redirects {
    flex: 1;
    justify-content: left;
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-redirects li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: "Blogger", sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.footer-redirects img {
    width: 100%;
    height: 25px;
    filter: grayscale(1) opacity(0.8);
}

.footer-copyright {
    flex: 1;
    text-align: right;
    margin: 0;
    font-size: 0.75rem;
    font-family: "Blogger", sans-serif;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.footer-redirects li a:hover {
    color: #53c3ff;
}

.footer-redirects li a:hover img {
    filter: grayscale(0) opacity(1);
}

/* RESPONSIVE FOOTER */
@media (max-width: 900px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }

    .footer-item p {
        border-left: none;
        padding-left: 0;
        max-width: 100%;
    }

    .footer-redirects {
        justify-content: center;
        width: 100%;
    }

    .footer-copyright {
        text-align: center;
        width: 100%;
        white-space: normal;
    }
}

/*Shared Utility Classes---------------------------------------------------------------*/

.highlight-red {
    color: #ff5353;
    text-shadow: 1px 1px 2px #ff5353;
}

.highlight-blue {
    color: #53c3ff;
    text-shadow: 1px 1px 2px #53c3ff;
}

.highlight-yellow-shadow {
    color: #ffea63;
    text-shadow: 1px 1px 2px #ffea63;
}

.highlight-yellow {
    color: #ffea63;
}

.highlight-green {
    color: #82ff4a;
    text-shadow: 1px 1px 2px #82ff4a;
}

.highlight-box {
    background-color: #133552;
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    width: -moz-fit-content;
    width: fit-content;
}

.highlight-box a {
    color: #ffea63;
    text-decoration: none;
}

.highlight-box a:hover {
    color: #fff176;
}

a,
a:hover,
a:focus {
    color: #53c3ff;
    text-decoration: none;
}