@font-face {
    font-family: "Montserrat";
    src: url("fonts/montserratVariable.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("fonts/robotoVariable.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    --black: #151515;
    --white: #f5f5f5;
    --cyan: #29ADC3;
    --cyan-shadow: #1A707F;
    --pink: #fc0fa5;
    --pink-shadow: #B40172;
    --yellow: #ffc107;
    --yellow-shadow: #DBA502;

    --roboto: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --montserrat: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--black);
    scroll-behavior: smooth;
    font-family: var(--roboto);
}

h1 {
    font-family: var(--montserrat);
    text-align: center;
    margin: 1rem;
    color: var(--white);
    font-size: 3rem;
}

h2 {
    font-family: var(--montserrat);
    text-align: center;
    color: var(--white);
    font-size: 2rem;
}

header {
    display: flex;
    z-index: 5;
    nav {
        display: flex;

        ul {
            list-style: none;

            li {

                a {
                    text-decoration: none;
                    color: white;
                    font-size: 1rem;
                }
            }
        }
    }
}

.homepage-header {
    h1 {
        color: var(--cyan);
    }

    h2 {
        color: var(--pink)
    }
}

.header-icons {
    display: flex;
    justify-content: space-evenly;
    margin: 0 1rem;

    .social-link-icon {
        max-width: 35px;
        height: auto;
        margin: 4px;
    }
}

#title {
    margin-bottom: 1rem;
}

img {
    width: 100%;
}

.hidden{
    display: none;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;

    p {
        margin-bottom: 1rem;
    }

    .about-section {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;

        .headshot-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 1rem;

            img {
                width: 100%;
                max-width: 500px;
                height: auto;
                border-radius: 1rem;
                box-shadow: 4px 4px 6px rgba(0, 0, 0, .9);
            }
        }

        .bio-container {
            max-width: 500px;

            p {
                font-size: 1rem;
                color: var(--white);
            }
        }

        .interests-container {
            width: 100%;
            max-width: 500px;
            display: flex;
            justify-content: space-between;
            gap: 1rem;
            margin-bottom: 1rem;
            justify-self: center;

            .interest {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;

                span {
                    color: var(--pink);
                    
                }

                .interest-icon {
                    width: 100%;
                    min-width: 50px;
                    max-width: 75px;
                    height: auto;
                    object-fit: contain;
                }
            }
        }

        .download-resume {
            display: flex;
            justify-content: center;

            .download-btn {
                display: block;
                width: 100%;
                min-width: 190px;
                max-width: 300px;
                padding: .75rem;
                background-color: var(--cyan);
                color: var(--black);
                text-decoration: none;
                text-align: center;
                font-size: 1rem;
                text-transform: uppercase;
                border-radius: 1rem;
                box-shadow: 4px 4px 6px rgba(0, 0, 0, .9);
                transition: background-color 0.3s;
            }

            .download-btn:hover {
                background-color: var(--pink);
            }
        }
    }

    .demo-reel{
        padding: 1rem;
        text-align: center;
        margin-bottom: 1rem;
        width: 100%;

        video {
            width: 100%;
            max-width: 700px;
            height: auto;
            border-radius: 1rem;
            box-shadow: 4px 4px 6px rgba(0, 0, 0, .9);
        }
    }

    .project-vid {
        padding: 2rem;
        text-align: center;
        width: 100%;

        video {
            width: 100%;
            max-width: 700px;
            height: auto;
            border-radius: 1rem;
            box-shadow: 4px 4px 6px rgba(0, 0, 0, .9);
        }
    }

    .project-img {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 1rem 2rem 1rem;

        img {
            object-fit: contain;
            width: 100%;
            max-width: 950px;
            height: auto;
            border-radius: .5rem;
            box-shadow: 4px 4px 6px rgba(0, 0, 0, .9);
        }
    }

    .project-gif {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0rem 2rem 1rem;

        img {
            object-fit: contain;
            width: 100%;
            max-width: 950px;
            height: auto;
        }
    }

    .project-description {
        max-width: 800px;
        color: var(--white);
        font-size: 1.2rem;
        padding: 0.5rem 2rem 2rem;
    }

    .portfolio-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin: 1rem 0;
        padding: 1rem;
        width: 100%;
        justify-content: center;

        .portfolio-item{
            position: relative;
            display: flex;
            width: 100%;
            justify-content: center;
            flex-direction: column;

            img {
                width: 100%;
                height: auto;
                object-fit: cover;
                transition: opacity 0.3s ease;
            }

            .project-title {
                position: absolute;
                width: 100%;
                padding: 1rem;
                color: var(--white);
                text-align: center;
                overflow-wrap: break-word;
                font-size: clamp(1rem, 2vw, 3rem);
                opacity: 0;
                transition: opacity 0.3s ease;
            }

        }

        .portfolio-item:hover {
            background-color: rgba(21, 21, 21, 0.3);

            img {
                opacity: 0.4;
            }

            .project-title {
                opacity: 1;
            }
        }
    }

    .yellow-border-dark, .yellow-border-light {
        width: 100%;
    }
    
    .yellow-border-light {
        height: 10px;
        background-color: var(--yellow);
        margin-bottom: 1rem;
    }
    
    .yellow-border-dark {
        height: 5px;
        background-color: var(--yellow-shadow);
    }

    .portfolio {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    margin: 1rem;
    max-width: 850px;
    width: 100%;
    gap: 1rem;

        .portfolio-button {
            aspect-ratio: 1 / 1;
            padding: 1rem;
            display: flex;
            width: 100%;
            height: 100%;
            max-width: 400px;
            max-height: 400px;
            border-radius: 1rem;
            position: relative;
            text-decoration: none;
            background-size: cover;
            background-position: center;
            border: 2px solid var(--yellow);

            .button-content {
                border-radius: 1rem;
                position: relative;
                z-index: 2;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                text-align: center;
                width: 100%;
                height: 100%;

                .button-icon {
                        display: block;
                        margin-bottom: 10px;
                        max-width: 60px;
                }

                .button-text {
                        text-transform: uppercase;
                        color: var(--cyan);
                        font-size: 1.5rem;
                        text-shadow: 1px 1px 1px rgba(21, 21, 21, 0.9);
                }
            }
        }
    }   

    .portfolio-button::before {
        border-radius: 1rem;
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: background-color 0.3s ease;
        background-color: rgba(21, 21, 21, 0.8);
    }

    .portfolio-button:hover::before {
        background-color: rgba(21, 21, 21, 0);
    }

    .portfolio-button:active::before {
        background-color: rgba(21, 21, 21, 0.6)
    }

    .games-button {
        background-image: url("media/games/abdominator/abdominatorThumbnail.webp");
    }

    .art-button {
        background-image: url("media/art/dodgeThis/dodgeThis_thumbnail.webp");
    }


}

#checkmark-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#checkmark-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.checkmark {
    font-size: 2rem;
    color: #00ff88;
    animation: scaleIn 0.3s ease-out;
}

.confirmation-text {
    color: var(--white);
    font-family: var(--roboto);
    font-size: 1.5rem;
    font-weight: 500;
    animation: fadeIn 0.3s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

footer {

    background-color: var(--black);
    display: flex;
    align-items: center;
    flex-direction: column;

    .footer-border-light {
        height: 10px;
        width: 100%;
        background-color: var(--cyan);

    }

    .footer-border-dark {
        height: 5px;
        width: 100%;
        background-color: var(--cyan-shadow);
    }

    form input, form textarea {
        font-family: var(--roboto);
        font-size: 1rem;
        color: var(--black);
        padding: .75rem;
        font-size: 1rem;
        border: 1px solid var(--white);
        border-radius: .25rem;
        width: 100%
    }

    .footer-heading {
        display: flex;
        flex-direction: column;
        align-items: center;

        h2 {
            margin: 1rem;
        }

        .header-icons {
            justify-content: center;
            align-items: center;
        }
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 700px;
        padding: 0 2rem 1rem;

        label {
            color: var(--white);
            font-size: 1rem;
            text-align: left;
            
        }

        button {
            border: none;
            padding: 1rem;
            font-size: 1rem;
            background-color: var(--cyan);
            box-shadow: -.25rem .5rem 1px var(--cyan-shadow);
            color: var(--black);
            border-radius: .25rem;
            cursor: pointer;
            width: 100%;
            max-width: 400px;
            align-self: flex-end;
            
        }

    }
}


@media (max-width: 768px) {

    main {
        .portfolio-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .about-section {
            flex-direction: column;

            .headshot-container, .bio-container, .interests-container, .download-resume {
                text-align: center;
                width: 100%;
            }
        }
    }

    header {
        position: sticky;
        top: 0;
        background-color: var(--black);
        padding: 1rem;
        width: 100%;
        justify-content: center;
    
        nav {
            justify-content: center;
            width: 100%;

            .desktop-logo {
                display: none;
            }

            .header-icons {
                display: none;
            }
        
            ul {
                display: flex;
                padding: 0;
                align-items: center;
                width: 100%;
                justify-content: space-evenly;
                
        
                li {
                    margin: 0.25rem;
                    text-align: center;
        
                    .mobile-logo {
                        min-width: 75px;
                        height: auto;
                    }
                }

                
            }

            ul li:first-child {
                display: none;
            }
        }

        .header-border-light {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 10px;
            width: 100%;
            background-color: var(--pink);
        }

        .header-border-dark {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 15px;
            width: 100%;
            background-color: var(--pink-shadow);
        }
    }

}

@media(max-width: 430px) {

    main {
        .portfolio-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }
}

@media (min-width: 769px) {
    body {
        display: grid;
        grid-template-columns: 200px 1fr;
        grid-template-rows: auto 1fr auto;
    }

    main {

        height: auto;
        grid-column: 2;

        .project-title {
            display: block;
        }

        .portfolio-grid {
            grid-template-columns: repeat(4, 1fr);
        }

        .about-section {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-template-rows: auto 1fr auto;
            gap: 2rem;

            .headshot-container {
                justify-content: flex-start;
            }

            .bio-container {
                text-align: center;
                max-width: 500px;
            }

            .interests-container {
                grid-column: 1 / -1;
                grid-row: 2;

                .interest {

                    .interest-icon {
                        max-width: 100px;
                    }
                }
            }

            .download-resume {
                grid-column: 1 / -1;
                grid-row: 3;
            }
        }
    }

    header {
        display: flex;
        justify-content: flex-start;
        position: fixed;
        top: 0;
        flex-direction: column;
        grid-column: 1;
        height: 100vh;

        .header-border-light {
            position: absolute;
            top: 0;
            right: 0;
            height: 100%;
            width: 10px;
            background-color: var(--pink);
        }

        .header-border-dark {
            position: absolute;
            top: 0;
            right: 1px;
            height: 100%;
            width: 15px;
            background-color: var(--pink-shadow);
        }

        nav {
            flex-direction: column;
            align-items: flex-end;
            height: 100vh;
            width: 200px;
            padding-right: 1rem;

            .desktop-logo {
                display: block;

                img {
                    width: 100%;
                    height: auto;
                }
            }
    
            ul {
                flex-direction: column;
                margin: 1rem 0;
                width: 100%;
                display: block;

                li {
                    text-align: right;
                    margin-bottom: 1rem;
                    position: relative;
                    display: block;
                    width: 100%;
                    padding-right: 1rem;
                    z-index: 2;
                    a {
                        position: relative;
                        font-size: 1.75rem;
                        z-index: 2;
                    }

                    &::after {
                        z-index: 1;
                        content: "";
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        height: 2rem;
                        background-color: var(--pink-shadow);
                        transform: scaleX(0); 
                        transform-origin: bottom left;
                        transition: transform 0.3s ease;
                    }
                
                    &:hover::after {
                        transform: scaleX(1); 
                        transform-origin: bottom right; 
                    }

                    .mobile-logo {
                        display: none;
                    }
                }
            }
            
        }
    }

    footer {
        grid-column: 2;

        .footer-heading {  
                h2 {
                    grid-column: 1 / -1;
                }

                .header-icons {
                    display: none;
                }
            }
    }

   
}