@charset "utf-8";

/*
    Freelance Features Stylesheet
    Author: Jose Sanchez
    Date: 2/12/2026

    Filename: gf_stylesheet2.css
*/

/* Color Palette */
:root {
    --primary-color: #E7E2DD;
    --secondary-color: #D1C7BD;
    --accent-color: #AF8C5C;
    --footer-color: #474440;
}

/* Font Styles */
.figtree-regular {
  font-family: "Figtree", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}


/* HTML & Body Styles */
html {
    background-color: var(--primary-color);
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Figtree", sans-serif;
    overflow-x: hidden;
}


/* Top Header Styles */
.top-header {
    display: flex;
    justify-content: flex-start;
}

.back-btn {
    border: none;
    padding: 10px;
}

.back-btn img {
    width: 100%;
    height: 50px;
}


/* Logo Styles */
.logo {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 50px;
    width: 100%;
}

.logo img {
    display: block;
    width: 80%;
}


/* Navigation Styles */
.nav {
    width: 100%;
}

.nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    justify-content: center;
}

.nav a {
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    padding: 8px 10px 0px 10px;
    margin-bottom: 0;
    border-radius: 10px 10px 0px 0px;
}

.nav2, .nav3 {
    background-color: #e1d4c7;
}

.nav1 {
    background-color: var(--secondary-color)
}


/*Card Grid Styles*/
.card-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
    background-color: var(--secondary-color);
    text-align: center;
}

.card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

.card img {
    width: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    aspect-ratio: 1/1;
    justify-self: center;
}

.card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 50%;
    margin: 0 auto;
    justify-self: center;
}

.card p {
    font-weight: 800;
}

/* Fade-in Animation on Scroll*/
.card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.3s ease, transform 1.3s ease;
}

.card.show {
    opacity: 1;
    transform: translateY(0);
}



/*Slide in Animations*/
/* From top to bottom */
.logo {
    opacity: 0;
    transform: translateY(-50px);
    animation: slideIn 1.3s ease forwards;
}

/* From right to left */
.nav {
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1.3s ease forwards;
}

/* From left to right */
.back-btn {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 1.3s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Footer Styles */
footer {
    display: flex;
    flex-direction: column;
    background-color: var(--footer-color);
    margin-top: 0;
    text-align: center;
    border-top: 2px solid var(--accent-color);
}

footer img {
    width: 100%;
    align-items: center;
    margin: 0 auto;
}

.foot-logo {
    display: block;
    width: 8rem;
    padding-top: 20px;
}

footer p {
    margin: 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.links {
    display: flex;
    flex-direction: column;
    line-height: 1.5rem;
}

.foot-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 60%;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
}

.links a {
    text-decoration: underline var(--accent-color);
    color: var(--accent-color);
    padding: 5px;
}

.links h3 {
    margin-bottom: 5px;
    text-decoration: none;
}


@media (max-width: 400px) {
    .nav a {
        font-size: 1.1rem;
    }

    .foot-nav {
        width: 70%;
    }
}

@media (max-width: 350px) {
    .nav a {
        font-size: 1rem;
    }
}

@media (min-width: 900px) {
    body {
        max-width: 1440px;
        margin: 0 auto;
    }

    /* Logo Styles */
    .logo {
        width: 45rem;
        max-width: 50rem;
        margin: 0 auto;
    }

    /* Navigation Styles */
    .nav ul {
        gap: 5rem;
    }
    
    .nav a {
        padding: 8px 30px 0px;
    }

    /* Card Styles */
    .card-gallery {
        background-color: var(--secondary-color);
    }

    .card-container {
        grid-template-columns: repeat(4, 1fr);
        width: 90%;
        margin: 0 auto;
    }

    .card:last-child:nth-child(odd) {
        width: 33.333%;
    }

    /* Footer Styles */
    footer {
        font-size: larger;
    }

    footer p {
        font-size: 1rem;
    }


}