/* ======================== NAV ======================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(14, 15, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav__container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    width: 6rem;
    flex-shrink: 0;
    filter: invert(1) brightness(10);
    opacity: 0.9;
}

.nav__logo:hover { opacity: 1; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(240, 240, 240, 0.65);
    position: relative;
    padding-bottom: 3px;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-white);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav__socials {
    display: flex;
    gap: 0.6rem;
}

.nav__socials a {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--color-text);
    transition: var(--transition);
}

.nav__socials a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-1);
    transform: translateY(-2px);
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.4rem;
    height: 2.4rem;
    background: transparent;
    cursor: pointer;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 6px;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ======================== FOOTER ======================== */
footer {
    background: var(--color-bg-2);
    border-top: 1px solid var(--color-border);
}

.footer__container {
    width: var(--container-width);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 0 2.5rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--color-border);
}

.footer__logo {
    width: 7rem;
    margin-bottom: 1rem;
    filter: invert(1) brightness(10);
    opacity: 0.7;
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 28ch;
}

.footer__nav h4,
.footer__social h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.footer__nav ul,
.footer__social ul {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer__nav a,
.footer__social a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer__nav a:hover,
.footer__social a:hover {
    color: var(--color-primary);
    transform: translateX(4px);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__bottom p {
    font-size: 0.82rem;
    opacity: 0.45;
}

.footer__back-top {
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-1);
    font-size: 1.2rem;
    transition: var(--transition);
}

.footer__back-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(224, 145, 69, 0.4);
    color: var(--color-bg-1);
}

/* ======================== MARQUEE ======================== */
.marquee__wrapper {
    background: var(--color-bg-2);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    overflow: hidden;
}

.marquee__track {
    display: flex;
    gap: 2rem;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
    width: max-content;
}

.marquee__track span {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

.marquee__track .dot {
    color: var(--color-primary);
    font-weight: 700;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ======================== NAV MEDIA QUERIES ======================== */
@media screen and (max-width: 900px) {
    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80vw);
        height: 100vh;
        background: var(--color-bg-2);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 6rem 3rem;
        gap: 2rem;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav__links.open { right: 0; }
    .nav__link { font-size: 1.1rem; }
    .nav__socials { display: none; }
    .nav__hamburger { display: flex; }
}

@media screen and (max-width: 1100px) {
    .footer__top { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer__brand { grid-column: span 2; }
}

@media screen and (max-width: 900px) {
    .footer__top { grid-template-columns: 1fr; }
    .footer__brand { grid-column: auto; }
}

@media screen and (max-width: 640px) {
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
