

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    min-height: 100vh;
    box-sizing: border-box;
    overflow-x: hidden;
}
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 80%;
    margin: 0 auto;
}

.company-name,
.project-location {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0.25rem 0;
}

.hero-image {
}

.inner.container {
    position: relative;
}

.hero-container {
    position: relative;
    height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-top: 40px;
}


.info-row p {
    all: unset;
    display: block; 
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1.2px;
    font-size: 17px;
    line-height: 1.6;
    color: #ccc;
}


.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 25px;
    color: #ccc;
}


.tech-tags .tag {
        display: inline-block;
        margin-right: 15px;
        font-weight: bold;
        border: 1px solid var(--modern-green);
        border-radius: 8px;
        padding: 6px 18px;
        background-color: rgba(107, 191, 89, 0.15);
        color: var(--modern-green);
        white-space: nowrap;
        transition: background-color 0.3s ease, color 0.3s ease;
        cursor: default;
}

h4 {
    background: linear-gradient(0deg, var(--color-prgreen) 45%, #fff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.3rem;
}

.project-title {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: #E8F5E9;
    background: linear-gradient(0deg, var(--color-prgreen) 45%, #fff 92%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Segoe UI', sans-serif;
    font-size: 2.5rem;
    padding-top: 0;
    line-height: 1.2;
    display: block;
    word-break: break-word;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
}


.project-location {
    margin: 0 0 1.5rem;
    grid-column: 1;
    grid-row: 2;
    display: inline-block;
    border-top: 3px solid #9BBE2C;
    padding-top: 12px;
    margin-top: 20px;
    font-size: 1rem;
    font-style: italic;
    color: #C8E6C9;
    opacity: 0.8;
    justify-self: start;
}

.hero-container .inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 3fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 0 5%;
}


.hero-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}


.hero-block {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    margin: 0 auto;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-family: 'Montserrat', sans-serif;
    color: #e0e0e0;
    user-select: none;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    display: grid;
    padding: 1.5rem 2rem;
    text-align: left;
    background: linear-gradient(135deg, #121212, #1e1e1e);
    border-radius: 16px;
}

.hero-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient( circle at center, rgba(255, 255, 255, 0.07), transparent 70% );
    transform: rotate(25deg);
    pointer-events: none;
    opacity: 0.3;
    transition: opacity 0.35s ease;
}



.hero-logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem; 
    width: 80px; 
    height: auto;
    z-index: 2; 
}

.hero-logo img {
        width: 100%;
        height: auto;
}

.gallery-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    max-width: 80%;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    box-sizing: border-box;
}

.gallery-grid img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     border-radius: 1rem;
     transition: transform .3s, box-shadow .3s;
}

 .gallery-grid img:first-child {
            grid-column: 1 / 2;
            grid-row: 1 / 3;
}

.gallery-grid img:nth-child(2) {
            grid-column: 2 / 3;
            grid-row: 1 / 2;
}

.gallery-grid img:nth-child(3) {
            grid-column: 2 / 3;
            grid-row: 2 / 3;
}

.gallery-grid img:hover {
            transform: scale(1.03);
            box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.toggle-more {
    display: none;
}


.back-button-container {
    max-width: 80%;
    margin: 0 auto;
}

.back-button {
    display: inline-block;
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 20px;
    width: auto;
    white-space: nowrap;
}

.back-button:hover {
        background-color: #ffffff;
        color: #1e1e1e;
        border-color: #1e1e1e;
}

@media (max-width: 700px) {
    .project-detail.container {
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }
    .hero-container {
        height: auto;
        padding: 2rem 1rem;
        background-position: 10% center;
        background-size: cover;
        background-repeat: no-repeat;
    }

        .hero-container::before {
            background: rgba(0, 0, 0, 0.6);
        }

        .hero-container .inner {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            padding: 0;
            max-width: 90%;
            margin: 0 auto;
            box-sizing: border-box;
        }

    .hero-logo {
        top: 1rem;
        right: 1rem;
        width: 50px;
    }

    .project-title {
        font-size: 2rem;
        text-align: center;
        line-height: 1.3;
    }

    .project-location {
        font-size: 0.85rem;
        text-align: center;
        opacity: 0.9;
    }

    .info-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem 1rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .info-row .column {
            background: #121212;
            padding: 0rem 1rem 1rem 1rem;
            border-radius: 0.5rem;
    }

    .tech-tags {
        gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .tech-tags .tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto;
        padding: 0 1rem 2rem;
        gap: 1rem;
    }

     .gallery-grid img {
            height: auto;
            aspect-ratio: 16/9;
     }


    .back-button {
        font-size: 12px;
        padding: 10px 10px;
        -webkit-tap-highlight-color: transparent;
    }

}

@media(max-width: 600px){
    .hero-block {
        letter-spacing: 1.5px;
        display: grid;
        padding: 1.5rem 2rem;
        text-align: center;
    }

    .hero-container .inner {
        margin: 0 auto;
        margin-top: 20px;
        max-width: 250px;
        max-height: 150px;
    }


    .project-title {
        font-size: 1.7rem;
    }

    .project-location {
        font-size: 0.85rem;
        border-top: 2px solid #9BBE2C;
        padding-top: 8px;
        margin-top: 10px;
    }
}

@media(max-width: 450px) {


    h4 {
        font-size: 1.5rem;
        padding-bottom: 0px;
    }

    .tech-tags .tag {
        padding: 4px 12px;
        font-size: 0.9rem;
    }

    .info-row {
        gap: 1.5rem;
    }

        .info-row p {
            margin-bottom: 1rem;
            font-size: 14px;
            line-height: 1.6;
        }

        .info-row .column p + p {
            display: none;
        }

        .info-row .column.expanded p {
            display: block;
        }

    .toggle-more {
        display: inline-block;
        margin-top: 0.5rem;
        font-size: 0.7rem;
        font-weight: bold;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: #ccc;
        -webkit-tap-highlight-color: transparent;
    }

    .hero-container {
        margin-top: 20px;
    }

    .hero-logo {
        width: 40px;
    }



    .hero-container .inner {
        max-width: 220px;
        max-height: 140px;
    }


.project-title {
    font-size: 1.5rem;
}


}


@media(max-width: 325px){

    .tech-tags .tag {
        padding: 4px 12px;
        font-size: 0.8rem;
    }

    .hero-container .inner {
        max-width: 190px;
        max-height: 120px;
    }

    .hero-container {
        margin-top: 0;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-location {
        font-size: 0.65rem;
        padding-top: 5px;
    }



    h4 {
        font-size: 1.3rem;
        padding-bottom: 0px;
    }

    .info-row p {
        font-size: 13px;
    }


    .info-row .column p + p {
        display: none;
    }

    .info-row .column.expanded p {
        display: block;
    }

    .toggle-more {
        display: inline-block;
        margin-top: 0.5rem;
        font-size: 0.7rem;
        font-weight: bold;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        color: #ccc;
        -webkit-tap-highlight-color: transparent;
    }


}


