* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-container {
    display: flex;
    justify-content: left;
}

.logo {
    max-height: 60px;
    width: auto;
    transition: max-height 0.3s ease;
}

.header-scrolled .logo {
    max-height: 40px;
}

.main-nav {
    background-color: transparent;
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-scrolled .top-bar {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.header-scrolled .main-nav {
    background-color: rgba(0, 86, 179, 0.7);
    backdrop-filter: blur(5px);
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    justify-content: center;
    flex-grow: 1;
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.header-scrolled nav ul li a {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

nav ul li a:hover {
    color: #17a2b8;
}

a {
    text-decoration: none;
    color: #333;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #0056b3;
    font-weight: 700;
}

.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #0056b3;
    margin-bottom: 10px;
    font-weight: 600;
}

.legal-list {
    list-style-type: none;
    padding: 0;
}

.legal-list li {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 10px;
}

.product-categories {
    text-align: center;
    margin-bottom: 20px;
}

.product-categories button {
    margin: 5px;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #0056b3;
    border: 1px solid #0056b3;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.product-categories button:hover,
.product-categories button.active {
    background-color: #0056b3;
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: scale(1.05);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-card .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

#find-us {
    background-color: #f0f8ff;
    padding: 60px 0;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 86, 179, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info, .contact-form {
    flex: 1 1 300px;
}

.contact-list {
    list-style-type: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-list i {
    margin-right: 1rem;
    font-size: 1.2rem;
    color: #0056b3;
}
.contact-wrapper form input, .contact-wrapper form textarea{
    display: block;
    width: 100%;
    background: #EBECFE;
    padding: 15px;
    border: 0;
    outline: 0;
    margin-bottom: 15px;
    margin-top: 5px;
    resize: none;
}

footer {
    background-color: #0056b3;
    color: white;
    text-align: center;
    position: relative;
    padding: 20px 0;
}

.animate__animated {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate__animated.animate__fadeIn {
    opacity: 1;
    transform: translateY(0);
}

#customers .card {
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 86, 179, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#customers .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 86, 179, 0.2);
}

#customer-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    list-style-type: none;
    padding: 0;
}

#customer-list li {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
}

#customer-list li:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus,
button:focus {
    outline: 2px solid #17a2b8;
    outline-offset: 2px;
}

a, button, .card, .product-card {
    transition: all 0.3s ease;
}

#chemical-intro {
    background-color: #f0f8ff;
    padding: 100px 0 60px;
}

#chemical-intro .section-title {
    color: #0056b3;
}

#chemical-intro p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h3 {
    color: #0056b3;
    margin-bottom: 15px;
}

.category-card ul {
    list-style-type: none;
    padding-left: 0;
}

.category-card li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.category-card li::before {
    content: "•";
    color: #0056b3;
    position: absolute;
    left: 0;
}

#applications {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.application-item {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.application-item i {
    font-size: 3rem;
    color: #0056b3;
    margin-bottom: 20px;
}

.application-item h3 {
    font-size: 1.2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.application-item p {
    font-size: 0.9rem;
    color: #666;
}

.application-list li:hover {
    transform: translateY(-3px);
}

#quality-assurance {
    background-color: #f0f8ff;
    padding: 60px 0;
}

#quality-assurance p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

#contact-chems {
    background-color: #f0f8ff;
    padding: 60px 0;
    text-align: center;
}

#contact-chems .container {
    max-width: 800px;
    margin: 0 auto;
}

#contact-chems .section-title {
    color: #0056b3;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#contact-chems p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #333;
}

#contact-chems .cta-button {
    display: inline-block;
    background-color: #0056b3;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
}

#contact-chems .cta-button:hover {
    background-color: #003d82;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 86, 179, 0.3);
}

/* Button */
.btn{
    background: #f5f5f5;
    color: #212121;
    padding: 14px 25px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    border: 0;
    outline: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn.dark-btn{
    background: #212EA0;
    color: #fff;
}



@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
        padding-left: 0; 
    }

    .hamburger {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 86, 179, 0.7);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    }

    nav ul.active {
        max-height: 300px; /* Adjust this value based on your menu items */
        padding: 20px 0;
    }

    nav ul li {
        opacity: 0;
        transform: translateY(-20px);
        transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    }

    nav ul.active li {
        opacity: 1;
        transform: translateY(0);
    }

    nav ul li:nth-child(1) { transition-delay: 0.1s; }
    nav ul li:nth-child(2) { transition-delay: 0.2s; }
    nav ul li:nth-child(3) { transition-delay: 0.3s; }
    nav ul li:nth-child(4) { transition-delay: 0.4s; }
    nav ul li:nth-child(5) { transition-delay: 0.5s; }
    nav ul li:nth-child(6) { transition-delay: 0.6s; }
    nav ul li:nth-child(7) { transition-delay: 0.7s; }

    #customer-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-categories {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-categories button {
        flex: 1 0 40%;
        margin: 5px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .product-card img {
        height: 150px;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }

    .product-card p {
        font-size: 0.8rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .applications-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    #chemical-intro {
        padding: 80px 0 40px;
    }

    #chemical-intro p,
    #quality-assurance p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        max-height: 30px;
        margin: 0 auto;
    }

    .product-categories button {
        flex-basis: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .product-card img {
        height: 120px;
    }

    .product-card .content {
        padding: 10px;
    }

    .product-card h3 {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .product-card p {
        font-size: 0.7rem;
    }

    #contact-chems .cta-button {
        display: inline-block;
        background-color: #0056b3;
        color: white;
        padding: 15px 30px;
        border-radius: 30px;
        text-decoration: none;
        font-weight: 600;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 86, 179, 0.2);
    }
    
    #contact-chems .cta-button:hover {
        background-color: #003d82;
        transform: translateY(-3px);
        box-shadow: 0 6px 8px rgba(0, 86, 179, 0.3);
    }
}