﻿/* =========================================================
   PROJECT SHOWCASE
   ========================================================= */

:root {
    --background: rgb(32, 16, 2);
    --surface: blanchedalmond;
    --surface-light: #fff1d7;
    --text: #111;
    --text-muted: #442f03;
    --accent: #e46306;
    --accent-green: #629e03;
    --accent-teal: #02636c;
    --border: #09b6c5;
    --max-width: 1400px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 16px;

    background-color: rgb(32, 16, 2);

    color: blanchedalmond;

    font-family: "Text Me One", sans-serif;

    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   GENERAL
   ========================================================= */

.container {
    width: min(92%, var(--max-width));
    margin: auto;
}

.eyebrow {
    display: block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: .75rem;
    font-weight: 700;

    letter-spacing: .18em;
    text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
    font-family: "Bruno Ace SC", sans-serif;

}

h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    margin: 0 0 25px;
}

h2 {
    color: #629e03;

    border-bottom: 6px solid #09b6c5;

    display: inline-block;

    padding-bottom: 8px;
}

p {
    color: var(--text);
}


/* =========================================================
   HEADER
   ========================================================= */

header {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 16px solid #09b6c5;
    background-color: blanchedalmond;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 20px;
    padding: 16px 20px;
    outline:3px solid#f56d04;
}
h1 {
    font-size: clamp(1.8rem, 5vw, 3.6rem);
    white-space: nowrap;
    word-break: normal;
    margin: 10px 0;
    line-height: 1.2;
    text-align: center;
    color: black;
}

.header-inner {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {

    color: black;

    font-family: "Bruno Ace SC", sans-serif;

    font-size: 1.25rem;

    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {

    color: #e46306;

    font-size: 1.1rem;

    text-decoration: none;

    font-family: "Text Me One", sans-serif;
}

.main-nav a:hover {

    color: black;
}



.mobile-menu-button {
    display: none;

    background: none;
    border: 0;

    color: white;

    font-size: 1.5rem;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    color: #151515;

    min-height: 70vh;

    border: 8px solid #09b6c5;

    background:
        linear-gradient(rgba(243, 199, 163, 0.851),
            rgba(240, 229, 213, 0.85)),
        url("images/hero.jpg") center/cover no-repeat;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    color: #09b6c5;
}



.hero p {
    width: 66.6667%;
    max-width: none;
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    margin-bottom: 35px;
    color: #442f03;
}
#hero{
    color:#629e03;
    font-size: 4.25rem;
    text-shadow: -4px 4px 4px rgb(2, 82, 32);
}

/* =========================================================
   BUTTON
   ========================================================= */

.button {

    background: #629e03;

    color: white;

    border: 3px solid #09b6c5;

    font-family: "Bruno Ace SC", sans-serif;

    border-radius: 4px;
}

.button:hover {

    background: #437e04;
}




/* =========================================================
   CATEGORIES
   ========================================================= */
.categories-section,
.projects-section,
.about-section {

    border-bottom: 4px dashed #e46306;

    margin-top: 25px;
}

.section-heading {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 260px));
    justify-content: center;
    gap: 15px;
}

.category-card {

    background: blanchedalmond;

    color: black;

    border: 4px solid #09b6c5;

    font-family: "Text Me One", sans-serif;

    border-radius: 6px;
}

.category-card:hover {

    background: #fff1d7;

    border-color: #629e03;

    transform: translateY(-5px);
}



.category-icon {
    font-size: 2rem;
}

.category-card span:last-child {
    text-align: center;

    font-weight: 600;
}


/* =========================================================
   PROJECT SECTION
   ========================================================= */

.projects-section {
    padding: 100px 0;

    background: #151515;
}

.projects-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 45px;
}

.projects-header .section-heading h2 {
    font-size: 5rem;
}

.project-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-box input,
.project-controls select {

    background: blanchedalmond;

    color: black;

    border: 5px solid #09b6c5;

    font-family: "Text Me One", sans-serif;
}

.search-box input {
    width: 240px;
}

.project-controls select {
    min-width: 190px;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {

    background: blanchedalmond;

    border: 8px solid #09b6c5;

    color: black;

    border-radius: 6px;

    overflow: hidden;
}

.project-card:hover {

    border-color: #629e03;
}



.project-image {

    aspect-ratio: 4 / 3;

    overflow: hidden;
}

.project-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .5s;
}

.project-card:hover .project-image img {

    transform: scale(1.05);
}

.project-info {

    padding: 25px;
}

.project-category {

    color: var(--accent);

    font-size: .72rem;

    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.project-info h3 {

    color: #629e03;
}

.project-info p {

    color: #442f03;

    text-align: left;
}

.view-project {

    display: inline-block;

    margin-top: 20px;

    color: #e46306;

    font-size: 1.7rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* =========================================================
   NO RESULTS
   ========================================================= */

.no-results {

    display: none;

    padding: 40px 0;

    text-align: center;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {

    padding: 120px 0;
}

.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;
}

.about-grid p {

    font-size: 1.1rem;
}


/* =========================================================
   PROJECT MODAL
   ========================================================= */

.modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    padding: 40px;

    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .85);

    backdrop-filter: blur(8px);
}

.modal-content {

    position: relative;

    z-index: 1;

    background: blanchedalmond;

    color: black;

    border: 6px solid #09b6c5;
}

.modal-close {

    position: absolute;

    top: 15px;
    right: 20px;

    background: none;

    border: 0;

    color: black;

    font-size: 2rem;

    z-index: 3;
}


/* =========================================================
   PROJECT DETAIL
   ========================================================= */

.project-detail-header {
    text-align: center;
    margin-bottom: 45px;
}

.project-detail-header h2 {

    margin-bottom: 15px;
}

.project-detail-description {
    width: 70%;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    font-size: 1.1rem;
}


.project-details {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin: 35px 0 60px;
}


.detail-box {

    background: #fff1d7;

    border: 2px solid #09b6c5;
    padding: 16px;
}

.detail-box strong {

    display: block;

    margin-bottom: 5px;

    color: var(--accent);

    font-size: .75rem;

    text-transform: uppercase;

    letter-spacing: .1em;
}


/* =========================================================
   PHOTO SECTIONS
   ========================================================= */

.photo-section {

    margin-top: 60px;
}

.photo-section h3 {

    margin-bottom: 20px;

    font-size: 1.8rem;
}

.photo-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;
}

.photo-grid img {

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;

    cursor: pointer;

    transition: .25s;
}

.photo-grid img:hover {

    opacity: .8;
}

.photo-grid figure {
    margin: 0;
}

.photo-grid figcaption {
    padding: 6px 2px;
    color: rgb(41, 31, 1);
    font-size: 0.9rem;
    line-height: 1.4;
}
/* =========================================================
   LIGHTBOX
   ========================================================= */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, .95);
}

.lightbox.active {
    display: flex;
}

.lightbox img {

    max-width: 85vw;
    max-height: 85vh;

    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: absolute;

    background: none;

    border: 0;

    color: white;

    cursor: pointer;

    font-size: 3rem;
}

.lightbox-close {

    top: 20px;
    right: 30px;
}

.lightbox-prev {

    left: 25px;
}

.lightbox-next {

    right: 25px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1000px) {

    .projects-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .hero p {
        width: 90%;
    }

    .main-nav {

        position: absolute;

        top: 75px;
        left: 0;
        right: 0;

        display: none;

        flex-direction: column;

        padding: 20px;

        background: var(--surface);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-button {
        display: block;
    }

    .projects-grid {

        grid-template-columns: 1fr;
    }

    .projects-header {

        align-items: stretch;

        flex-direction: column;
    }

    .project-controls {

        flex-direction: column;
    }

    .search-box input,
    .project-controls select {

        width: 100%;
    }

    .about-grid {

        grid-template-columns: 1fr;

        gap: 30px;
    }

    .modal {

        padding: 10px;
    }

    .modal-content {

        padding: 25px 18px;
    }

    .project-detail-description {
        width: 90%;
    }

    .project-details {

        grid-template-columns: 1fr;
    }

    .photo-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}
