@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=JetBrains+Mono:wght@100;400;700;800&family=Outfit:wght@600;800&family=Syne:wght@400;700;800&display=swap');

:root {

    --bg-color: #000000;
    --text-color: #f0f0f0;
    --accent-color: #ffffff;
    --grid-line: rgba(255, 255, 255, 0.15);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);

    background: radial-gradient(circle at 50% 50%, #111111 0%, #000000 120%);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

@view-transition {
    navigation: auto;
}


#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}


.app-wrapper {
    position: absolute;
    display: flex;
    width: 200vw;

    height: 100%;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
    will-change: transform;
}

.view-active .app-wrapper {
    transform: translateX(-100vw);
}


.section {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}


#hero .hero-content {
    text-align: center;
    mix-blend-mode: exclusion;
    transition: opacity 0.5s;
}

.view-active #hero .hero-content {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 1;
    margin: 0;
    font-weight: 800;
    letter-spacing: -3px;

    background: linear-gradient(135deg,
            #ffffff 0%,
            #aaaaaa 50%,
            #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-transform: uppercase;
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.2));

    animation: simpleFloat 8s ease-in-out infinite;
    opacity: 0;
    transform: translateY(20px);
    animation-fill-mode: forwards;
    animation-delay: 0.2s;
}

@keyframes simpleFloat {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
        background-position: 0% 50%;
    }

    50% {
        transform: translateY(-10px);
        opacity: 0.9;
        background-position: 100% 50%;
    }
}

.subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    opacity: 0.6;
    font-weight: 300;
}


.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 40px;


    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;

    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 20;
    overflow: hidden;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: left 0.6s;
}

.scroll-indicator:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(255, 255, 255, 0.1);
}

.scroll-indicator:hover::before {
    left: 100%;
}

.scroll-indicator span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    font-weight: 600;
}

.scroll-indicator .arrow-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.scroll-indicator:hover .arrow-icon {
    transform: translateX(8px) scale(1.1);
}


#library {
    align-items: flex-start;
    padding: 0;
    box-sizing: border-box;
    background: transparent;

}


.return-zone {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.5) 0%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 30;
}

.return-zone:hover {
    background: rgba(30, 30, 30, 0.5);
    width: 120px;
}

.return-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1.2rem;
    opacity: 0.6;
}

.return-zone:hover .return-text {
    opacity: 1;
}


@media (max-width: 768px) {
    .return-zone {
        width: 100%;
        height: 60px;
        bottom: 0;
        top: auto;
        left: 0;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: linear-gradient(0deg, rgba(20, 20, 20, 0.8) 0%, rgba(20, 20, 20, 0.4) 100%);
        backdrop-filter: blur(10px);
    }

    .return-zone:hover {
        width: 100%;
        height: 70px;
    }

    .return-text {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        font-size: 1rem;
    }

    #library-content {
        padding-left: 2rem !important;
        padding-right: 2rem;
        padding-bottom: 120px;
        justify-content: flex-start;
        padding-top: 6rem;
    }

    .project-link {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .social-bar {
        margin-top: 2rem;
        flex-wrap: wrap;
    }

    .scroll-indicator {
        bottom: 3rem;
        padding: 15px 30px;
        width: auto;
    }
}


#library-content {
    padding-left: 150px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-link {
    text-decoration: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    width: fit-content;
}

.project-link:hover {
    opacity: 1;
    transform: translateX(20px);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

.project-link span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 2px;
    font-weight: 400;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    color: #888;
    margin-top: 5px;
}

.project-link:hover span {
    opacity: 1;
    transform: translateY(0);
}


.social-bar {
    margin-top: 4rem;
    display: flex;
    gap: 2rem;
}

.social-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    transition: all 0.3s;
    opacity: 0.6;
}

.social-btn:hover {
    background: white;
    color: black;
    opacity: 1;
}