/* ==== CUSTOM PROPERTIES ==== */

:root {

    --light: #fff;
    --dark: #000;
    --muted: #bebebe;

    --opacity-muted: 0.5
}

/* ==== RESET / BASE ==== */

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow: hidden;
}

/* ==== UTILITIES ==== */

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-row {
    flex-direction: row;
}

.flex-col {
    flex-direction: column;
}

.align-items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.text-center {
    text-align: center;
}

.display-none {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.space-between {
    justify-content: space-between;
}

.gap-md {
    gap: 1rem;
}

.opacity-muted {
    opacity: 0.5;
}

/* ==== Navbar ==== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0 2rem;
    height: 60px;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .logo {
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.logo img {
    width: 32px;
    padding-right: 0.5rem;
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navbar nav {
    display: flex;
    align-items: center;
}

.navbar nav a {
    color: var(--light);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.navbar nav a.active {
    opacity: 1;
}

.navbar nav a:hover {
    color: var(--light);
    opacity: 1;
}

/* ==== Footer ==== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    height: 40px;
    background: rgba(17, 17, 17, 0.55);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
}

.footer a {
    color: var(--light);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 1;
}

/* ==== STATES ==== */
.hamburger {
    display: none;
    color: var(--light);
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* ==== OVERLAY ==== */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    font-weight: bold;
    background: rgba(255, 145, 0, 0.95);
    z-index: 200;
    display: none;
}

.overlay.is-open {
    display: flex;
}

.overlay-content ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.overlay-content li {
    margin: 1rem 0;
}

.overlay-content a {
    font-size: clamp(2rem, 10vw, 5rem);
    color: var(--light);
    text-decoration: none;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.overlay-content a:hover {
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: .7rem;
    right: 1.8rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
}

/* ==== Loop ==== */
.loop-wrapper {
    /* Safari Fix */
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    position: relative;
}

.loop-track {
    will-change: transform;
}

.loop-slide {
    /* Safari Fix */
    height: calc(var(--vh, 1vh) * 100);
    font-size: 4.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Slide-Colors via data-index for 1st scroll*/
.loop-slide[data-index="0"] {
    background: #e76f51;
}

.loop-slide[data-index="1"] {
    background: #2a9d8f;
}

.loop-slide[data-index="2"] {
    background: #e9c46a;
    color: #222;
}

.loop-slide[data-index="3"] {
    background: #264653;
}

.loop-slide[data-index="4"] {
    background: #f4a261;
    color: #222;
}

/* ScrollSpy Dot-Navigation */
.dot-nav {
    position: fixed;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    gap: 0.6rem;
}

.dot-nav button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}

.dot-nav button.active {
    background: #fff;
    transform: scale(1.4);
}

@media screen and (max-width:576px) {

    /* nav .icons, */
    nav:not(.footer-nav) a {
        display: none;
    }

    .hamburger {
        display: block;
        color: var(--light);
        background-color: transparent;
        border: transparent;
        font-size: 2rem;
        transform: translateY(-2px);
    }

    .footer {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .logo-text {
        display: none;
    }
}

@media screen and (max-width: 375px) {

    .loop-slide {
        font-size: 3rem;
    }
}

@media screen and (max-width: 320px) {

    .loop-slide {
        font-size: 2.5rem;
    }
}