/* =========================================================
   SERKAN ŞİMŞEK // DIGITAL EXPERIENCE
   SIDEBAR
   FINAL
========================================================= */

.sidebar {
    position: fixed;

    left: 34px;
    top: 50%;

    z-index: 9000;

    width: 96px;
    min-height: 620px;

    padding: 24px 16px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: space-between;

    transform:
        translateY(-50%)
        translateZ(0);

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 36px;

    background:
        linear-gradient(
            180deg,
            rgba(22, 22, 22, .72),
            rgba(7, 7, 7, .58)
        );

    backdrop-filter:
        blur(22px)
        saturate(130%);

    -webkit-backdrop-filter:
        blur(22px)
        saturate(130%);

    box-shadow:
        0 35px 100px
        rgba(0, 0, 0, .55),

        inset 0 1px 0
        rgba(255, 255, 255, .05),

        inset 0 -1px 0
        rgba(199, 154, 61, .035);

    overflow: hidden;

    transition:
        width .45s var(--ease),
        border-color .45s ease,
        background .45s ease,
        box-shadow .45s ease,
        transform .45s var(--ease);
}


/* =========================================================
   GLASS LIGHT
========================================================= */

.sidebar::before {
    content: "";

    position: absolute;

    left: 50%;
    top: -180px;

    width: 170px;
    height: 330px;

    transform:
        translateX(-50%)
        rotate(12deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .055),
            transparent
        );

    filter:
        blur(10px);

    opacity: .65;

    pointer-events: none;
}


.sidebar::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -100px;

    height: 240px;

    background:
        radial-gradient(
            circle at center,
            rgba(199, 154, 61, .095),
            transparent 68%
        );

    filter:
        blur(35px);

    pointer-events: none;
}


/* =========================================================
   SCROLLED STATE
========================================================= */

.sidebar.is-scrolled {
    transform:
        translateY(-50%)
        scale(.965)
        translateZ(0);

    background:
        linear-gradient(
            180deg,
            rgba(17, 17, 17, .78),
            rgba(5, 5, 5, .68)
        );

    box-shadow:
        0 28px 85px
        rgba(0, 0, 0, .62),

        inset 0 1px 0
        rgba(255, 255, 255, .045);
}


/* =========================================================
   SIDEBAR HOVER
========================================================= */

.sidebar:hover {
    width: 112px;

    border-color:
        rgba(199, 154, 61, .12);

    box-shadow:
        0 45px 120px
        rgba(0, 0, 0, .66),

        0 0 50px
        rgba(199, 154, 61, .045),

        inset 0 1px 0
        rgba(255, 255, 255, .06);
}


/* =========================================================
   LOGO
========================================================= */

.sidebar-logo {
    position: relative;

    z-index: 3;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        rgba(255, 255, 255, .085);

    border-radius: 19px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .055),
            rgba(255, 255, 255, .01)
        );

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .07),

        0 15px 35px
        rgba(0, 0, 0, .4);

    transition:
        border-color .4s ease,
        box-shadow .4s ease,
        transform .4s var(--ease);
}


.sidebar-logo-main {
    position: relative;

    z-index: 5;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 22px;

    font-weight: 800;

    letter-spacing: -1px;

    color: #e7e7e7;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #8d8d8d 48%,
            #f2d590 75%,
            #8b6527 100%
        );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;
}


.sidebar-logo-glow {
    position: absolute;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background:
        rgba(199, 154, 61, .15);

    filter:
        blur(22px);

    opacity: 0;

    transform:
        scale(.4);

    transition:
        opacity .45s ease,
        transform .45s var(--ease);
}


.sidebar-logo::before {
    content: "";

    position: absolute;

    left: -100%;
    top: -30%;

    width: 70%;
    height: 160%;

    transform:
        rotate(22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .25),
            transparent
        );

    transition:
        left .9s var(--ease);
}


.sidebar-logo:hover {
    border-color:
        rgba(199, 154, 61, .32);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .08),

        0 18px 50px
        rgba(0, 0, 0, .5),

        0 0 32px
        rgba(199, 154, 61, .10);
}


.sidebar-logo:hover::before {
    left: 150%;
}


.sidebar-logo:hover
.sidebar-logo-glow {
    opacity: 1;

    transform:
        scale(1);
}


/* =========================================================
   NAVIGATION
========================================================= */

.sidebar-nav {
    position: relative;

    z-index: 4;

    width: 100%;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 13px;
}


/* =========================================================
   LINK
========================================================= */

.sidebar-link {
    position: relative;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        transparent;

    border-radius: 19px;

    overflow: visible;

    background:
        rgba(255, 255, 255, .012);

    color:
        #737373;

    transition:
        width .4s var(--ease),
        transform .4s var(--ease),
        border-color .35s ease,
        background .35s ease,
        box-shadow .35s ease,
        color .35s ease;
}


/* =========================================================
   INDEX
========================================================= */

.sidebar-index {
    position: relative;

    z-index: 4;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1px;

    transition:
        opacity .3s ease,
        transform .35s var(--ease),
        color .35s ease;
}


/* =========================================================
   TOOLTIP
========================================================= */

.sidebar-name {
    position: absolute;

    left:
        calc(100% + 18px);

    top: 50%;

    z-index: 20;

    padding:
        9px 13px;

    transform:
        translateY(-50%)
        translateX(-10px);

    opacity: 0;

    visibility: hidden;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-radius: 10px;

    background:
        rgba(8, 8, 8, .88);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    color:
        #bdbdbd;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 2px;

    white-space: nowrap;

    box-shadow:
        0 14px 40px
        rgba(0, 0, 0, .5);

    transition:
        opacity .3s ease,
        transform .3s var(--ease),
        visibility .3s ease;
}


.sidebar-name::before {
    content: "";

    position: absolute;

    left: -5px;
    top: 50%;

    width: 9px;
    height: 9px;

    transform:
        translateY(-50%)
        rotate(45deg);

    border-left:
        1px solid
        rgba(255, 255, 255, .07);

    border-bottom:
        1px solid
        rgba(255, 255, 255, .07);

    background:
        #0b0b0b;
}


/* =========================================================
   LINK GLOW
========================================================= */

.sidebar-link::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 36px;
    height: 36px;

    transform:
        translate(-50%, -50%)
        scale(.5);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(199, 154, 61, .16),
            transparent 70%
        );

    filter:
        blur(12px);

    opacity: 0;

    transition:
        opacity .4s ease,
        transform .4s var(--ease);
}


/* =========================================================
   HOVER
========================================================= */

.sidebar-link:hover {
    transform:
        translateX(5px);

    border-color:
        rgba(199, 154, 61, .22);

    background:
        rgba(199, 154, 61, .055);

    color:
        #f2f2f2;

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, .36),

        inset 0 1px 0
        rgba(255, 255, 255, .04);
}


.sidebar-link:hover::before {
    opacity: 1;

    transform:
        translate(-50%, -50%)
        scale(1.25);
}


.sidebar-link:hover
.sidebar-index {
    color:
        var(--gold-light);

    transform:
        scale(1.08);
}


.sidebar-link:hover
.sidebar-name {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}


/* =========================================================
   ACTIVE LINK
========================================================= */

.sidebar-link.active {
    border-color:
        rgba(199, 154, 61, .34);

    background:
        linear-gradient(
            145deg,
            rgba(199, 154, 61, .13),
            rgba(199, 154, 61, .025)
        );

    color:
        var(--gold-light);

    box-shadow:
        0 15px 38px
        rgba(0, 0, 0, .44),

        0 0 25px
        rgba(199, 154, 61, .085),

        inset 0 1px 0
        rgba(255, 255, 255, .05);
}


/* =========================================================
   ACTIVE MARKER
========================================================= */

.sidebar-link.active::after {
    content: "";

    position: absolute;

    left: -12px;
    top: 50%;

    width: 4px;
    height: 20px;

    transform:
        translateY(-50%);

    border-radius: 10px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold-dark)
        );

    box-shadow:
        0 0 18px
        rgba(199, 154, 61, .65);
}


/* =========================================================
   ACTIVE PULSE
========================================================= */

.sidebar-link.active::before {
    opacity: .9;

    transform:
        translate(-50%, -50%)
        scale(1.2);

    animation:
        sidebarPulse
        3s ease-in-out
        infinite;
}


@keyframes sidebarPulse {

    0%,
    100% {
        opacity: .38;

        transform:
            translate(-50%, -50%)
            scale(.9);
    }

    50% {
        opacity: .95;

        transform:
            translate(-50%, -50%)
            scale(1.35);
    }

}


/* =========================================================
   UNDERLINE
========================================================= */

.sidebar-link
.sidebar-index::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 0;
    height: 1px;

    transform:
        translateX(-50%);

    background:
        var(--gold);

    transition:
        width .35s var(--ease);
}


.sidebar-link:hover
.sidebar-index::after,
.sidebar-link.active
.sidebar-index::after {
    width: 14px;
}


/* =========================================================
   STATUS
========================================================= */

.sidebar-status {
    position: relative;

    z-index: 4;

    display: flex;
    flex-direction: column;

    align-items: center;

    gap: 11px;
}


.sidebar-status-dot {
    position: relative;

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--gold-light);

    box-shadow:
        0 0 14px
        rgba(199, 154, 61, .85);
}


.sidebar-status-dot::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 20px;
    height: 20px;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(199, 154, 61, .22);

    border-radius: 50%;

    animation:
        statusRadar
        2.5s ease-out
        infinite;
}


@keyframes statusRadar {

    0% {
        opacity: .8;

        transform:
            translate(-50%, -50%)
            scale(.25);
    }

    100% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(1.7);
    }

}


.sidebar-status-text {
    writing-mode:
        vertical-rl;

    transform:
        rotate(180deg);

    font-family:
        "Outfit",
        sans-serif;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 4px;

    color:
        #4d4d4d;
}


/* =========================================================
   SEPARATORS
========================================================= */

.sidebar-nav::before {
    content: "";

    width: 24px;
    height: 1px;

    margin:
        3px 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .12),
            transparent
        );
}


/* =========================================================
   VERTICAL SCAN
========================================================= */

.sidebar-nav::after {
    content: "";

    position: absolute;

    left: 50%;
    top: -80px;

    width: 1px;
    height: 80px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            transparent,
            rgba(199, 154, 61, .65),
            transparent
        );

    opacity: .2;

    animation:
        sidebarSweep
        8s linear
        infinite;

    pointer-events: none;
}


@keyframes sidebarSweep {

    0% {
        top: -80px;
        opacity: 0;
    }

    15% {
        opacity: .25;
    }

    80% {
        opacity: .15;
    }

    100% {
        top:
            calc(100% + 80px);

        opacity: 0;
    }

}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media
(min-width: 1800px) {

    .sidebar {
        left: 48px;

        width: 104px;

        min-height: 660px;
    }

    .sidebar:hover {
        width: 118px;
    }

}


/* =========================================================
   LOW HEIGHT DESKTOP
========================================================= */

@media
(max-height: 760px)
and
(min-width: 1101px) {

    .sidebar {
        min-height: 560px;

        padding:
            20px 14px;
    }

    .sidebar-logo {
        width: 54px;
        height: 54px;
    }

    .sidebar-link {
        width: 54px;
        height: 54px;
    }

    .sidebar-nav {
        gap: 9px;
    }

}


/* =========================================================
   TABLET / MOBILE
========================================================= */

@media
(max-width: 1100px) {

    .sidebar {
        display: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media
(prefers-reduced-motion: reduce) {

    .sidebar,
    .sidebar-logo,
    .sidebar-link,
    .sidebar-link::before,
    .sidebar-link::after,
    .sidebar-status-dot::before,
    .sidebar-nav::after {
        animation: none !important;

        transition: none !important;
    }

}