@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

:root {
    --pageBg: #141518;
    --text: rgba(255, 255, 255, 1);
    --text90: rgba(255, 255, 255, 0.9);
    --text80: rgba(255, 255, 255, 0.8);
    --text70: rgba(255, 255, 255, 0.7);
    --text60: rgba(255, 255, 255, 0.6);
    --text50: rgba(255, 255, 255, 0.5);
    --text40: rgba(255, 255, 255, 0.4);
    --text30: rgba(255, 255, 255, 0.3);
    --text20: rgba(255, 255, 255, 0.2);
    --text10: rgba(255, 255, 255, 0.1);
    --text05: rgba(255, 255, 255, 0.05);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --font-size: 20px;
    --blob-opacity: 0.15;
    --edge-color: rgba(255, 255, 255, 0.03);
    --purple: #9B4EF4;
    --blue: #4ea7f4;
}

body.light {
    --pageBg: #f9f9f9;
    --text: #141518;
    --text90: rgba(20, 21, 24, 0.9);
    --text80: rgba(20, 21, 24, 0.8);
    --text70: rgba(20, 21, 24, 0.7);
    --text60: rgba(20, 21, 24, 0.6);
    --text50: rgba(20, 21, 24, 0.5);
    --text40: rgba(20, 21, 24, 0.4);
    --text30: rgba(20, 21, 24, 0.3);
    --text20: rgba(20, 21, 24, 0.2);
    --text10: rgba(20, 21, 24, 0.1);
    --text05: rgba(20, 21, 24, 0.05);
    --blob-opacity: 0.3;
    --edge-color: rgba(20, 21, 24, 0.07);
}

html,
body {
    font-family: "Space Grotesk", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background: var(--pageBg);
    color: var(--text);
    font-size: var(--font-size);
    box-sizing: border-box;
    margin: 0;
    transition: all 0.4s ease;
}

* {
    box-sizing: border-box;

}

a {
    color: #FFF;
    text-decoration: none !important;
}

.box {
    border: var(--text10);
    border-width: 1px;
    border-style: solid;
    background: var(--text05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.4s ease;
}
.box:hover{
    border-color: var(--text30);
}
.topbar {
    position: fixed;
    z-index: 100;
    padding: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;

}

.leftbar {
    display: flex;
    flex-direction: row;
    gap: 10px;
}


.barbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding: 10px;
    color: var(--text);
}





.blob-wrapper {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.blob {
    position: absolute;
    /* width: 1000px; */
    width: 60vw;
    height: auto;
    max-width: none;
    max-height: none;
    pointer-events: none;
    opacity: var(--blob-opacity);
    transition: transform 1s ease-out;
}

.blob1 {
    top: -10%;
    left: -10%;
    animation: float1 26s ease-in-out infinite alternate;
}

.blob2 {
    bottom: 0%;
    right: -10%;
    animation: float2 28s ease-in-out infinite alternate;
}

.blob3 {
    bottom: -20%;
    left: -15%;
    animation: float3 24s ease-in-out infinite alternate;
}

.blob4 {
    top: -10%;
    right: 10%;
    animation: float4 27s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(200px, -300px) scale(1.1);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-400px, 500px) scale(0.9);
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 200px) scale(1.1);
    }
}

@keyframes float4 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-200px, 100px) scale(0.9);
    }
}







/* FULL PAGE SCROLL */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background: white;
}

#fp-nav ul a {
    opacity: 0.15;
    color: var(--text);

}

#fp-nav ul li .fp-tooltip.right {
    font-family: "Space Grotesk", sans-serif;
    opacity: 0.3;
    color: var(--text);
}

#fp-nav ul li a span,
.fp-slidesNav ul li a span {
    background: var(--text);

}



/* BLUR BORDER */
.blur-frame {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
}

.blur-edge {
    position: absolute;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--edge-color)
}

.blur-edge.top {
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
}

.blur-edge.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
}

.blur-edge.left {
    top: 0;
    bottom: 0;
    left: 0;
    width: 15px;
}

.blur-edge.right {
    top: 0;
    bottom: 0;
    right: 0;
    width: 15px;
}





/* SECTIONS */

.section {
    display: flex;
    flex-direction: column;
    padding: 20px;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 10%
}

.fp-tableCell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.section h2 {
    margin-top: 0;
    color: var(--text80);
    font-size: 3rem;
    font-weight: 600;
}

.section p {
    color: var(--text40);
    font-size: 1rem;
    font-weight: 300;
}

/* HOMEPAGE */
.page_home .fp-tableCell {
    justify-content: space-between;
}

.page_home h1 {
    color: var(--text40);
    font-size: 7rem;
    margin: 0;
}

.page_home h1 span {
    color: var(--text);
}

.page_home h2 {
    margin: 0;
    color: var(--text60);
    font-weight: 300;
}

.page_home h2 span {
    color: var(--blue);
}

.gradient-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #4ea7f4, #9B4EF4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
    background: radial-gradient(rgba(155, 78, 244, 0.2) 0%,
            rgba(155, 78, 244, 0.1) 40%,
            transparent 100%);
    opacity: 0.5;
    filter: blur(4px);
    z-index: -1;
    pointer-events: none;
}

.scroll-down {
    text-align: center;
    width: 100%;
}

.scroll-down a {
    color: var(--text);
    position: relative;
    top: -80px;
    font-size: 0.8rem;
    opacity: 0.2;
    font-weight: 100;
}

.scroll-down a i {
    font-size: 1.5rem;
    animation: bounceDown 4s ease-in-out infinite;

}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    10% {
        transform: translateY(8px);
    }

    20% {
        transform: translateY(0px);
    }

    30% {
        transform: translateY(8px);
    }

    40% {
        transform: translateY(0px);
    }
}

/* ABOUT */

.page_about {
    padding: 20px 30% 20px 10%;
}

.page_about p {
    max-width: 700px;
}



/* PROJECTS */

.project_cont {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .project_cont {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}
.project_cont > .box{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.project_cont img{
    height: 80px;
    min-height: 10vh;
    width: auto;
    max-width: 100%;
    margin: auto;
    padding-top: 20px;
    padding-bottom: 15px;
    filter: grayscale(0.6);
    transition: all 0.4s;
}
.project_cont h3 {
    font-weight: 400;
    color: var(--text80);
    margin-bottom: 0;
    margin-top: 0;
}

.project_cont p {
    margin: 0;
    font-size: 0.7rem;
}
.period{
    text-transform: uppercase;
    font-size: 0.5rem;
    font-weight: 100;
    opacity: 0.8;
    color: var(--text70);
    border-width: 0px;
    display: inline-block;
    padding: 2px 6px;
    position: absolute;
    top: 5px;
    left: 5px;
    letter-spacing: 1px;
}
.project_cont > .box:hover img{
    filter: grayscale(0);
    transition: all 0.4s;
}

/* CONTACT */
.page_contact .fp-tableCell {
    align-items: center;
}

.page_contact .contact_grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page_contact .contact_grid>.box {
    padding: 10px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page_contact .contact_grid .contact_socials {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.page_contact .contact_grid .contact_socials .box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: var(--text);
}



p.copyright {
    position: absolute;
    bottom: 60px;
    color: var(--text20);
    font-size: 0.8rem;
    font-weight: 200;
}


/* BUTTONS */

.icon-btn {
    overflow: hidden;
    cursor: pointer;
}


.icon-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: var(--text10);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease, background 0.3s ease;
    z-index: 1;
}

.icon-btn:hover::before {
    transform: translate(-50%, -50%) scale(2);
}

.icon-btn-lg:hover::before {
    transform: translate(-50%, -50%) scale(11);
}





@media (max-width: 600px) {
    :root {
        --font-size: 15px;
    }
    #fp-nav.right{
        right: 10px;
    }
    .page_home h1 {
        font-size: 3.5rem;
    }

    
    .page_home h2 {
        font-size: 2rem;
    }

    
    .page_about {
        padding: 20px 10%
    }
    .blur-frame{
        display: none;
    }
    .topbar {
padding: 15px;}
}