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

body {
    --brand-color: rgb(255, 111, 0);
    --background-primary: black;
    --background-secondary: rgb(33, 33, 33);
    --background-tertiary: rgb(70, 70, 70);
    --border-color: rgb(83, 83, 83);

    --font-header-size: 2.5rem;
    --font-subtitle-size: 1.2rem;

    min-height: 100vh;
    margin: 0;
    /* background: linear-gradient(120deg, #2a5298, #010f29); */
    /* background: linear-gradient(120deg, #e3e5e9, #9c9797); */
    background: linear-gradient(120deg, #000000, #171717);
    font-family: system-ui, sans-serif;
    overflow-x: hidden;
}

html,
body {
    /* font-family: system-ui; */
    /* overflow: hidden; */
    overflow-x: hidden;
    /* background: linear-gradient(120deg, #000000, #171717); */
    background-color: #000;
    scroll-behavior: smooth;
}

:root {
    background-color: #000;
}


.background {
    position: fixed;
}


.page_layout {
    width: 1300px;
    margin: 0 auto;
    position: relative;
    display: block;
    /* background-color: #8f0000; */
    padding-right: 50px;
    padding-left: 50px;
    /* height: 5rem; */

}

/* ------------------------------ */
/*              HEADER            */
/* ------------------------------ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    margin-bottom: 1rem;
    /* background-color: #01194a; */
}

.header_logo {
    font-size: var(--font-header-size);
    font-weight: bold;
    color: white;
    display: flex;
}

#header_logo_bytes {
    color: var(--brand-color);
}

.navbar {
    display: flex;
    gap: 2.5rem;
}

.navbar a {
    text-decoration: none;
    color: white;
}


/* ------------------------------ */
/*              BANNER            */
/* ------------------------------ */

.main_banner {
    height: calc(100vh - 100px - 2rem);
    max-height: 800px;
    min-height: 620px;
    display: flex;
    background: linear-gradient(120deg, #131313, #191919);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.banner_text {
    /* background-color: antiquewhite; */
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
}

.banner_text_side {
    padding-left: 20px;
}

.banner_text>div {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
}

.banner_text_title {
    font-size: 3.3rem;
    font-weight: bold;
    color: var(--brand-color);
    position: relative;
    z-index: 2;
    /* background-color: rgb(250, 211, 161); */
    width: fit-content;
}

.banner_image_side {
    flex: 0 0 57%;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #24008f; */
}

#banner_main_image {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 122%;
    max-width: 1100px;
    pointer-events: none;
    z-index: 1;
}

.banner_typewriter_messages {
    /* background-color: #24008f; */
    color: white;
    font-weight: bold;
    font-size: 20pt;
    width: 100%;
    /* margin-left: 2rem; */
    /* margin-top: 1.5rem; */
    /* padding-right: 2rem; */
    display: inline-block;
}

.cursor {
    font-weight: bold;
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.banner_contact_us {
    color: rgb(212, 212, 212);
    font-size: var(--font-subtitle-size);
    display: inline-block;
    border-radius: 1rem;
}

#banner_contact_us_arrow {
    padding-left: 0.5rem;
    display: inline-block;
    /* required for transform */
    transition: transform 0.9s ease;
    animation: arrow-swing 2.5s ease-in-out infinite alternate;
}

/* ------------------------------ */
/*              SNAKE             */
/* ------------------------------ */


.the_snake {
    position: relative;
    z-index: 0;
}

.snake_svg_wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    top: -12px;
    z-index: 0;
}

.snake_svg_wrapper_mobile {
    display: none;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 0;
    top: -25px;
}

/* ------------------------------ */
/*              SNAKE             */
/* ------------------------------ */



.offering {
    position: absolute;
    color: white;
    width: 530px;
    height: 250px;
    overflow: visible;
    display: inline-block;

    border-radius: 30px;
    margin-top: 50px;
    /* background-color: red; */
    /* transform: scale(0.9);
    transition: transform 0.15s linear;
    will-change: transform; */

}

.offering-title {
    color: var(--brand-color);
    margin-left: 30px;
    margin-top: 20px;
    font-size: 30pt;
    font-weight: bold;
}

.offering-text {
    /* color: var(--brand-color); */
    margin-left: 30px;
    margin-top: 20px;
    font-size: 20pt;
    font-weight: bold;
}

.offering-learn-more {
    /* background-color: var(--background-tertiary); */
    color: rgb(179, 179, 179);
    font-size: var(--font-subtitle-size);
    margin-left: 2rem;
    margin-top: 2rem;
    /* padding: 1rem 2rem;  */
    /* padding-right: 2rem; */
    /* display: inline-block; */
    /* border-radius: 1rem;  */
}

#offering1 {
    left: 100px;
    top: 220px;
}

#offering2 {
    right: 70px;
    top: 480px;
}

#offering3 {
    left: 60px;
    top: 800px;
}

#anchor-offering1, #anchor-offering2, #anchor-offering3, #anchor-offering4 {
    visibility: hidden;
}

#snake_contact_us_arrow {
    padding-left: 0.5rem;
    display: inline-block;
    /* required for transform */
    transition: transform 0.9s ease;
    animation: arrow-swing 2.5s ease-in-out infinite alternate;
}

/* ------------------------------ */
/*          CONTACT US            */
/* ------------------------------ */


.do_you_have_any_questions {
    font-size: 20pt;
    /* background-color: red; */
    height: 30pt;
    align-content: center;
}

.contact_us_large_main {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
    position: relative;
    width: fit-content;
}

.contact_us_large_text {
    color: var(--brand-color);
    font-size: 60pt;
    font-weight: bold;
    margin: 0 auto;
    /* background-color: aqua; */

}


#contact_us_large_sign {
    width: 120px;
    transform-origin: 0% 80%;
    position: absolute;
    top: -50%;
    right: -130px;
}


.we_wont_byte {
    margin-top: 13px;
}

.contact_us_large {
    margin-top: 20px;
    color: rgb(195, 195, 195);
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    position: relative;
    /* background-color: blue; */
    /* font-size: 10pt; */
}

.take_a_look_projects {
    /* background-color: bisque; */
    height: 30pt;
    align-content: center;
}

@keyframes signWobble {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#contact_us_large_sign {
    animation: signWobble 2s ease-in-out infinite;
}



/* ------------------------------ */
/*            PROJECTS            */
/* ------------------------------ */

.projects {
    color: white;
}

.pineapple_title {
    font-size: 30pt;
}

.pineapple_subtitle {
    color: rgb(195, 195, 195);
}

.pineapple_side.left {
    flex: 0.3;
}

.pineapple_side.right {
    display: flex;
    flex-direction: column;
    height: 400px;
    padding-left: 20px;
    padding-left: 8%;
}

.pineapple {
    width: 100%;
    height: 1000px;
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
}

.pineapple_row {
    width: 100%;
    display: flex;
    /* align-items: center; */
    justify-content: center;
    gap: 2rem;
}

.pineapple_side {
    flex: 1;
    /* height: 300px; */
    background: rgba(0, 0, 0, 0.05);
}

.pineapple_wrapper {
    position: relative;
    width: 400px;
    height: 600px;
    overflow: hidden;
    flex-shrink: 0;
    /* IMPORTANT */
}

#pineapple_top_wrapper {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-top: 2px solid orange;
    transition: height 0.15s ease-out;
    will-change: height;
}

#pineapple_bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#pineapple_top {
    width: 100%;
}

.pineapple_info {
    margin-top: auto;
    flex: 1;
    display: flex;
    /* align-items: flex-start; */
    align-items: center;
    position: relative;
}

.take_a_look_projects_arrow {
    padding-top: 10px;
    padding-left: 0.5rem;
    display: inline-block;
    transition: transform 0.9s ease;
    animation: arrow-swing-down 2.5s ease-in-out infinite alternate;
}

#pineapple_hover_to_reveal {
    color: rgb(139, 139, 139);
    top: 50%;
}

.pineapple_info_toast,
.pineapple_info_hover_toast {
    position: absolute;
    top: 80px;
    /* left: 0; */
    width: 100%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.9s ease, visibility 0.9s;
}

.pineapple_info_tap_toast {
    display: none;
}

/* The active state */
.pineapple_info_toast.is-visible,
.pineapple_info_hover_toast.is-visible,
#pineapple_pcb_indicator.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#pineapple_pcb_indicator {
    /* width: 208px;
    height: 220px;
    background-color: red; */
    width: 8px;
    opacity: 0;
    height: 20px;
    position: absolute;
    /* left: 10px; */
    right: 10px;
    border-color: white;
    border-width: 1px 1px 1px 0px;
    border-style: solid;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 0px 2px 2px 0px;
}

.arrow-swing-left {
    display: inline-block;
    transition: transform 0.9s ease;
    animation: arrow-swing-left 2.5s ease-in-out infinite alternate;
}

.arrow-swing-up {
    display: inline-block;
    transition: transform 0.9s ease;
    animation: arrow-swing-up 2.5s ease-in-out infinite alternate;
}

@keyframes arrow-swing-down {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }

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

@keyframes arrow-swing-left {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes arrow-swing-up {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

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









@keyframes arrow-swing {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    /* move right */
    100% {
        transform: translateX(0);
    }

    /* back to original */
}







/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: radial-gradient(circle at right, rgba(255, 111, 0, 0.15), rgba(0, 0, 0, 0.85)); */
    backdrop-filter: blur(4px) brightness(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}




/* Demo Content */
.content {
    padding-top: 100px;
    padding-left: 2rem;
    padding-right: 2rem;
    color: white;
}


.content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Hamburger - Hidden by default on desktop */
.hamburger {
    display: none;
}

/* Ripple Effect */
.hamburger::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.hamburger:active::before {
    width: 60px;
    height: 60px;
}









@media only screen and (max-width: 1400px) {
    .page_layout {
        width: 1200px;
        /* background-color: red; */
    }

    #offering1 {
        left: 90px;
        top: 190px;
    }

    #offering2 {
        right: 40px;
        top: 430px;
    }

    #offering3 {
        left: 60px;
        top: 720px;
    }

}

@media only screen and (max-width: 1300px) {
    .page_layout {
        width: 1100px;
    }

    #offering1 {
        left: 60px;
        top: 160px;
    }

    #offering2 {
        right: 30px;
        top: 370px;
    }

    #offering3 {
        left: 55px;
        top: 660px;
    }

}

@media only screen and (max-width: 1200px) {
    .page_layout {
        width: 1000px;
    }

    #offering1 {
        left: 60px;
        top: 130px;
    }

    #offering2 {
        right: 5px;
        top: 330px;
    }

    #offering3 {
        left: 45px;
        top: 590px;
    }
}

@media only screen and (max-width: 1100px) {
    .page_layout {
        width: 900px;
    }

}


@media only screen and (max-width: 500px) {
    .page_layout {
        width: 90vw;
        padding-right: 0px;
        padding-left: 0px;
    }

    .offering {
        position: absolute;
        color: white;
        width: 80vw;
        height: 250px;
        overflow: visible;
        display: inline-block;
        /* background-color: red; */

        border-radius: 30px;
        margin-top: 50px;
    }

    .offering-title {
        color: var(--brand-color);
        margin-left: 30px;
        margin-top: 20px;
        font-size: 20pt;
        font-weight: bold;
    }

    .offering-text {
        /* color: var(--brand-color); */
        margin-left: 30px;
        margin-top: 20px;
        font-size: 16pt;
        font-weight: bold;
    }

    .offering-learn-more {
        /* background-color: var(--background-tertiary); */
        color: rgb(179, 179, 179);
        font-size: var(--font-subtitle-size);
        margin-left: 2rem;
        margin-top: 2rem;
        /* padding: 1rem 2rem;  */
        /* padding-right: 2rem; */
        /* display: inline-block; */
        /* border-radius: 1rem;  */
    }



    .banner_text {
        padding-left: 0px;
        flex: 0 0 100%;
    }

    .banner_text_side {
        padding: 10px;
    }

    .banner_text_title {
        justify-content: center;
        text-align: center;
    }

    .banner_typewriter_messages {
        display: flex;
        /* justify-content: center; */
        align-items: center;
        display: flex;
        width: 100%;
        height: 3rem;
    }

    .banner_typewriter_messages p {
        width: 100%;
        /* IMPORTANT */
        margin: 0;
        line-height: 1.2;
        text-align: center;
        /* centers typing */
    }

    .banner_image_side {
        /* visibility: none; */
        display: none;
    }

    .snake_svg_wrapper svg {
        /* visibility: none; */
        display: none;
    }

    .snake_svg_wrapper_mobile {
        display: block;
    }

    .header {
        position: relative;
        /* Crucial for absolute positioning of the nav */
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        color: white;
        z-index: 1001;
    }


    /* .offering {
        display: inline-block;
        position: relative;
        left: 0px;
        right: 0px;
        top: 0px;
        background: linear-gradient(120deg, #131313, #191919);
        width: 100%;
        height: fit-content;
        padding-top: 10px;
        padding-bottom: 30px;
    } */

    .the_snake {
        width: 100%;
        padding: 0px;
    }

    .contact_us_large {
        gap: 1.2rem;
        /* margin-top: 60px; */
    }

    .do_you_have_any_questions {
        font-size: 15pt;
        /* margin-bottom: 20px; */
        display: none;
    }

    .contact_us_large_text {
        font-size: 30pt;
    }

    #contact_us_large_sign {
        width: 90px;
        transform-origin: 0% 75%;
        position: relative;
        top: -25px;
        left: -15px;
    }

    .take_a_look_projects {
        margin-top: 0px;
    }

    .projects {
        /* display: none; */
    }

    .take_a_look_projects {
        /* display: none; */
    }

    .take_a_look_projects_arrow {
        /* display: none; */
    }

    .main_banner {
        background: transparent;
    }

    .main_banner::before {
        background: url("/static/media/pcb.png") center / cover no-repeat;
        filter: blur(3px) brightness(0.35);
        content: "";
        position: absolute;
        inset: -40px;
        transform: scale(1.1);
        z-index: 0;
    }

    .main_banner>* {
        position: relative;
        z-index: 1;
    }




    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        position: relative;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        opacity: 0.8;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2.5px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span {
        background: var(--brand-color);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8.75px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8.75px) rotate(-45deg);
    }

    .navbar {
        position: fixed;
        top: 100px;
        right: -600px;
        /* height: calc(100vh + 100px); */
        height: 90vw;
        /* width: 380px; */
        /* width: 30vh; */
        width: fit-content;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 1.2rem;
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.9), rgba(5, 5, 5, 0.9));
        border: 1px solid rgba(255, 111, 0, 0.3);
        border-radius: 20pt;
        padding: 2.5rem;
        padding-left: 3rem;
        padding-right: 5rem;
        /* transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); */
        transition: all 0.5s cubic-bezier(0.25, 1.2, 0.5, 1);
        z-index: 1001;
        box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    }

    .navbar.active {
        right: 10pt;
    }

    .navbar a {
        font-size: 1.3rem;
        padding: 0.8rem 0;
        text-align: left;
        background: transparent;
        border: none;
        border-left: 2px solid transparent;
        padding-left: 1.5rem;
        width: 100%;
        font-weight: 500;
        letter-spacing: 1px;
        cursor: pointer;
        white-space: nowrap;
        opacity: 0;
        /* transform: translateX(50px) scale(0.7);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); */
        color: rgba(255, 255, 255, 0.7);
    }

    /* Disable ALL transitions during touch interaction */
    .navbar.touching a {
        transition: none !important;
    }

    /* .navbar a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .navbar a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .navbar a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .navbar a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .navbar a:nth-child(5) {
        transition-delay: 0.5s;
    } */

    .navbar.active a {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    .navbar a:hover {
        color: var(--brand-color);
        border-left-color: var(--brand-color);
        /* padding-left: 2rem; */
    }

    /* Instant feedback for touch - no transition delay */
    .navbar a.touch-active {
        color: var(--brand-color) !important;
        border-left-color: var(--brand-color) !important;
        /* padding-left: 2rem !important; */
        transition: none !important;
    }

    .projects .pineapple_row {
        display: flex;
        flex-direction: column;
    }

    .projects .pineapple_side.left {
        display: none;
    }

    .projects .pineapple_side.right {
        order: -1;
        padding: 0px;
        height: auto;
    }

    .projects .pineapple_title {
        position: relative;
        width: 100%;
        font-size: 23pt;
        font-weight: bold;
        text-align: center;
    }

    .projects .pineapple_subtitle {
        text-align: center;
        margin-bottom: 8pt;
    }

    .projects .pineapple_wrapper{
        width: 360px;
        height: 540px;
        margin: 0 auto;
    }

    .projects #pineapple_pcb_indicator {
        display: none;
    }
    .projects .pineapple_info_toast {
        display: none;
    }
    .projects .pineapple_info_hover_toast {
        display: none;
    }

    .pineapple_info_tap_toast {
        /* position: absolute;
        top: 80px; */
        /* left: 0; */
        width: 100%;
        color: white;
        pointer-events: none;
        transition: opacity 0.9s ease, visibility 0.9s;
        text-align: center;
        color: rgb(139, 139, 139);
        top: -100px;
        position:relative;
        display:inline-block;
    }

}