/* =====================================================
   SELİN ATEŞ
   NAVIGATION.CSS
   OTHER PAGES NAVIGATION
===================================================== */


/* =====================================================
   HEADER
===================================================== */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 90px;

    padding:
        0 var(--padding, 3%);

    display: flex;

    align-items: center;

    justify-content: space-between;

    z-index: 1000;

    background: transparent;

}


/* =====================================================
   LOGO
===================================================== */

.site-logo {

    position: relative;

    z-index: 1002;

    display: flex;

    align-items: center;

    gap: 8px;

    color:
        var(--white, #f5f5f5);

    font-family:
        var(
            --display,
            "Oswald",
            Arial,
            sans-serif
        );

    font-size: 18px;

    font-weight: 600;

    line-height: 1;

    letter-spacing: -.03em;

    text-decoration: none;

    white-space: nowrap;

}


/* =====================================================
   LOGO DOT
===================================================== */

.logo-dot {

    width: 6px;
    height: 6px;

    flex: 0 0 6px;

    border-radius: 50%;

    background:
        var(--red, #ff2020);

    box-shadow:
        0 0 8px
        rgba(255, 32, 32, .9),

        0 0 18px
        rgba(255, 32, 32, .35);

    animation:
        logoPulse 1.6s infinite;

}


@keyframes logoPulse {

    0%,
    100% {

        opacity: .55;

        transform:
            scale(.8);

    }

    50% {

        opacity: 1;

        transform:
            scale(1.25);

    }

}


/* =====================================================
   DESKTOP NAVIGATION
===================================================== */

.desktop-nav {

    position: absolute;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    display: flex;

    align-items: center;

    gap: 28px;

    white-space: nowrap;

    z-index: 1001;

}


.desktop-nav a {

    position: relative;

    display: inline-block;

    padding: 8px 0;

    color: #686868;

    font-family:
        var(
            --mono,
            "DM Mono",
            monospace
        );

    font-size: 10px;

    font-weight: 400;

    line-height: 1;

    letter-spacing: .12em;

    text-decoration: none;

    transition:
        color .3s ease,
        opacity .3s ease;

}


/* =====================================================
   NAV UNDERLINE
===================================================== */

.desktop-nav a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 1px;

    background:
        var(--red, #ff2020);

    box-shadow:
        0 0 8px
        rgba(255, 32, 32, .7);

    transition:
        width .4s
        cubic-bezier(
            .16,
            1,
            .3,
            1
        );

}


/* =====================================================
   HOVER
===================================================== */

.desktop-nav a:hover {

    color:
        var(--white, #f5f5f5);

}


.desktop-nav a:hover::after {

    width: 100%;

}


/* =====================================================
   ACTIVE PAGE
===================================================== */

.desktop-nav a.active {

    color:
        var(--white, #f5f5f5);

}


.desktop-nav a.active::after {

    width: 100%;

}


/* =====================================================
   HEADER RIGHT
===================================================== */

.header-right {

    position: relative;

    z-index: 1002;

    display: flex;

    align-items: center;

    gap: 20px;

}


/* =====================================================
   LANGUAGE
===================================================== */

.language-switcher {

    display: flex;

    align-items: center;

    gap: 7px;

    font-family:
        var(
            --mono,
            "DM Mono",
            monospace
        );

    font-size: 9px;

    line-height: 1;

    letter-spacing: .1em;

    white-space: nowrap;

}


.language-switcher > span {

    color: #3d3d3d;

}


.language-switcher .language {

    color: #666;

    cursor: pointer;

    transition:
        color .3s ease;

}


.language-switcher .language:hover {

    color:
        var(--white, #f5f5f5);

}


.language-switcher .language.active {

    color:
        var(--white, #f5f5f5);

}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.menu-button {

    position: relative;

    display: none;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;

    z-index: 1003;

}


.menu-button span {

    position: absolute;

    left: 6px;

    width: 26px;
    height: 1px;

    background:
        var(--white, #f5f5f5);

    transition:
        top .4s
        cubic-bezier(
            .16,
            1,
            .3,
            1
        ),

        transform .4s
        cubic-bezier(
            .16,
            1,
            .3,
            1
        );

}


.menu-button span:first-child {

    top: 14px;

}


.menu-button span:last-child {

    top: 22px;

}


/* =====================================================
   MOBILE BUTTON ACTIVE
===================================================== */

.menu-button.active
span:first-child {

    top: 18px;

    transform:
        rotate(45deg);

}


.menu-button.active
span:last-child {

    top: 18px;

    transform:
        rotate(-45deg);

}


/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu {

    position: fixed;

    inset: 0;

    z-index: 950;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #050505;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .45s ease,
        visibility .45s ease;

}


.mobile-menu.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* =====================================================
   MOBILE MENU NAV
===================================================== */

.mobile-menu nav {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;

    width:
        min(
            90%,
            700px
        );

}


.mobile-menu nav a {

    position: relative;

    color:
        var(--white, #f5f5f5);

    font-family:
        var(
            --display,
            "Oswald",
            Arial,
            sans-serif
        );

    font-size:
        clamp(
            42px,
            9vw,
            90px
        );

    font-weight: 500;

    line-height: .9;

    letter-spacing: -.05em;

    text-decoration: none;

    transition:
        color .3s ease,
        transform .4s
        cubic-bezier(
            .16,
            1,
            .3,
            1
        );

}


/* =====================================================
   MOBILE HOVER / ACTIVE
===================================================== */

.mobile-menu nav a:hover,
.mobile-menu nav a.active {

    color:
        var(--red, #ff2020);

    transform:
        translateX(12px);

}


/* =====================================================
   MOBILE BACKGROUND
===================================================== */

.mobile-menu-background {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    pointer-events: none;

}


.mobile-menu-background span {

    white-space: nowrap;

    color: transparent;

    font-family:
        var(
            --display,
            "Oswald",
            Arial,
            sans-serif
        );

    font-size: 25vw;

    font-weight: 600;

    line-height: 1;

    -webkit-text-stroke:
        1px
        rgba(
            255,
            32,
            32,
            .08
        );

    opacity: .7;

}


/* =====================================================
   MENU OPEN
===================================================== */

body.menu-open {

    overflow: hidden;

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

    .desktop-nav {

        gap: 18px;

    }


    .desktop-nav a {

        font-size: 9px;

    }


    .header-right {

        gap: 15px;

    }

}


/* =====================================================
   MOBILE NAVIGATION
===================================================== */

@media (max-width: 900px) {

    .desktop-nav {

        display: none;

    }


    .language-switcher {

        display: none;

    }


    .menu-button {

        display: block;

    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .site-header {

        height: 75px;

        padding-left: 20px;

        padding-right: 20px;

    }


    .site-logo {

        font-size: 16px;

    }


    .logo-dot {

        width: 5px;
        height: 5px;

        flex-basis: 5px;

    }


    .mobile-menu nav {

        width:
            calc(
                100% - 40px
            );

    }


    .mobile-menu nav a {

        font-size:
            clamp(
                40px,
                13vw,
                65px
            );

    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .logo-dot {

        animation: none;

    }


    .desktop-nav a,
    .mobile-menu,
    .mobile-menu nav a,
    .menu-button span {

        transition: none;

    }

}