*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #679436;
    --secondary-color: #004e64;
    --text-color: #c0c0c0;
    --background-color: #ebebeb;
}

body {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 20px;
}

a {
    text-decoration: none;
    color: var(--text-color);

    &:hover {
        text-decoration: underline;
    }
}

header {
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    max-width: 1440px;
    margin: auto;
    border-bottom: 1px solid #2b2c38;

    .logo-holder {
        display: flex;
        padding: 10px;
        align-items: center;
        font-weight: 600;
        color: var(--secondary-color);

        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            background-color: var(--secondary-color);
            color: var(--background-color);
            height: 64px;
            width: 64px;
            margin-right: 20px;
            border-radius: 50%;
        }

        .logo-text {
            flex: 1;
        }
    }

    nav {
        display: flex;
        align-items: center;
        padding: 2px;

        ul {
            display: flex;
            list-style: none;
            gap: 5px;

            li {
                display: inline-block;

                a {
                    display: inline-block;
                    padding: 10px 20px;
                    color: var(--text-color);

                    &:hover {
                        background-color: var(--secondary-color);
                        border-radius: 10px;
                        text-decoration: none;
                    }
                }
            }
        }

        .mobile-toggle {
            display: none;
            color: var(--background-color);
            cursor: pointer;
            padding: 10px;

            @media(max-width: 768px) {
                display: inline-block;
                position: absolute;
                top: 20px;
                right: 20px;
            }
        }

    }

    @media (max-width: 1024px) {
        flex-direction: column;
        align-items: center;
    }

    @media (max-width: 768px) {
        flex-direction: column;
        align-items: center;

        nav {
            margin-top: 10px;
            width: 100%;

            ul {
                display: none;
                flex-direction: column;
                text-align: center;
                width: 100%;

                a {
                    width: 100%;
                }

                &.active {
                    display: flex;
                }
            }
        }
    }
}

.container {
    max-width: 1440px;
    margin: auto;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;

    @media (max-width: 1440px) {
        padding-left: 30px;
        padding-right: 30px;
    }
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s ease;

    &:hover {
        background-color: var(--primary-color);
        color: var(--secondary-color);
        text-decoration: none;
    }

    &.white {
        background-color: white;
        color: black;

        &:hover {
            background-color: var(--primary-color);
            color: var(--secondary-color);
        }
    }

    &.black {
        background-color: black;
        color: white;

        &:hover {
            background-color: var(--primary-color);
            color: var(--secondary-color);
        }
    }
}

h1 {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;

    small {
        display: block;
        font-weight: 100;
    }

    @media (max-width: 1024px) {
        font-size: 48px;
    }
}

.hero {
    display: flex;

    @media (max-width:1024px) {
        flex-direction: column;
    }

    .hero-green {
        flex: 1;
        color: var(--text-color);
        background-color: var(--secondary-color);
        border-radius: 30px;
        padding: 30px;
        display: flex;
        flex-direction: column;
        justify-content: center;

        span {
            @media (max-width:768px) {
                display: none;
            }
        }

        .call-to-action {
            margin-top: 20px;
            margin-bottom: 10px;

            a {
                margin-right: 10px;
                margin-bottom: 10px;
            }
        }

        .social-links {
            a {
                &:hover {
                    text-decoration: none;
                }
            }
        }
    }

    .hero-blue {
        flex: 1;
        background-color: var(--primary-color);
        border-radius: 30px;
        padding: 0px 30px;
        display: flex;
        justify-content: center;
        align-items: flex-end;

        img {
            margin-top: -40px;
            max-width: 520px;
            margin-bottom: -10px;
        }
    }
}

.logos {
    background-color: var(--background-color);
    border-radius: 30px;
    padding: 30px 0px;

    @media (max-width:1440px) {
        border-radius: 0px;
    }

    .marquee {
        width: 100vw;
        max-width: 100%;
        height: 150px;
        overflow: hidden;
        position: relative;

        .track {
            position: absolute;
            white-space: nowrap;
            will-change: transform;
            animation: marquee 40s linear infinite;
            display: flex;
            gap: 10px;
            align-items: center;
        }
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


h2 {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 10px;
    text-align: center;
    color: var(--secondary-color);
    padding: 30px;

    small {
        display: block;
        font-weight: 100;
        font-size: 0.5em;
        color: var(--primary-color);
    }

    @media (max-width:1024px) {
        font-size: 48px;
    }
}

h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--text-color);
}

.skills {
    .holder-green {
        background-color: var(--secondary-color);
        border-radius: 30px;
        padding: 30px;
        gap: 60px;
        display: flex;

        @media (max-width: 1024px) {
            flex-direction: column;
        }

        .left-column {
            color: var(--background-color);
            flex: 1;
        }

        .right-column {
            flex: 1;

            ul {
                list-style-type: none;
                gap: 10px;
                margin-right: 0px;
                margin-bottom: 20px;

                li {
                    display: inline-block;
                    color: var(--secondary-color);
                    background-color: var(--primary-color);
                    padding: 10px 20px;
                    border-radius: 15px;
                    margin-bottom: 10px;
                }
            }
        }
    }
}

.bento {
    .bento-grid {
        display: grid;
        grid-gap: 30px;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, 1fr);
        min-height: 960px;
        padding: 5px 5px;
        

        @media(max-width:1024px) {
            grid-template-rows: repeat(5, 1fr);
        }

        @media(max-width:768px) {
            display: flex;
            flex-direction: column;
            gap: 30px;
            height: auto;
        }

        .bento-item {
            padding: 30px;
            background-color: var(--primary-color);
            border-radius: 15px;
            position: relative;
            overflow: hidden;

            img {
                position: absolute;
                top: 0;
                left: 0;
                height: 100%;
                object-fit: cover;
                transition: ease 3s all;
            }

            &:hover {
                img {
                    transform: scale(1.2);
                }
            }

            @media(max-width:768px) {
                height: 240px;
            }

            &:nth-child(1) {
                grid-column: span 2;
                grid-row: span 2;

                @media(max-width:1024px) {
                    grid-column: span 2;
                    grid-row: span 2;
                }
            }

            &:nth-child(2) {
                grid-column: span 2;
                grid-row: span 1;

                @media(max-width:1024px) {
                    grid-column: span 3;
                    grid-row: span 2;
                }
            }

            &:nth-child(3) {
                grid-column: span 1;
                grid-row: span 1;

                @media(max-width:1024px) {
                    grid-column: span 3;
                    grid-row: span 2;
                }
            }

            &:nth-child(4) {
                grid-column: span 1;
                grid-row: span 1;

                @media(max-width:1024px) {
                    grid-column: span 2;
                    grid-row: span 4;
                }
            }

            &:nth-child(5) {
                grid-column: span 2;
                grid-row: span 1;

                @media(max-width:1024px) {
                    grid-column: span 3;
                    grid-row: span 2;
                }
            }
        }
    }
}

.footer {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 32px 0 16px 0;
    

    .footer-container {
        max-width: 1440px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .footer-social {
        display: flex;
        gap: 24px;
        margin-bottom: 8px;
    }

    .footer-social a img {
        transition: transform 0.2s;
        filter: grayscale(1) brightness(1.2);
    }

    .footer-social a:hover img {
        transform: scale(1.2);
        filter: none;
    }
}