@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
    --main-text-color: #0f4e9e;
    --secondary-text-color: #169ed9
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
    scroll-behavior: smooth
}

a {
    text-decoration: none;
    color: var(--main-text-color)
}

body,
html {
    width: 100%;
    overflow-x: hidden
}

ul {
    list-style: none
}

.header .logo img {
    width: 385px
}

.header .logo h1 {
    color: #142e84;
    font-size: 24px;
    font-weight: 600;
    position: absolute;
    right: -220px;
    bottom: 83px
}

.header .logo,
.header .logo a {
    display: flex;
    align-items: center;
    position: relative
}

.header {
    justify-content: space-around;
    align-items: center
}

.header,
.header nav ul {
    display: flex
}

.header nav ul li {
    margin: 0 20px;
    font-size: 19px;
    font-weight: 500;
    transition: all .5s;
    position: relative
}

.header nav ul li:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    transition: .3s
}

.header nav ul li a {
    transition: all .5s
}

.header nav ul li a:hover {
    color: var(--secondary-text-color)
}

.header nav ul li:hover:after {
    width: 100%
}

#products-link:after {
    height: 0 !important;
    width: 0 !important
}

#products-link:hover:after {
    height: 0;
    width: 0
}

.sub-sections {
    position: absolute;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    left: 0;
    top: 100%;
    display: none !important;
    width: 225px;
    margin: 0;
    padding: 0;
    background-color: #fff;
    z-index: 10;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity .3s ease, visibility .3s ease
}

.sub-sections li {
    list-style: none;
    padding: 10px 15px;
    font-size: 14px !important;
    color: #333;
    cursor: pointer;
    margin: 0 !important
}

.sub-sections li:hover:after {
    height: 0;
    width: 0
}

.sub-sections li:after {
    height: 0 !important;
    width: 0 !important
}

.sub-sections li:hover {
    background-color: #cfcfcf
}

#products-link:hover .sub-sections {
    display: block !important;
    opacity: 1;
    visibility: visible
}

.icon {
    position: absolute;
    width: 20px
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: #142e84 !important
}

.footer-logo img {
    width: 450px
}

.footer-logo p {
    font-size: 16px;
    color: #142e84;
    font-weight: 600
}

.footer-logo {
    width: 25%
}

.contact-footer ul li {
    color: #142e84 !important;
    cursor: pointer
}

footer h1 {
    margin-bottom: 10px
}

footer ul li {
    font-size: 18px;
    line-height: 1.8em;
    font-weight: 600;
    transition: all .4s
}

footer ul li a {
    transition: all .4s;
    color: #142e84 !important
}

footer ul {
    list-style: circle !important
}

footer ul li a:hover,
footer ul li:hover {
    color: var(--secondary-text-color) !important
}

.Hero {
    color: #142e84 !important;
    padding: 10% 15%;
    background: url(/bg.avif) no-repeat;
    background-size: cover;
    background-position: 50%;
    background-attachment: fixed
}

.Hero p {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.5em
}

.Hero h1,
.Hero p {
    text-align: left
}

.Hero h1,
.team h1 {
    font-size: 60px;
    margin-bottom: 20px
}

.team h1 {
    color: #142e84 !important;
    text-align: center
}

.team {
    padding: 5%;
    display: flex;
    justify-content: center;
    flex-direction: column
}

.team img {
    width: 1024px;
    height: 1024px;
    margin: 0 20%
}

.Products h1 {
    color: #142e84 !important;
    font-size: 60px;
    text-align: center;
    margin-bottom: 100px
}

.product {
    width: 500px;
    margin: 0 50px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.product img {
    width: 100%;
    border-radius: 10px;
    position: relative;
    bottom: 0;
    transition: all .5s
}

.products-container {
    display: flex;
    justify-content: center
}

.product h3 {
    color: #142e84;
    font-size: 23px;
    margin-bottom: 5px;
    text-align: left;
    transition: all .5s
}

.product p {
    color: #0f4e9e;
    font-weight: 400;
    transition: all .5s
}

.Products {
    padding: 10rem 0
}

.product:hover img {
    position: relative;
    bottom: 10px
}

.product:hover p {
    color: var(--secondary-text-color) !important
}

.product:hover h3 {
    color: #295fa7 !important
}

.footer-logo {
    width: 100% !important;
    max-width: 25vw
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #f9f9f9
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 70vw
}

.form-group {
    position: relative;
    margin-bottom: 20px
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 12px 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    outline: none;
    background: none;
    resize: none
}

.form-group label {
    position: absolute;
    top: 16px;
    left: 12px;
    color: #142e84;
    font-size: 16px;
    pointer-events: none;
    transition: all .2s ease-out;
    background-color: white;
    padding: 0 4px
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group.filled label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #142e84
}

.form-button {
    width: 100%;
    padding: 12px;
    background-color: #142e84;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s ease
}

.form-button:hover {
    background-color: #357abd
}

.contact-section h1 {
    color: #142e84 !important;
    font-size: 60px;
    text-align: center;
    margin-bottom: 20px
}

.contact-section {
    min-height: 100vh
}

.form-group textarea {
    height: 150px
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ff4040;
    background-color: #ffecec
}

.form-group.error label {
    color: #ff4040;
    background-color: #ffecec
}

.products img {
    width: 100%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15)
}

.product {
    display: flex;
    align-items: center
}

.sub-product img {
    max-width: 350px;
    border: 1px solid black
}

.products {
    display: flex;
    justify-content: space-between;
    margin: 25px 0
}

.sub-product {
    justify-content: center !important
}

.sub-product .product-content {
    margin: 0 100px
}

.sub-product .product-content h2 {
    font-size: 40px !important
}

.products-container-main {
    display: flex;
    flex-direction: column;
    padding: 30px
}

.product-content h2 {
    color: #142e84;
    font-size: 50px;
    margin-bottom: 30px;
    text-align: left;
    transition: all .5s
}

.product-content {
    padding: 100px 50px
}

.product-content p {
    color: #142e84;
    font-weight: 500;
    margin-bottom: 30px;
    width: 80%
}

.product-content a {
    width: 100%;
    padding: 12px;
    background-color: #142e84;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background .3s ease;
    border-radius: 6px
}

.product-content a:hover {
    background-color: #357abd
}

.products-hero-paragraph {
    text-align: center
}

.products-hero {
    min-height: 80vh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 100px
}

.products-hero-heading {
    text-align: center
}

.chemical-products {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap
}

.chemical-products ul {
    list-style: circle;
    margin: 10px 0
}

.chemical-products ul li {
    color: #142e84;
    font-size: 20px;
    font-weight: 500
}

@media (max-width:1200px) {
    .Hero {
        padding: 10%
    }

    .Products h1 {
        font-size: 50px
    }

    .footer-logo img {
        width: 350px
    }

    footer {
        flex-wrap: wrap
    }

    .product-content h2 {
        font-size: 35px
    }
}

@media (max-width:900px) {
    .header .logo img {
        width: 250px;
        display: none
    }

    .header .logo h1 {
        position: static
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 40;
        padding: 10px
    }

    .hamburger .bar {
        width: 25px;
        height: 3px;
        background-color: #000;
        margin: 4px 0;
        transition: .4s
    }

    .hamburger .bar.open:first-child {
        transform: rotate(45deg) translate(5px, 5px)
    }

    .hamburger .bar.open:nth-child(2) {
        opacity: 0
    }

    .hamburger .bar.open:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px)
    }

    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100%;
        width: 80%;
        background-color: white;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        transition: left .3s ease;
        z-index: 35;
        box-shadow: 4px 0 12px rgba(0, 0, 0, .1)
    }

    .nav.open {
        left: 0
    }

    .nav ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%
    }

    .nav ul li {
        width: 100%;
        font-size: 18px;
        position: static
    }

    #products-link .sub-sections {
        position: static !important;
        display: block !important;
        background: none;
        margin-top: 8px;
        padding-left: 15px;
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        transition: none;
        z-index: auto
    }

    .sub-sections li {
        font-size: 16px;
        margin: 0;
        padding: 6px 0 6px 10px;
        border-left: 2px solid #ccc;
        width: 100%
    }

    .sub-sections li:hover {
        background-color: transparent;
        color: var(--secondary-text-color)
    }

    #products-link:hover .sub-sections {
        display: block !important
    }

    .icon {
        margin-left: 6px;
        position: static
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 80%;
        width: 20%;
        height: 100%;
        background: rgba(0, 0, 0, .3);
        z-index: 25
    }

    .product a h3 {
        font-size: 20px
    }

    .product a p {
        font-size: 14px
    }

    .Products h1 {
        font-size: 35px;
        margin-bottom: 0
    }

    .product {
        margin: 25px 0
    }

    .products-container {
        flex-wrap: wrap
    }

    .contact-section h1 {
        font-size: 35px
    }

    .contact-form {
        max-width: 90vw;
        padding: 30px 0
    }

    .footer-logo img {
        width: 250px
    }

    .footer-logo {
        max-width: 35vw
    }

    .footer-logo p {
        font-size: 12px
    }

    .contact-footer,
    .quicklinks-footer {
        margin: 0 3px
    }

    footer h1 {
        font-size: 20px
    }

    footer ul li {
        font-size: 15px
    }

    .sub-product img {
        max-width: 300px
    }

    .sub-product .product-content h2 {
        font-size: 25px
    }

    .products img {
        max-width: 300px
    }

    .products .product-content h2 {
        font-size: 25px
    }
}

@media (max-width:750px) {
    .Hero h1 {
        font-size: 50px
    }

    .Hero p {
        font-size: 18px
    }

    .sub-product {
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .26);
        border-radius: 20px;
        padding: 5px
    }

    .sub-product img {
        order: -1;
        max-width: 90%;
        height: auto;
        margin-bottom: 20px;
        box-shadow: 0 0 0 !important;
        border: 0 solid black
    }

    .sub-product .product-content {
        padding: 20px 10px;
        margin: 0
    }

    .sub-product .product-content h2 {
        font-size: 22px;
        margin: 0
    }
}

@media (max-width:450px) {
    .Hero h1 {
        font-size: 36px
    }

    .Hero h1,
    .Hero p {
        text-align: center
    }

    .Hero p {
        font-size: 15px
    }

    .Hero {
        padding: 10% 3%
    }

    .contact-container {
        padding: 40px 0
    }
}

@media (max-width:700px) {
    footer {
        flex-direction: column;
        align-items: normal
    }

    .footer-logo {
        max-width: 100vw;
        padding: 25px
    }

    footer div {
        padding: 25px;
        margin: 10px 0
    }

    .footer-logo p {
        font-size: 18px
    }

    .footer-logo img {
        width: 350px
    }

    footer h1 {
        font-size: 30px
    }

    footer ul li {
        font-size: 18px
    }
}

@media (max-width:620px) {
    .chemical-products {
        justify-content: flex-start
    }

    .chemical-products ul {
        margin: 15px
    }

    .product-content p {
        font-size: 10px
    }
}

@media (max-width:1400px) {
    .all-products .products {
        display: flex;
        flex-direction: column
    }

    .all-products .products img {
        order: -1
    }

    .all-products .products .product-content {
        padding: 5px
    }

    .all-products .products {
        box-shadow: 0 4px 12px rgba(0, 0, 0, .26);
        padding: 25px;
        border-radius: 5px
    }
}