@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=author@200,300,400,500,600,700&display=swap');

/* global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1e1e1e;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Author', sans-serif;
    letter-spacing: 0.01em;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    background: #111;
    padding: 0 16px;
    height: 72px;
    width: 100%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transition: transform 0.3s ease, top 0.3s ease; /* Add transition for top */
}

.nav-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    width: 100%;
}

.logo {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    transition: filter 0.3s ease;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
    margin: auto 0;
    border-radius: 10px;
}

/* .logo:hover {
    filter: brightness(0) saturate(100%) contrast(30%) brightness(2);
} */

.nav-links {
    list-style: none;
    position: fixed;
    top: 72px;
    left: 100%;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 12, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: top;
    transition: left 0.5s ease, transform 0.3s ease;
    z-index: 9997;
    backdrop-filter: blur(7px);
}

.nav-links li {
    padding: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: var(--i);
}

.nav-links.active li {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: color ease 0.3s;
    font-family: 'Author', sans-serif;
    font-weight: 500;
}

.nav-links.active {
    left: 0;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hamburger span {
    background: white;
    height: 3px;
    width: 30px;
    transition: all 0.4s ease;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(-45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(45deg);
}

.fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-50px); /* Start from the left */
}

.fade-in-right {
    transform: translateX(50px); /* Start from the right */
}

.fade-in-left.show, .fade-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* promo banner */
.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffe100;
    color: #000;
    text-align: center;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 9998;  /* just below navbar's 9999 */
    transition: transform 0.3s ease;
    overflow: hidden;
}

#promo-text {
  display: inline-block;
}

.promo-scroll-wrapper {
    overflow: hidden;
    width: 100%;
}

.promo-scroll {
    white-space: nowrap;
    display: inline-block;
    transform: translateX(0);
    transition: transform 5s linear;
}

.promo-scroll.faded {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* footer */
.footer {
    background-color: #1e1e1e;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}

.footer-strip {
    height: 6px;
    background-color: #00aaff; /* Your blue */
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 960px;
    margin: 20px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1 1 200px;
    margin: 10px;
}

.footer-section h4 {
    margin-bottom: 12px;
    color: #00aaff;
}

.footer-section p,
.footer-section a {
    color: #ddd;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* Remove default list styles and fix spacing */
.footer-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ddd;
}

.footer-section.social-media ul {
    display: flex;
    gap: 15px;
}

.footer-section.social-media ul li a {
    font-size: 1.2rem;
    color: #00aaff;
    transition: color 0.3s ease;
}

.footer-section.social-media ul li a:hover {
    color: #1cb3ff;
}

.footer-bottom {
    text-align: center;
    background-color: #151515;
    padding: 12px 20px;
    font-size: 0.8rem;
    color: #bbb;
    border-top: 1px solid #ccc;
}


@media (max-width: 767px) {
    .nav-links:not(.active) li {
        opacity: 0 !important;
        transform: translateY(20px) !important;
        transition: opacity 0.3s ease, transform 0.5s ease;
    }
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        display: flex;
        position: static;
        flex-direction: row;
        background: none;
        width: auto;
        height: auto;
    }

    .nav-links li {
        padding: 0 15px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        transition-delay: var(--f);
    }

    .nav-links li:first-child {
        --f: 0.1s;
    }

    .nav-links li:nth-child(2) {
        --f: 0.2s;
    }

    .nav-links li:nth-child(3) {
        --f: 0.3s;
    }

    .nav-links li:nth-child(4) {
        --f: 0.4s;
    }

    .nav-links li:nth-child(5) {
        --f: 0.5s;
    }

    .nav-links.loaded li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a {
        position: relative;
        display: inline-block;
        text-decoration: none; /* Remove default underline */
    }

    .nav-links a:hover {
        color: #00aaff;
    }

    .nav-links a::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px; /* Adjust the thickness of the underline */
        background-color: #00aaff;
        transition: width 0.3s ease; /* Animate the width */
    }
    
    .nav-links a:hover::after {
        width: 100%; /* On hover, the width expands to 100% */
    }
}