
:root {
    --borderradius: 0.4rem;

    /* CSS HEX */
    --columbia-blue: #bfd7eaff;
    --sea-green: #09814aff;
    --gunmetal: #11151d;
    --tomato: #ff6542ff;
    --licorice: #1f2b3f;
    
    /* CSS Gradient */
    --gradient-top: linear-gradient(0deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-right: linear-gradient(90deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-bottom: linear-gradient(180deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-left: linear-gradient(270deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-top-right: linear-gradient(45deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-bottom-right: linear-gradient(135deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-top-left: linear-gradient(225deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-bottom-left: linear-gradient(315deg, var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
    --gradient-radial: radial-gradient(var(--columbia-blue), var(--sea-green), var(--gunmetal), var(--tomato), var(--licorice));
}

/* GENERAL ELEMENTS */

body {
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    padding: 0;
    margin: 0;
    background-color: var(--gunmetal);
    color: white;
}

header {
    border-bottom: solid 1px white;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

section {
    width: 100%;
    padding: 1rem;
}

.section-title {
    margin-bottom: 2rem;
}

button {
    border: solid 1px var(--tomato);
    color: var(--tomato);
    background-color: var(--gunmetal);
    padding: 1rem;
    border-radius: var(--borderradius);
}

button:hover, .accordion-text-inner-links a:hover {
    background-color: var(--tomato);
    color: white;
    transition: all 0.5s ease;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--tomato);
    transition: all 0.5s ease;
}

/* HEADER */

nav {
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    background-color: var(--gunmetal);
}

.logo {
    margin: 0;
}

/* HAMBURGER MENU */

.ham-menu {
    height: 50px;
    width: 50px;
    margin-left: auto;
    position: relative;
}

.ham-menu span {
    height: 5px;
    width: 100%;
    background-color: var(--tomato);
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* HAMBURGER MENU JS TOGGLED ELEMENTS */

.off-screen-menu {
    background-color: var(--gunmetal);
    color: white;
    width: 100%;
    height: 100vh;
    position: fixed;
    display: grid;
    left: 0;
    place-items: center;
    text-align: center;
    font-size: 3rem;
    transition: all 0.3s ease;
    top: -100%;
}

.off-screen-menu li {
    padding: 1rem;
}

.off-screen-menu.active {
    top: 0;
}

.ham-menu span:nth-child(1) {
    top: 25%;
}

.ham-menu span:nth-child(3) {
    top: 75%;
}

.ham-menu.active span:nth-child(1) {
    top: 60%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    top: 50%;
    width: 50px;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* HERO SECTION */

.hero {
    width: 100%;
    display: grid;
}

.profile-image {
    overflow: hidden;
    border-radius: var(--borderradius);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--borderradius);
}

.profile-about {
    margin-bottom: 1rem;
}

.name {
    margin: 0.5rem 0;
    font-size: 2.25rem;
}

.name-phrase {
    padding-top: 1rem;
}

.name-title {
    margin: 0.5rem 0;
    color: var(--tomato);
    font-weight: normal;
    font-family: 'Courier New', Courier, monospace;
}

.name-phrase {
    margin: 1rem 0;
}

/* PROJECTS SECTION */

h2 {
    margin: 0;
}

.accordion-toggle {
    cursor: pointer;
    padding: 1rem;
}

.accordion-toggle:hover {
    color: tomato;
    transition: all 0.2s ease-in-out;
}

.accordion-wrapper {
    width: 100%;
}

.accordion-animate-element {
    height: 1px;
    background-color: white;
    width: 30%;
    -webkit-transition: width 0.5s ease-in-out;
    -moz-transition: width 0.5s ease-in-out;
    -o-transition: width 0.5s ease-in-out;
    -ms-transition: width 0.5s ease-in-out;
    transition: width 0.5s ease-in-out;
}

.accordion-text-content {
    -webkit-transition: max-height 0.8s ease-in-out;
    -moz-transition: max-height 0.8s ease-in-out;
    -o-transition: max-height 0.8s ease-in-out;
    -ms-transition: max-height 0.8s ease-in-out;
    transition: max-height 0.8s ease-in-out;
    overflow: hidden;
    max-height: 0;
    box-shadow: inset 0 -10px 20px 0 var(--gunmetal); /* Inner box shadow */
}

.accordion-text-content.expanded {
    max-height: 0px;
}

.accordion-animate-element.expanded {
    width: 100%;
}

.accordion-text-inner {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.accordion-text-inner-links {
    display: flex;
    gap: 1rem;
    margin-block: 1rem;
}

.accordion-text-inner-links a {
    color: var(--tomato);
    border: var(--tomato) solid 1px;
    padding: 0.5rem 1rem;
    border-radius: var(--borderradius);
}

.accordion-text-inner-col:nth-last-child(1) {
    padding: 1rem;
}
.accordion-text-inner-col:nth-last-child(1) img {
    width: 100%;
    height: 100%;
    border: solid 2px var(--gunmetal);
    object-position: center; 
    border-radius: var(--borderradius);
}

/* CONTACT SECTION */

.contact-section {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact {
    display: flex;
    justify-content: center;
    border-radius: 10px;
}

.contact a {
    margin-right: 0.5rem;
    height: 50px;
    height: 50px;
}

/* FOOTER SECTION */

footer {
    background-color: var(--tomato);
    color: var(--gunmetal);
    text-align: center;
    padding: 2rem;
}

footer p {
    margin: 0;
}

/* MEDIA QUERIES */

@media screen and (min-width: 1025px) {
    .container {
        max-width: 80%;
        margin: 0 auto;
    }

    .hero {
        margin-top: 2rem;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .profile-image {
        width: 100%;
        height: 500px;
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-about {
        text-align: left;
    }

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

@media screen and (max-width: 1024px) {
    .hero {
        margin-top: 2rem;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .profile-image {
        width: 100%;
        height: 400px;
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-about {
        text-align: left;
    }

    .projects {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 100%;
        height: 300px;
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-about {
        display: grid;
        place-items: center;
        text-align: center;
        margin-bottom: 0;
    }

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

@media screen and (max-width: 480px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .profile-image {
        width: 100%;
        height: 200px;
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-about {
        display: grid;
        place-items: center;
        text-align: center;
        margin-bottom: 0;
    }

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

    .project-card {
        padding: 1rem;
    }
    
}