/* =========================================
   GLOBAL
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    max-width: 100%;
}

body {
    min-height: 100vh;

    padding: 4em;

    color: rgba(255, 255, 255, 0.75);

    font-family: "Nunito", sans-serif;

    background-color: rgb(0, 0, 0);

    margin-left: 10%;
    margin-right: 10%;
}


h3 {
    font-family: "Nunito", sans-serif;
    color: rgba(255, 248, 225);
}


h4 {
    font-family: "Nunito", sans-serif;
    color: #CCABD8;
}


hr.a {
    width: 20%;

    border: 2px solid rgb(68, 64, 67);
    border-radius: 30%;
}


/* =========================================
   TYPEWRITER
   ========================================= */

.line-1 {
    position: relative;

    margin: 0 auto;

    font-size: 180%;

    white-space: nowrap;
    overflow: hidden;

    border-right: 2px solid rgba(0, 0, 0, 0.75);

    width: 0;
}


.anim-typewriter {
    animation:
        typeDelete 6s steps(44, end) infinite,
        blinkTextCursor 600ms step-end infinite;
}


@keyframes typeDelete {

    0% {
        width: 0;
    }

    40% {
        width: 10.5em;
    }

    75% {
        width: 10.5em;
    }

    100% {
        width: 0;
    }

}


@keyframes blinkTextCursor {

    0%,
    100% {
        border-right-color: rgba(255, 255, 255, 0.75);
    }

    50% {
        border-right-color: transparent;
    }

}


/* =========================================
   HERO
   ========================================= */

.hero {
    text-align: center;

    margin-bottom: 100px;
}


.hero-gif {
    width: 130px;
    height: 170px;

    object-fit: cover;

    display: block;

    margin: 50px auto 20px;

    border-radius: 50px;
    border: 2px solid black;
}


.accent-text {
    color: #CCABD8;
}


/* =========================================
   HERO PHOTO GALLERY
   ========================================= */

.image-scroll {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 40px;

    max-width: 900px;

    margin: 40px auto;

    padding: 20px;
}


.image-scroll::-webkit-scrollbar {
    height: 8px;
}


.image-scroll::-webkit-scrollbar-thumb {
    background: #ccc;

    border-radius: 10px;
}


.hoverImages {
    margin: 0;

    padding: 3px;

    width: 240px;

    aspect-ratio: 3 / 4;

    object-fit: cover;

    outline: 2px solid #DDD;

    border-radius: 12px;

    transition: transform 0.3s ease;
}


.hoverImages:hover {
    cursor: pointer;

    transform:
        translateY(-8px)
        scale(1.03);
}


/* =========================================
   OLD IMAGE OVERLAY COMPONENT
   ========================================= */

.container {
    position: relative;

    width: 50%;
}


.image1 {
    display: block;

    width: 100%;

    height: auto;

    border-radius: 0;
}


.overlay {
    position: absolute;

    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    height: 100%;
    width: 100%;

    opacity: 0;

    transition: 0.5s ease;

    background-color: white;
}


.container:hover .overlay {
    opacity: 50%;
}


.text {
    color: rgba(0, 0, 0, 0.75);

    font-size: 20px;

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    text-align: center;
}


/* =========================================
   TABLES
   ========================================= */

table {
    border: 2px snow;
}


tr {
    padding: 25px;
}


td {
    margin: 5%;
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    border: none;

    border-radius: 5%;

    color: white;

    background-color:
        rgba(0, 0, 0, 0.75);

    padding: 15px 32px;

    display: inline-block;

    font-family: system-ui;

    text-align: center;

    transition-duration: 0.4s;

    cursor: pointer;
}


.button1 {
    background-color: white;

    color: rgba(0, 0, 0, 0.75);

    border:
        2px solid
        rgb(161, 132, 213);
}


.button1:hover {
    background-color:
        rgba(0, 0, 0, 0.75);

    color: white;

    border:
        2px solid
        rgb(161, 132, 213);
}


/* =========================================
   VIDEO
   ========================================= */

video {
    border-radius: 3%;
}


/* =========================================
   SECTION TITLES
   ========================================= */

.section-title {
    display: flex;

    align-items: center;

    gap: 20px;

    margin-bottom: 45px;
}


.section-title h2 {
    font-family:
        "Nunito",
        sans-serif;

    font-size: 32px;

    color: #d8d8ff;

    margin: 0;
}


.title-line {
    height: 1px;

    background-color:
        rgb(68, 64, 67);

    flex: 1;

    max-width: 350px;
}


/* =========================================
   ABOUT
   ========================================= */

.about-container {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

    max-width: 1100px;

    margin: 0 auto;
}


.about-text {
    flex: 1;

    text-align: left;
}


.square-img {
    width: 300px;
    height: 300px;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 15px;
}


/* =========================================
   EXPERIENCE
   ========================================= */

.experience-section {
    margin-top: 100px;

    margin-bottom: 100px;
}


.experience-container {
    display: flex;

    gap: 40px;
}


/* EXPERIENCE TABS */

.experience-tabs {
    min-width: 180px;

    border-right:
        1px solid
        rgb(68, 64, 67);
}


.experience-tab {
    width: 100%;

    background: none;

    border: none;

    border-right:
        2px solid transparent;

    color: #a9a6bb;

    padding: 14px 18px;

    text-align: left;

    font-family:
        "Nunito",
        sans-serif;

    font-size: 14px;

    cursor: pointer;

    transition: 0.25s;
}


.experience-tab:hover {
    color: #CCABD8;

    background-color:
        rgba(204, 171, 216, 0.05);
}


.experience-tab.active {
    color: #7fffe1;

    border-right:
        2px solid #7fffe1;

    background-color:
        rgba(127, 255, 225, 0.05);
}


/* EXPERIENCE CONTENT */

.experience-content {
    flex: 1;

    max-width: 650px;
}


.experience-content h3 {
    font-family:
        "Nunito",
        sans-serif;

    font-size: 23px;

    color: #d8d8ff;

    margin-top: 0;

    margin-bottom: 5px;
}


.experience-content h4 {
    font-family:
        "Nunito",
        sans-serif;

    font-size: 17px;

    color: #7fffe1;

    margin-top: 0;

    margin-bottom: 12px;
}


#experience-date {
    color: #8e8a9e;

    font-size: 14px;

    letter-spacing: 1px;

    margin-bottom: 25px;
}


#experience-description p {
    display: flex;

    gap: 12px;

    line-height: 1.7;

    color:
        rgba(255, 255, 255, 0.65);

    margin-bottom: 15px;
}


.arrow {
    color: #7fffe1;

    flex-shrink: 0;
}


/* =========================================
   PROJECT SECTIONS
   ========================================= */

.projects-section {
    margin-top: 100px;

    margin-bottom: 100px;
}


.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


.project-card {
    overflow: hidden;

    border:
        1px solid
        rgb(68, 64, 67);

    border-radius: 14px;

    background-color:
        rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background-color 0.3s ease;
}


.project-card:hover {
    transform: translateY(-7px);

    border-color: #CCABD8;

    background-color:
        rgba(204, 171, 216, 0.05);
}


.project-image {
    width: 100%;

    height: 230px;

    object-fit: cover;

    border-radius: 0;

    display: block;

    transition:
        transform 0.4s ease;
}


.project-video {
    width: 100%;

    height: 230px;

    object-fit: cover;

    display: block;

    border-radius: 0;
}


.project-card:hover .project-image {
    transform: scale(1.03);
}


.project-info {
    padding: 22px;
}


.project-info h3 {
    font-family:
        "Nunito",
        sans-serif;

    color: #d8d8ff;

    font-size: 19px;

    margin-top: 0;

    margin-bottom: 12px;
}


.project-info p {
    color:
        rgba(255, 255, 255, 0.62);

    font-size: 14px;

    line-height: 1.7;

    margin-bottom: 20px;
}


.project-tools {
    color: #CCABD8;

    font-size: 12px;

    line-height: 1.6;
}


/* =========================================
   GITHUB LINKS
   ========================================= */

.github-link {
    display: inline-block;

    color: #7fffe1;

    text-decoration: none;

    font-family:
        "Nunito",
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 18px;

    transition: 0.25s ease;
}


.github-link:hover {
    color: #CCABD8;

    transform:
        translateX(4px);
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 850px) {

    .project-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 768px) {

    /* =====================================
       PAGE
       ===================================== */

    html,
    body {
        width: 100%;

        max-width: 100%;

        overflow-x: hidden;
    }


    body {
        margin: 0;

        padding:
            28px 22px 60px;

        min-height: 100vh;

        font-size: 16px;
    }


    section {
        width: 100%;

        max-width: 100%;
    }



    /* =====================================
       HERO
       ===================================== */

    .hero {
        width: 100%;

        margin-bottom: 80px;

        text-align: center;
    }


    .hero-gif {
        width: 110px;

        height: 145px;

        margin:
            40px auto
            20px;
    }


    .line-1 {
        font-size: 1.7rem;

        max-width: 100%;

        margin-left: auto;

        margin-right: auto;
    }


    .hero h3 {
        font-size: 1rem;

        line-height: 1.5;

        max-width: 260px;

        margin-left: auto;

        margin-right: auto;
    }


    .hero h4 {
        font-size: 0.95rem;

        line-height: 1.55;

        max-width: 310px;

        margin:
            40px auto 0;
    }



    /* =====================================
       MOBILE SWIPE PHOTO GALLERY
       ===================================== */

    .image-scroll {
        display: flex;

        justify-content: flex-start;

        align-items: center;

        gap: 18px;

        /*
           Keep the scrolling area inside
           the width of the phone.
        */
        width: 100%;

        max-width: 100%;

        margin:
            55px 0
            25px;

        padding:
            6px 0
            20px;

        overflow-x: auto;

        overflow-y: hidden;

        scroll-snap-type:
            x mandatory;

        -webkit-overflow-scrolling:
            touch;

        scrollbar-width: none;

        /*
           Prevent vertical swipe gestures
           from being blocked.
        */
        touch-action: pan-x pan-y;

        overscroll-behavior-x:
            contain;
    }


    .image-scroll::-webkit-scrollbar {
        display: none;
    }


    .hoverImages {
        /*
           Each photo occupies most of
           the available phone width.
        */

        flex:
            0 0 88%;

        width: 76%;

        max-width: none;

        height: auto;

        aspect-ratio:
            3 / 4;

        object-fit: cover;

        padding: 3px;

        margin: 0;

        scroll-snap-align: center;
    }


    .hoverImages:hover {
        transform: none;
    }



    /* =====================================
       SECTION TITLES
       ===================================== */

    .section-title {
        width: 100%;

        gap: 15px;

        margin-bottom: 32px;
    }


    .section-title h2 {
        font-size: 1.75rem;

        white-space: nowrap;
    }


    .title-line {
        flex: 1;

        min-width: 20px;

        max-width: none;
    }



    /* =====================================
       ABOUT ME
       ===================================== */

    .about-container {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        width: 100%;

        max-width: 100%;

        gap: 28px;

        margin: 0;
    }


    /*
       On desktop your photo stays beside
       the text.

       On mobile it moves above the text.
    */

    .square-img {
        order: -1;

        display: block;

        width: 100%;

        max-width: 330px;

        height: auto;

        aspect-ratio:
            1 / 1;

        margin:
            0 auto
            5px;

        object-fit: cover;
    }


    .about-text {
        width: 100%;

        max-width: 100%;

        font-size: 1rem;

        line-height: 1.7;

        text-align: left;
    }


    .about-text p {
        margin-top: 0;

        margin-bottom: 22px;
    }



    /* =====================================
       EXPERIENCE
       ===================================== */

    .experience-section {
        margin-top: 85px;

        margin-bottom: 85px;
    }


    .experience-container {
        display: flex;

        flex-direction: column;

        width: 100%;

        max-width: 100%;

        gap: 20px;
    }



    /* EXPERIENCE TABS */

    .experience-tabs {
        display: flex;

        flex-direction: row;

        align-items: center;

        gap: 10px;

        width: 100%;

        max-width: 100%;

        min-width: 0;

        padding:
            2px 0
            10px;

        overflow-x: auto;

        overflow-y: hidden;

        border: none;

        scroll-snap-type:
            x proximity;

        -webkit-overflow-scrolling:
            touch;

        scrollbar-width: none;

        touch-action: pan-x pan-y;
    }


    .experience-tabs::-webkit-scrollbar {
        display: none;
    }


    .experience-tab {
        flex:
            0 0 auto;

        width: auto;

        min-width: max-content;

        padding:
            10px 18px;

        color: #a9a6bb;

        background: none;

        border:
            1px solid
            rgb(68, 64, 67);

        border-radius: 999px;

        text-align: center;

        font-size: 0.9rem;

        white-space: nowrap;

        scroll-snap-align: start;
    }


    .experience-tab:hover {
        color: #CCABD8;

        background-color:
            transparent;
    }


    .experience-tab.active {
        color: #e4c8ee;

        border:
            1px solid
            #CCABD8;

        background-color:
            rgba(204, 171, 216, 0.18);
    }



    /* EXPERIENCE CARD */

    .experience-content {
        width: 100%;

        max-width: 100%;

        padding:
            26px 22px;

        border:
            1px solid
            rgb(68, 64, 67);

        border-radius: 18px;

        background-color:
            rgba(255, 255, 255, 0.025);
    }


    .experience-content h3 {
        font-size: 1.3rem;

        line-height: 1.35;

        margin-bottom: 8px;
    }


    .experience-content h4 {
        font-size: 1rem;

        line-height: 1.4;

        margin-bottom: 12px;
    }


    #experience-date {
        font-size: 0.8rem;

        margin-bottom: 24px;
    }


    #experience-description p {
        display: flex;

        gap: 10px;

        font-size: 0.95rem;

        line-height: 1.65;

        margin-bottom: 18px;
    }



    /* =====================================
       PROJECT SECTIONS
       ===================================== */

    .projects-section {
        margin-top: 85px;

        margin-bottom: 85px;
    }


    .project-grid {
        display: grid;

        /*
           ONE PROJECT PER ROW
        */

        grid-template-columns:
            minmax(0, 1fr);

        width: 100%;

        gap: 32px;
    }


    .project-card {
        width: 100%;

        max-width: 100%;

        margin: 0;
    }


    /*
       Hover effects are unnecessary
       on touch screens.
    */

    .project-card:hover {
        transform: none;
    }


    .project-card:hover .project-image {
        transform: none;
    }


    .project-image,
    .project-video {
        width: 100%;

        height: auto;

        aspect-ratio:
            16 / 10;

        object-fit: cover;

        display: block;
    }


    .project-info {
        padding: 24px;
    }


    .project-info h3 {
        font-size: 1.25rem;

        line-height: 1.4;
    }


    .project-info p {
        font-size: 0.95rem;

        line-height: 1.7;
    }


    .project-tools {
        font-size: 0.8rem;

        line-height: 1.7;
    }


    .github-link {
        font-size: 0.9rem;
    }

}
