@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;
}



/* Animation Styles */
/* Fade-in 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 */
.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);
    }
}



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

.nav1 {
    background-color: #e1d4c7;
}

.nav2 {
    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*/
}

.card {
    border-top: 2px solid var(--accent-color);
    width: 90%;
    margin: 0 auto;
}

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

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

h2, h3 {
    text-decoration: underline var(--accent-color);
    margin-top: 30px;
}

.description {
    width: 100%;
    margin: 0 auto;
    font-size: 1.2rem;
}

.package-info {
    font-size: 1.2rem;
    line-height: 1.7rem;
}




/* Gallery Grid Styles */
.basic-grid, .interactive-grid, .hover-grid, .filter-grid,
.enhanced-grid, .lightbox-grid {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
}


.basic-grid img, .hover-grid img, .filter-grid img,
.lightbox-grid img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 4;
}


/* Interactive Gallery */
.interactive-grid img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.zoom-img.active {
    transform: scale(1.1);
    box-shadow: black 2px 2px 5px;
}


/* Hover Gallery*/
.hover-grid img:hover {
    transform: scale(1.1);
    box-shadow: black 3px 3px 5px;
    transition: transform 0.5s ease;
}


/* Filter Gallery */
.item.hide {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
}

.filter-buttons {
    display: flex;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    margin-bottom: 30px;
}

.filter button {
    padding: 8px 10px;
    background-color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.2rem;
    color: black;
    border: 2px solid black;
}

.filter button:active {
    background-color: var(--accent-color);
}


/* Lightbox Gallery */
#lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.88);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

#lightbox img {
	max-width: 85vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 6px;
	user-select: none;
}

#lightbox.active {
	display: flex;
}

#lb-close {
	position: absolute;
	top: 16px;
	right: 16px;
	font-size: 2rem;
	color: #fff;
	background: rgba(0,0,0,0.4);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lb-arrow {
   position: absolute;
   top: 50%;
   transform: translateY(-50%);
   font-size: 1.8rem;
   color: #fff;
   background: rgba(0,0,0,0.4);
   border: none;
   border-radius: 50%;
   width: 44px;
   height: 44px;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
}

#lb-prev {
   left: 12px;
}

#lb-next {
   right: 12px;
}

#lb-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255,255,255,0.6);
	font-size: 0.9rem;
}


/* 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: 380px) {
    .foot-nav {
        width: 70%;
    }

    .filter button {
        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;
    }

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

    .gallery-tiers, .intro {
        width: 80%;
        margin: 0 auto;
    }

    .basic-grid, .interactive-grid, .hover-grid, .filter-grid, .lightbox-grid {
        width: 60%;
        margin: 0 auto;
    }

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

    footer p {
        font-size: 1rem;
    }

}