*,
*::before,
*::after {
    margin: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --accent: #00008B;
    --muted: #333;
    
    --mobile-padding: 1rem;
    --container-padding: 8rem;
    
    --radius: 15px;
    --radius-small: 8px;
    
    --shadow: 0 5px 15px rgba(0,0,0,.2);
    --shadow-lg: 0 10px 20px rgba(0,0,0,.3);
    
    --section-offset: 0rem;
    --productsection-offset: 5rem;
    
    --transition-ease: 0.25s ease;
    --transition-s-ease: 0.2s ease;
    --transition-l-ease: 0.3s ease;
}

[id] {
    scroll-margin-top: var(--section-offset);
}

.accent {
    color: var(--accent);
}

.sections { /* sections of the page */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* sensible spacing between sections */
    border-radius: var(--radius);
}

/* Start of FAB CSS */
.fab-container{
    position:fixed;
    bottom:20px;
    right:20px;
    z-index:9999;
    opacity:0;
    pointer-events:none;
    transition:var(--transition-s-ease);
    touch-action: none; /* prevents weird mobile interference */
}
.fab-container.show {
    opacity: 1;
    pointer-events: auto;
}
.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius);
    background: white;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition-s-ease);
}
.fab-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.fab-menu a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 160px;   /* gives consistent box width */
    padding: 10px;
    text-decoration: none;
    color: var(--accent);
    font-weight: bold;
    border-radius: var(--radius-small);
    transition: var(--transition-s-ease);
}
.fab-menu a:hover {
    background: var(--accent);
    color: #fff;
}
/* End of Navigation CSS */

/* Home Banner (Background & Foreground) */
.home-banner {
    width: auto;
    height: 100vh;
    background-image: url('./images/Background1.webp');
    background-size: cover;
    background-position: center;
    position: relative; /* important for positioning */
}
.foreground {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vh;
    cursor: pointer;
}
/* End of Background & Foreground Home */

/* Start of Navigation CSS */
.site-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4); /* transparent overlay */
    padding: 15px;
    text-align: center;
}
.site-nav a {
    color: var(--accent);
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-l-ease);
}
.site-nav a:hover {
    color: white;
    text-decoration: underline;
}
.site-nav a i {
    color: inherit;
}
.site-nav::-webkit-scrollbar {
    display: none;
}
/* End of Navigation CSS */

/* Start of Product Section CSS */
.product-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}
.product-card {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
/* dark overlay (optional but makes text readable) */
.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 139, 0.4);
    z-index: 1;
}
/* content on top */
.product-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 2;
}
.product-card:hover::before {
    background: rgba(0, 0, 139, 0.6);
}
/* button styling */
.product-content button {
    margin-top: 10px;
    padding: 20px;
    border: none;
    cursor: pointer;
    background: var(--accent);
    color: white;
    border-radius: var(--radius-small);
    transition: var(--transition-l-ease);
    font-size: 20px;
}
.product-content button:hover {
    background: white;
    color: var(--accent);
}
/* End of Product Section CSS */

/* Start of Project Section CSS */
.myprojects {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 2rem 0;
    padding-bottom: 70px; /* gives space for bullets */
    position: relative;
}
.myprojects .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}
.myprojects .swiper-pagination {
    bottom: 10px !important;  /* pushes it below image */
}
.myprojects img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
}
.swiper,
.swiper-wrapper,
.swiper-slide {
    transform: translateZ(0);
    will-change: transform;
}
.myprojects .swiper-button-next,
.myprojects .swiper-button-prev {
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 139, 0.85);
    border-radius: 50%;
    transition: var(--transition-s-ease);
}

.myprojects .swiper-button-next::after,
.myprojects .swiper-button-prev::after {
    color: white;
    font-size: 24px;
    font-weight: 900;
}
.myprojects .swiper-button-next:hover,
.myprojects .swiper-button-prev:hover {
    color: black;
    transform: scale(1.15);
}
.myprojects .swiper-pagination-bullet {
    background: white;   /* inactive bullets */
    opacity: 1;
    width: 10px;
    height: 10px;
}

.myprojects .swiper-pagination-bullet-active {
    background: var(--accent); /* active bullet */
    transform: scale(1.2);
}
/* End of Project Section CSS */

/* Start of About Us Section CSS */
.row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* allows items to move to next line */
    padding: 10px;
    gap: 2rem;
    background-image: url('./images/AboutUsBG5.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    border: 6px solid var(--accent);
    border-radius: var(--radius);
}
.column {
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 5px;
    text-align: center;
    flex: 1 1 300px; /* grow, shrink, minimum width */
    max-width: 350px;
}
.column img { /* Company Profile images on the top */
    width: 100%;
    height: 100%;
    display: block;
    border-radius: var(--radius);
}
.our-solutions p { /* Paragraph in Our Solutions outside the columns */
    padding: 0 5.5rem;
    margin-top: -20px;
}
.solutions { /* Main container for Our Solutions */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: 0 var(--container-padding);
    align-items: stretch;
}
.solution-text { /* Texts in all columns for Our Solutions */
    border: 3px solid var(--accent);
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 150px;
    text-align: center;
    border-radius: var(--radius);
}
.solution-text h1 {
    margin-bottom: 1rem;
    line-height: 1.3;
}
.solution-text p {
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1;
}
.our-company h1,
.our-expertise h1,
.our-solutions h1,
.our-commitment h1{
    text-align: center;
    margin-top: 40px;
    margin-bottom: 1rem;
    color: var(--accent);
}
.products-header,
.contact-h1,
.section-title,
.about-header,
.projects-header{ /* Sections H1 Text */
    text-align: center;
    margin: 1rem 0;
    color: var(--accent);
}
.our-company p,
.our-expertise p,
.our-commitment p,
.our-solutions p{
    text-align: justify;
    text-justify: inter-word;
    padding: 0 var(--container-padding);
    margin-top: -20px;
}
/* End of About Us Section CSS */

/* Start of Contact Us Section CSS */
#Contact-Us {
    padding: 0 var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
/* each column */
.contact-text {
    flex: 1;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-text:last-child {
    grid-column: 2;
}
/* icon wrapper */
.contact-icon {
    width: 70px;
    height: 70px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--accent);
}
/* spinning ring */
.ring {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%; 
    border: 3px solid #ddd;
    border-top: 3px solid var(--accent);
    animation: spin 1.2s linear;
}
.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}
.bg {
    fill: none;
    stroke: #ddd;
    stroke-width: 4;
}
.progress {
    fill: none;
    stroke: var(--accent);
    stroke-width: 4;
    stroke-dasharray: 188;
    stroke-dashoffset: 188;
}
.progress.animate {
    animation: fill 3s linear forwards;
}
@keyframes fill {
  to {
    stroke-dashoffset: 0;
  }
}
/* icon on top */
.icon-inner {
    font-size: 24px;
    z-index: 2;
    position: relative;
}
.icon-gov {
    width: 32px;
    height: 32px;
    object-fit: contain;
    z-index: 2;
    position: relative;
}
/* hover effect */
.contact-text:hover .contact-icon {
    transform: scale(1.1);
    transition: var(--transition-l-ease);
}
.addgmap {
    width: 100%;
    max-width: 1200px;
    height: 50vh;
    margin: 30px auto; /* THIS is the center fix */
    border: 6px solid var(--accent);
    border-radius: var(--radius);
    display: block;
}
/* End of Contact Us Section CSS */

/* Start of Footer Section CSS */
.site-footer {
    text-align: center;
    padding: 20px;
    background: white;
    color: var(--accent);
}
.back-to-top {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: var(--transition-l-ease);
}
.back-to-top:hover {
    color: black;
    transform: translateY(-3px);
}
/* End of Footer Section CSS */

/* Products Page CSS */
.products-page section {
    scroll-margin-top: var(--productsection-offset);
}
.products-page .logo-h1head {
    display: flex;
    align-items: center;
    gap: 0.75rem
}
.products-page .logoh1{
    width: 150px;
    display: block
}
.products-page .productsite-header { /* Header */
    position: sticky;
    z-index: 1000;
    top: 0;
    width: 100%;
    background-color: #fff;
    color: var(--muted);
    border: 5px solid var(--accent);
    border-radius: var(--radius);
}
.products-page header .products-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.7rem 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.products-page nav.productsite-nav { /* Navigation */
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    font-size: 1.2rem;
}
.products-page nav.productsite-nav a {
    color: var(--accent);
    text-decoration: none;
}
.products-page nav.productsite-nav a:hover {
    color: var(--muted)
}
.products-page .hidden {
    display: none !important;
}
.products-page .show {
    opacity: 1;
}
.products-container { /* Our Products container of images */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
    gap: 1rem 3rem;
    border-radius: var(--radius);
    width: 100%;
    padding: 0 95px;
    margin-bottom: 1rem;
}
.collapsible { /* Style the button that is used to open and close the collapsible content */
    background-color: var(--accent);
    color: #fff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 15px;
}
.active, .collapsible:hover {
    background-color: #ccc;
}
.products-card { /* Card container inside the Our Products */
    background-color: #fff;
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.products-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}
.products-card img {
    width: 100%;
    height: 120px;
    object-fit: fill;
    object-position: center;
    display: block;
}
.productsc-content {
    padding: 20px;
    text-align: center;
}
.productsc-title { /* H3 inside the details */
    font-size: 2em;
    color: var(--accent);
    margin: 0;
}
.details { /* Full description with the H3 title */
    display: none;
    margin-top: 10px;
}
.productsc-desc { /* Paragraph inside the details */
    margin-top: 12px;
    color: #000;
    text-align: justify;
    padding: 0 18px;
    overflow: hidden;
    background-color: #fff;
}
.productsc-desc.show { /* Display when the details is showed */
    display: block;
}
/* End of Products Page CSS */

/* Start of Mobile Queries CSS */
@media (max-width: 768px) {
    :root {
        --section-offset: 15px;
    }
  
  /* =========================
     GLOBAL FIXES
  ========================= */
html,
body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

  /* =========================
     HOME NAV
  ========================= */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}
.site-nav a {
    margin: 5px;
    font-size: 14px;
}

  /* =========================
     HOME LOGO
  ========================= */
.foreground {
    width: 80vw;
    max-width: 320px;
}

  /* =========================
     PRODUCTS PAGE GRID (HOME)
  ========================= */
.product-container {
    grid-template-columns: 1fr;
}
.product-card {
    height: 50vh;
}

 /* =========================
     PROJECTS SECTION
  ========================= */
#Projects {
        padding: 0 1rem;
    }

.projects-swiper {
    padding: 0 var(--mobile-padding);
}
.swiper-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 5px solid var(--accent);
}
.swiper-pagination {
    bottom: 0 !important;
}
.swiper-button-prev,
.swiper-button-next {
    transform: scale(0.8);
}

  /* =========================
     ABOUT SECTION
  ========================= */
.row {
    flex-direction: column;
    align-items: center;
}
.column {
    width: 100%;
    max-width: 100%;
}
.our-company p,
.our-expertise p,
.our-commitment p,
.our-solutions p {
    padding: 0 1rem;
}
h1 {
    font-size: 1.4rem;
    line-height: 1.3;
}
.projects-gallery,
.product-container,
.solutions {
    grid-template-columns: 1fr;
    margin: 0;
    padding-inline: var(--mobile-padding);
    gap: 1rem;
}
.products-header,
.about-header,
.contact-h1,
.projects-header {
    font-size: 1.3rem;
}

  /* =========================
     CONTACT SECTION
  ========================= */
#Contact-Us {
    padding: 20px;
}
.contact-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 1rem;
    padding: 0 1rem;
}
.contact-text:last-child {
        grid-column: 1 / -1;
        justify-self: center;
}
.contact-text {
    width: 100%;
    max-width: 180px; /* adjust as needed */
    padding: 15px 10px;
    text-align: center;
}
.contact-icon {
    margin: 0 auto 10px;
}
.contact-text .label {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--accent);
}
.contact-text ul {
    padding: 0;
    margin: 10px 0 0;
    list-style: none;
}
.contact-text li {
    font-size: 0.85rem;
    word-break: break-word;
}
.addgmap {
    width: 100%;
    height: 300px;
    margin-top: 20px;
    border: 0;
}

  /* =========================
     PRODUCTS PAGE (SECOND PAGE GRID)
  ========================= */
.products-container {
    grid-template-columns: 1fr;
    padding: 0 1rem;
}
.products-card img {
    height: 160px;
}
.products-page section {
    scroll-margin-top: var(--section-offset);
}
  /* =========================
     HEADER (PRODUCT PAGE)
  ========================= */
.products-page header .products-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
.products-page nav.productsite-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    font-size: 14px;
    font-weight: bold;
}

  /* =========================
     FAB MOBILE FIX
  ========================= */
.fab-container.show {
    opacity: 1;
    pointer-events: auto;
}
.fab-main {
    width: 55px;
    height: 55px;
    font-size: 18px;
}
.fab-menu {
    right: 0;
    bottom: 65px;
}
}