@charset "UTF-8";

/* ============================================
   DOE DESIGNS — SHARED NAVIGATION
   nav.css
============================================ */

/* HEADER AND NAVBAR */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 70px;
    padding: 0 40px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* LOGO */

.logo {
    position: relative;
    z-index: 10003;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 1;
    text-decoration: none;
}

.logo-doe {
    color: #00E5FF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: .08em;
}

.logo-designs {
    position: relative;
    margin-left: 4px;
    color: #FFFFFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 17px;
    font-weight: 300;
    transform: translateY(5px);
    transition: color .3s ease;
}

.logo:hover .logo-designs {
    color: #00E5FF;
}

.logo-designs::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #00E5FF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.logo:hover .logo-designs::after {
    transform: scaleX(1);
}

/* STANDARD NAVIGATION LINKS */

.nav-links {
    display: flex;
    align-items: center;
    gap: 55px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
    transition: opacity .45s ease, transform .45s ease,
                visibility .45s ease;
}

.nav-links a {
    position: relative;
    display: inline-block;
    color: #FFFFFF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 13px;
    letter-spacing: .28em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    background: #00E5FF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: #00E5FF;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: #00E5FF;
}

/* ============================================
   PROJECT NAVIGATION
   One positioning system; no duplicate overrides.
============================================ */

.navbar > .project-title-nav {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 10001;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;

    width: max-content;
    max-width: calc(100% - 300px);
    height: 70px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* Keep the row's vertical position independent of its width. */
    transform: translate(-50%, -100%);

    transition:
        opacity .3s ease,
        transform .45s cubic-bezier(.22, 1, .36, 1),
        visibility 0s linear .45s;
}

/* Show project navigation after scrolling */

.navbar.project-scrolled > .project-title-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);

    transition:
        opacity .3s ease .05s,
        transform .45s cubic-bezier(.22, 1, .36, 1),
        visibility 0s;
}

/* Hide standard links while project navigation is showing */

.navbar.project-scrolled > .nav-links {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-100%);
}

/* PROJECT TITLE */

.project-title-nav > h1 {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;

    color: #00E5FF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.project-title-nav > h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: width .3s ease;
}

.project-title-nav > h1:hover::after {
    width: 100%;
}


/* PROJECT CATEGORY — INDEPENDENT OF CENTERED PROJECT TITLE */

.navbar > .project-category-link {
    opacity: 0;
    visibility: hidden;
	position: absolute;
    top: 50%;
    right: 40px;
    left: auto;
    z-index: 10002;

    display: inline-block;
    width: auto;
    max-width: 160px;
    margin: 0;
    padding: 0;

    color: #00E5FF;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.15;
    text-align: right;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;

    transform: translateY(-50%);
    transition: color .3s ease, opacity .3s ease, visibility 0s linear .3s;
}

/* Show category only when compact project navigation is active */

.navbar.project-scrolled > .project-category-link {
    opacity: 1;
    visibility: visible;
	transition: color .3s ease, opacity .3s ease, visibility 0s;
}

.navbar > .project-category-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: #FFFFFF;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}

.navbar > .project-category-link:hover,
.navbar > .project-category-link:focus-visible {
    color: #FFFFFF;
}

.navbar > .project-category-link:hover::after,
.navbar > .project-category-link:focus-visible::after {
    transform: scaleX(1);
}

/* PREVIOUS / NEXT ARROWS */

.project-title-nav > .project-arrow {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-width: 42px;
    height: 48px;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.arrow-circle {
    position: relative;
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    transform: translateY(-2px);
}

.arrow-triangle {
    width: 0;
    height: 0;
}

.project-arrow.prev .arrow-triangle {
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: 14px solid #FFFFFF;
}

.project-arrow.next .arrow-triangle {
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #FFFFFF;
}

.arrow-circle::before {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid transparent;
    border-top-color: #00E5FF;
    border-radius: 50%;
    opacity: 0;
    transition: opacity .25s ease;
}

.project-arrow:hover .arrow-triangle,
.project-arrow:focus-visible .arrow-triangle {
    border-left-color: #00E5FF;
    border-right-color: #00E5FF;
}

.project-arrow:hover .arrow-circle::before,
.project-arrow:focus-visible .arrow-circle::before {
    opacity: 1;
}

.project-arrow.next:hover .arrow-circle::before {
    animation: arrowSpinRight 5s linear infinite;
}

.project-arrow.prev:hover .arrow-circle::before {
    animation: arrowSpinLeft 5s linear infinite;
}

@keyframes arrowSpinRight {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes arrowSpinLeft {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* HAMBURGER BUTTON */

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    z-index: 10003;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

/* DESKTOP POSITIONING SAFEGUARDS */

@media (min-width: 1101px) {
    header,
    header .navbar {
        overflow: visible;
    }

    header .navbar {
        isolation: isolate;
    }

    /*
      Use the navbar's dimensions instead of viewport-based
      left/right offsets for the main project navigation row.
    */
    header .navbar > .project-title-nav {
        top: 0;
        height: 70px;
        box-sizing: border-box;
    }

header .navbar {
    position: relative;
}
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .project-title-nav,
    .project-title-nav h1::after,
	.navbar > .project-category-link,
	.navbar > .project-category-link::after,
    .nav-links,
    .menu-toggle span {
        transition: none !important;
    }

    .project-arrow:hover .arrow-circle::before {
        animation: none !important;
    }
}
