/* ------------------------------------------------------- NAVBAR and SIDEBAR -------------------------------------------------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #5bceed;
    --accent-glow: rgba(47, 156, 186, 0.4);
    --text: #ffffff;
}

body {
    min-height: 100vh;
    width: 100%;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: -webkit-fill-available;
}

html {
    scroll-behavior: smooth;
    background-color: #0a0a0a;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 61.6px;

    padding-top: env(safe-area-inset-top);
    padding-left: calc(30px + env(safe-area-inset-left));
    padding-right: env(safe-area-inset-right);
    padding-bottom: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    border-bottom: 2px solid rgba(255, 255, 255, .2);
    z-index: 1000;

    box-sizing: border-box;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);

    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.header:hover::before {
    transform: translateX(100%);
}

.navbar a {
    color: #5bceed;
    font-size: 18px;
    text-decoration: none;
    margin-left: 35px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.navbar a:hover::after {
    width: 100%;
}

.hidden {
    display: none;
}

.shown {
    display: inline-block;
}


.logo {
    height: 34px;
    border-radius: 50%;
}

.menu-wrapper {
    width: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45.6px;
}

.logo-wrapper {
    width: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 61.6px;
    left: 0;
    width: 100%;
    padding: 20px 5px;
    z-index: 1000;
}

.sidebar div {
    background-color: #000;
    margin: 10px 0;
    padding: 20px 10px;
    border-radius: 16px;
    border: 1px solid var(--accent);
    font-size: 1rem;
}

.sidebar a {
    text-decoration: none;
    color: var(--accent);
}

.t1 {
    transform: translateX(-100%);
}

.t2 {
    transform: translateX(100%);
}

.t3 {
    transform: translateX(-100%);
}

.t4 {
    transform: translateX(100%);
}

.t5 {
    transform: translateX(-100%);
}

.sidebar-animation-right {
    animation: sbr 1s ease forwards;
}

.sidebar-animation-left {
    animation: sbl 1s ease forwards;
}

@keyframes sbr {
    to {
        transform: translateX(0);
    }
}

@keyframes sbl {
    to {
        transform: translateX(0);
    }
}

@media screen and (min-width:768px) {
    .header {
        padding: 13px 100px;
    }

    .hidden {
        display: inline-block;
    }

    .shown {
        display: none;
    }
}

@media (max-width:768px) {

    .nav-links {
        display: none;
    }
}

/* ------------------------------------------------------- /NAVBAR and SIDEBAR -------------------------------------------------- */

main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 61.6px 20px 0 20px;
}

.project-cards {
    position: relative;
    top: 0;
    background-color: var(--accent-glow);
    height: 440px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 0 0 var(--accent);
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
}

.project-cards:hover {
    top: -10px;
    box-shadow: 0 10px 30px var(--accent);
}

.project-cards .part-1 {
    background-color: black;
    margin-top: 10px;
    border-radius: 8px 8px 0 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project-cards img {
    height: 100%;
}

.project-cards .part-2 {
    background-color: var(--accent);
    width: 100%;
    height: 69.36px;
    overflow: hidden;
    text-align: center;
    transition: 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    display: block;
}

a:visited,
a:hover,
a:active {
    text-decoration: none;
}

.navbar a.active {
    color: white;
}

.navbar a.active::after {
    width: 100%;
}
 
.part-3 {
    width: 100%;
    margin-top: auto;
    position: relative;
    z-index: 10;
    height: 47.6px;
} 

.att-btn {
    width: 100%;
    display: block;
    border: none;
    padding: 15px 0;
    background: red;
    color: var(--dark-bg);
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0 0 6px 6px;
    transition: background 0.3s ease;
}

.main-project-link:hover ~ .part-2 {
    background-color: white;
    color: var(--dark-bg);
}

.att-btn:hover {
    background: #ffffff;
    color: #000;
}

.main-project-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 47.6px);
    z-index: 5;
}

.project-cards.Empty {
    background: transparent;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.scroll-margin-aim{
    scroll-margin-top: 160px;
}
