@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Offside&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Space+Grotesk:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
}

a, button, .alert {
    cursor: url('cursor_link.svg') 8 8, auto;
    font-family: "Space Grotesk", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Chakra Petch", sans-serif;
}

body {
    font-family: "Space Grotesk", sans-serif;
}


.alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 1rem;
    border-radius: .25rem;
    width: 700px;
    max-width: calc(100vw - 4rem);
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 101;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease;
    animation: fadeIn 1s;
    transform: translateX(-50%);
}

@keyframes fadeIn {
    0% {
        transform: translateY(-100%) translateX(-50%);
    }
    100% {
        transform: translateY(0) translateX(-50%);
    }
}

/* Custom button styles */
.button1 {
    margin-top: 2rem;
    padding: 1rem 2rem;
    position: relative;
    border: none;
    background-color: #c2f9bb;
    text-transform: uppercase;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 4px 6px 0 #d6caca;
    transition: all 0.2s ease-in-out;

    &:hover {
        background-color: #9de494;
        transform: translateY(-3px);
        box-shadow: 6px 8px 0 #d6caca;
    }

    &:active {
        transform: translateY(2px);
        box-shadow: 2px 3px 0 #c9baba;
    }
}

.button2 {
    border: 2px solid #cc3363;
    padding: .5rem 2rem;
    transition: background-color 250ms linear;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;

    &:hover {
        background-color: #cc3363;
        color: white;
    }
}

/* Main Styles*/
html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    cursor: url('cursor_default.svg') 8 8, auto;
    background-color: #F7F3EA;
}

nav {
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    z-index: 100;
    font-family: "Offside", sans-serif !important;
    background-color: #FFFFFF;

    div {
        display: flex;
        flex-direction: column;
        font-size: 2rem;
        font-weight: bolder;

        .i {
            display: flex;
            color: transparent;

            &::after {
                content: '💡';
                color: white;
                display: block;
                margin-right: -.6rem;
                margin-left: -1.35rem;
            }
        }

        span {
            line-height: 1;
            transition: all 250ms linear;
            display: flex;
            flex-direction: row;
        }

        &:hover {
            cursor: url('cursor_link.svg') 8 8, auto;

            span:first-child {
                margin-left: -.75rem;
            }

            span:last-child {
                margin-left: .75rem;
            }
        }
    }

    ul {
        display: flex;
        gap: 2rem;

        li {
            list-style: none;

            a {
                display: flex;
                flex-direction: column;
                color: #1c1c1c;
                text-decoration: none;
                transition-duration: 300ms;
                border-radius: .25rem;
                text-transform: uppercase;


                &::after {
                    display: block;
                    content: '';
                    border-bottom: solid 3px #000;
                    transform: scaleX(0);
                    transition: transform 250ms ease-in-out;
                    transform-origin: 100% 50%
                }

                &:hover {
                    opacity: .5;

                    &::after {
                        transform: scaleX(1);
                        transform-origin: 0 50%;
                    }
                }
            }
        }
    }
}

section {
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    margin-bottom: 1rem;
    box-sizing: border-box;

    &::after {
        width: 100%;
        position: absolute;
        bottom: -1rem;
        left: 0;
        content: "";
        height: 1rem;
        background: linear-gradient(170deg, #E9E1F8 0%, #DFF2E1 100%);
    }
}

.landing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 6rem;
    position: relative;

    .landing-main {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .landing-content {
            width: 50%;

            h1 {
                font-size: 3rem;
                font-weight: 700;
                margin-bottom: 1rem;

                text {
                    color: #cc3363;
                }
            }

            p {
                color: #444;
                font-size: 1rem;
            }
        }

        .landing-graphic {
            width: 40%;
            min-width: 20vw;
            min-height: calc(1536 / 1024 * 20vw);
            background-image: url("man_with_bulb.png");
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;

        }
    }


    .landing-learn-more {
        display: flex;
        align-items: center;
        flex-direction: column;
        border: none;
        text-decoration: none;
        text-transform: uppercase;
        transition: font-size 500ms;
        position: absolute;
        bottom: 1rem;
        width: 100vw;
        color: #1c1c1c;

        &::after {
            border: solid;
            border-width: 0 2px 2px 0;
            width: .5rem;
            height: .5rem;
            transform: rotate(45deg);
            margin-top: 4px;
            transition: all 500ms;
            content: "";
        }

        &:hover {
            &::after {
                margin-top: .75rem;
                transform: rotate(45deg) translateX(-.75rem) translateY(-.75rem);
                border-color: #1c1c1c;
                width: 1.25rem;
                height: 1.25rem;
            }
        }
    }
}

.view {
    padding: 3rem 3rem;
    display: flex;

    h2 {
        text-align: right;
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        position: sticky;
        top: 3rem;
        height: fit-content;
    }

    .view-content {
        padding-left: 3rem;
    }
}

.about-us {
    .view-content {
        max-width: 800px;

        h3 {
            font-weight: 700;
            margin-top: 24px;
        }

        p {
            margin: 16px 0;
            line-height: 1.6;
        }
    }
}

.virtues {
    .view-content {
        display: flex;
        gap: 3rem;

        .virtue {
            text-align: center;
            height: fit-content;
            padding: 1rem 1rem 2rem;
            border-radius: 1rem;

            h3 {
                font-size: 1.5rem;
                text-decoration: underline;

                &::after {
                    content: " ";
                    height: 10rem;
                    display: block;

                    background-size: contain;
                    background-repeat: no-repeat;
                    background-position: center;
                }
            }

            h4 {
                margin-top: 1rem;
            }

            p {
                opacity: .8;
            }

            button {
            }
        }

        .virtue1 {
            background-color: #E9E1F8;

            h3::after {
                background-image: url("clarity.png");
            }
        }

        .virtue2 {
            background-color: #FDE9DF;

            h3::after {
                background-image: url("openness.png");
            }
        }

        .virtue3 {
            background-color: #DFF2E1;

            h3::after {
                background-image: url("energy.png");
            }
        }
    }
}

.cta {
    padding: 3rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10vh;

    .title {
        width: 40%;

        h2 {
            font-size: 3rem;
            margin-bottom: 1rem;
        }

        p {
            font-size: 1rem;
        }
    }

    ul {
        display: flex;
        justify-content: space-between;
        padding: 0 6rem;
        gap: 3rem;

        .pro {
            list-style: none;
            width: 25%;
            padding: 2rem 2rem;
            position: relative;
            box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.15);
            transition: all 250ms ease-in-out;

            &::after {
                box-shadow: 2px 2px 1px 1px rgba(0, 0, 0, 0.15);
                position: absolute;
                content: " ";
                width: 100%;
                height: 100%;
                left: .5rem;
                top: .5rem;
                z-index: -1;
                transition: all 250ms ease-in-out;
            }

            &:hover {
                transform: translateY(-.5rem);
                box-shadow: 0 0 3px 3px rgba(0, 0, 0, 0.15);

                &::after {
                    left: 0;
                    top: 0;
                    box-shadow: none;
                }
            }
        }

        .pro1 {
            background-color: #EBDEE0;

            &::after {
                background-color: #EBDEE0;
            }

            &:hover::after {
                background-color: #f1ced3;
            }
        }

        .pro2 {
            background-color: #F8E7DA;

            &::after {
                background-color: #F8E7DA;
            }

            &:hover::after {
                background-color: #f3d9c6;
            }
        }

        .pro3 {
            background-color: #E1E6D9;

            &::after {
                background-color: #E1E6D9;
            }

            &:hover::after {
                background-color: #d8e3c7;
            }
        }
    }

    .action-buttons {
        display: flex;
        gap: 4rem;
    }
}


footer {
    scroll-snap-align: start;
    color: #1c1c1c;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    padding: 2rem 1rem;
    position: relative;

    h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 8px;
    }

    p {
        margin: 4px 0;
        font-size: 0.95rem;
    }

    a {
        color: #cc3363;
        text-decoration: none;

        &:hover {
            text-decoration: underline;
        }
    }
}


/* Hide the scrollbar */
::-webkit-scrollbar {
    display: none;
}

body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    html {
        scroll-snap-type: none !important;
    }

    .landing {
        padding: 0 2rem;

        .landing-main {

            .landing-content {
                width: 100%;
                text-align: center;
            }

            .landing-graphic {
                display: none;
            }
        }
    }

    .view {
        padding: 2rem 1rem;

        .view-content {
            padding-left: 1rem;
        }
    }

    .virtues {
        .view-content {
            flex-direction: column;
        }
    }

    .cta {
        padding: 2rem 1rem;

        .title {
            width: 100%;
        }

        ul {
            flex-direction: column;
            padding: 0;

            li {
                width: calc(100% - 4.5rem) !important;
            }
        }

        .action-buttons {
            flex-direction: column;
            gap: 2rem;
        }
    }
}

@media screen and (max-width: 550px) {
    nav {
        ul {
            display: none;
        }
    }
}