﻿* { /* whole html */
    box-sizing: border-box;
}

:root { /* placeholders */
    --accent: #00008B;
    --muted: #333;
    --header-offset: 50px;
}

html { /* scrolling behavior */
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

.logo-h1head { /* logo position */
    display: flex;
    align-items: center;
    gap: 0.75rem
}

.logo-h1head .LogoH1, .logo-h1head img{ /* logo heading styles */
    width: 150px;
    display: block
}

.sections { /* sections of the page */
    display: flex;
    flex-direction: column;
    gap: 2rem; /* sensible spacing between sections */
}

.sections section { /* ensure each section occupies remaining viewport height so navigation scrolls feel consistent */
    min-height: calc(100vh - var(--header-offset) - 2rem);
    border: 5px solid var(--accent);
}

/* make sure elements with an id (anchor targets) are scrolled into view below the header */
[id] {
    scroll-margin-top: var(--header-offset);
}

header.site-header { /* full header class */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: var(--muted);
    border: 5px solid var(--accent);
}

header .container { /* header container class only */
    max-width: 100%;
    margin: 0 auto;
    padding: 0.7rem 3rem 0.7rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* keep the heading aligned left on small screens */
    gap: 0.25rem;
}

header h1 { /* header container h1 */
    margin: 0;
}

nav.site-nav { /* main navigation class */
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 1.3rem;
}

nav.site-nav a { /* text for navigation links */
        color: var(--muted);
        text-decoration: none;
}
nav.site-nav a:hover { /* while hovering the navigation links */
            color: var(--accent)
}

main{ /* padding for main content area */
    padding-top:var(--header-offset);
}

@media(min-width:700px){ 
  header .container{
      flex-direction:row;
      justify-content:space-between;
      align-items:center;
  }
}

.Banner-Home { /* banner for home page */
    align-content: center;
    margin-top: 10px;
    margin-left: 80px;
    width: 90%;
    height: 30rem;
}

.column {
    display: inline-block;
    text-align: left;
    border: 3px solid var(--accent);
    float: center;
    width: auto;
    height: auto;
    padding: 5px;
    margin-left: 95px;
    max-height: auto;
}
.column2 {
    display: inline-block;
    text-align: center;
    border: 3px solid var(--accent);
    float: center;
    width: auto;
    height: auto;
    padding: 5px;
    margin-left: 6rem;
    max-height: auto;
}
.column3 {
    display: inline-block;
    text-align: center;
    border: 3px solid var(--accent);
    float: center;
    width: auto;
    height: auto;
    padding: 5px;
    margin-left: 6rem;
    max-height: auto;
}

@media screen and (max-width: 500px) {
  .column {
    width: 100%;
  }
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
}

div.Our-company h1 {
    text-align: center;
    margin-top: 40px;
}

div.Our-company p {
    text-align: justify;
    text-justify: inter-word;
    padding:0 6rem;
    margin-top: -20px;
}

div.Our-expertise h1 {
    text-align: center;
    margin-top: 40px;
}

div.Our-expertise p {
    text-align: justify;
    text-justify: inter-word;
    padding:0 6rem;
    margin-top: -20px;
}

div.Our-solutions h1 {
    text-align: center;
    margin-top: 40px;
}

div.Our-solutions p {
    padding: 0 5.5rem;
    margin-top: -20px;
}

/* MAIN CONTAINER */
.solutions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    padding: 0 95px;
    align-items: stretch;
}

/* ALL COLUMNS */
.solution-text {
    border: 3px solid var(--accent);
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 150px;
    text-align: center;
    box-sizing: border-box;
}

/* HEADINGS */
.solution-text h1 {
    margin-bottom: 5px;
    line-height: 1.3;
}

/* PARAGRAPHS */
.solution-text p {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1;
}

/* MOBILE */
@media screen and (max-width: 768px) {
    .solutions {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .solution-text {
        min-height: auto;
    }
}

div.Our-commitment h1 {
    text-align: center;
    margin-top: 40px;
}

div.Our-commitment p {
    text-align: justify;
    text-justify: inter-word;
    padding:0 6rem;
    margin-top: -20px;
}

.products-header {
    text-align: center;
    margin-top: 40px;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    max-height: 90%;
    border-radius: 15px;
}

.product-card {
    background-color: #faf2f2;
    border: 3px solid var(--accent);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.product-card img {
    width: 100%;
    height: 120px;      /* set desired image area height */
    object-fit: contain; /* show full image */
    object-position: center;
    display: block;
}

.productc-content {
    padding: 20px;
    text-align: center;
}

.productc-title {
    font-size: 2em;
    color: #333;
    margin: 0;
}

.productc-desc {
    margin-top: 12px;
    color: #555;
    text-align: justify;
}

.site-footer { /* footer class */
    padding: 1rem 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem
}

/* Projects gallery styles */
.projects-section {
    width:100%;
    padding: 2.5rem 0;
    background: #00008B;
}

.projects-section .section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: #fff;
}

.projects-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 920px;
    margin: 0 auto;
}

.projects-gallery .gallery-item {
    display:block;
    overflow: hidden;
    border: 6px solid #e6e6d8;
    background: #fff;
}

.projects-gallery img {
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
    transition: transform .25s ease;
}

.projects-gallery .gallery-item:hover img{ transform: scale(1.03); }

/* Lightbox */
.lightbox{
    display:none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 2rem;
}

.lightbox-image{
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 8px 30px rgba(0,0,0,.6);
}

.lightbox-close{
    position: absolute;
    right: 1rem;
    top: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption{
    margin-top: .5rem;
    color:#fff;
    text-align:center;
}

@media (max-width: 900px){
    .projects-gallery{ grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 520px){
    .projects-gallery{ grid-template-columns: 1fr; }
    .projects-gallery img{ height: 220px; }
}
