@charset "utf-8";

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

    Filename: gf_stylesheet1.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;
    background-color: var(--primary-color);
    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: 35px;
    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 {
    background-color: #e1d4c7;
}

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


/* Main Styles */
.main {
    text-align: center;
    background-color: var(--secondary-color);
    padding: 30px 0; /* This makes bg connect with nav*/
}

/* Intro Styles */
.title {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

.info {
    font-size: 1.2rem;
    width: 80%;
    margin: 0 auto;
}

/* Photo Tiers*/
.photo-tiers {
    display: flex;
    flex-direction: column;
    padding-top: 30px;
}

.photo-tiers h2 {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
}

.description {
    font-size: 1.1rem;
    line-height: 1.5rem;
    width: 80%;
    margin: 0 auto;
}

/* Photo Styles */
.basic, .shadow, .framed, .polaroid, .window, .overlay-section{
    border-top: 2px solid var(--primary-color);
    padding-top: 30px;
    width: 100%;
}

.basic-img, .shadow-img, .framed-img, .overlay-img {
    width: 100%;
}

.basic-img img {
    width: 90%;
    margin: 0 auto;
}

.shadow-img img {
    width: 90%;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: black 5px 5px 8px;
}

.framed-img img {
    width: 90%;
    margin: 0 auto;
    border: 10px solid white;
}

.polaroid-img img {
    width: 90%;
    margin: 0 auto;
}

.polaroid-img {
    background-color: white;
    width: 90%;
    margin: 0 auto;
    padding: 20px 0;
    transform: rotate(3deg);
    box-shadow: rgb(74, 74, 74) 3px 3px 5px;
}

/* Overlay Image Styles */
/* Overlay Image Styles */
.overlay-img {
    position: relative;
    width: 90%;
    margin: 0 auto;
    cursor: pointer;
    overflow: hidden;
}

.overlay-img img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease;
}

.overlay-text {
    color: white;
    font-size: 1.6rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    text-align: center;
}

/* Active states */
.overlay-img.active img { 
    transform: scale(1.04); 
}
.overlay-img.active .overlay { 
    background: rgba(0, 0, 0, 0.62); 
}
.overlay-img.active .overlay-text { 
    opacity: 1;
    transform: translateY(0);
}

/* Window View */
.window-img {
    width: 90%;
    margin: 0 auto;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.window-img img {
    position: absolute;
    top: -25%;
    left: 0;
    width: 100%;
    height: 120%; /* taller than the container so it has room to travel */
    object-fit: cover;
    will-change: transform;
}


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

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

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


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


/* 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);
}


/* 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 (min-width: 900px) {
    body {
        max-width: 1440px;
        margin: 0 auto;
    }

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

    p {
        font-size: 1.3rem;
        line-height: 2rem;
    }

    .card {
        width: 80%;
        margin: 0 auto;
    }

    .window-img {
        height: 420px;
    }

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

    footer p {
        font-size: 1rem;
    }

}