﻿/*Landing*/

.main-banner {
    position: relative;
}

.main-banner .text {
    font-size: .8rem;
}

.main-banner h1 {
    font-size: 8rem;
    display: flex;
    gap: 2px;
    overflow: hidden;
    justify-content: center;
    font-variation-settings: "wdth" 125;
    font-weight: 600;
    position: relative;
    z-index: 10;
}

    .main-banner .main-text {
        padding: 125px 0;
    }

    .main-banner h1 .char {
    transform: translateY(100%);
    display: inline-block;
    }

.main-banner h2 {
    font-size: 6rem;
    text-align: center;
    font-variation-settings: "wdth" 125;
    font-weight: 400;
    line-height: 5rem;
    transform: translateY(-20px);
}

    .main-banner h2 span {
        position: relative;
        overflow: hidden;
        z-index: 10;
    }

    .main-banner h2 span::after {
        content: "";
        background-color: var(--white);
        height: 100%;
        width: 100%;
        display: inline;
        position: absolute;
        top: 0;
        right: 0;
        transition: right 1s ease-in-out;
    }


        .main-banner h2 span.reveal-3::before {
            content: "";
            background-color: var(--yellow);
            height: 100%;
            width: 0;
            display: inline;
            position: absolute;
            top: 0;
            left: 0;
            transition: width 3s ease-in-out;
            opacity: .8;
            z-index: -5;
        }

            .main-banner h2 span.reveal-3.active::before {
                width:100%;
            }

        .main-banner h2 span.reveal-4::after {
            transition: top 1s ease-in-out;
        }

        .main-banner h2 span.active::after {
            right: -100%;
        }

    .main-banner h2 span.reveal-4.active::after {
        right: 0;
        top: -100%;
    }

.main-banner .open-to-work {
    background-color: var(--black);
    color: var(--white);
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center; 
    gap: 10px;
    font-size: .9rem;
    position: relative;
}

    .open-to-work::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        transition: right 1s ease-in-out;
    }

    .open-to-work.active::after {
        right: -100%;
    }

    .main-banner .open-to-work .dot {
        background-color: var(--green);
        height: 7px;
        width: 7px;
        border-radius: 50%;
    }

/**/
.projects {
    display: flex;
    flex-direction: column;
    position: relative;
}

    .projects a::before {
        content: "";
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transition: transform 4s ease;
        background-color: var(--white);
    }

    .projects.active a::before {
        transform:translateY(100%);
    }

    .projects a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--darkgray);
        font-size: 1.25rem;
        text-decoration: none;
        border-bottom: 1px solid var(--darkgray);
        padding: 1rem 0;
        overflow: hidden;
    }

        .projects a:hover {
            border-bottom: 1px solid var(--black);
            color: var(--black);
        }

        .projects a .tags {
            display: flex;
            font-size: .9rem;
            gap: 10px;
        }

            .projects a .tags .item {
                background-color: var(--gray);
                padding: 3px 10px;
            }

    .project-heading {
        line-height: 1;
        font-weight: 700;
        font-variation-settings: "wdth" 125;
        margin-bottom: 2rem;
    }

.project-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.reveal-right::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: white; /* White cover */
    z-index: 1;
    transition: transform 3s ease; /* Smooth transition for the cover */
    transform: translateX(0); /* Initially covers the whole div */
}

.reveal-right.active::before {
    transform: translateX(200%); /* Slide the cover out to the right */
}

/*CUSTOM CAROUSEL*/

#carousel-wrapper {
    width: 1000px;
    overflow: hidden;
    position: relative;
}

#carousel {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    gap: .5rem;
}

.custom-carousel img {
    width: 636px;
    height: 400px;
    object-fit: cover;
    display: block;
}

.personal {
    margin-top: 2rem;
}

    .personal h3 {
        font-size: .9rem;
        font-weight: 400;
        color: var(--darkgray);
        margin-bottom: 1rem;
    }

    .personal .personal-item {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        background-color: var(--gray);
        padding: 1rem;
        position: relative;
        overflow: hidden;
    }

        .personal .personal-item .head {
            display: flex;
            gap: .5rem;
            align-items: flex-end;
            margin-bottom: .5rem;
        }

            .personal .personal-item .head h3 {
                color: var(--black);
                font-size: 1.25rem;
                margin: 0;
            }

            .personal .personal-item .tags {
                display: flex;
                flex-wrap: wrap;
                gap: .5rem;
            }

                .personal .personal-item .tags .tag {
                    background-color: var(--darkgray);
                    font-size: .8rem;
                    padding: 3px 10px;
                    font-weight: 400;
                    color: var(--white);
                }

#spotify .tag {
    font-size: .8rem;
    color: var(--darkgray);
}

.spotify_widget {
    display: flex;
    background-color: var(--gray);
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    position: relative;
}

    .spotify_widget .logo-overlay {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
    }

    .spotify_widget .image {
        width: 100px;
        height: auto;
    }

    .spotify_widget .text {
        position: relative;
        z-index: 5;
    }

    .spotify_widget .text .heading {
        display: flex;
        gap: .5rem;
        margin-top: 1rem;
    }

        .spotify_widget .text .online {
            background-color: var(--darkgray);
            padding: 3px 10px;
            font-size: .9rem;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 300;
            width: fit-content;
        }

        .spotify_widget .text .offline {
            background-color: var(--darkgray);
            padding: 3px 10px;
            font-size: .9rem;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 300;
            width: fit-content;
        }

            .spotify_widget .text .offline .dot {
                height: 8px;
                width: 8px;
                background-color: var(--red);
                border-radius: 50%;
            }

            .spotify_widget .text .online .dot {
                height: 8px;
                width: 8px;
                background-color: var(--green);
                border-radius: 50%;
            }

        .spotify_widget .text .heading .type h3 {
            font-size: 1.2rem;
            line-height: 1;
            font-weight: 700;
            font-variation-settings: "wdth" 125;
        }

        .spotify_widget .text .heading .type h4 {
            font-size: .9rem;
            line-height: 1;
            font-weight: 400;
            font-variation-settings: "wdth" 125;
        }

        .spotify_widget .image img {
            width: 100%;
        }

.about-text h3 {
    line-height: 1;
    font-weight: 700;
    font-variation-settings: "wdth" 125;
    margin-bottom: 2rem;
}

.about-text #bert {
    font-weight: bold;
    font-variation-settings: "wdth" 125;
    color: var(--blue);
    cursor: pointer;
}

.about-text .socials {
    display: flex;
    gap: .5rem;
    margin-top: 2rem;
}

    .about-text .socials a {
        color: var(--black);
        font-size: 1.5rem;
    }

        .about-text .socials a:hover {
            color: var(--blue);
        }

.service-wrapper {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    margin-top: 1rem;
    gap: 1rem;
    padding-left: 1rem;
}

    .service-wrapper .service-border {
        border-bottom: 1px solid var(--darkgray);
    }
    
    .service-wrapper .service-item {
        display: flex;
        flex-direction: column;
        gap: .5rem;
        padding: 1rem 0;
    }

        .service-wrapper .service-item .head {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
        }

            .service-wrapper .service-item .head h3 {
                font-size: 1.2rem;
                line-height: 1;
                font-weight: 700;
                font-variation-settings: "wdth" 125;
                margin-right: 1rem;
            }

            .service-wrapper .service-item p {
                font-size: .8rem;
                margin: 0;
            }

.bert-image {
    position: absolute;
    opacity: 0;
    transform: translate(300px, -300px);
    width: 200px;
}

.blog-heading h4 {
    line-height: 1;
    font-weight: 700;
    font-variation-settings: "wdth" 125;
    margin-bottom: 1rem;
}

.blogs {
    display: flex;
    gap: 1rem;
}

    .blogs .blog-item {
        width: 100%;
        color: var(--black);
        text-decoration: none;
    }

        .blogs .blog-item img {
            width: 100%;
            height: 380px;
            object-fit: cover;
        }

        .blogs .blog-item .head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin: 1rem 0;
        }

            .blogs .blog-item .head h5 {
                width: 75%;
                font-weight: 500;
                font-size: 1.25rem;
            }

            .blogs .blog-item .head .date {
                font-weight: 300;
                font-size: .9rem;
            }

            .blogs .blog-item .tags {
                display: flex;
                gap: .5rem;
                flex-wrap: wrap;
            }

                .blogs .blog-item .tags .tag {
                    background-color: var(--gray);
                    font-size: .8rem;
                    padding: 3px 10px;
                    font-weight: 400;
                }

@media(max-width: 1250px){
    .main-banner h1 {
        font-size: 6rem;
    }
    .main-banner h2 {
        font-size: 4rem;
    }
    .projects a {
        font-size: .9rem;
    }

        .projects a .tags {
            gap: .25rem;
        }

        .projects a .tags .item {
            font-size: .8rem;
            padding: 3px 5px;
        }

    .custom-carousel img {
        width: 425px;
    }
}

@media(max-width: 810px){
    .main-banner h1 {
        font-size: 4rem;
    }

    .main-banner h2 {
        font-size: 2rem;
    }

    .blogs {
        overflow-x: scroll;
    }

    .blogs .blog-item {
        flex: 0 0 auto;
    }
}

@media(max-width: 675px) {
    .service-wrapper {
        grid-template-columns: repeat(1,1fr);
    }
    .main-banner .open-to-work {
        margin-top: 1rem;
    }
}

@media(max-width: 580px){
    .main-banner h1 {
        font-size: 3rem;
    }

    .main-banner h2 {
        font-size: 2rem;
    }

    .main-banner .main-text {
        padding: 75px 0;
    }

    .about-text .socials {
        margin: 2rem 0;
    }

    .personal {
        margin: 2rem 0;
    }
}

@media(max-width: 440px){
    .main-banner h1 {
        font-size: 2.5rem;
    }

    .main-banner h2 {
        font-size: 2rem;
    }
}

@media(max-width: 375px){
    .main-banner h1 {
        font-size: 2rem;
    }

    .main-banner h2 {
        font-size: 1.5rem;
        line-height: 1.6;
    }
}